@@ -140,7 +140,7 @@ if ($dojob == '') { | |||||
} | } | ||||
$dvlen = $tjlen * 1; | $dvlen = $tjlen * 1; | ||||
$tjsta = "<div style='width:260px;height:16px;text-align:left;border:1px solid #1eb867;border-radius:.2rem'><div style='max-width:260px;width:$dvlen%;height:16px;background:#1eb867'></div></div>"; | $tjsta = "<div style='width:260px;height:16px;text-align:left;border:1px solid #1eb867;border-radius:.2rem'><div style='max-width:260px;width:$dvlen%;height:16px;background:#1eb867'></div></div>"; | ||||
$tjsta .= "<br>完成处理文档总数<span>$tjlen</span>%"; | $tjsta .= "<br>完成处理文档总数<span class='text-primary'>$tjlen</span>%"; | ||||
if ($tjnum < $totalnum) { | if ($tjnum < $totalnum) { | ||||
$nurl = "article_description_main.php?totalnum=$totalnum&startdd=".($startdd + $pagesize)."&pagesize=$pagesize&table={$table}&field={$field}&dsize={$dsize}&msize={$msize}&channel={$channel}&dojob={$dojob}"; | $nurl = "article_description_main.php?totalnum=$totalnum&startdd=".($startdd + $pagesize)."&pagesize=$pagesize&table={$table}&field={$field}&dsize={$dsize}&msize={$msize}&channel={$channel}&dojob={$dojob}"; | ||||
ShowMsg($tjsta, $nurl, 0, 500); | ShowMsg($tjsta, $nurl, 0, 500); | ||||
@@ -45,7 +45,7 @@ if (!empty($newname)) { | |||||
if (!preg_match("#\.#", $filename)) $fs = explode('.', $uploadfile_name); | if (!preg_match("#\.#", $filename)) $fs = explode('.', $uploadfile_name); | ||||
else $fs = explode('.', $filename); | else $fs = explode('.', $filename); | ||||
if (preg_match("#".$cfg_not_allowall."#", $fs[count($fs) - 1])) { | if (preg_match("#".$cfg_not_allowall."#", $fs[count($fs) - 1])) { | ||||
ShowMsg("您指定的文件名被系统禁止", 'javascript:;'); | ShowMsg("指定的文件名已被系统禁止", 'javascript:;'); | ||||
exit(); | exit(); | ||||
} | } | ||||
if (!preg_match("#\.#", $filename)) $filename = $filename.'.'.$fs[count($fs) - 1]; | if (!preg_match("#\.#", $filename)) $filename = $filename.'.'.$fs[count($fs) - 1]; | ||||
@@ -59,7 +59,7 @@ if (!empty($newname)) { | |||||
$filename = $filename.'.'.$fs[count($fs) - 1]; | $filename = $filename.'.'.$fs[count($fs) - 1]; | ||||
} | } | ||||
if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)[^a-zA-Z0-9]+$#i', trim($filename))) { | if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)[^a-zA-Z0-9]+$#i', trim($filename))) { | ||||
ShowMsg("你指定的文件名被系统禁止",'javascript:;'); | ShowMsg("指定的文件名已被系统禁止",'javascript:;'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$fullfilename = $cfg_basedir.$activepath.'/'.$filename; | $fullfilename = $cfg_basedir.$activepath.'/'.$filename; | ||||
@@ -33,7 +33,7 @@ class FileManagement | |||||
if ($oldext != $newext) { | if ($oldext != $newext) { | ||||
if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)$#i', trim($newname))) { | if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)$#i', trim($newname))) { | ||||
ShowMsg("您指定的文件名被系统禁止", "javascript:;"); | ShowMsg("指定的文件名已被系统禁止", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
@@ -160,11 +160,11 @@ class FileManagement | |||||
$this->RmDirFiles($filename); | $this->RmDirFiles($filename); | ||||
} else { | } else { | ||||
//完善用户体验,by:sumic | //完善用户体验,by:sumic | ||||
ShowMsg("系统禁止删除".$t."", "file_manage_main.php?activepath=".$this->activeDir); | ShowMsg("系统禁止删除<span class='text-primary'>".$t."</span>", "file_manage_main.php?activepath=".$this->activeDir); | ||||
exit; | exit; | ||||
} | } | ||||
} | } | ||||
ShowMsg("成功删除一个".$t."", "file_manage_main.php?activepath=".$this->activeDir); | ShowMsg("成功删除一个<span class='text-primary'>".$t."</span>", "file_manage_main.php?activepath=".$this->activeDir); | ||||
return 0; | return 0; | ||||
} | } | ||||
} | } | ||||
@@ -56,7 +56,7 @@ else if ($fmdo == "edit") { | |||||
CheckCSRF(); | CheckCSRF(); | ||||
$filename = str_replace("..", "", $filename); | $filename = str_replace("..", "", $filename); | ||||
if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)$#i', trim($filename))) { | if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)$#i', trim($filename))) { | ||||
ShowMsg("您指定的文件名被系统禁止", "javascript:;"); | ShowMsg("指定的文件名已被系统禁止", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
$file = "$cfg_basedir$activepath/$filename"; | $file = "$cfg_basedir$activepath/$filename"; | ||||
@@ -63,7 +63,7 @@ if ($dopost == "view") { | |||||
$remotepos = empty($remotepos) ? '/index.html' : $remotepos; | $remotepos = empty($remotepos) ? '/index.html' : $remotepos; | ||||
$serviterm = empty($serviterm) ? "" : $serviterm; | $serviterm = empty($serviterm) ? "" : $serviterm; | ||||
if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)$#i', trim($position))) { | if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)$#i', trim($position))) { | ||||
ShowMsg("您指定的文件名被系统禁止", "javascript:;"); | ShowMsg("指定的文件名已被系统禁止", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
$homeFile = DEDEADMIN."/".$position; | $homeFile = DEDEADMIN."/".$position; | ||||
@@ -53,7 +53,7 @@ if ($dopost == "upload") { | |||||
CloseFtp(); | CloseFtp(); | ||||
} | } | ||||
if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)[^a-zA-Z0-9]+$#i', trim($filename))) { | if (preg_match('#\.(php|pl|cgi|asp|aspx|jsp|php5|php4|php3|shtm|shtml)[^a-zA-Z0-9]+$#i', trim($filename))) { | ||||
ShowMsg("你指定的文件名被系统禁止!",'javascript:;'); | ShowMsg("指定的文件名已被系统禁止",'javascript:;'); | ||||
exit(); | exit(); | ||||
} | } | ||||
$fullfilename = $cfg_basedir.$filename; | $fullfilename = $cfg_basedir.$filename; | ||||
@@ -215,7 +215,7 @@ else if ($action == 'setup') { | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table>"; | </table>"; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow("ok", ""); | $winform = $win->GetWindow("ok", ""); | ||||
$win->Display(); | $win->Display(); | ||||
$dm->Clear(); | $dm->Clear(); | ||||
@@ -326,7 +326,7 @@ else if ($action == 'del') { | |||||
<td colspan='2'>删除模块仅删除这个模块的安装包文件,如果您已经安装,请执行<a href='module_main.php?hash={$hash}&action=uninstall'>卸载程序</a>来删除</td> | <td colspan='2'>删除模块仅删除这个模块的安装包文件,如果您已经安装,请执行<a href='module_main.php?hash={$hash}&action=uninstall'>卸载程序</a>来删除</td> | ||||
</tr> | </tr> | ||||
</table>"; | </table>"; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow("ok", ""); | $winform = $win->GetWindow("ok", ""); | ||||
$win->Display(); | $win->Display(); | ||||
$dm->Clear(); | $dm->Clear(); | ||||
@@ -404,7 +404,7 @@ else if ($action == 'uninstall') { | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table>"; | </table>"; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow("ok", ""); | $winform = $win->GetWindow("ok", ""); | ||||
$win->Display(); | $win->Display(); | ||||
$dm->Clear(); | $dm->Clear(); | ||||
@@ -460,7 +460,7 @@ else if ($action == 'showreadme') { | |||||
$win->Init("module_main.php", "js/blank.js", "post"); | $win->Init("module_main.php", "js/blank.js", "post"); | ||||
$wecome_info = "模块管理"; | $wecome_info = "模块管理"; | ||||
$win->AddTitle("<a href='module_main.php'>模块管理</a> > 使用说明"); | $win->AddTitle("<a href='module_main.php'>模块管理</a> > 使用说明"); | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow("hand"); | $winform = $win->GetWindow("hand"); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -538,7 +538,7 @@ else if ($action == 'view') { | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table>"; | </table>"; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow('hand', ''); | $winform = $win->GetWindow('hand', ''); | ||||
$win->Display(); | $win->Display(); | ||||
$dm->Clear(); | $dm->Clear(); | ||||
@@ -55,7 +55,7 @@ if ($action == 'upload') { | |||||
$win->Init("module_upload.php", "js/blank.js", "POST' enctype='multipart/form-data"); | $win->Init("module_upload.php", "js/blank.js", "POST' enctype='multipart/form-data"); | ||||
$win->mainTitle = "模块管理"; | $win->mainTitle = "模块管理"; | ||||
$wecome_info = "<a href='module_main.php'>模块管理</a> > 上传模块"; | $wecome_info = "<a href='module_main.php'>模块管理</a> > 上传模块"; | ||||
$win->AddTitle('请选择要上传的文件:'); | $win->AddTitle('请选择要上传的文件'); | ||||
$win->AddHidden("action", 'upload'); | $win->AddHidden("action", 'upload'); | ||||
$msg = "<table width='900' cellspacing='0' cellpadding='0'> | $msg = "<table width='900' cellspacing='0' cellpadding='0'> | ||||
<tr> | <tr> | ||||
@@ -73,7 +73,7 @@ if ($action == 'upload') { | |||||
<td><input name='upfile' type='file' id='upfile' class='admin-input-lg'></td> | <td><input name='upfile' type='file' id='upfile' class='admin-input-lg'></td> | ||||
</tr> | </tr> | ||||
</table>"; | </table>"; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow('ok', ''); | $winform = $win->GetWindow('ok', ''); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -60,25 +60,25 @@ else if ($dopost == "copystart") { | |||||
$win->AddHidden("id", $id); | $win->AddHidden("id", $id); | ||||
$win->AddHidden("dopost", 'copysave'); | $win->AddHidden("dopost", 'copysave'); | ||||
$msg = " | $msg = " | ||||
<table width='460' cellspacing='0' cellpadding='0'> | <table cellspacing='0' cellpadding='0'> | ||||
<tr> | <tr> | ||||
<td width='170' align='center'>新栏目id:</td> | <td width='260'>新栏目id:</td> | ||||
<td width='230'><input name='newid' type='text' id='newid' size='6' value='{$newid}' /></td> | <td><input name='newid' type='text' id='newid' size='6' value='{$newid}' /></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td align='center'>新栏目名称:</td> | <td>新栏目名称:</td> | ||||
<td><input name='newtypename' type='text' id='newtypename' value='{$row['typename']}{$idname}' class='admin-input-md' /></td> | <td><input name='newtypename' type='text' id='newtypename' value='{$row['typename']}{$idname}' class='admin-input-md' /></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td align='center'>新栏目标识:</td> | <td>新栏目标识:</td> | ||||
<td><input name='newnid' type='text' id='newnid' value='{$row['nid']}{$idname}' class='admin-input-md' /></td> | <td><input name='newnid' type='text' id='newnid' value='{$row['nid']}{$idname}' class='admin-input-md' /></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td align='center'>新附加表:</td> | <td>新附加表:</td> | ||||
<td><input name='newaddtable' type='text' id='newaddtable' value='{$row['addtable']}{$idname}' class='admin-input-md' /></td> | <td><input name='newaddtable' type='text' id='newaddtable' value='{$row['addtable']}{$idname}' class='admin-input-md' /></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td align='center'>复制模板:</td> | <td>复制模板:</td> | ||||
<td> | <td> | ||||
<label><input type='radio' name='copytemplet' id='copytemplet' value='1' checked='checked'> 复制</label> | <label><input type='radio' name='copytemplet' id='copytemplet' value='1' checked='checked'> 复制</label> | ||||
<label><input type='radio' name='copytemplet' id='copytemplet' value='0'> 不复制</label> | <label><input type='radio' name='copytemplet' id='copytemplet' value='0'> 不复制</label> | ||||
@@ -86,7 +86,7 @@ else if ($dopost == "copystart") { | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
"; | "; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow("ok", ""); | $winform = $win->GetWindow("ok", ""); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -278,7 +278,7 @@ else if ($dopost == "save") { | |||||
} | } | ||||
$trueTable = str_replace("#@__", $cfg_dbprefix, $addtable); | $trueTable = str_replace("#@__", $cfg_dbprefix, $addtable); | ||||
if (!$dsql->IsTable($trueTable)) { | if (!$dsql->IsTable($trueTable)) { | ||||
ShowMsg("系统找不到您所指定的表`$trueTable`,请手工创建这个表", "-1"); | ShowMsg("系统找不到您所指定的表`$trueTable`,请您创建这个表", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
$dsql->ExecuteNoneQuery($query); | $dsql->ExecuteNoneQuery($query); | ||||
@@ -295,7 +295,7 @@ else if ($dopost == "gettemplets") { | |||||
$wecome_info = "<a href='mychannel_main.php'>栏目管理</a>::查看模板"; | $wecome_info = "<a href='mychannel_main.php'>栏目管理</a>::查看模板"; | ||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->Init("", "js/blank.js", ""); | $win->Init("", "js/blank.js", ""); | ||||
$win->AddTitle("栏目[".$row['typename']."]默认模板文件说明"); | $win->AddTitle("栏目<span class='text-primary'>".$row['typename']."</span>默认模板文件说明"); | ||||
$defaulttemplate = $cfg_templets_dir.'/'.$cfg_df_style; | $defaulttemplate = $cfg_templets_dir.'/'.$cfg_df_style; | ||||
$msg = " | $msg = " | ||||
文档模板:{$defaulttemplate}/article_{$row['nid']}.htm | 文档模板:{$defaulttemplate}/article_{$row['nid']}.htm | ||||
@@ -306,7 +306,7 @@ else if ($dopost == "gettemplets") { | |||||
封面栏目模板:{$defaulttemplate}/index_{$row['nid']}.htm | 封面栏目模板:{$defaulttemplate}/index_{$row['nid']}.htm | ||||
<a href='tpl.php?acdir={$cfg_df_style}&action=edit&filename=index_{$row['nid']}.htm'>[修改]</a> | <a href='tpl.php?acdir={$cfg_df_style}&action=edit&filename=index_{$row['nid']}.htm'>[修改]</a> | ||||
"; | "; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow("hand", ""); | $winform = $win->GetWindow("hand", ""); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -49,7 +49,7 @@ if ($dopost != 'save') { | |||||
$islocal = $ctag->GetAtt('islocal'); | $islocal = $ctag->GetAtt('islocal'); | ||||
if ($islocal != 1) $needmsg = "<label><input type='checkbox' name='del{$newRowStart}' value='1'> 删除</label>"; | if ($islocal != 1) $needmsg = "<label><input type='checkbox' name='del{$newRowStart}' value='1'> 删除</label>"; | ||||
else $needmsg = '<button name="sel1" class="btn btn-success btn-sm" type="button" id="sel1" onClick="SelectSoft(\'form1.softurl'.$newRowStart.'\')">选取</button>'; | else $needmsg = '<button name="sel1" class="btn btn-success btn-sm" type="button" id="sel1" onClick="SelectSoft(\'form1.softurl'.$newRowStart.'\')">选取</button>'; | ||||
$nForm .= "<div>软件地址{$newRowStart}:<input type='text' name='softurl{$newRowStart}' value='".trim($ctag->GetInnerText())."' class='admin-input-md'> 服务器名称:<input type='text' name='servermsg{$newRowStart}' value='".$ctag->GetAtt("text")."' class='admin-input-sm'> | $nForm .= "<div class='py-2'>软件地址{$newRowStart}:<input type='text' name='softurl{$newRowStart}' value='".trim($ctag->GetInnerText())."' class='admin-input-md'> 服务器名称:<input type='text' name='servermsg{$newRowStart}' value='".$ctag->GetAtt("text")."' class='admin-input-sm'> | ||||
<input type='hidden' name='islocal{$newRowStart}' value='{$islocal}'> | <input type='hidden' name='islocal{$newRowStart}' value='{$islocal}'> | ||||
$needmsg | $needmsg | ||||
</div>\r\n"; | </div>\r\n"; | ||||
@@ -31,7 +31,7 @@ if (empty($dopost)) { | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
"; | "; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow('hand', ''); | $winform = $win->GetWindow('hand', ''); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -60,7 +60,7 @@ else if ($dopost == 1) { | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
"; | "; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow('hand', ''); | $winform = $win->GetWindow('hand', ''); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -133,7 +133,7 @@ else if ($dopost == 2) { | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
"; | "; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow('hand', ''); | $winform = $win->GetWindow('hand', ''); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -187,7 +187,7 @@ else if ($dopost == 3) { | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
"; | "; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow('hand', ''); | $winform = $win->GetWindow('hand', ''); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -28,7 +28,7 @@ | |||||
return false; | return false; | ||||
} | } | ||||
if (document.form1.typeid.value == 0) { | if (document.form1.typeid.value == 0) { | ||||
ShowMsg('请选择文档的主类别'); | ShowMsg('请选择文档的主栏目'); | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@@ -27,9 +27,9 @@ | |||||
<td>{dede:field.table/}</td> | <td>{dede:field.table/}</td> | ||||
<td> | <td> | ||||
<a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=edit" class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i> 修改</a> | <a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=edit" class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i> 修改</a> | ||||
<a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a> | |||||
<a href="diy_list.php?action=excel&diyid={dede:field.diyid/}" target="_blank" class="btn btn-success btn-sm"><i class="fa fa-share-square"></i> 导出</a> | <a href="diy_list.php?action=excel&diyid={dede:field.diyid/}" target="_blank" class="btn btn-success btn-sm"><i class="fa fa-share-square"></i> 导出</a> | ||||
<a href="../apps/diy.php?action=list&diyid={dede:field.diyid/}" class="btn btn-success btn-sm" target="_blank"><i class="fa fa-eye"></i> 预览</a> | <a href="../apps/diy.php?action=list&diyid={dede:field.diyid/}" class="btn btn-success btn-sm" target="_blank"><i class="fa fa-eye"></i> 预览</a> | ||||
<a href="diy_edit.php?diyid={dede:field.diyid/}&dopost=delete" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{/dede:datalist} | {/dede:datalist} | ||||
@@ -8,40 +8,40 @@ | |||||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
<link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
<style>.napisdiv{position:absolute;left:10;top:0;width:150px;height:100px;z-index:3}</style> | <style>.napisdiv{position:absolute;left:10;top:0;width:150px;height:100px;z-index:3}</style> | ||||
<script> | <script> | ||||
//获得选中文件的文件名 | //获得选中文件的文件名 | ||||
function getCheckboxItem() { | function getCheckboxItem() { | ||||
var allSel = ""; | var allSel = ""; | ||||
if (document.form1.aids.value) return document.form1.aids.value; | if (document.form1.aids.value) return document.form1.aids.value; | ||||
for (i = 0; i < document.form1.aids.length; i++) { | for (i = 0; i < document.form1.aids.length; i++) { | ||||
if (document.form1.aids[i].checked) { | if (document.form1.aids[i].checked) { | ||||
if (allSel == "") | if (allSel == "") | ||||
allSel = document.form1.aids[i].value; | allSel = document.form1.aids[i].value; | ||||
else | else | ||||
allSel = allSel + "," + document.form1.aids[i].value; | allSel = allSel + "," + document.form1.aids[i].value; | ||||
} | } | ||||
} | } | ||||
return allSel; | return allSel; | ||||
} | } | ||||
function AllSel() { | function AllSel() { | ||||
for (i = 0; i < document.form1.aids.length; i++) { | for (i = 0; i < document.form1.aids.length; i++) { | ||||
document.form1.aids[i].checked = true; | document.form1.aids[i].checked = true; | ||||
} | } | ||||
} | } | ||||
function NoneSel() { | function NoneSel() { | ||||
for (i = 0; i < document.form1.aids.length; i++) { | for (i = 0; i < document.form1.aids.length; i++) { | ||||
document.form1.aids[i].checked = false; | document.form1.aids[i].checked = false; | ||||
} | } | ||||
} | } | ||||
function DelSel() { | function DelSel() { | ||||
var nid = getCheckboxItem(); | var nid = getCheckboxItem(); | ||||
if (nid == "") { | if (nid == "") { | ||||
alert("请选择项目"); | alert("请选择项目"); | ||||
return; | return; | ||||
} | } | ||||
location.href = "media_edit.php?dopost=del&ids=" + nid; | location.href = "media_edit.php?dopost=del&ids=" + nid; | ||||
} | } | ||||
</script> | </script> | ||||
</head> | </head> | ||||
<body> | <body> | ||||
<table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | <table cellpadding="3" cellspacing="1" align="center" class="table maintable my-3"> | ||||
@@ -255,13 +255,13 @@ | |||||
<?php | <?php | ||||
if ($ft==1) { | if ($ft==1) { | ||||
?> | ?> | ||||
<a href="mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&issystem=<?php echo $row['issystem'];?>"><i class="btn btn-sm fa fa-pencil-square-o" title="修改"></i></a> | <a href="mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&issystem=<?php echo $row['issystem'];?>" class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o"></i> 修改</a> | ||||
<?php if ($row['issystem']!=1) {?> | <?php if ($row['issystem']!=1) {?> | ||||
<a href="javascript:;" onClick="javascript:DelNote('mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&action=delete');"><i class="btn btn-sm fa fa-trash" title="删除"></i></a> | <a href="javascript:;" onClick="javascript:DelNote('mychannel_field_edit.php?id=<?php echo $id;?>&fname=<?php echo $ctag->GetTagName();?>&action=delete');" class="btn btn-danger btn-sm"><i class="fa fa-trash"></i> 删除</a> | ||||
<?php }?> | <?php }?> | ||||
<?php | <?php | ||||
} else { | } else { | ||||
echo "禁止修改"; | echo "<span class='btn btn-danger btn-sm'><i class='fa fa-times'></i> 禁止</span>"; | ||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -43,12 +43,12 @@ | |||||
<td>{dede:field.isshow function="GetSta(@me,$fields['id'])"/}</td> | <td>{dede:field.isshow function="GetSta(@me,$fields['id'])"/}</td> | ||||
<td>{dede:field.issystem function='IsSystem(@me)'/}</td> | <td>{dede:field.issystem function='IsSystem(@me)'/}</td> | ||||
<td> | <td> | ||||
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=copystart"><i class="btn btn-sm fa fa-clone" title="复制"></i></a> | <a href="mychannel_edit.php?id={dede:field.id/}&dopost=copystart" class="btn btn-success btn-sm"><i class="fa fa-clone" title="复制"></i></a> | ||||
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=gettemplets"><i class="btn btn-sm fa fa-file-text-o" title="模板"></i></a> | <a href="mychannel_edit.php?id={dede:field.id/}&dopost=gettemplets" class="btn btn-success btn-sm"><i class="fa fa-file-text-o" title="模板"></i></a> | ||||
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=export"><i class="btn btn-sm fa fa-download" title="导出"></i></a> | <a href="mychannel_edit.php?id={dede:field.id/}&dopost=export" class="btn btn-success btn-sm"><i class="fa fa-download" title="导出"></i></a> | ||||
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit"><i class="btn btn-sm fa fa-pencil-square-o" title="修改"></i></a> | <a href="mychannel_edit.php?id={dede:field.id/}&dopost=edit" class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o" title="修改"></i></a> | ||||
<a href="mychannel_edit.php?mid={dede:field.id/}&dopost=modifysearch"><i class="btn btn-sm fa fa-search" title="自定义搜索"></i></a> | <a href="mychannel_edit.php?mid={dede:field.id/}&dopost=modifysearch" class="btn btn-success btn-sm"><i class="fa fa-search" title="自定义搜索"></i></a> | ||||
<a href="mychannel_edit.php?id={dede:field.id/}&dopost=delete"><i class="btn btn-sm fa fa-trash" title="删除"></i></a> | <a href="mychannel_edit.php?id={dede:field.id/}&dopost=delete" class="btn btn-success btn-sm"><i class="fa fa-trash" title="删除"></i></a> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
{/dede:datalist} | {/dede:datalist} | ||||
@@ -27,7 +27,7 @@ | |||||
return false; | return false; | ||||
} | } | ||||
if (document.form1.typeid.value == 0) { | if (document.form1.typeid.value == 0) { | ||||
ShowMsg('请选择文档的主类别'); | ShowMsg('请选择文档的主栏目'); | ||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@@ -37,7 +37,7 @@ | |||||
var endNum = parseInt(document.form1.picnum.value) + startNum - 1; | var endNum = parseInt(document.form1.picnum.value) + startNum - 1; | ||||
if (endNum > 30) endNum = 30; | if (endNum > 30) endNum = 30; | ||||
for (startNum; startNum <= endNum; startNum++) { | for (startNum; startNum <= endNum; startNum++) { | ||||
upfield.innerHTML += "<div>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-md'> 服务器名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></div>"; | upfield.innerHTML += "<div class='py-2'>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-md'> 服务器名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></div>"; | ||||
} | } | ||||
} | } | ||||
function ShowHideAddr() { | function ShowHideAddr() { | ||||
@@ -33,7 +33,7 @@ | |||||
var endNum = parseInt(document.form1.picnum.value) + startNum; | var endNum = parseInt(document.form1.picnum.value) + startNum; | ||||
if (endNum > 30) endNum = 30; | if (endNum > 30) endNum = 30; | ||||
for (startNum; startNum < endNum; startNum++) { | for (startNum; startNum < endNum; startNum++) { | ||||
upfield.innerHTML += "<div>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-md'> 服务器名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></div>"; | upfield.innerHTML += "<div class='py-2'>软件地址" + startNum + ":<input type='text' name='softurl" + startNum + "' value='http://' class='admin-input-md'> 服务器名称:<input type='text' name='servermsg" + startNum + "' class='admin-input-sm'></div>"; | ||||
} | } | ||||
} | } | ||||
function ShowHideAddr() { | function ShowHideAddr() { | ||||
@@ -18,7 +18,7 @@ if ($dopost == "save") { | |||||
$filename = preg_replace("#^\/#", "", $nfilename); | $filename = preg_replace("#^\/#", "", $nfilename); | ||||
if (DEDEBIZ_SAFE_MODE) $ismake = 0; //安全模式不允许编译 | if (DEDEBIZ_SAFE_MODE) $ismake = 0; //安全模式不允许编译 | ||||
if (!preg_match('#\.htm$#i', trim($template))) { | if (!preg_match('#\.htm$#i', trim($template))) { | ||||
ShowMsg("您指定的文件名被系统禁止", "javascript:;"); | ShowMsg("指定的文件名已被系统禁止", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
if ($likeid == '') { | if ($likeid == '') { | ||||
@@ -19,7 +19,7 @@ if ($dopost == "saveedit") { | |||||
$filename = preg_replace("#^\/#", "", $nfilename); | $filename = preg_replace("#^\/#", "", $nfilename); | ||||
if (DEDEBIZ_SAFE_MODE) $ismake = 0; //安全模式不允许编译 | if (DEDEBIZ_SAFE_MODE) $ismake = 0; //安全模式不允许编译 | ||||
if (!preg_match('#\.htm$#i', trim($template))) { | if (!preg_match('#\.htm$#i', trim($template))) { | ||||
ShowMsg("您指定的文件名被系统禁止", "javascript:;"); | ShowMsg("指定的文件名已被系统禁止", "javascript:;"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//如果修改了文件名,删除旧文件 | //如果修改了文件名,删除旧文件 | ||||
@@ -124,13 +124,13 @@ else if ($action == 'upload') { | |||||
$win->Init("tpl.php", "js/blank.js", "POST' enctype='multipart/form-data' "); | $win->Init("tpl.php", "js/blank.js", "POST' enctype='multipart/form-data' "); | ||||
$win->mainTitle = "模块管理"; | $win->mainTitle = "模块管理"; | ||||
$wecome_info = "<a href='templets_main.php'>模板管理</a> > 上传模板"; | $wecome_info = "<a href='templets_main.php'>模板管理</a> > 上传模板"; | ||||
$win->AddTitle('请选择要上传的文件:'); | $win->AddTitle('请选择要上传的文件'); | ||||
$win->AddHidden("action", 'uploadok'); | $win->AddHidden("action", 'uploadok'); | ||||
$msg = " | $msg = " | ||||
<table width='600' cellspacing='0' cellpadding='0'> | <table cellspacing='0' cellpadding='0'> | ||||
<tr> | <tr> | ||||
<td width='96' height='60'>请选择文件:</td> | <td width='90'>选择文件:</td> | ||||
<td width='504'> | <td> | ||||
<input name='acdir' type='hidden' value='$acdir' /> | <input name='acdir' type='hidden' value='$acdir' /> | ||||
<input name='token' type='hidden' value='{$_SESSION['token']}' /> | <input name='token' type='hidden' value='{$_SESSION['token']}' /> | ||||
<input name='upfile' type='file' id='upfile' class='admin-input-lg' /> | <input name='upfile' type='file' id='upfile' class='admin-input-lg' /> | ||||
@@ -138,7 +138,7 @@ else if ($action == 'upload') { | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
"; | "; | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow('ok', ''); | $winform = $win->GetWindow('ok', ''); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -249,7 +249,7 @@ function ShowMsgWin($msg, $title) | |||||
$win->Init(); | $win->Init(); | ||||
$win->mainTitle = "系统提示"; | $win->mainTitle = "系统提示"; | ||||
$win->AddTitle($title); | $win->AddTitle($title); | ||||
$win->AddMsgItem("<div>$msg</div>"); | $win->AddMsgItem("$msg"); | ||||
$winform = $win->GetWindow("hand"); | $winform = $win->GetWindow("hand"); | ||||
$win->Display(); | $win->Display(); | ||||
} | } |