170 lines
4.2 KiB
Smarty
170 lines
4.2 KiB
Smarty
{include file='admin_header.tpl'}
|
|
|
|
|
|
<script type="text/javascript" src="../include/js/semods.js"></script>
|
|
<script type="text/javascript" src="../include/js/semods.controls.dialog.js"></script>
|
|
|
|
<script>
|
|
var lang_dlg_title = "{lang_print id=100015096}";
|
|
var lang_dlg_text = "";
|
|
</script>
|
|
|
|
{literal}
|
|
<script>
|
|
function test_api() {
|
|
SEMods.B.hide("test_api");
|
|
SEMods.B.show("test_api_progress");
|
|
new SEMods.Ajax( on_testapi_success, on_testapi_fail ).post( "admin_paymentgw_googlecheckout.php?task=testapi", '' );
|
|
}
|
|
|
|
function on_testapi_success(a, resp) {
|
|
SEMods.B.show("test_api");
|
|
SEMods.B.hide("test_api_progress");
|
|
alert( resp );
|
|
}
|
|
|
|
function on_testapi_fail(a) {
|
|
SEMods.B.show("test_api_api");
|
|
SEMods.B.hide("test_api_progress");
|
|
alert("Error");
|
|
}
|
|
|
|
function result_dialog( dlg_text ) {
|
|
new SEMods.Controls.Dialog( { title : lang_dlg_title, text : dlg_text, width : "300px", height : "130px" } );
|
|
}
|
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
.semods_dialog {
|
|
position: absolute;
|
|
z-index: 100;
|
|
background:#FFFFFF none repeat scroll 0%;
|
|
border:4px solid #525252;
|
|
color: #000;
|
|
text-align: left;
|
|
|
|
padding: 20px;
|
|
}
|
|
|
|
.semods_dialog #semods_dlgtitle {
|
|
border-bottom:2px solid #CDCDCD;
|
|
font-size: 20px;
|
|
color: #777
|
|
}
|
|
|
|
.semods_dialog #semods_dlgtext {
|
|
padding-top: 10px;
|
|
padding-bottom: 30px;
|
|
border-bottom:2px solid #CDCDCD;
|
|
}
|
|
|
|
.semods_dialog #semods_dlgbuttons {
|
|
text-align: right;
|
|
padding-top: 10px;
|
|
padding-bottom: 10px;
|
|
padding-right: 5px;
|
|
}
|
|
|
|
.semods_dialog #semods_dlgbtnyes {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
.semods_dialog #semods_dlgbtnno {
|
|
margin-right: 10px;
|
|
}
|
|
|
|
</style>
|
|
{/literal}
|
|
|
|
<h2>{lang_print id=100015097}</h2>
|
|
{lang_print id=100015098}
|
|
|
|
<br><br>
|
|
|
|
{if $result != 0}
|
|
|
|
{if empty($error)}
|
|
<div class='success'><img src='../images/success.gif' class='icon' border='0'> {$success_message}</div>
|
|
{else}
|
|
<div class='error'><img src='../images/error.gif' class='icon' border='0'> {$error} </div>
|
|
{/if}
|
|
|
|
{/if}
|
|
|
|
|
|
<form action='admin_paymentgw_googlecheckout.php' method='POST'>
|
|
|
|
<table cellpadding='0' cellspacing='0' width='600'>
|
|
<tr><td class='header'>{lang_print id=100015099}</td></tr>
|
|
|
|
<tr><td class='setting1'>
|
|
{lang_print id=100015100}
|
|
</td></tr><tr><td class='setting2'>
|
|
<table cellpadding='0' cellspacing='0'>
|
|
<tr><td><input type='radio' name='googlech_enabled' id='googlech_enabled_1' value='1'{if $googlech_enabled == 1} CHECKED{/if}> </td><td><label for='googlech_enabled_1'>{lang_print id=100015101}</label></td></tr>
|
|
<tr><td><input type='radio' name='googlech_enabled' id='googlech_enabled_0' value='0'{if $googlech_enabled == 0} CHECKED{/if}> </td><td><label for='googlech_enabled_0'>{lang_print id=100015102}</label></td></tr>
|
|
</table>
|
|
</td></tr>
|
|
|
|
|
|
<tr><td class='setting1'> {lang_print id=100015103} </td></tr>
|
|
<tr><td class='setting2'>
|
|
|
|
<table cellpadding='2' cellspacing='0'>
|
|
<tr>
|
|
<td width='150'>{lang_print id=100015104}</td>
|
|
<td><input type='text' class='text' size='50' name='googlech_merchant_id' value='{$googlech_merchant_id}'></td>
|
|
</tr>
|
|
<tr>
|
|
<td width='150'>{lang_print id=100015105}</td>
|
|
<td><input type='text' class='text' size='50' name='googlech_merchant_key' value='{$googlech_merchant_key}'></td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr><td class='setting1'>
|
|
{lang_print id=100015106}
|
|
<br><br>
|
|
<div id="test_api" style="text-align: center; display:block">
|
|
<input type='button' class='button' onclick="javascript:test_api()" value='{lang_print id=100015107}'>
|
|
</div>
|
|
|
|
<div id="test_api_progress" style="text-align: center; display:none">
|
|
<img src="../images/icons/semods_ajaxprogress1.gif">
|
|
</div>
|
|
|
|
|
|
</td></tr>
|
|
|
|
<tr><td class='setting1'> {lang_print id=100015108} </td></tr>
|
|
<tr><td class='setting2'>
|
|
|
|
<table cellpadding='2' cellspacing='0'>
|
|
<tr>
|
|
<td width='150' valign=top> {lang_print id=100015109} </td>
|
|
<td> <input onclick="javascript:this.focus();this.select();" style="width:420px; background-color: #F6F6F6; border: 1px solid #C6C6C6; padding: 2px" type="text" readonly value="{$notification_url}">
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
<br>
|
|
|
|
|
|
<br>
|
|
|
|
<input type='submit' class='button' value='{lang_print id=100015110}'>
|
|
<input type='hidden' name='task' value='dosave'>
|
|
</form>
|
|
|
|
|
|
{include file='admin_footer.tpl'} |