本文整理汇总了PHP中POSTval函数的典型用法代码示例。如果您正苦于以下问题:PHP POSTval函数的具体用法?PHP POSTval怎么用?PHP POSTval使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了POSTval函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: import_cpanel_theme
function import_cpanel_theme()
{
global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $done;
softheader($l['<title>']);
if (!empty($done)) {
echo '<div class="sai_success">' . $l['import_done'] . '</div><br /><br />';
} else {
echo '<form accept-charset="' . $globals['charset'] . '" name="editsettings" method="post" action="" id="editsettings">
' . error_handle($error, "100%", 0, 1) . '
<center class="sai_tit"><img src="' . $theme['a_images'] . 'import_cpanel.gif" /> ' . $l['import_cpanel'] . '</center>
<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px;" >
<tr>
<td width="35%">
<span class="sai_head">' . $l['r_domain'] . '</span><br />
<span class="sai_exp">' . $l['r_domain_exp'] . '</span>
</td>
<td>
<input type="text" name="r_domain" id="r_domain" size="30" size="30" value="' . POSTval('r_domain', '') . '" />
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['r_user'] . '</span><br />
<span class="sai_exp">' . $l['r_user_exp'] . '</span>
</td>
<td>
<input type="text" name="r_user" id="r_user" size="30" size="30" value="' . POSTval('r_user', '') . '" />
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['r_pass'] . '</span><br />
<span class="sai_exp">' . $l['r_pass_exp'] . '</span>
</td>
<td>
<input type="password" name="r_pass" id="r_pass" size="30" value="' . POSTval('r_pass', '') . '" />
</td>
</tr>
<tr>
<td colspan="2">
<p align="center">
<input type="hidden" name="create_acc" value="1" />
<input type="submit" style="cursor:pointer" value="' . $l['submit_button'] . '" name="create_acc" class="sai_graybluebut" id="submitftp" />
</p>
</td>
</tr>
<tr>
<td colspan="2">
<p align="center">' . $l['note'] . '</p>
</td>
</tr>
</table>
</form>';
}
softfooter();
}
示例2: licensekey_theme
function licensekey_theme()
{
global $theme, $globals, $user, $l, $langs, $skins, $error, $licsubmit;
softheader($l['<title>']);
echo '<center class="sai_heading"> ' . $l['license_key'] . '</center>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br />';
error_handle($error);
if (!empty($licsubmit)) {
echo '<br /><div class="sai_notice"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['license_success'] . '</div><br />';
} else {
echo '<form accept-charset="' . $globals['charset'] . '" name="licensekey" method="post" action="">
<br /><br />
<table width="100%" cellpadding="5" cellspacing="1" class="sai_reviewform" border="0" style="padding-left:15px; padding-top:15px margin:0px auto;" align="center">
<tr>
<td valign="top">
<span class="sai_head">' . $l['enter_license_key'] . '</span><br />
<span class="sai_exp2">' . $l['exp_license_key'] . '</span>
</td>
<td>
<input type="text" name="enter_license" id="enter_license" size="30" value="' . POSTval('enter_license') . '" autocomplete=off />
</td>
</tr>
<tr>
<td valign="top">
<span class="sai_head">' . $l['enter_email'] . '</span><br />
<span class="sai_exp2">' . $l['exp_enter_email'] . '</span>
</td>
<td>
<input type="text" name="enter_email" id="enter_email" size="30" value="' . POSTval('enter_email') . '" autocomplete=on />
</td>
</tr>
<tr>
<td colspan="2">
<p align="center"><input type="submit" name="submit_license" value="' . $l['submit_license'] . '" class="sai_graybluebut" /></p>
</td>
</tr>
</table>
</form><br /><br /><br /><br /><br /><br /><br /><br /><br /><br /><br />';
}
softfooter();
}
示例3: ftpadd_theme
//.........这里部分代码省略.........
jQuery(\'.sai_message_box\').hide(\'fast\');
}
}
}();
$(document).ready(function(){
// For creating FTP accounts
$("#submitftp").click(function(){
$("#createftp").css("display", "");
var login = ($("#login").val());
var newpass = ($("#newpass").val());
var conf = ($("#conf").val());
var dir = ($("#dir").val());
$.ajax({
type: "POST",
url: window.location+"&create_acc=1&ajaxftp=1",
data: "login="+login+"&newpass="+newpass+"&conf="+conf+"&dir="+dir,
// Checking for error
success: function(data){
$("#createftp").css("display", "none");
var result = data.substring(0,1);
if(result == "1"){
$_("login").value="";
$_("newpass").value="";
$_("conf").value="";
$_("dir").value="";
var msg = data.substring(1);
message_box.show_message( "Done ",msg,2);
}
if(result == "0"){
$("#createmx").css("display", "none");
var msg = data.substring(1);
message_box.show_message( "Error",msg,1);
}
},
error: function() {
message_box.show_message("Error",\'' . $l['connect_error'] . '\',1);
}
});
});
});
var dir = false;
function suggestdompath(domval){
if(dir){
return true;
}
$_("dir").value = "' . cleanpath($softpanel->user['homedir']) . '/www/"+$_("login").value;
}
// ]]></script>
<form accept-charset="' . $globals['charset'] . '" action="" method="post" name="ftp_account">
<table border="0" cellpadding="8" cellspacing="8" width="100%">
<tr>
<td width="35%">
<span class="sai_head">' . $l['loginname'] . '</span><br />
</td>
<td>
<input type="text" name="login" id="login" size="30" onkeyup="suggestdompath(this);" size="30" value="' . POSTval('login', '') . '" />
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['new_pass'] . '</span><br />
</td>
<td>
<input type="password" name="newpass" id="newpass" size="30" value="" />
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['retype_pass'] . '</span><br />
</td>
<td>
<input type="password" name="conf" id="conf" size="30" value="" />
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['directory'] . '</span><br /><span class="sai_exp">' . $l['path'] . '</span>
</td>
<td>
<input type="text" name="dir" id="dir" size="30" value="' . stripslashes(POSTval('dir', cleanpath($softpanel->path) . '/www/')) . '" onfocus="" />
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
//Add an event handler
$_("dir").onkeydown = function(){
dir = true;
}
// ]]></script>
</td>
</tr>
</table>
<table border="0" width="100%">
<td align="left" width="40%"><a href="http://' . $_SERVER['HTTP_HOST'] . '/ampps/index.php?act=ftpmanage">' . $l['lbl_ftp_manage'] . '</a></td>
<td align="left"><input type="button" style="cursor:pointer" value="' . $l['submit_button'] . '" name="create_acc" class="sai_submit" id="submitftp" /> <img id="createftp" src="' . $theme['images'] . 'progress.gif" style="display:none"></td></table>
</form>';
softfooter();
}
示例4: restore_theme
//.........这里部分代码省略.........
<div class="bg"><br />
<div class="row sai_main_head" style="width:100%;" align="center">
<div class="col-sm-5 col-xs-5" style="padding:0 10px 0 0; text-align:right;">
<i class="fa sai-restore fa-2x" style="color:#00A0D2;"></i>
</div>
<div class="col-sm-7 col-xs-7" style="padding-top:10px; padding-left:0; text-align:left;">' . $l['prog_restoring'] . $iscripts[$soft]['name'] . '</div>
</div>
<hr><br />';
echo error_handle($error, "100%", 0, 1);
echo '
<div class="row">
<div class="col-sm-5">
<label class="sai_head">' . $l['restore_dir'] . '</label><br />
<span class="sai_exp2">' . $l['restore_dir_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="checkbox" name="restore_dir" ' . POSTchecked('restore_dir', true) . ' />
</div>
</div><br />';
// Web directory ?
if (!empty($wwwdir)) {
echo '
<div class="row">
<div class="col-sm-5">
<label class="sai_head">' . $l['restore_wwwdir'] . '</label><br />
<span class="sai_exp2">' . $l['restore_wwwdir_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="checkbox" name="restore_wwwdir" ' . POSTchecked('restore_wwwdir', true) . ' />
</div>
</div><br />';
}
// Data directory ?
if (!empty($datadir)) {
echo '
<div class="row">
<div class="col-sm-5">
<label class="sai_head">' . $l['restore_datadir'] . '</label><br />
<span class="sai_exp2">' . $l['restore_datadir_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="checkbox" name="restore_datadir" ' . POSTchecked('restore_datadir', true) . ' />
</div>
</div><br />';
}
if (!empty($dbexist)) {
echo '
<div class="row">
<div class="col-sm-5">
<label class="sai_head">' . $l['restore_db'] . '</label><br />
<span class="sai_exp2">' . $l['restore_db_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="checkbox" name="restore_db" ' . POSTchecked('restore_db', true) . ' />
</div>
</div><br />';
}
echo '<br /><br />
<p align="center">
<input type="hidden" name="restore_ins" value="1" />
<input type="hidden" name="soft_status_key" id="soft_status_key" value="' . POSTval('soft_status_key', generateRandStr(32)) . '" />
<input type="submit" name="restorebtn" class="flat-butt" id="restorebtn" value="' . $l['restore_ins'] . '" />
</p>
<br /><br />
<center><b><a href="' . script_link($soft) . '" class="sai_head">' . $l['return'] . '</a></b></center><br /><br />
</div><br /><!--end of bg class-->
</form>
</div>
<div id="progress_bar" style="display: none; width: 100%;">
<br />
<div class="bg">
<center>
<div class="row sai_main_head" style="width:100%;" align="center">
<div class="col-sm-5 col-xs-5" style="padding:0 10px 0 0; text-align:right;">
<i class="fa sai-restore fa-2x" style="color:#00A0D2;"></i>
</div>
<div class="col-sm-7 col-xs-7" style="padding-top:10px; padding-left:0; text-align:left;">' . $l['prog_restoring'] . $iscripts[$soft]['name'] . '</div>
</div><br />
<center>
<font size="4" color="#222222" id="progress_txt" style="width: 100%;">' . $l['checking_data'] . '</font>
<font style="font-size: 18px;font-weight: 400;color: #444444; width: 100%;" id="progress_percent">(0 %)</font><br /><br />
</center>
<table width="500" cellpadding="0" cellspacing="0" id="table_progress" border="0" align="center" height="28" style="border:1px solid #CCC; -moz-border-radius: 5px;
-webkit-border-radius: 5px; border-radius: 5px; width: 50%;">
<tr>
<td id="progress_color" width="1" style="background-image: url(' . $theme['images'] . 'bar.gif); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;"></td>
<td id="progress_nocolor"> </td>
</tr>
</table>
<br /><center>' . $l['wait_note'] . '</center><br />
<center><b><a href="' . script_link($soft) . '">' . $l['return'] . '</a></b></center><br /><br />
</div>
</div><br /><br />';
}
echo '
</div>';
softfooter();
}
示例5: no_autoupgrade_theme
function no_autoupgrade_theme()
{
global $theme, $globals, $user, $l, $langs, $skins, $error, $saved, $categories, $iscripts, $scripts, $top, $no_autoupgrade, $noautoupgrade_catwise, $noautoupgrade_scripts;
softheader($l['<title>']);
echo '<div class="sai_heading" align="center">' . $l['show_top_scripts'] . '</div>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />';
error_handle($error);
if (!empty($saved)) {
echo '<br /><div class="sai_success"><img src="' . $theme['images'] . 'success.gif" /> ' . $l['settings_saved'] . '</div><br />';
}
echo '<form accept-charset="' . $globals['charset'] . '" name="reordercat" method="post" action="">
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
ids1 = new Array(' . implode(', ', array_keys($noautoupgrade_scripts)) . ');
function checkallsoftware(checker){
for(x in ids1){
$_("scripts_"+ids1[x]).checked = checker.checked;
//change td background color
changebg(ids1[x],"scripts_");
}
};
function selectchkbox(id,type){
if($_(type+id).checked){
$_(type+id).checked = false;
}else{
$_(type+id).checked = true;
}
//change td background color
changebg(id,type);
}
function changebg(id,type){
try{
if($_(type+id).checked){
$("#td_"+id).css({ backgroundColor: "#C5EAFF" });
$("#td_"+id).css({boxShadow: "0 0 4px #3EA0DC"});
}else{
$_("td_"+id).style.background = "#ffffff";
$("#td_"+id).css({boxShadow: "0 0 4px #FFF"});
}
}catch(e){}
};
function checkall(){
// for scripts
for(x in ids1){
changebg(ids1[x],"scripts_");
}
};
addonload("checkall();");
// ]]></script>';
/* $reseller $user*/
echo '<link href="' . $globals['mirror_images'] . 'sprites/20.css" rel="stylesheet" type="text/css" />
<table width="721" cellpadding="6" cellspacing="0" border="0" style="margin:0px auto;" class="sai_reviewform">
<tr>
<td colspan="2">
<table class="sai_ribboneffect" width="107%" style="left:-21px;" border="0">
<tr>
<td width="2%"></td>
<td valign="top"><br />
<font class="sai_ribbonhead" style="color:#FFF;"><b>' . $l['planhead'] . '</b></font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['disable_autoupgrade'] . '</span><br />
<span class="sai_exp2">' . $l['disable_autoupgrade_exp'] . '</span>
</td>
<td valign="top">
<input type="checkbox" name="disable_autoupgrade" size="30" ' . POSTchecked('disable_autoupgrade', @$no_autoupgrade['disable_autoupgrade']) . ' />
</td>
</tr>
<tr>
<td width="50%">
<span class="sai_head">' . $l['uptime'] . '</span><br />
<span class="sai_exp2">' . $l['exp_uptime'] . '</span>
</td>
<td valign="top">
<input type="text" name="uptime" size="40" value="' . POSTval('uptime', $no_autoupgrade['uptime']) . '">
</td>
</tr>
<tr>
<td colspan="2">
//.........这里部分代码省略.........
示例6: dbmanage_theme
//.........这里部分代码省略.........
}
$.ajax({
type: "POST",
url: w_l+"&editdb_user=1",
success: function(data){
$("#dbtouser_disp").css("display", "");
$("#dbtouser_disp").html(data);
},
error: function() {
message_box.show_message("Error",\'' . $l['connect_error'] . '\',1);
}
});
}
// ]]></script>
<center>
<div id="scroller-header">
<br />
<a href="#currentdb" rel="panel" class="heading_a" style="text-decoration:none" id="currentdb_a">' . $l['db_headling'] . '</a>
<a href="#adddb" rel="panel" class="heading_a" style="text-decoration:none" id="adddb_a">' . $l['db_add_label'] . '</a>
<a href="#currentuser" rel="panel" class="heading_a" style="text-decoration:none" id="currentuser_a">' . $l['db_user_add_label'] . '</a>
<a href="#dbtouser" rel="panel" class="heading_a" style="text-decoration:none" onclick="chkdbvalue();" id="dbtouser_a">' . $l['user_db_add_label'] . '</a>
</div>
</center>
<br />
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /></br></br>';
echo '<div id="scroller-body" >
<div id="mask">
<div id="panel">
<div id="currentdb" height="100%" width="700px">
<center class="sai_tit"><img src="' . $theme['a_images'] . 'database.gif" /> ' . $l['db_headling'] . '</center>
<div class="sai_popup_add"></div>
<div id="showdbtab">';
showdb();
echo '</div>
</div>
<div id="adddb" height="100%" width="700px">';
echo '<form accept-charset="' . $globals['charset'] . '" name="importsoftware" method="post" action="" >
<center><div class="sai_tit"><img src="' . $theme['a_images'] . 'adddb.gif" alt="" /> ' . $l['db_add_label'] . '</div></center>
<br />
<table border="0" cellpadding="8" cellspacing="8" width="90%" align="center" class="sai_divroundshad" sstyle="padding-left:15px; padding-top:15px;" >
<tr>
<td>
<span class="sai_head">' . $l['db_label'] . '</span>
</td>
<td valign="top">
' . $db_prefix . '<input type="text" name="db" id="db" size="30" value="' . POSTval('db', '') . '" />
</td>
</tr>
<tr>
<td colspan="2">
<p align="center"><input type="button" class="sai_graybluebut" id="submitdb" style="cursor:pointer" name="submitdb" value="' . $l['submitdb'] . '" /> <img id="createdb" src="' . $theme['images'] . 'progress.gif" style="display:none"></p>
</td>
</tr>
</table>
</form></br></br></br>
</div>';
echo '<div id="currentuser" width="700px" >';
echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'database.gif" /> ' . $l['db_user_headling'] . '</center>
<div id="showusertab">';
showuser();
echo '</div>
</div>
<div id="dbtouser" width="700px" style="height:800px"> ';
echo '<form accept-charset="' . $globals['charset'] . '" name="importsoftware" method="post" action="" >
<center><div class="sai_tit"><img src="' . $theme['a_images'] . 'adddb.gif" alt="" /> ' . $l['db_user_create_label'] . '</div></center>
<br />
<table border="0" cellpadding="8" cellspacing="8" width="90%" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px;" >
<tr>
<td>
<span class="sai_head">' . $l['db_user_label'] . '</span>
</td>
<td valign="top">
' . $db_prefix . '<input type="text" name="dbuser" id="dbuser" size="23" value="" />
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['db_user_password'] . '</span>
</td>
<td valign="top">
<input type="text" name="dbpassword" id="dbpassword" size="30" value="" />
<a href="javascript: void(0);" onclick="$_(\'dbpassword\').value=randstr(8);return false;" title="' . $l['randpass'] . '"><img src="' . $theme['images'] . 'randpass.gif" /></a>
</td>
</tr>
<tr>
<td colspan="2">
<p align="center"><input type="button" class="sai_graybluebut" id="submituser" style="cursor:pointer" name="submituserdb" value="' . $l['submituserdb'] . '" /> <img id="createuser" src="' . $theme['images'] . 'progress.gif" style="display:none"></p>
</td>
</tr>
</table>
</form>
<div id="dbtouser_disp"></div>
</div>
</div>
</div>
</div>';
softfooter();
}
示例7: adddomain_theme
function adddomain_theme()
{
global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error;
global $saved, $aefer;
softheader($l['<title>']);
echo '<div class="bg"><br />';
echo '<form accept-charset="' . $globals['charset'] . '" name="addadomain" method="post" action="" class="form-horizontal">
<div class="sai_main_head" style="width:100%;" align="center">' . $l['add_domain'] . '</div><hr>';
error_handle($error, '100%');
if (!empty($saved)) {
echo '<div class="alert alert-warning">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<center><img src="' . $theme['images'] . 'notice.gif" /> ' . $l['settings_saved'] . '</center>
</div>';
}
echo '<div class="row">
<div class="col-sm-5">
<label for="domain" class="sai_head">' . $l['domain'] . '</label><br />
<span class="sai_exp2">' . $l['domain_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="text" name="domain" id="domain" class="form-control" value="' . POSTval('domain', '') . '" />
</div>
</div><br />
<div class="row">
<div class="col-sm-5">
<label for="server_host" class="sai_head">' . $l['server_host'] . '</label>
<span class="sai_exp">' . $l['server_host_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="text" name="server_host" id="server_host" class="form-control" value="' . POSTval('server_host', '') . '" />
</div>
</div><br />';
if (empty($globals['custom_handler'])) {
echo '
<div class="row">
<div class="col-sm-5">
<label for="protocol" class="sai_head">' . $l['protocol'] . '</label>
<span class="sai_exp">' . $l['protocol_exp'] . '</span>
</div>
<div class="col-sm-7">
<select name="protocol" class="form-control" id="protocol">
<option value="ftp" ' . (isset($_POST['protocol']) && $_POST['protocol'] == 'ftp' ? 'selected="selected"' : '') . '>FTP</option>
<option value="ftps" ' . (isset($_POST['protocol']) && $_POST['protocol'] == 'ftps' ? 'selected="selected"' : '') . '>FTPS</option>
<option value="sftp" ' . (isset($_POST['protocol']) && $_POST['protocol'] == 'sftp' ? 'selected="selected"' : '') . '>SFTP</option>
</select>
</div>
</div><br />';
}
echo '
<div class="row">
<div class="col-sm-5">
<label for="port" class="sai_head">' . $l['port'] . '</label>
<span class="sai_exp">' . $l['port_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="text" name="port" id="port" class="form-control" value="' . POSTval('port', '') . '" />
</div>
</div><br />
<div class="row">
<div class="col-sm-5">
<label for="ftp_user" class="sai_head">' . $l['ftp_user'] . '</label>
<span class="sai_exp">' . $l['ftp_user_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="text" name="ftp_user" id="ftp_user" class="form-control" value="' . POSTval('ftp_user', '') . '" />
</div>
</div><br />
<div class="row" id="ftp_pass">
<div class="col-sm-5">
<label for="ftp_pass" class="sai_head">' . $l['ftp_pass'] . '</label>
<span class="sai_exp">' . $l['ftp_pass_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="text" name="ftp_pass" id="ftp_pass" class="form-control" value="' . POSTval('ftp_pass', '') . '" /><br />
</div>
</div>
<div class="row" id="trauthpass">
<div class="col-sm-5">
<label for="auth_password" class="sai_head">' . $l['auth_password'] . '</label>
<span class="sai_exp">' . $l['auth_password_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="checkbox" name="auth_password" id="auth_password" ' . POSTchecked('auth_password', true) . ' /><br /><br />
</div>
</div>
<div class="row" id="pub">
<div class="col-sm-5">
<label for="public_key" class="sai_head">' . $l['public_key'] . '</label>
<span class="sai_exp">' . $l['public_key_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="text" name="public_key" id="public_key" class="form-control" value="' . POSTval('public_key', '') . '" /><br />
</div>
</div>
//.........这里部分代码省略.........
示例8: bandwidth_theme
function bandwidth_theme()
{
global $theme, $globals, $kernel, $user, $l, $bandwidth, $month, $band, $done, $error;
// For ajax bandwidth set
if (optGET('ajaxband')) {
if (!empty($error)) {
echo '0' . current($error);
return false;
}
if (!empty($done)) {
echo '1' . $l['save'];
show_band();
return true;
}
}
// For ajax bandwidth Reset
if (optGET('ajaxreset')) {
if (!empty($error)) {
echo '0' . current($error);
return false;
}
if (!empty($done)) {
echo '1' . $l['reset'];
show_band();
return true;
}
}
softheader($l['<title>']);
echo '<center class="sai_tit"><img src="' . $theme['a_images'] . 'bandwidth.gif" /> ' . $l['heading'] . '</center><br />
<form accept-charset="' . $globals['charset'] . '" action="" method="post" name="bandwidthedit" id="bandwidthedit">
<table border="0" cellpadding="8" cellspacing="8" width="700px" align="center" class="sai_divroundshad" style="padding-left:15px; padding-top:15px; ">
<tr>
<td>
<span class="sai_head">' . $l['bandwidth_up_limit'] . '</span><br />
<span class="sai_exp">' . $l['bandwidth_up_limit_exp'] . '</span>
</td>
<td valign="top">
<input type="text" id="bandwidth_up_limit" name="bandwidth_up_limit" size="30" value="' . POSTval('bandwidth_up_limit', '') . '" />
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['bandwidth_limit'] . '</span><br />
<span class="sai_exp">' . $l['bandwidth_limit_exp'] . '</span>
</td>
<td valign="top">
<input type="text" id="bandwidth_limit" name="bandwidth_limit" size="30" value="' . POSTval('bandwidth_limit', '') . '" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="hidden" name="bandwidth_record" value="1" />
<input type="submit" style="cursor:pointer" value="' . $l['submit_button'] . '" name="create_record" class="sai_graybluebut" id="submitbandwidth"/>
<input type="button" style="cursor:pointer" value="' . $l['reset_button'] . '" name="resetbandwidth" class="sai_graybluebut" id="resetbandwidth"/> <img id="reset_bandwidth" src="' . $theme['images'] . 'progress.gif" style="display:none">
</td>
</tr>
</table>
</from><br ><br >
<div id="showband">';
show_band();
echo '</div>
<script type="text/javascript" charset="utf-8"><!-- // --><![CDATA[
var message_box = function() {
return {
show_message: function(title, body , image) {
var okbutton = \'<input style="width:75px" class="sai_graybluebut" type="button" onclick="message_box.close_message();" value="OK" />\';
if(image == "1"){
var img = \'<img src="' . $theme['images'] . 'error.gif" />\';
}else{
var img = \'<img src="' . $theme['images'] . 'confirm.gif" />\';
}
if(jQuery(\'.sai_message_box\').html() === null) {
var message = \'<div class="sai_message_box"><table border="0" cellpadding="8" width="100%" height="100%"><tr ><td rowspan="2" width="40%" > \'+ img + \'</td><td width="60%" class ="msg_tr1">\' + title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table></div>\';
jQuery(document.body).append( message );
jQuery(\'.sai_message_box\').css(\'top\', jQuery($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150);
jQuery(\'.sai_message_box\').show(\'slow\');
}else{
var message =\' <table border="0" width="100%" cellpadding="8" height="100%"><tr ><td rowspan="2" width="40%">\'+ img + \'</td><td widt="60%" class ="msg_tr1">\' + title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2" class ="msg_tr3">\' + okbutton + \'</td></tr></table>\';
jQuery(\'.sai_message_box\').css(\'top\', jQuery($(jQuery.browser.webkit ? "body": "html")).scrollTop() + 150);
jQuery(\'.sai_message_box\').show(\'slow\');
jQuery(\'.sai_message_box\').html( message );
}
},
close_message: function() {
jQuery(\'.sai_message_box\').hide(\'fast\');
}
}
}();
$(document).ready(function(){
// For Setting record
$("#submitbandwidth").click(function(){
$("#reset_bandwidth").css("display", "");
//.........这里部分代码省略.........
示例9: upgrade_theme
//.........这里部分代码省略.........
//Add an event handler
$_("' . $sk . '").onkeydown = function(){
softemail["' . $sk . '"] = true;
}
// ]]></script>
' : '');
}
}
}
//End of if($settings)
//Is it a SOFTCOPY, then Leave a NOTE
if (!empty($setupcontinue)) {
echo '<br /><br />
<div class="row" style="padding-left:15px;">
<span class="sai_info">' . $l['softcopy_note'] . '</span>
</div><br />';
}
echo '
<div class="row" style="padding-left:15px;">
<span class="sai_info">' . lang_vars($l['note_backup'], array($softins['insid'])) . '</span>
</div><br />';
if (count($array_keys) < 2) {
echo '
<div class="row" style="padding-left:15px;">
<span class="sai_info">' . $l['upgrading_to'] . '<b>' . (!empty($scripts[$array_keys[0]]['name']) ? $scripts[$array_keys[0]]['name'] : $iscripts[$array_keys[0]]['name']) . '</b>, ' . $l['version'] . ' : <b>' . (!empty($scripts[$array_keys[0]]['version']) ? $scripts[$array_keys[0]]['version'] : $iscripts[$array_keys[0]]['ver']) . '</b></span>
</div><br />';
}
echo '
<p align="center">
<input type="hidden" name="softsubmit" id="softsubmit" value="' . $l['softsubmit'] . '" />
<input type="submit" name="softsubmitbut" class="flat-butt" id="softsubmitbut" value="' . $l['softsubmit'] . '" /><span id="show_txt" style="display:none;"></span>
</p><br /><br />
<input type="hidden" name="soft_status_key" id="soft_status_key" value="' . POSTval('soft_status_key', generateRandStr(32)) . '" />
<center><b><a href="' . script_link($soft) . '" class="sai_head">' . $l['return'] . '</a></b></center><br /><br />
</div><br /><!--end of bg class-->
</form>
</div>
<div id="progress_bar" style="display: none; width: 100%;">
<br />
<div class="bg">
<center>
<div class="row sai_main_head" style="width:100%;" align="center">
<div class="col-sm-5 col-xs-5" style="padding:0 10px 0 0; text-align:right;">
<i class="fa sai-sync fa-2x" style="color:#00A0D2;"></i>
</div>
<div class="col-sm-7 col-xs-7" style="padding-top:10px; padding-left:0; text-align:left;">' . $l['prog_upgrading'] . $scripts[$array_keys[0]]['name'] . '</div>
</div>
<br />
<font size="4" color="#222222" id="progress_txt" style="width: 100%;">' . $l['checking_data'] . '</font>
<font style="font-size: 18px;font-weight: 400;color: #444444; width: 100%;" id="progress_percent">(0 %)</font><br /><br />
</center>
<table width="500" cellpadding="0" cellspacing="0" id="table_progress" border="0" align="center" height="28" style="border:1px solid #CCC; -moz-border-radius: 5px;
-webkit-border-radius: 5px; border-radius: 5px;background-color:#efefef; width: 50%;">
<tr>
<td id="progress_color" width="1" style="background-image: url(' . $theme['images'] . 'bar.gif); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;"></td>
<td id="progress_nocolor"> </td>
</tr>
</table>
<br /><center>' . $l['wait_note'] . '</center>
<br /><br />
</div><!--end of bg class-->
</div><br /><br />';
示例10: publish_theme
//.........这里部分代码省略.........
// a dataFilter is present in ajaxSettings
jqXHR.done(function( r ) {
responseText = r;
});
// Create a dummy div to hold the results
// inject the contents of the document in, removing the scripts
// to avoid any "Permission Denied" errors in IE
var newhtml = jQuery("<div>").append(responseText).find(progressbar.win_div).html();
$(progressbar.win_div).animate({opacity: 0}, 1000, "", function(){
$(progressbar.win_div).html(newhtml);
}).delay(50).animate({opacity: 1}, 500);
//alert(newhtml);
}else{
alert("Oops ... the connection was lost");
}
}
});
}
};
// ]]></script>
<div id="progress_bar" style="height:125px; display: none;">
<br /><br />
<center>
<font size="4" color="#222222" id="progress_txt">' . $l['checking_data'] . '</font>
<font style="font-size: 18px;font-weight: 400;color: #444444;" id="progress_percent">(0 %)</font><br /><br />
</center>
<table width="500" cellpadding="0" cellspacing="0" id="table_progress" border="0" align="center" height="28" style="border:1px solid #CCC; -moz-border-radius: 5px;
-webkit-border-radius: 5px; border-radius: 5px;">
<tr>
<td id="progress_color" width="1" style="background-image: url(' . $theme['images'] . 'bar.gif); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;"></td>
<td id="progress_nocolor"> </td>
</tr>
</table>
</div>
<div id="fadeout_div">';
error_handle($error, '100%');
echo '<form accept-charset="' . $globals['charset'] . '" name="publishins" id="publishins" method="post" action="" onsubmit="return checkform();">
<table border="0" cellpadding="8" cellspacing="0" width="100%">
<tr>
<td width="40%">
<span class="sai_head">' . $l['choose_account'] . '</span><br />
<span class="sai_exp">' . $l['choose_account_exp'] . '</span>
</td>
<td>
<select name="remid" id="remid">';
foreach ($user['remote'] as $k => $v) {
echo '<option value="' . $k . '" ' . POSTselect('remid', $k) . '>' . $v['domain_name'] . '</option>';
}
echo '</select>
</td>
</tr>';
$defaultdir = basename($user['ins'][$insid]['softpath']);
// Is it the home folder of a domain ?
foreach ($softpanel->domainroots as $k => $v) {
if (strtolower(cleanpath($user['ins'][$insid]['softpath'])) == strtolower(cleanpath($v))) {
$defaultdir = '';
}
}
echo '<tr>
<td>
<span class="sai_head">' . $l['dir'] . '</span><br />
<span class="sai_exp">' . $l['dir_exp'] . '</span>
</td>
<td>
<input type="text" name="dir" id="dir" size="30" value="' . POSTval('dir', $defaultdir) . '" />
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['password'] . '</span><br />
<span class="sai_exp">' . $l['password_exp'] . '</span>
</td>
<td>
<input type="password" name="password" id="password" size="30" value="' . POSTval('password', '') . '" />
</td>
</tr>
</table>
<p align="center">
<input type="hidden" name="publishins" id="publishins" value="' . $l['publishins'] . '" />
<input type="submit" name="softsubmitbut" id="softsubmitbut" value="' . $l['publishins'] . '" class="sai_graybluebut" />
</p>
<input type="hidden" name="soft_status_key" id="soft_status_key" value="' . POSTval('soft_status_key', generateRandStr(32)) . '" />
</form>
</div>';
}
echo '</div>
<br /><br /><br />
<center><b><a href="' . script_link($soft) . '">' . $l['return'] . '</a></b></center>';
softfooter();
}
示例11: email_theme
function email_theme()
{
global $user, $globals, $l, $theme, $softpanel, $iscripts, $catwise, $error, $saved;
// For email settings
if (optGET('ajax_email')) {
if (!empty($error)) {
echo '0' . current($error);
return false;
}
if (!empty($saved)) {
echo '1' . $l['settings_saved'];
return true;
}
}
softheader($l['<title>']);
echo '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
var message_box = function(){
return {
show_message: function(title, body , image) {
var okbutton = \'<input style="width:75px; margin-top:5px; background:#00A0D2; color:#FFF;" class="sai_submit" type="button" onclick="message_box.close_message();" value="OK" />\';
if(image == "1"){
var img = \'<img src="' . $theme['images'] . 'error.gif" />\';
}else{
var img = \'<img src="' . $theme['images'] . 'confirm.gif" />\';
}
if(jQuery(\'.sai_message_box\').html() === null) {
var message = \'<div class="sai_message_box"><table border="0" cellpadding="8" width="100%" height="100%"><tr ><td rowspan="2" width="30%" > \'+ img + \'</td><td width="70%" class ="msg_tr1">\' + title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2">\' + okbutton + \'</td></tr></table></div>\';
jQuery(document.body).append( message );
jQuery(\'.sai_message_box\').css(\'top\', jQuery(\'html, body\').scrollTop() + 150);
jQuery(\'.sai_message_box\').show(\'slow\');
}else{
var message =\' <table border="0" width="100%" cellpadding="8" height="100%"><tr ><td rowspan="2" width="30%">\'+ img + \'</td><td widt="70%" class ="msg_tr1">\' + title + \'</td></tr><tr class ="msg_tr2"><td style="text-align:left">\' + body + \'</td></tr><tr ><td colspan="2">\' + okbutton + \'</td></tr></table>\';
jQuery(\'.sai_message_box\').css(\'top\', jQuery(\'html, body\').scrollTop() + 150);
jQuery(\'.sai_message_box\').show(\'slow\');
jQuery(\'.sai_message_box\').html( message );
}
},
close_message: function() {
jQuery(\'.sai_message_box\').hide(\'fast\');
}
}
}();
$(document).ready(function(){
// For email settings
$("#editform").submit(function(){
$("#create_email").css("display", "");
$.ajax({
type: "POST",
url: window.location+"&ajax_email=1",
data: $("#editform").serialize(),
// Checking for error
success: function(data){
$("#create_email").css("display", "none");
var result = data.substring(0,1);
if(result == "1"){
var msg = data.substring(1);
message_box.show_message( "Done ",msg,2);
}
if(result == "0"){
var msg = data.substring(1);
message_box.show_message( "Error",msg,1);
}
},
error: function() {
message_box.show_message("Error", "Oops ... the connection was lost", 1);
}
});
return false;
});
});
// ]]></script>';
echo '<form accept-charset="' . $globals['charset'] . '" name="editemailsettings" method="post" action="" id="editform" class="form-horizontal">
<div class="bg"><br />
<div class="row sai_main_head" style="width:100%;" align="center">
<div class="col-sm-6 col-xs-5" style="padding:0px 10px 0 0; text-align:right;">
<i class="fa sai-mail fa-2x" style="color:#00A0D2;"></i>
</div>
<div class="col-sm-6 col-xs-7" style="padding-top:5px; padding-left:0px; text-align:left;">' . $l['emailsettings'] . '</div>
</div><hr>';
error_handle($error);
if (!empty($saved)) {
echo '<div class="alert alert-success">' . $l['settings_saved'] . '</div>';
}
echo '
<div class="row">
<div class="col-sm-5">
<label for="email" class="sai_head">' . $l['email_address'] . '</label>
<span class="sai_exp">' . $l['email_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="text" id="email" name="email" class="form-control" size="30" value="' . POSTval('email', $user['email']) . '" softmail="true">
//.........这里部分代码省略.........
示例12: import_theme
//.........这里部分代码省略.........
return true;
};
// ]]></script>
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function checkform(){
try{
if(!formcheck() || !checkdbname(\'softdb\', true)){
return false;
}
}catch(e){
//Do nothing
}
return true;
};';
echo '
// ]]></script>';
echo '
<div class="bg"><br />
<center><div class="sai_main_head" style="width:100%;"><img src="' . $globals['mirror_images'] . 'top15/48/' . $scripts[$soft]['softname'] . '.png" > ' . $l['import_soft'] . ' - ' . $software['name'] . '</div></center><hr>';
error_handle($error, "100%");
if (empty($softpanel->noprotocol) && empty($globals['hide_protocol'])) {
echo '
<div class="row">
<div class="col-sm-5">
<label for="softproto" class="sai_head">' . $l['choose_protocol'] . '</label>
<span class="sai_exp">' . $l['choose_protocol_exp'] . '</span>
</div>
<div class="col-sm-7">
<select name="softproto" id="softproto" class="form-control" onblur="checkhttps(\'softproto\', \'softdomain\', false)">';
foreach ($protocols as $k => $v) {
echo '<option value="' . $k . '" ' . (optPOST('softproto') == $k || $globals['default_protocol'] == $k && empty($_POST['softproto']) ? 'selected="selected"' : '') . '>' . $v . '</option>';
}
echo '
</select>
<div style="display:none;" id="checkhttps_wait"> <img src="' . $theme['images'] . 'progress.gif" alt="please wait.."></div><br />
<div class="row">
<div class="col-sm-12">
<span id="httpserror" style="display:none; font-size:12px; padding:10px;" class="alert alert-danger"></span>
</div>
</div>
</div>
</div>';
}
echo '
<div class="row">
<div class="col-sm-5">
<label for="softdomain" class="sai_head">' . $l['choose_domain'] . '</label>
<span class="sai_exp">' . $l['choose_domain_exp'] . '</span>
</div>
<div class="col-sm-7">
<select name="softdomain" id="softdomain" class="form-control" onchange="softmail();" onblur="checkhttps(\'softproto\', \'softdomain\', false)">';
foreach ($softpanel->domainroots as $domain => $dompath) {
echo '<option value="' . $domain . '" ' . (!empty($_POST['softdomain']) && $_POST['softdomain'] == $domain ? 'selected="selected"' : '') . '>' . $domain . '</option>';
}
// For PERL Append /cgi-bin/ in front of textbox
$perl = $iscripts[$soft]['type'] == 'perl' ? empty($softpanel->user['cgi-bin']) ? '' : $softpanel->user['cgi-bin'] : '';
echo '
</select>
</div>
</div><br />
<div class="row">
<div class="col-sm-5">
<label for="softdirectory" class="sai_head">' . $l['in_directory'] . '</label><br />
<span class="sai_exp2">' . $l['in_directory_exp'] . '</span>
</div>
<div class="col-sm-7">
<span style="font-size: 14px; color: #555;">' . (!empty($perl) ? $perl . '/' : '') . '</span><input type="text" name="softdirectory" id="softdirectory" class="form-control" size="30" value="' . POSTval('softdirectory', '') . '" />
</div>
</div><br />
<p align="center">
<input type="submit" class="flat-butt" name="softsubmit" value="' . $l['softsubmit'] . '"/><br /><img id="waiting" src="' . $theme['images'] . 'progress.gif" style="display:none">
</p><br />
<center><b><a href="' . script_link($soft) . '" class="sai_head">' . $l['return'] . '</a></b></center><br />
</div><!--end of bg class--><br />
</form><br /><br />';
} elseif (!empty($imported)) {
// Does the user have custom admin url for their installation
$software['adminurl'] = !empty($__settings['admin_folder']) ? $__settings['admin_folder'] : @$software['adminurl'];
echo '
<div class="bg"><h4>' . $l['congrats'] . '</h4><br />
' . $software['name'] . ' ' . $l['succesful'] . ' : <br />
<a href="' . $__settings['softurl'] . '" target="_blank">' . $__settings['softurl'] . '</a>
' . (!empty($software['adminurl']) ? '<br />' . $l['admin_url'] . ' : <a href="' . $__settings['softurl'] . '/' . $software['adminurl'] . '" target="_blank">' . $__settings['softurl'] . '/' . $software['adminurl'] . '</a>' : '') . '<br /><br />
' . $l['enjoy'] . '<br /><br />
' . (!empty($notes) ? $l['import_notes'] . ' : <br />
<div class="sai_notes">' . softparse($notes, $soft) . '</div><br /><br />' : '') . '
' . $l['please_note'] . '<br /><br />
' . $l['regards'] . ',<br />
' . $l['softinstaller'] . '
<br /><br />
<center><b><a href="' . script_link($soft) . '&highlight=' . $__settings['insid'] . '&postact=import" class="sai_head">' . $l['return'] . '</a></b></center>
</div><!--end of bg class-->';
}
softfooter();
}
示例13: software_theme
//.........这里部分代码省略.........
$info['install'] .= '</select><div style="display:none;" id="checkhttps_wait"> <img src="' . $theme['images'] . 'progress.gif" alt="please wait.."></div><br />
<div class="row">
<span id="httpserror" style="display:none; padding:10px;" class="alert alert-danger"></span>
</div>
</div>
</div>';
}
$info['install'] .= '
<div class="row">
<div class="col-sm-5">';
$info['install'] .= '
<label for="softdomain" class="sai_head">' . $l['choose_domain'] . '</label><br />
<span class="sai_exp2">' . $l['choose_domain_exp'] . '</span>
</div>
<div class="col-sm-7">
<select name="softdomain" class="form-control" id="softdomain" onchange="softmail();change_admin_prefix(this.value);" onblur="checkhttps(\'softproto\', \'softdomain\', false)">';
if (!empty($globals['blank_domain'])) {
$info['install'] .= '<option value="" ' . (empty($_POST['softdomain']) ? 'selected="selected"' : '') . '>(' . $l['select_domain'] . ')</option>';
}
foreach ($softpanel->domainroots as $domain => $dompath) {
$info['install'] .= '<option value="' . $domain . '" ' . (!empty($_POST['softdomain']) && $_POST['softdomain'] == $domain ? 'selected="selected"' : '') . '>' . $domain . '</option>';
}
$info['install'] .= '
</select>
</div>
</div><br />
<div class="row">
<div class="col-sm-5">
<label for="softdirectory" class="sai_head">' . $l['in_directory'] . '</label><br />
<span class="sai_exp2">' . $l['in_directory_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="text" name="softdirectory" class="form-control" id="softdirectory" size="30" value="' . POSTval('softdirectory', !empty($globals['no_prefill']) ? '' : $software['softname']) . '" />
</div>
</div><br />';
if (!empty($datadir)) {
$info['install'] .= '
<div class="row">
<div class="col-sm-5">
<label for="datadir" class="sai_head">' . $l['datadir'] . '</label><br />
<span class="sai_exp2">' . $l['datadir_exp'] . '</span>
</div>
<div class="col-sm-7">
<input type="text" name="datadir" class="form-control" id="datadir" size="30" value="' . POSTval('datadir', $datadir) . '" />
</div>
</div><br />';
}
if (!empty($dbtype)) {
$dbname = mysqldbname($software['softname']);
if (method_exists($softpanel, 'mysqldbname')) {
$dbname = $softpanel->mysqldbname();
}
// This is default
$dbhost = 'localhost';
// Don't prefill database details
if (!empty($globals['no_prefill_db'])) {
$dbname = '';
$dbhost = '';
}
if (aefer()) {
$info['install'] .= '
<div class="row">
<div class="col-sm-5">
<label for="softdb" class="sai_head">' . $l['database_name'] . '</label><br />
<span class="sai_exp2">' . $l['database_name_exp_aefer'] . '</span>
示例14: alias_theme
//.........这里部分代码省略.........
var result = data.substring(0,1);
if(result == "1"){
$_("aliasname").value="";
var msg = data.substring(2,data.indexOf("<table"));
var output = data.substring(data.indexOf("<table"));
message_box.show_message( "Done ",msg,2);
$("#showtab").html(output);
$(".sai_altrowstable tr").mouseover(function(){
var old_class = $(this).attr("class");
$(this).attr("class", "sai_tr_bgcolor");
$(this).mouseout(function(){
$(this).attr("class", old_class);
});
});
// For deleting record
$(".delete").click(function() {
var did = $(this).attr(\'id\');
did = did.substr(3);
message_box.delete_message (\'Warning\',\'' . $l['alias_del_conf'] . '\',did);
});
}
if(result == "0"){
$("#createalias").css("display", "none");
var msg = data.substring(1);
message_box.show_message( "Error",msg,1);
}
},
error: function() {
message_box.show_message("Error",\'' . $l['connect_error'] . '\',1);
}
});
});
});
// ]]></script>';
echo '<table border="0" width="100%"><tr><td align="center" width="70%"><div class="sai_tit"><img src="' . $theme['a_images'] . 'alias.gif" /> ' . $l['alias_headling'] . '
</div></td><td align="center"><div id="butShow"><a href="javascript:void(0)" style="text-decoration:none;" class="sai_abut">' . $l['add_new_button'] . '</a></div>
<div id="butHide"><a href="javascript:void(0)" style="text-decoration:none;" class="sai_abut">' . $l['back_button'] . '</a></div></td></tr></table>
<img src="' . $theme['images'] . 'hr.jpg" width="100%" height="1" alt="" /><br /><br /><br />
<div id="showtemp" style="display:none">
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
// ]]></script>
<table width="100%" cellpadding="5" cellspacing="1" align="center">
<tr>
<td width="35%">
<span class="sai_head">' . $l['alias_label'] . '</span> <span class="sai_exp">' . $l['alias_name_eg'] . '</span><br />
<span class="sai_exp">' . $l['alias_name_notice'] . '</span>
</td>
<td valign="top">
<input type="text" name="aliasname" id="aliasname" onkeyup="suggestdompath(this);" size="30" value="' . POSTval('aliasname', '') . '" onfocus="" />
</td>
</tr>
<tr>
<td>
<span class="sai_head">' . $l['alias_path'] . '</span> <span class="sai_exp">' . $l['alias_path_eg'] . '</span><br />
<span class="sai_exp">' . $l['alias_path_notice'] . '</span>
</td>
<td valign="top">
<input type="text" name="aliaspath" id="aliaspath" size="30" value="' . cleanpath($softpanel->path) . '/www/' . '" onfocus="" />
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
//Add an event handler
$_("aliaspath").onkeydown = function(){
dompath = true;
}
// ]]></script>
</td>
</tr>
</table>
<br /><br />
<p align="center"><input type="button" class="submitalias" style="cursor:pointer" name="submitalias" value="' . $l['submitalias'] . '" /> <img id="createalias" src="' . $theme['images'] . 'progress.gif" style="display:none"></p>
</form><br />
<br />
</div>
<div id="showtab">';
alias_table();
echo '</div><form accept-charset="' . $globals['charset'] . '" name="importsoftware" method="post" action="" onsubmit="return checkform();">
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function checkform(){
try{
if(!formcheck() || !checkdbname(\'softdb\', true)){
return false;
}
}catch(e){
//Do nothing
}
return true;
};
';
echo '// ]]></script>';
softfooter();
}
示例15: apps_theme
//.........这里部分代码省略.........
' : '') . '
' . (preg_match('/admin_username/is', $sv['tag']) && !empty($globals['empty_username']) && !empty($random_username) ? '
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
addonload(\'$_("' . $sk . '").value="";\');
// ]]></script>
' : '') . '
' . (preg_match('/admin_username/is', $sv['tag']) && !empty($globals['admin_prefix']) && empty($globals['empty_username']) && empty($globals['random_username']) && !empty($random_username) ? '<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
addonload(\'prepend_prefix("' . $globals['admin_prefix'] . '");\');
// ]]></script>
' : '') . '
</td>
</tr>';
}
$ext_disp .= '</table><br />';
}
}
//End of if($settings)
}
if (empty($iapps[$soft . '_1'])) {
if (!empty($ins_display)) {
$info['overview'] .= $ext_disp;
}
$info['overview'] .= '<center><input type="hidden" align="" name="install" id="softsubmit" value="install" />
<input type="submit" name="softsubmitbut" id="softsubmitbut" value="' . $l['softsubmit'] . '" class="sai_graybluebut" /></center>';
} else {
if (!empty($rem_display)) {
$info['overview'] .= $ext_disp;
}
$info['overview'] .= '<center><input type="hidden" name="remove" id="softsubmit" value="remove" />
<input type="submit" name="softsubmitbut" id="softsubmitbut" onclick="return confirm_remove();" value="' . $l['remove'] . '" class="sai_graybluebut" /></center>';
}
$info['overview'] .= '<span id="show_txt" style="display:none;"></span>
<input type="hidden" name="soft_status_key" id="soft_status_key" value="' . POSTval('soft_status_key', generateRandStr(32)) . '" />
</p>
</form>
</div><br />
<div id="progress_bar" style="height:125px; display: none;">
<br />
<center>
<font size="4" color="#222222" id="progress_txt">' . $l['checking_data'] . '</font>
<font style="font-size: 18px;font-weight: 400;color: #444444;" id="progress_percent">(0 %)</font><br /><br />
</center>
<table width="500" cellpadding="0" cellspacing="0" id="table_progress" border="0" align="center" height="28" style="border:1px solid #CCC; -moz-border-radius: 5px;
-webkit-border-radius: 5px; border-radius: 5px;background-color:#efefef;">
<tr>
<td id="progress_color" width="1" style="background-image: url(' . $theme['images'] . 'bar.gif); -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;"></td>
<td id="progress_nocolor"> </td>
</tr>
</table>
<br /><center>' . $l['wait_note'] . '</center>
</div>
<script language="javascript" type="text/javascript"><!-- // --><![CDATA[
function confirm_remove(){
var r = confirm("' . $l['del_insid'] . '");
if(r != true){
return false;
}
return true;
}