@@ -34,11 +34,6 @@ li,dd { | |||
padding: 0px; | |||
} | |||
input { | |||
background: url(../images/input.png) repeat-x scroll 0px 0px; | |||
} | |||
select { | |||
height: calc(1.5em + .75rem + 2px); | |||
padding: .375rem .75rem; | |||
@@ -93,7 +88,6 @@ label { | |||
} | |||
.alltxt { | |||
height: 18px; | |||
line-height: 18px; | |||
padding: 3px 3px 2px 3px; | |||
vertical-align: middle; | |||
@@ -32,8 +32,8 @@ if($fmdo=="rename") | |||
$win->AddHidden("activepath",$activepath); | |||
$win->AddHidden("filename",$filename); | |||
$win->AddTitle("更改文件名,当前路径:$ndirstring"); | |||
$win->AddItem("旧名称:","<input name='oldfilename' type='input' class='alltxt' id='oldfilename' size='40' value='$filename'>"); | |||
$win->AddItem("新名称:","<input name='newfilename' type='input' class='alltxt' size='40' id='newfilename'>"); | |||
$win->AddItem("旧名称:","<input name='oldfilename' type='input' id='oldfilename' size='40' value='$filename'>"); | |||
$win->AddItem("新名称:","<input name='newfilename' type='input' size='40' id='newfilename'>"); | |||
$winform = $win->GetWindow("ok"); | |||
$win->Display(); | |||
} | |||
@@ -170,7 +170,8 @@ else if($fmdo=="newfile") | |||
{ | |||
$content = ""; | |||
$GLOBALS['filename'] = "newfile.txt"; | |||
$contentView = "<textarea name='str' style='width:99%;height:400'></textarea>\r\n"; | |||
$GLOBALS['extension'] = 'text/html'; | |||
$contentView = "<textarea id='str' name='str' style='width:99%;height:400'></textarea>\r\n"; | |||
$GLOBALS['token'] = make_hash(); | |||
$ctp = new DedeTagParse(); | |||
$ctp->LoadTemplate(DEDEADMIN."/templets/file_edit.htm"); | |||
@@ -1,4 +1,3 @@ | |||
<!-- | |||
if(moz) { | |||
extendEventObject(); | |||
extendElementModel(); | |||
@@ -13,7 +12,7 @@ function kwArc(aid){ | |||
if(aid==0) aid = getOneItem(); | |||
if(qstr=='') | |||
{ | |||
alert('必须选择一个或多个文档!'); | |||
ShowMsg('必须选择一个或多个文档!'); | |||
return; | |||
} | |||
location="archives_do.php?aid="+aid+"&dopost=makekw&qstr="+qstr; | |||
@@ -36,7 +35,7 @@ function moveArc(e, obj, cid){ | |||
var qstr=getCheckboxItem(); | |||
if(qstr=='') | |||
{ | |||
alert('必须选择一个或多个文档!'); | |||
ShowMsg('必须选择一个或多个文档!'); | |||
return; | |||
} | |||
LoadQuickDiv(e, 'archives_do.php?dopost=moveArchives&qstr='+qstr+'&channelid='+cid+'&rnd='+Math.random(), 'moveArchives', '450px', '180px'); | |||
@@ -54,7 +53,7 @@ function cAtts(jname, e, obj) | |||
var screeheight = document.body.clientHeight + 20; | |||
if(qstr=='') | |||
{ | |||
alert('必须选择一个或多个文档!'); | |||
ShowMsg('必须选择一个或多个文档!'); | |||
return; | |||
} | |||
LoadQuickDiv(e, 'archives_do.php?dopost=attsDlg&qstr='+qstr+'&dojob='+jname+'&rnd='+Math.random(), 'attsDlg', '450px', '160px'); | |||
@@ -150,5 +149,4 @@ function noSelAll() | |||
document.form2.arcID[i].checked=false; | |||
} | |||
} | |||
} | |||
--> | |||
} |
@@ -416,7 +416,7 @@ | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;"> | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="98%" border="0" cellspacing="1" cellpadding="1"> | |||
@@ -425,10 +425,10 @@ | |||
<td width="83%"> | |||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115"> | |||
<td width="115" class="py-3"> | |||
<button type="submit" class="btn btn-secondary">保存</button> | |||
</td> | |||
<td width="99"> | |||
<td width="99" class="py-3"> | |||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||
</td> | |||
</tr> | |||
@@ -408,7 +408,7 @@ if($cfg_need_typeid2=='Y') { | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;"> | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
@@ -417,8 +417,8 @@ if($cfg_need_typeid2=='Y') { | |||
<td width="83%"> | |||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115"><button type="submit" class="btn btn-secondary">保存</button></td> | |||
<td width="99"> | |||
<td width="115" class="py-3"><button type="submit" class="btn btn-secondary">保存</button></td> | |||
<td width="99" class="py-3"> | |||
<button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button> | |||
</td> | |||
</tr> | |||
@@ -9,6 +9,8 @@ | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link rel="stylesheet" type="text/css" href="css/base.css"> | |||
<script language="javascript" src="../static/js/jquery.js"></script> | |||
<script src="../static/js/bootstrap.bundle.js"></script> | |||
<script language='javascript' src="js/main.js"></script> | |||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||
<script language="javascript" src="js/ieemu.js"></script> | |||
<script language="javascript" src="js/context_menu.js"></script> | |||
@@ -66,11 +68,11 @@ | |||
<table width="98%" border="0" cellpadding="1" cellspacing="1" class='ilist' bgcolor="{dede:label bind=" | |||
GetColor('#FAFAF1','#FFFFFF')" /}" align='center' style="margin-top:8px;" class="table"> | |||
<tr> | |||
<td width="13%" align='center'> | |||
<td width="13%" align='center' class="py-3"> | |||
<img src="{dede:field.litpic function='CheckPic(@me)' /}" width="80" height="60" alt="文档图片" | |||
border="0"> | |||
</td> | |||
<td width="35%"> | |||
<td width="35%" class="py-3"> | |||
<input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np" /> | |||
<img src='images/trun.gif' title="编辑属性" alt="编辑属性" | |||
onClick="QuickEdit({dede:field.id/}, event, this);" style='cursor:pointer' border='0' width='16' | |||
@@ -83,15 +85,15 @@ | |||
<br /> | |||
发布时间:{dede:field.senddate function='GetDateTimeMk(@me)' /} | |||
</td> | |||
<td width="12%" height="26" align="center"> | |||
<td width="12%" height="26" align="center" class="py-3"> | |||
{dede:field.typeid function='GetTypename(@me)'/} | |||
<br /> | |||
ID: {dede:field.id/} | |||
</td> | |||
<td width="11%" align="center">{dede:field.arcrank function='GetRankName(@me)' /}</td> | |||
<td width="10%" align="center">{dede:field.mid function=GetMemberName(@me)/}</td> | |||
<td width="10%" align="center">{dede:field.ismake function='IsHtmlArchives(@me)' /}</td> | |||
<td width="9%" align="center">{dede:field.click/}</td> | |||
<td width="11%" align="center" class="py-3">{dede:field.arcrank function='GetRankName(@me)' /}</td> | |||
<td width="10%" align="center" class="py-3">{dede:field.mid function=GetMemberName(@me)/}</td> | |||
<td width="10%" align="center" class="py-3">{dede:field.ismake function='IsHtmlArchives(@me)' /}</td> | |||
<td width="9%" align="center" class="py-3">{dede:field.click/}</td> | |||
</tr> | |||
</table> | |||
{/dede:datalist} | |||
@@ -9,6 +9,7 @@ | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link rel="stylesheet" type="text/css" href="css/base.css"> | |||
<script language="javascript" src="../static/js/jquery.js"></script> | |||
<script src="../static/js/bootstrap.bundle.js"></script> | |||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||
<script language="javascript" src="js/ieemu.js"></script> | |||
<script language="javascript" src="js/context_menu.js"></script> | |||
@@ -1,89 +1,95 @@ | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<!DOCTYPE html | |||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>文件管理器</title> | |||
<link rel="stylesheet" type="text/css" href="css/base.css"> | |||
<script language="javascript"> | |||
function Post() | |||
{ | |||
if (document.form1.filename.value=="") | |||
{ | |||
alert("文件名不能为空。"); | |||
document.form1.filename.focus(); | |||
return false; | |||
} | |||
} | |||
</script> | |||
<link rel="stylesheet" type="text/css" href="css/codemirror.css"> | |||
<script type="text/javascript" src="js/codemirror.js"></script> | |||
<script type="text/javascript" src="js/mode/xml/xml.js"></script> | |||
<script type="text/javascript" src="js/mode/javascript/javascript.js"></script> | |||
<script type="text/javascript" src="js/mode/css/css.js"></script> | |||
<script type="text/javascript" src="js/mode/php/php.js"></script> | |||
<script type="text/javascript" src="js/mode/clike/clike.js"></script> | |||
<script type="text/javascript" src="js/mode/htmlmixed/htmlmixed.js"></script> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>文件管理器</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link rel="stylesheet" type="text/css" href="css/base.css"> | |||
<script language="javascript" src="../static/js/jquery.js"></script> | |||
<script src="../static/js/bootstrap.bundle.js"></script> | |||
<script language='javascript' src='js/main.js'></script> | |||
<script language="javascript"> | |||
function Post() { | |||
if (document.form1.filename.value == "") { | |||
ShowMsg("文件名不能为空"); | |||
document.form1.filename.focus(); | |||
return false; | |||
} | |||
} | |||
</script> | |||
<link rel="stylesheet" type="text/css" href="css/codemirror.css"> | |||
<script type="text/javascript" src="js/codemirror.js"></script> | |||
<script type="text/javascript" src="js/mode/xml/xml.js"></script> | |||
<script type="text/javascript" src="js/mode/javascript/javascript.js"></script> | |||
<script type="text/javascript" src="js/mode/css/css.js"></script> | |||
<script type="text/javascript" src="js/mode/php/php.js"></script> | |||
<script type="text/javascript" src="js/mode/clike/clike.js"></script> | |||
<script type="text/javascript" src="js/mode/htmlmixed/htmlmixed.js"></script> | |||
</head> | |||
<body background='images/allbg.gif' leftmargin="8" topmargin='8'> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ECFAD3" style="margin-bottom:8px;"> | |||
<tr> | |||
<td height="28" style="border:1px dotted #BFD67C;padding-left:10px;" background='images/wbg.gif'> | |||
◇<a href='file_manage_main.php?activepath={dede:global name='activepath'/}'><b>文件管理</b></a> >> <b>修改/新建文件</b> | |||
</td> | |||
</tr> | |||
</table> | |||
<form method="POST" action="file_manage_control.php" name=form1 onSubmit="return Post()"> | |||
<input type="hidden" name="fmdo" value="edit" /> | |||
<input type="hidden" name="backurl" value="{dede:global name='backurl' function='urlencode(@me)'/}" /> | |||
<input type="hidden" name="token" value="{dede:global name='token'/}" /> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#cfcfcf"> | |||
<tr> | |||
<td width="100%" bgcolor='#ffffff'> | |||
<table width='100%' border='0' cellpadding='3' cellspacing='1' bgcolor='#cfcfcf'> | |||
<tr bgcolor='#EEF4EA'> | |||
<td colspan='2' background='images/wbg.gif' height='26' style="padding-left:10px;"> | |||
<font color='#666600'><b>修改/新建文件:</b></font> | |||
</td> | |||
</tr> | |||
<tr bgcolor='#FFFFFF'> | |||
<td>工作目录</td> | |||
<td> | |||
<input name='activepath' size='40' class='alltxt' value="{dede:global name='activepath'/}" /> | |||
(空白表示根目录 ,不允许用 “..” 形式的路径) | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#ECFAD3" | |||
style="margin-bottom:8px;" class="maintable mt-3"> | |||
<tr> | |||
<td height="28" style="border:1px dotted #BFD67C;padding-left:10px;" background='images/wbg.gif'> | |||
◇<a href='file_manage_main.php?activepath={dede:global name=' activepath'/}'><b>文件管理</b></a> | |||
>> <b>修改/新建文件</b> | |||
</td> | |||
</tr> | |||
<tr bgcolor='#FFFFFF'> | |||
<td>文件名称</td> | |||
<td> | |||
<input name=filename size=40 class='alltxt' value="{dede:global name='filename'/}" /> | |||
(不允许用 “..” 形式的路径) | |||
</td> | |||
</tr> | |||
<tr bgcolor='#FFFFFF'> | |||
<td colspan='2'> | |||
</table> | |||
<form method="POST" action="file_manage_control.php" name=form1 onSubmit="return Post()"> | |||
<input type="hidden" name="fmdo" value="edit" /> | |||
<input type="hidden" name="backurl" value="{dede:global name='backurl' function='urlencode(@me)'/}" /> | |||
<input type="hidden" name="token" value="{dede:global name='token'/}" /> | |||
<table width='100%' border='0' align="center" cellpadding='3' cellspacing='1' bgcolor='#cfcfcf' class="table maintable table-borderless"> | |||
<tr bgcolor='#EEF4EA'> | |||
<td colspan='2' background='images/wbg.gif' height='26' style="padding-left:10px;"> | |||
<font color='#666600'><b>修改/新建文件:</b></font> | |||
</td> | |||
</tr> | |||
<tr bgcolor='#FFFFFF'> | |||
<td>工作目录</td> | |||
<td> | |||
<input name='activepath' size='40' | |||
value="{dede:global name='activepath'/}" /> | |||
(空白表示根目录 ,不允许用 “..” 形式的路径) | |||
</td> | |||
</tr> | |||
<tr bgcolor='#FFFFFF'> | |||
<td>文件名称</td> | |||
<td> | |||
<input name=filename size=40 value="{dede:global name='filename'/}" /> | |||
(不允许用 “..” 形式的路径) | |||
</td> | |||
</tr> | |||
<tr bgcolor='#FFFFFF' class="table table-bordered"> | |||
<td colspan='2'> | |||
{dede:global name='contentView'/} | |||
</td> | |||
</tr> | |||
<tr> | |||
<td colspan='2' height="36" bgcolor='#F9FCEF' align='center'> | |||
<input type=submit value=" 保 存 " name='B1' class="coolbg np" /> | |||
| |||
<input type=reset value="取消修改" name='B2' class="coolbg np" /> | |||
| |||
<input type=button value="不理返回" name='B4' class="coolbg np" onClick="javascript:history.go(-1);" /> | |||
</td> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td colspan='2' height="36" bgcolor='#F9FCEF' align='center'> | |||
<button type=submit name='B1' class="btn btn-secondary"> 保 存 </button> | |||
| |||
<button type=reset name='B2' class="btn btn-secondary"> 重 置 </button> | |||
| |||
<button type=button name='B4' class="btn btn-secondary" | |||
onClick="javascript:history.go(-1);"> 返 回 </button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
<script type="text/javascript"> | |||
var editor = CodeMirror.fromTextArea(document.getElementById('str'), { | |||
lineNumbers: true, | |||
lineWrapping: true, | |||
mode: '{dede:global name='extension'/}' | |||
</table> | |||
</form> | |||
<script type="text/javascript"> | |||
var editor = CodeMirror.fromTextArea(document.getElementById('str'), { | |||
lineNumbers: true, | |||
lineWrapping: true, | |||
mode: '{dede:global name='extension'/}' | |||
}); | |||
</script> | |||
</script> | |||
</body> | |||
</html> | |||
</html> |
@@ -574,7 +574,7 @@ if($cfg_need_typeid2=='Y') { | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;mb-3"> | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
@@ -436,7 +436,7 @@ | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;"> | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
@@ -445,8 +445,8 @@ | |||
<td width="83%"> | |||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115"><button type="submit" class="btn btn-secondary">保存</button></td> | |||
<td width="99"><button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button></td> | |||
<td width="115" class="py-3"><button type="submit" class="btn btn-secondary">保存</button></td> | |||
<td width="99" class="py-3"><button type="button" onClick="location.reload();" class="btn btn-secondary">重置</button></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -19,10 +19,10 @@ | |||
<link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | |||
<script type="text/javascript" src="../static/js/moment.min.js"></script> | |||
<script type="text/javascript" src="../static/js/daterangepicker.js"></script> | |||
<script src="../static/js/bootstrap.bundle.js"></script> | |||
<script language='javascript' src='js/main.js'></script> | |||
<link href="../static/css/cropper.min.css" rel="stylesheet"> | |||
<script src="../static/js/cropper.min.js"></script> | |||
<script src="../static/js/bootstrap.bundle.js"></script> | |||
<script language="javascript"> | |||
function SelectTemplets(fname) { | |||
if (document.all) { | |||
@@ -47,8 +47,8 @@ | |||
<?php echo $row->typename?> | |||
</td> | |||
<td> | |||
<a href='sys_group_edit.php?rank=<?php echo $row->rank?>'>[权限设定]</a> | |||
<a href='sys_admin_user.php?rank=<?php echo $row->rank?>'>[组用户]</a> | |||
<a href='sys_group_edit.php?rank=<?php echo $row->rank?>' class="btn btn-secondary btn-sm">权限设定</a> | |||
<a href='sys_admin_user.php?rank=<?php echo $row->rank?>' class="btn btn-secondary btn-sm">组用户</a> | |||
<?php if($row->system==0){ ?><a | |||
href='sys_group_edit.php?dopost=del&rank=<?php echo $row->rank; ?>'>[删除组]</a><?php } ?> | |||
</td> | |||
@@ -92,7 +92,8 @@ | |||
</tr> | |||
<tr> | |||
<td height="50" align="center"> </td> | |||
<td height="50" style="text-align:left;"><button type="submit" class="btn btn-secondary" onClick="DoSubmit('gettag')" | |||
<td height="50" style="text-align:left;"> | |||
<button type="submit" class="btn btn-secondary" onClick="DoSubmit('gettag')" | |||
class="coolbg np">保存</button> | |||
</td> | |||
</tr> | |||
@@ -89,8 +89,9 @@ | |||
</tr> | |||
<tr> | |||
<td height="50" align="center"> </td> | |||
<td height="50"><input class="np" name="imageField" type="image" src="images/button_save.gif" width="60" | |||
height="22" border="0"> | |||
<td height="50"> | |||
<button type="submit" class="btn btn-secondary" | |||
class="coolbg np">保存</button> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -154,7 +154,7 @@ | |||
<tr bgcolor="#F9FCEF"> | |||
<td height="37" colspan="2"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||
<tr> | |||
<td width="7%"> </td> | |||
<td width="93%" align="center"> | |||
@@ -5,8 +5,8 @@ | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>SQL命令行工具</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href='css/base.css' rel='stylesheet' type='text/css'> | |||
<link rel="stylesheet" type="text/css" href="css/codemirror.css"> | |||
<script type="text/javascript" src="js/codemirror.js"></script> | |||
@@ -14,13 +14,14 @@ | |||
</head> | |||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | |||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" | |||
class="table maintable table-bordered mt-3"> | |||
<tr> | |||
<td height="19" background="images/tbg.gif"> | |||
<table width="96%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | |||
<tr> | |||
<td width="24%" style="padding-left:10px;"><strong>SQL命令运行器:</strong></td> | |||
<td width="76%" align="right"> | |||
<td width="76%" align="right"> | |||
<a href="sys_data.php" class="btn btn-secondary btn-sm">数据备份</a> | |||
<a href="sys_data_revert.php" class="btn btn-secondary btn-sm">数据还原</a> | |||
<a href="sys_sql_info.php" class="btn btn-secondary btn-sm">数据库说明文档</a> | |||
@@ -95,9 +96,9 @@ while($row = $dsql->GetArray('t',MYSQL_BOTH)) | |||
<tr> | |||
<td height="24" colspan="2" bgcolor="#F9FCEF"><strong>运行SQL命令行: | |||
<label><input name="querytype" type="radio" class="np" value="0"> | |||
单行命令(支持简单查询)</label> | |||
单行命令(支持简单查询)</label> | |||
<label><input name="querytype" type="radio" class="np" value="2" checked> | |||
多行命令</label></strong></td> | |||
多行命令</label></strong></td> | |||
</tr> | |||
<tr> | |||
<td height="118" colspan="2" style="border: 1px solid #DDD;"> | |||
@@ -107,8 +108,7 @@ while($row = $dsql->GetArray('t',MYSQL_BOTH)) | |||
<tr> | |||
<td height="53" align="center"> </td> | |||
<td> | |||
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" | |||
class='np' /> | |||
<button type="submit" class="btn btn-secondary">确定</button> | |||
</td> | |||
</tr> | |||
</form> | |||
@@ -1,76 +1,87 @@ | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<!DOCTYPE html | |||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>计划任务</title> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>计划任务</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
</head> | |||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | |||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||
<form name="form1" action="content_att.php" method="post"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<tr> | |||
<td height="28" colspan="6" background='images/tbg.gif'> | |||
<table width="96%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td width="24%" style="padding-left:10px;"><b>计划任务</b> </td> | |||
<td width="76%" align="right"> | |||
[<b><a href="sys_task_add.php"><u>增加一个新任务</u></a></b>] | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr bgcolor="#FBFCE2" height="24" align="center" > | |||
<td width="24%">任务程序</td> | |||
<td width="30%">任务说明</td> | |||
<td width="8%">是否启用</td> | |||
<td width="8%">运行时间</td> | |||
<td width="18%">上次运行时间</td> | |||
<td width="12%">管理</td> | |||
</tr> | |||
<?php | |||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||
<form name="form1" action="content_att.php" method="post"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<tr> | |||
<td height="28" colspan="6" background='images/tbg.gif'> | |||
<table width="96%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | |||
<tr> | |||
<td width="24%" style="padding-left:10px;"><b>计划任务</b> </td> | |||
<td width="76%" align="right"> | |||
<a href="sys_task_add.php" class="btn btn-secondary btn-sm">增加一个新任务</a> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr bgcolor="#FBFCE2" height="24" align="center"> | |||
<td width="24%">任务程序</td> | |||
<td width="30%">任务说明</td> | |||
<td width="8%">是否启用</td> | |||
<td width="8%">运行时间</td> | |||
<td width="18%">上次运行时间</td> | |||
<td width="12%">管理</td> | |||
</tr> | |||
<?php | |||
$dsql->SetQuery("Select id,taskname,dourl,islock,runtype,runtime,starttime,endtime,freq,lastrun,description From `#@__sys_task` order by id desc "); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetObject()) | |||
{ | |||
?> | |||
<tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||
<td> | |||
<?php echo $row->taskname; ?><br /> | |||
<?php echo $row->dourl; ?> | |||
</td> | |||
<td> | |||
<?php echo $row->description; ?> | |||
</td> | |||
<td> | |||
<?php echo ($row->islock==0 ? '启用' : '禁用'); ?> | |||
</td> | |||
<td> | |||
<?php echo $row->runtime; ?> | |||
</td> | |||
<td> | |||
<?php echo (empty($row->lastrun) ? '没运行过' : GetDateTimeMk($row->lastrun)); ?> | |||
</td> | |||
<td> | |||
<a href='sys_task_edit.php?id=<?php echo $row->id; ?>'>[修改]</a> | |||
<a href='#' onClick="(window.confirm('你确实要删除这个任务么!') ? location='sys_task.php?dopost=del&id=<?php echo $row->id; ?>' : '')">[删除]</a> | |||
</td> | |||
</tr> | |||
<?php | |||
<tr align="center" bgcolor="#FFFFFF" height="26" align="center" onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||
<td> | |||
<?php echo $row->taskname; ?><br /> | |||
<?php echo $row->dourl; ?> | |||
</td> | |||
<td> | |||
<?php echo $row->description; ?> | |||
</td> | |||
<td> | |||
<?php echo ($row->islock==0 ? '启用' : '禁用'); ?> | |||
</td> | |||
<td> | |||
<?php echo $row->runtime; ?> | |||
</td> | |||
<td> | |||
<?php echo (empty($row->lastrun) ? '没运行过' : GetDateTimeMk($row->lastrun)); ?> | |||
</td> | |||
<td> | |||
<a href='sys_task_edit.php?id=<?php echo $row->id; ?>' class="btn btn-secondary btn-sm">修改</a> | |||
<a href='#' | |||
onClick="(window.confirm('你确实要删除这个任务么!') ? location='sys_task.php?dopost=del&id=<?php echo $row->id; ?>' : '')" class="btn btn-secondary btn-sm">删除</a> | |||
</td> | |||
</tr> | |||
<?php | |||
} | |||
?> | |||
<tr> | |||
<td colspan="6" bgcolor="#F9FCEF" style="padding-left:16px;"> | |||
<a href='#' onClick="document.getElementById('helpmsg').style.display=(document.getElementById('helpmsg').style.display=='none' ? 'block' : 'none');"><img src='images/help.gif' /><b>计划任务执行的说明</b></a> | |||
<div id='helpmsg' style='display:none;margin-top:6px;line-height:200%;'> | |||
·为了确保任务能执行完全,建议使用Dede的客户端工具,否则只能通过JS触发,但JS触发有很多不确定因素会导致任务不能完成;<br /> | |||
·JS触发方式:在所有文档页面中用JS调用/plus/task.php?client=js(必须禁用计划任务的密码,<a href='sys_info.php'><u>系统配置参数->其它选项</u></a>);<br/> | |||
·自行定制客户端:直接访问“http://网址/plus/task.php?clientpwd=管理密码”,会返回其中一个可执行任务的网址(没有可用任务则返回串:notask),然后客户端运行这个网址即可。 | |||
</div> | |||
</td> | |||
</tr> | |||
</form> | |||
</table> | |||
<tr> | |||
<td colspan="6" bgcolor="#F9FCEF" style="padding-left:16px;"> | |||
<a href='#' | |||
onClick="document.getElementById('helpmsg').style.display=(document.getElementById('helpmsg').style.display=='none' ? 'block' : 'none');"><img | |||
src='images/help.gif' /><b>计划任务执行的说明</b></a> | |||
<div id='helpmsg' style='display:none;margin-top:6px;line-height:200%;'> | |||
·为了确保任务能执行完全,建议使用Dede的客户端工具,否则只能通过JS触发,但JS触发有很多不确定因素会导致任务不能完成;<br /> | |||
·JS触发方式:在所有文档页面中用JS调用/plus/task.php?client=js(必须禁用计划任务的密码,<a | |||
href='sys_info.php'><u>系统配置参数->其它选项</u></a>);<br /> | |||
·自行定制客户端:直接访问“http://网址/plus/task.php?clientpwd=管理密码”,会返回其中一个可执行任务的网址(没有可用任务则返回串:notask),然后客户端运行这个网址即可。 | |||
</div> | |||
</td> | |||
</tr> | |||
</form> | |||
</table> | |||
</body> | |||
</html> | |||
</html> |
@@ -1,103 +1,117 @@ | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<!DOCTYPE html | |||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>计划任务</title> | |||
<link href='css/base.css' rel='stylesheet' type='text/css'> | |||
<script language="javascript" src="../static/js/webcalendar.js"></script> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>计划任务</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href='css/base.css' rel='stylesheet' type='text/css'> | |||
<script language="javascript" src="../static/js/jquery.js"></script> | |||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | |||
<script type="text/javascript" src="../static/js/moment.min.js"></script> | |||
<script type="text/javascript" src="../static/js/daterangepicker.js"></script> | |||
<script type="text/javascript" src="./js/main.js"></script> | |||
</head> | |||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | |||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||
<tr> | |||
<td height="28" background="images/tbg.gif" style="padding-left:10px;"><b><a href="sys_task.php"><u>计划任务管理</u></a></b> >> 增加任务</td> | |||
</tr> | |||
<tr> | |||
<td height="200" bgcolor="#FFFFFF" valign="top"> | |||
<form action="sys_task_add.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return checkSubmit();";> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<table width="96%" border="0" cellspacing="1" cellpadding="3" align="center"> | |||
<tr> | |||
<td class='bline' width="100" height="36" align="center">任务名称:</td> | |||
<td class='bline'> | |||
<input name="taskname" type="text" class='pubinputs' id="taskname" size="30" /> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">运行程序:</td> | |||
<td class='bline'> | |||
<input name="dourl" type="text" id="dourl" size="30" class='pubinputs' /> | |||
(程序必须放在../plus/task目录,因此填写文件名即可) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="80" align="center">任务说明:</td> | |||
<td class='bline'><textarea name="description" id="description" style="width:380px;height:60px"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">是否启用:</td> | |||
<td class='bline' ><input name="nislock" type="radio" value="0" checked> | |||
启用 | |||
<input name="nislock" type="radio" value="1"> | |||
不启用</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">循环方式:</td> | |||
<td class='bline'><input name="runtype" type="radio" value="0" checked> | |||
循环 | |||
<input type="radio" name="runtype" value="1"> | |||
一次性 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">执行时间:</td> | |||
<td class='bline'><input name="h" type="text" class="pubinputs" id="h" style="width:30px" value="1"> | |||
时(24小时制) | |||
<input name="m" type="text" class="pubinputs" id="m" style="width:30px" value="0"> | |||
分</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">执行周期:</td> | |||
<td class='bline'> | |||
<input name="freq" type="radio" value="1" checked> | |||
天 | |||
<input type="radio" name="freq" value="7"> | |||
周 | |||
<input type="radio" name="freq" value="30"> | |||
月 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">开始时间:</td> | |||
<td class='bline'><input name="starttime" type="text" class="pubinputs" id="starttime" style="width:70px" onClick="SelectDate(this,'yyyy-MM-dd',80,0)"></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">结束时间:</td> | |||
<td class='bline'><input name="endtime" type="text" class="pubinputs" id="endtime" style="width:70px" onClick="SelectDate(this,'yyyy-MM-dd',80,0)"> | |||
(不限不要填写)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' align="center"> | |||
附加参数: | |||
</td> | |||
<td class='bline'> | |||
通过get方式向运行的程序发送的参数,格式为:<b><t:parameter key='名称' value='值' /></b><br/> | |||
<textarea name="parameter" id="parameter" style="width:480px;height:150px"></textarea> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="28" align="center"> </td> | |||
<td class='bline'> </td> | |||
</tr> | |||
<tr> | |||
<td height="51"> </td> | |||
<td> | |||
<input type="submit" name="Submit" value=" 提 交 " class="coolbg np" /> | |||
<input type="reset" name="Submit" value=" 重 置 " class="coolbg np" /> </td> | |||
</tr> | |||
</table> | |||
</form> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||
<tr> | |||
<td height="28" background="images/tbg.gif" style="padding-left:10px;"><b><a | |||
href="sys_task.php"><u>计划任务管理</u></a></b> >> 增加任务</td> | |||
</tr> | |||
<tr> | |||
<td height="200" bgcolor="#FFFFFF" valign="top"> | |||
<form action="sys_task_add.php" method="post" enctype="multipart/form-data" name="form1" | |||
onSubmit="return checkSubmit();" ;> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<table width="96%" border="0" cellspacing="1" cellpadding="3" align="center" class="table table-borderless"> | |||
<tr> | |||
<td class='bline' width="200" height="36" align="center">任务名称:</td> | |||
<td class='bline'> | |||
<input name="taskname" type="text" class='pubinputs' id="taskname" size="30" /> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">运行程序:</td> | |||
<td class='bline'> | |||
<input name="dourl" type="text" id="dourl" size="30" class='pubinputs' /> | |||
(程序必须放在../plus/task目录,因此填写文件名即可) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="80" align="center">任务说明:</td> | |||
<td class='bline'><textarea name="description" id="description" | |||
style="width:380px;height:60px"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">是否启用:</td> | |||
<td class='bline'> | |||
<label><input name="nislock" type="radio" value="0" checked> | |||
启用</label> | |||
<label><input name="nislock" type="radio" value="1"> | |||
不启用</label></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">循环方式:</td> | |||
<td class='bline'> | |||
<label><input name="runtype" type="radio" value="0" checked> | |||
循环</label> | |||
<label><input type="radio" name="runtype" value="1"> | |||
一次性</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">执行时间:</td> | |||
<td class='bline'><input name="h" type="text" class="pubinputs" id="h" style="width:30px" value="1"> | |||
时(24小时制) | |||
<input name="m" type="text" class="pubinputs" id="m" style="width:30px" value="0"> | |||
分</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">执行周期:</td> | |||
<td class='bline'> | |||
<label><input name="freq" type="radio" value="1" checked> | |||
天</label> | |||
<label><input type="radio" name="freq" value="7"> | |||
周</label> | |||
<label><input type="radio" name="freq" value="30"> | |||
月</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">开始时间:</td> | |||
<td class='bline'><input name="starttime" type="text" class="datepicker" id="starttime" | |||
></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">结束时间:</td> | |||
<td class='bline'><input name="endtime" type="text" class="datepicker" id="endtime" | |||
> | |||
(不限不要填写)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' align="center"> | |||
附加参数: | |||
</td> | |||
<td class='bline'> | |||
通过get方式向运行的程序发送的参数,格式为:<b><t:parameter key='名称' value='值' /></b><br /> | |||
<textarea name="parameter" id="parameter" style="width:480px;height:150px"></textarea> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="51"> </td> | |||
<td> | |||
<button type="submit" name="Submit" class="btn btn-secondary"> 提 交 </button> | |||
<button type="reset" name="Submit" class="btn btn-secondary"> 重 置 </button> </td> | |||
</tr> | |||
</table> | |||
</form> | |||
</td> | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -1,119 +1,138 @@ | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<!DOCTYPE html | |||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>计划任务</title> | |||
<link href='css/base.css' rel='stylesheet' type='text/css'> | |||
<script language="javascript" src="../static/js/webcalendar.js"></script> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>计划任务</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href='css/base.css' rel='stylesheet' type='text/css'> | |||
<script language="javascript" src="../static/js/jquery.js"></script> | |||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | |||
<script type="text/javascript" src="../static/js/moment.min.js"></script> | |||
<script type="text/javascript" src="../static/js/daterangepicker.js"></script> | |||
<script type="text/javascript" src="./js/main.js"></script> | |||
</head> | |||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | |||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||
<tr> | |||
<td height="28" background="images/tbg.gif" style="padding-left:10px;"><b><a href="sys_task.php"><u>计划任务管理</u></a></b> >> 修改任务</td> | |||
</tr> | |||
<tr> | |||
<td height="200" bgcolor="#FFFFFF" valign="top"> | |||
<form action="sys_task_edit.php" method="post" enctype="multipart/form-data" name="form1" onSubmit="return checkSubmit();";> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<input type="hidden" name="id" value="<?php echo $row['id']; ?>" /> | |||
<table width="96%" border="0" cellspacing="1" cellpadding="3" align="center"> | |||
<tr> | |||
<td class='bline' width="100" height="36" align="center">任务名称:</td> | |||
<td class='bline'> | |||
<input name="taskname" type="text" class='pubinputs' id="taskname" size="30" value="<?php echo $row['taskname']; ?>" /> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">运行程序:</td> | |||
<td class='bline'> | |||
<input name="dourl" type="text" id="dourl" size="30" class='pubinputs' value="<?php echo $row['dourl']; ?>" /> | |||
(程序必须放在../plus/task目录,因此填写文件名即可) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="80" align="center">任务说明:</td> | |||
<td class='bline'><textarea name="description" id="description" style="width:380px;height:60px"><?php echo $row['description']; ?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">是否启用:</td> | |||
<td class='bline'> | |||
<input name="nislock" type="radio" value="0" <?php if($row['islock']==0) echo " checked"; ?>> | |||
启用 | |||
<input name="nislock" type="radio" value="1" <?php if($row['islock']==1) echo " checked"; ?>> | |||
不启用 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">循环方式:</td> | |||
<td class='bline'> | |||
<input name="runtype" type="radio" value="0" <?php if($row['runtype']==0) echo " checked"; ?>> | |||
循环 | |||
<input type="radio" name="runtype" value="1" <?php if($row['runtype']==1) echo " checked"; ?>> | |||
一次性 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">执行时间:</td> | |||
<td class='bline'> | |||
<?php | |||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||
<tr> | |||
<td height="28" background="images/tbg.gif" style="padding-left:10px;"><b><a | |||
href="sys_task.php"><u>计划任务管理</u></a></b> >> 修改任务</td> | |||
</tr> | |||
<tr> | |||
<td height="200" bgcolor="#FFFFFF" valign="top"> | |||
<form action="sys_task_edit.php" method="post" enctype="multipart/form-data" name="form1" | |||
onSubmit="return checkSubmit();" ;> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<input type="hidden" name="id" value="<?php echo $row['id']; ?>" /> | |||
<table width="96%" border="0" cellspacing="1" cellpadding="3" align="center" class="table table-borderless"> | |||
<tr> | |||
<td class='bline' width="200" height="36" align="center">任务名称:</td> | |||
<td class='bline'> | |||
<input name="taskname" type="text" class='pubinputs' id="taskname" size="30" | |||
value="<?php echo $row['taskname']; ?>" /> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">运行程序:</td> | |||
<td class='bline'> | |||
<input name="dourl" type="text" id="dourl" size="30" class='pubinputs' | |||
value="<?php echo $row['dourl']; ?>" /> | |||
(程序必须放在../plus/task目录,因此填写文件名即可) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="80" align="center">任务说明:</td> | |||
<td class='bline'><textarea name="description" id="description" | |||
style="width:380px;height:60px"><?php echo $row['description']; ?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">是否启用:</td> | |||
<td class='bline'> | |||
<label><input name="nislock" type="radio" value="0" <?php if($row['islock']==0) echo " checked"; ?>> | |||
启用</label> | |||
<label><input name="nislock" type="radio" value="1" <?php if($row['islock']==1) echo " checked"; ?>> | |||
不启用</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">循环方式:</td> | |||
<td class='bline'> | |||
<label><input name="runtype" type="radio" value="0" <?php if($row['runtype']==0) echo " checked"; ?>> | |||
循环</label> | |||
<label><input type="radio" name="runtype" value="1" <?php if($row['runtype']==1) echo " checked"; ?>> | |||
一次性</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">执行时间:</td> | |||
<td class='bline'> | |||
<?php | |||
list($h, $m) = explode(':', $row['runtime']); | |||
?> | |||
<input name="h" type="text" class="pubinputs" id="h" style="width:30px" value="<?php echo $h; ?>"> | |||
时(24小时制) | |||
<input name="m" type="text" class="pubinputs" id="m" style="width:30px" value="<?php echo $m; ?>"> | |||
分 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">执行周期:</td> | |||
<td class='bline'> | |||
<input name="freq" type="radio" value="1" <?php if($row['freq']==1) echo " checked"; ?>> | |||
天 | |||
<input type="radio" name="freq" value="7" <?php if($row['freq']==7) echo " checked"; ?>> | |||
周 | |||
<input type="radio" name="freq" value="30" <?php if($row['freq']==30) echo " checked"; ?>> | |||
月 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">开始时间:</td> | |||
<td class='bline'> | |||
<input name="starttime" type="text" class="pubinputs" id="starttime" style="width:70px" onClick="SelectDate(this,'yyyy-MM-dd',80,0)" value="<?php echo ( empty($row['starttime']) ? '' : GetDateMk($row['starttime']) ); ?>"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">结束时间:</td> | |||
<td class='bline'> | |||
<input name="endtime" type="text" class="pubinputs" id="endtime" style="width:70px" onClick="SelectDate(this,'yyyy-MM-dd',80,0)" value="<?php echo ( empty($row['endtime']) ? '' : GetDateMk($row['endtime']) ); ?>"> | |||
(不限不要填写) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' align="center"> | |||
附加参数: | |||
</td> | |||
<td class='bline'> | |||
通过get方式向运行的程序发送的参数,格式为:<b><t:parameter key='名称' value='值' /></b><br/> | |||
<textarea name="parameter" id="parameter" style="width:480px;height:150px"><?php echo $row['parameter']; ?></textarea> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="28" align="center">上次运行时间:</td> | |||
<td class='bline'> | |||
<?php echo (empty($row['lastrun']) ? '没运行过' : GetDateTimeMk($row['lastrun'])); ?> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="51"> </td> | |||
<td> | |||
<input type="submit" name="Submit" value=" 提 交 " class="coolbg np" /> | |||
<input type="reset" name="Submit" value=" 重 置 " class="coolbg np" /> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
</td> | |||
</tr> | |||
</table> | |||
<input name="h" type="text" class="pubinputs" id="h" style="width:30px" value="<?php echo $h; ?>"> | |||
时(24小时制) | |||
<input name="m" type="text" class="pubinputs" id="m" style="width:30px" value="<?php echo $m; ?>"> | |||
分 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">执行周期:</td> | |||
<td class='bline'> | |||
<label><input name="freq" type="radio" value="1" <?php if($row['freq']==1) echo " checked"; ?>> | |||
天</label> | |||
<label><input type="radio" name="freq" value="7" <?php if($row['freq']==7) echo " checked"; ?>> | |||
周</label> | |||
<label><input type="radio" name="freq" value="30" <?php if($row['freq']==30) echo " checked"; ?>> | |||
月</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">开始时间:</td> | |||
<td class='bline'> | |||
<input name="starttime" type="text" class="datepicker" id="starttime" | |||
value="<?php echo ( empty($row['starttime']) ? '' : GetDateMk($row['starttime']) ); ?>"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="36" align="center">结束时间:</td> | |||
<td class='bline'> | |||
<input name="endtime" type="text" class="datepicker" id="endtime" | |||
value="<?php echo ( empty($row['endtime']) ? '' : GetDateMk($row['endtime']) ); ?>"> | |||
(不限不要填写) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' align="center"> | |||
附加参数: | |||
</td> | |||
<td class='bline'> | |||
通过get方式向运行的程序发送的参数,格式为:<b><t:parameter key='名称' value='值' /></b><br /> | |||
<textarea name="parameter" id="parameter" | |||
style="width:480px;height:150px"><?php echo $row['parameter']; ?></textarea> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="28" align="center">上次运行时间:</td> | |||
<td class='bline'> | |||
<?php echo (empty($row['lastrun']) ? '没运行过' : GetDateTimeMk($row['lastrun'])); ?> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="51"> </td> | |||
<td> | |||
<button type="submit" name="Submit" class="btn btn-secondary"> 提 交 </button> | |||
<button type="reset" name="Submit" class="btn btn-secondary"> 重 置 </button> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
</td> | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -44,7 +44,7 @@ | |||
</b> | |||
</div> | |||
<div style='float:right;padding-right:10px'> | |||
<a href='tpl.php?action=addnewtag'>[<u>增加一个新的标签</u>]</a> | |||
<a href='tpl.php?action=addnewtag' class="btn btn-secondary btn-sm">增加一个新的标签</a> | |||
</div> | |||
</td> | |||
</tr> | |||
@@ -86,9 +86,9 @@ function Post() | |||
<td height="42" colspan='2' bgcolor="#F9FCEF"> | |||
<button type="submit" name='B1' class="btn btn-secondary"> 保 存 </button> | |||
| |||
<button type="reset" name='B2' class="btn btn-secondary">取消修改</button> | |||
<button type="reset" name='B2' class="btn btn-secondary"> 重 置 </button> | |||
| |||
<button type="button" name='B4' class="btn btn-secondary" onClick="javascript:history.go(-1);">不理返回</button> | |||
<button type="button" name='B4' class="btn btn-secondary" onClick="javascript:history.go(-1);"> 返 回 </button> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -1,61 +1,63 @@ | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<!DOCTYPE html | |||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>文件编辑</title> | |||
<link rel="stylesheet" type="text/css" href="css/base.css"> | |||
<script> | |||
function Post() | |||
{ | |||
if (document.form1.filename.value=="") | |||
{ | |||
alert("文件名不能为空。"); | |||
document.form1.filename.focus(); | |||
return false; | |||
} | |||
} | |||
</script> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>文件编辑</title> | |||
<link rel="stylesheet" type="text/css" href="css/base.css"> | |||
<script> | |||
function Post() { | |||
if (document.form1.filename.value == "") { | |||
alert("文件名不能为空。"); | |||
document.form1.filename.focus(); | |||
return false; | |||
} | |||
} | |||
</script> | |||
</head> | |||
<body bgcolor="#F2F4F3" leftmargin="15" topmargin="10"> | |||
<table width=98% border=0 cellpadding=0 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse"> | |||
<form method="POST" action="tpl.php" name=form1 onSubmit="return Post()"> | |||
<input type="hidden" name="action" value="savenewfile" /> | |||
<tr> | |||
<td width=78% valign="top"> | |||
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" width=100%> | |||
<tr> | |||
<td width=16% height="25">工作目录:</td> | |||
<td width="84%"> <input name="path" size=40 value="<?php echo $path;?>" > | |||
(空白表示根目录 ,不允许用 “..” 形式的路径)</td> | |||
</tr> | |||
<tr> | |||
<td width=16% height="25">文件名称:</td> | |||
<td> | |||
| |||
<input name="filename" size="40" value="newfile.htm" /> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width=16% height="25">文件内容:</td> | |||
<td> | |||
<textarea name="content" cols="150" rows="20" style="width:99%;"></textarea> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width=98% border=0 cellpadding=0 cellspacing=0 bordercolor=#111111 style="border-collapse: collapse"> | |||
<form method="POST" action="tpl.php" name=form1 onSubmit="return Post()"> | |||
<input type="hidden" name="action" value="savenewfile" /> | |||
<tr> | |||
<td width=78% valign="top"> | |||
<table border=0 cellpadding=0 cellspacing=0 style="border-collapse: collapse" width=100%> | |||
<tr> | |||
<td width=16% height="25">工作目录:</td> | |||
<td width="84%"> <input name="path" size=40 value="<?php echo $path;?>"> | |||
(空白表示根目录 ,不允许用 “..” 形式的路径)</td> | |||
</tr> | |||
<tr> | |||
<td width=16% height="25">文件名称:</td> | |||
<td> | |||
| |||
<input name="filename" size="40" value="newfile.htm" /> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width=16% height="25">文件内容:</td> | |||
<td> | |||
<textarea name="content" cols="150" rows="20" style="width:99%;"></textarea> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td> | |||
<br /> | |||
</tr> | |||
<tr> | |||
<td> | |||
<br /> | |||
<input type="submit" value=" 保 存 " name='B1' class="coolbg np" /> | |||
| |||
<input type="reset" value="取消修改" name='B2' class="coolbg np" /> | |||
| |||
<input type="button" value="不理返回" name='B4' class="coolbg np" onClick="javascript:history.go(-1);" /> | |||
<br /> <br /> | |||
</td> | |||
</tr> | |||
</form> | |||
</table> | |||
<br /> <br /> | |||
</td> | |||
</tr> | |||
</form> | |||
</table> | |||
</body> | |||
</html> |
@@ -20,7 +20,6 @@ div,form,h1,h2,h3,h4,h5,h6{ margin: 0; padding:0;} | |||
border-style:solid; | |||
border-color:#707070 #CECECE #CECECE #707070; | |||
padding:2px 4px; | |||
height:18px; | |||
line-height:18px; | |||
vertical-align:middle; | |||
} | |||