Ejemplo n.º 1
0
function gateway_page(){
	$artica=new artica_general();
	$page=CurrentPageName();
	$html="
	<form name='ffm2'>
	<table style='width:100%'>
	<tr>
		<td valign='top'><div id='gayteway_enable'>" . gateway_enable()."</div></td>
		<td valign='top'><input type='button' OnClick=\"javascript:ParseForm('ffm2','$page',true,false,false,'gayteway_enable','$page?gayteway_enable=yes');\" value='{edit}&nbsp;&raquo;'>
		</td>
	</tr>
	</table>
	</form>
	";
	
	$tpl=new templates();
	return $tpl->_ENGINE_parse_body($html);			
}
Ejemplo n.º 2
0
function gateway_page()
{
    $page = CurrentPageName();
    $html = "\n\t<form name='ffm2'>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'><div id='gayteway_enable'>" . gateway_enable() . "</div></td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' align='right'>\n\t\t<hr>" . button("{apply}", "ParseForm('ffm2','{$page}',true,false,false,'gayteway_enable','{$page}?gayteway_enable=yes');", "16px") . "\n\t\t</td>\n\t</tr>\n\t</table>\n\t</form>\n\t";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}
Ejemplo n.º 3
0
function gateway_page()
{
    $t = time();
    $page = CurrentPageName();
    $html = "\n<div style='width:98%' class=form>\n\t<table style='width:100%'>\n\t<tr>\n\t\t<td valign='top'><div id='gayteway_enable'>" . gateway_enable() . "</div></td>\n\t</tr>\n\t<tr>\n\t\t<td valign='top' align='right'>\n\t\t<hr>" . button("{apply}", "Save{$t}()", "30") . "\n\t\t</td>\n\t</tr>\n\t</table>\n\t</div>\n\t<script>\nvar xSave{$t}= function (obj) {\n\tvar tempvalue=obj.responseText;\n\tif(tempvalue.length>3){alert(tempvalue);}\n\tYahooWinHide();\n\tLoadAjaxRound('system-main-status','admin.dashboard.system.php');\n}\t\t\t\n\t\t\n\t\t\nfunction Save{$t}(){\n\tvar XHR = new XHRConnection();\n\tXHR.appendData('EnableArticaAsGateway',document.getElementById('EnableArticaAsGateway').value);\n\tXHR.sendAndLoad('{$page}', 'POST',xSave{$t});\t\n}\n</script>\n\t";
    $tpl = new templates();
    return $tpl->_ENGINE_parse_body($html);
}