@@ -191,11 +191,11 @@ if($cid != 0) | |||||
if($arcrank != '') | if($arcrank != '') | ||||
{ | { | ||||
$whereSql .= " AND arc.arcrank = '$arcrank' "; | $whereSql .= " AND arc.arcrank = '$arcrank' "; | ||||
$CheckUserSend = "<input type='button' class='coolbg np' onClick=\"location='catalog_do.php?cid=".$cid."&dopost=listArchives&gurl=content_list.php';\" value='所有文档' />"; | |||||
$CheckUserSend = "<button type='button' class='btn btn-secondary btn-sm' onClick=\"location='catalog_do.php?cid=".$cid."&dopost=listArchives&gurl=content_list.php';\">所有文档</button>"; | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
$CheckUserSend = "<input type='button' class='coolbg np' onClick=\"location='catalog_do.php?cid=".$cid."&dopost=listArchives&arcrank=-1&gurl=content_list.php';\" value='稿件审核' />"; | |||||
$CheckUserSend = "<button type='button' class='btn btn-secondary btn-sm' onClick=\"location='catalog_do.php?cid=".$cid."&dopost=listArchives&arcrank=-1&gurl=content_list.php';\">稿件审核</button>"; | |||||
} | } | ||||
$orderby = empty($orderby) ? 'id' : preg_replace("#[^a-z0-9]#", "", $orderby); | $orderby = empty($orderby) ? 'id' : preg_replace("#[^a-z0-9]#", "", $orderby); | ||||
@@ -76,11 +76,11 @@ if($cid!=0) $whereSql .= " AND arc.typeid in (".GetSonIds($cid).")"; | |||||
if($arcrank!='') | if($arcrank!='') | ||||
{ | { | ||||
$whereSql .= " AND arc.arcrank = '$arcrank' "; | $whereSql .= " AND arc.arcrank = '$arcrank' "; | ||||
$CheckUserSend = "<input type='button' class='coolbg np' onClick=\"location='content_sg_list.php?cid={$cid}&channelid={$channelid}&dopost=listArchives';\" value='所有文档' />"; | |||||
$CheckUserSend = "<button type='button' class='btn btn-secondary btn-sm' onClick=\"location='content_sg_list.php?cid={$cid}&channelid={$channelid}&dopost=listArchives';\">所有文档</button>"; | |||||
} | } | ||||
else | else | ||||
{ | { | ||||
$CheckUserSend = "<input type='button' class='coolbg np' onClick=\"location='content_sg_list.php?cid={$cid}&channelid={$channelid}&dopost=listArchives&arcrank=-1';\" value='稿件审核' />"; | |||||
$CheckUserSend = "<button type='button' class='btn btn-secondary btn-sm' onClick=\"location='content_sg_list.php?cid={$cid}&channelid={$channelid}&dopost=listArchives&arcrank=-1';\">稿件审核</button>"; | |||||
} | } | ||||
$query = "SELECT arc.aid,arc.aid as id,arc.typeid,arc.arcrank,arc.flag,arc.senddate,arc.channel,arc.title,arc.mid,arc.click,tp.typename,ch.typename as channelname | $query = "SELECT arc.aid,arc.aid as id,arc.typeid,arc.arcrank,arc.flag,arc.senddate,arc.channel,arc.title,arc.mid,arc.click,tp.typename,ch.typename as channelname | ||||
@@ -62,7 +62,7 @@ if (!empty($noeditor)) | |||||
<head> | <head> | ||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | <meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | ||||
<title>图片浏览器</title> | <title>图片浏览器</title> | ||||
<link href='../../static/img/base.css' rel='stylesheet' type='text/css'> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | <style> | ||||
.linerow {border-bottom: 1px solid #CBD8AC;} | .linerow {border-bottom: 1px solid #CBD8AC;} | ||||
.napisdiv {left:40;top:3;width:150px;height:100px;position:absolute;z-index:3;display:none;} | .napisdiv {left:40;top:3;width:150px;height:100px;position:absolute;z-index:3;display:none;} | ||||
@@ -54,7 +54,7 @@ if (!empty($noeditor)) | |||||
<head> | <head> | ||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | <meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | ||||
<title>媒体文件管理器</title> | <title>媒体文件管理器</title> | ||||
<link href='../../images/img/base.css' rel='stylesheet' type='text/css'> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | <style> | ||||
.linerow {border-bottom: 1px solid #CBD8AC;} | .linerow {border-bottom: 1px solid #CBD8AC;} | ||||
</style> | </style> | ||||
@@ -51,7 +51,7 @@ if (!empty($noeditor)) | |||||
<head> | <head> | ||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | <meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | ||||
<title>软件管理器</title> | <title>软件管理器</title> | ||||
<link href='../../images/img/base.css' rel='stylesheet' type='text/css'> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | <style> | ||||
.linerow {border-bottom: 1px solid #CBD8AC;} | .linerow {border-bottom: 1px solid #CBD8AC;} | ||||
</style> | </style> | ||||
@@ -40,7 +40,7 @@ if(empty($comeback)) | |||||
<head> | <head> | ||||
<meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | <meta http-equiv='Content-Type' content='text/html; charset=<?php echo $cfg_soft_lang; ?>'> | ||||
<title>模板管理器</title> | <title>模板管理器</title> | ||||
<link href='../../images/img/base.css' rel='stylesheet' type='text/css'> | |||||
<link href='../css/base.css' rel='stylesheet' type='text/css'> | |||||
<style> | <style> | ||||
.linerow {border-bottom: 1px solid #CBD8AC;} | .linerow {border-bottom: 1px solid #CBD8AC;} | ||||
</style> | </style> | ||||
@@ -114,7 +114,6 @@ $menusMain = " | |||||
<m:item name='系统基本参数' link='sys_info.php' rank='sys_Edit' target='main' /> | <m:item name='系统基本参数' link='sys_info.php' rank='sys_Edit' target='main' /> | ||||
<m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' /> | <m:item name='系统用户管理' link='sys_admin_user.php' rank='sys_User' target='main' /> | ||||
<m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' /> | <m:item name='用户组设定' link='sys_group.php' rank='sys_Group' target='main' /> | ||||
<m:item name='服务器分布/远程' link='sys_multiserv.php' rank='sys_Group' target='main' /> | |||||
<m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | <m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | ||||
<m:item name='验证安全设置' link='sys_safe.php' rank='sys_verify' target='main' /> | <m:item name='验证安全设置' link='sys_safe.php' rank='sys_verify' target='main' /> | ||||
<m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' /> | <m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' /> | ||||
@@ -11,11 +11,11 @@ | |||||
function checkSubmitAlb() { | function checkSubmitAlb() { | ||||
if (document.form1.title.value == '') { | if (document.form1.title.value == '') { | ||||
alert("档案标题不能为空!"); | |||||
ShowMsg("档案标题不能为空!"); | |||||
return false; | return false; | ||||
} | } | ||||
if (document.form1.typeid.value == 0) { | if (document.form1.typeid.value == 0) { | ||||
alert("请选择档案的主类别!"); | |||||
ShowMsg("请选择档案的主类别!"); | |||||
return false; | return false; | ||||
} | } | ||||
document.form1.imagebody.value = $Obj('copyhtml').innerHTML; | document.form1.imagebody.value = $Obj('copyhtml').innerHTML; | ||||
@@ -192,7 +192,6 @@ function InitPage() { | |||||
if (selsource) { selsource.onmousedown = function (e) { SelectSource(e); } } | if (selsource) { selsource.onmousedown = function (e) { SelectSource(e); } } | ||||
if (selwriter) { selwriter.onmousedown = function (e) { SelectWriter(e); } } | if (selwriter) { selwriter.onmousedown = function (e) { SelectWriter(e); } } | ||||
if (titlechange) { titlechange.onchange = function (e) { TestHasTitle(e); } } | if (titlechange) { titlechange.onchange = function (e) { TestHasTitle(e); } } | ||||
if (colorbt) { colorbt.onmousedown = function (e) { ShowColor2(e); } } | |||||
} | } | ||||
function OpenMyWin(surl) { | function OpenMyWin(surl) { | ||||
@@ -783,7 +782,7 @@ $(document).ready(function () { | |||||
}, 500); | }, 500); | ||||
} | } | ||||
if (typeof $.daterangepicker !== "undefined") { | |||||
if ($.fn.daterangepicker) { | |||||
$('.datepicker').daterangepicker({ | $('.datepicker').daterangepicker({ | ||||
"singleDatePicker": true, | "singleDatePicker": true, | ||||
"autoApply": true, | "autoApply": true, | ||||
@@ -1,163 +0,0 @@ | |||||
<!-- | |||||
function ShowAddCatalog(){ | |||||
$Obj('addCatalog').style.display='block'; | |||||
} | |||||
function CloseAddCatalog(){ | |||||
$Obj('addCatalog').style.display='none'; | |||||
} | |||||
function CloseEditCatalog(){ | |||||
$Obj('editCatalog').style.display='none'; | |||||
} | |||||
function DelCatalog(cid){ | |||||
if(window.confirm("你确实要删除这个分类么?")) | |||||
{ | |||||
location.href='story_catalog.php?catid='+cid+'&action=del'; | |||||
} | |||||
} | |||||
function DelStory(bid){ | |||||
if(window.confirm("你确实要删除这本图书么?")){ | |||||
location.href='story_do.php?bid='+bid+'&action=delbook'; | |||||
} | |||||
} | |||||
function DelStoryContent(cid){ | |||||
if(window.confirm("删除内容后章节的其它内容排列序号不会发生变化,\r\n这可能导致管理混乱,你确实要删除这篇内容么?")){ | |||||
location.href='story_do.php?cid='+cid+'&action=delcontent'; | |||||
} | |||||
} | |||||
function CloseLayer(layerid){ | |||||
$Obj(layerid).style.display='none'; | |||||
} | |||||
//预览内容 | |||||
function PreViewCt(cid,booktype){ | |||||
if(booktype==0){ | |||||
window.open("../book/story.php?id="+cid); | |||||
}else{ | |||||
window.open("../book/show-photo.php?id="+cid); | |||||
} | |||||
} | |||||
//编辑栏目 | |||||
function EditCatalog(cid){ | |||||
$Obj('editCatalog').style.display='block'; | |||||
var myajax = new DedeAjax($Obj('editCatalogBody'),false,true,"","","请稍候,正在载入..."); | |||||
myajax.SendGet2('story_catalog.php?catid='+cid+'&action=editload'); | |||||
DedeXHTTP = null; | |||||
} | |||||
//图书章节,反向选择 | |||||
function ReSelChapter(){ | |||||
var ems = document.getElementsByName('ids[]'); | |||||
for(var i=0;i<ems.length;i++){ | |||||
if(!ems[i].checked) ems[i].checked = true; | |||||
else ems[i].checked = false; | |||||
} | |||||
} | |||||
//删除整章节图书内容 | |||||
function DelStoryChapter(cid){ | |||||
if(window.confirm("删除章节会删除章节下的所有内容,你确实要删除么?")){ | |||||
location.href='story_do.php?cid='+cid+'&action=delChapter'; | |||||
} | |||||
} | |||||
//增加图书的检查 | |||||
function checkSubmitAdd() | |||||
{ | |||||
if(document.form1.catid.value==0){ | |||||
alert("请选择连载内容的栏目!"); | |||||
document.form1.bookname.focus(); | |||||
return false; | |||||
} | |||||
if(document.form1.bookname.value==""){ | |||||
alert("连载图书名称不能为空!"); | |||||
document.form1.bookname.focus(); | |||||
return false; | |||||
} | |||||
} | |||||
//增加小说内容的检查 | |||||
function checkSubmitAddCt() | |||||
{ | |||||
if(document.form1.title.value==0){ | |||||
alert("文章标题不能为空!"); | |||||
document.form1.title.focus(); | |||||
return false; | |||||
} | |||||
if(document.form1.chapterid.selectedIndex==-1 && document.form1.chapternew.value==''){ | |||||
alert("文章所属章节和新章节名称不能同时为空!"); | |||||
return false; | |||||
} | |||||
} | |||||
//增加漫画内容的检查 | |||||
function checkSubmitAddPhoto() | |||||
{ | |||||
if(document.form1.chapterid.selectedIndex==-1 && document.form1.chapternew.value==''){ | |||||
alert("文章所属章节和新章节名称不能同时为空!"); | |||||
return false; | |||||
} | |||||
document.form1.photonum.value = endNum; | |||||
} | |||||
//显示选择框与新增章节选项 | |||||
function ShowHideSelChapter(selfield,newfield) | |||||
{ | |||||
if(document.form1.addchapter.checked){ | |||||
$Obj(selfield).style.display = 'none'; | |||||
$Obj(newfield).style.display = 'block'; | |||||
}else{ | |||||
$Obj(selfield).style.display = 'block'; | |||||
$Obj(newfield).style.display = 'none'; | |||||
} | |||||
} | |||||
function selAll() | |||||
{ | |||||
for(i=0;i<document.form2.ids.length;i++) | |||||
{ | |||||
if(!document.form2.ids[i].checked){ | |||||
document.form2.ids[i].checked=true; | |||||
} | |||||
} | |||||
} | |||||
function noSelAll() | |||||
{ | |||||
for(i=0;i<document.form2.ids.length;i++) | |||||
{ | |||||
if(document.form2.ids[i].checked){ | |||||
document.form2.ids[i].checked=false; | |||||
} | |||||
} | |||||
} | |||||
//获得选中文件的文件名 | |||||
function getCheckboxItem() | |||||
{ | |||||
var allSel=""; | |||||
if(document.form2.ids.value) return document.form2.ids.value; | |||||
for(i=0;i<document.form2.ids.length;i++) | |||||
{ | |||||
if(document.form2.ids[i].checked){ | |||||
allSel += (allSel=='' ? document.form2.ids[i].value : ","+document.form2.ids[i].value); | |||||
} | |||||
} | |||||
return allSel; | |||||
} | |||||
//删除多选 | |||||
function DelAllBooks() | |||||
{ | |||||
if(window.confirm("你确实要删除这些图书么?")){ | |||||
var selbook = getCheckboxItem(); | |||||
location.href='story_do.php?bid='+selbook+'&action=delbook'; | |||||
} | |||||
} | |||||
--> |
@@ -10,6 +10,7 @@ | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<link href="css/albumupload.css" rel="stylesheet" type="text/css" /> | <link href="css/albumupload.css" rel="stylesheet" type="text/css" /> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | <script language="javascript" src="../static/js/jquery.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script type="text/javascript" src="../static/js/dedeajax2.js"></script> | <script type="text/javascript" src="../static/js/dedeajax2.js"></script> | ||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | <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/moment.min.js"></script> | ||||
@@ -19,7 +20,6 @@ | |||||
<script type="text/javascript" src="js/handlers.js"></script> | <script type="text/javascript" src="js/handlers.js"></script> | ||||
<link href="../static/css/cropper.min.css" rel="stylesheet"> | <link href="../static/css/cropper.min.css" rel="stylesheet"> | ||||
<script src="../static/js/cropper.min.js"></script> | <script src="../static/js/cropper.min.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | <link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | ||||
<script language="javascript"> | <script language="javascript"> | ||||
var swfu = null; | var swfu = null; | ||||
@@ -17,12 +17,12 @@ body { | |||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | <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/moment.min.js"></script> | ||||
<script type="text/javascript" src="../static/js/daterangepicker.js"></script> | <script type="text/javascript" src="../static/js/daterangepicker.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script type="text/javascript" src="js/main.js"></script> | <script type="text/javascript" src="js/main.js"></script> | ||||
<script type="text/javascript" src="js/album.js"></script> | <script type="text/javascript" src="js/album.js"></script> | ||||
<script type="text/javascript" src="js/handlers.js"></script> | <script type="text/javascript" src="js/handlers.js"></script> | ||||
<link href="../static/css/cropper.min.css" rel="stylesheet"> | <link href="../static/css/cropper.min.css" rel="stylesheet"> | ||||
<script src="../static/js/cropper.min.js"></script> | <script src="../static/js/cropper.min.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | <link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | ||||
<script language="javascript" type="text/javascript"> | <script language="javascript" type="text/javascript"> | ||||
var swfu = null; | var swfu = null; | ||||
@@ -38,11 +38,11 @@ | |||||
var arctype = 'article'; | var arctype = 'article'; | ||||
function checkSubmit() { | function checkSubmit() { | ||||
if (document.form1.title.value == '') { | if (document.form1.title.value == '') { | ||||
alert('文章标题不能为空!'); | |||||
ShowMsg('文章标题不能为空!'); | |||||
return false; | return false; | ||||
} | } | ||||
if (document.form1.typeid.value == 0) { | if (document.form1.typeid.value == 0) { | ||||
alert('请选择档案的主类别!'); | |||||
ShowMsg('请选择档案的主类别!'); | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@@ -29,7 +29,7 @@ | |||||
var arctype = 'article'; | var arctype = 'article'; | ||||
function checkSubmit() { | function checkSubmit() { | ||||
if (document.form1.title.value == '') { | if (document.form1.title.value == '') { | ||||
alert('文章标题不能为空!'); | |||||
ShowMsg('文章标题不能为空!'); | |||||
document.form1.title.focus(); | document.form1.title.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
@@ -41,26 +41,26 @@ | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" | |||||
style=" background:#cfcfcf;"> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" | |||||
class="table maintable table-bordered mt-3" style=" background:#cfcfcf;"> | |||||
<tr> | <tr> | ||||
<td height="20" colspan="7" bgcolor="#EDF9D5" background='images/tbg.gif'> | <td height="20" colspan="7" bgcolor="#EDF9D5" background='images/tbg.gif'> | ||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | <table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | ||||
<tr> | <tr> | ||||
<td width="30%" style="padding-left:10px;"><strong>点卡业务管理:</strong> </td> | <td width="30%" style="padding-left:10px;"><strong>点卡业务管理:</strong> </td> | ||||
<td width="45%" align="right" style="padding-top:4px;"> <input type="button" class='np coolbg' name="ss13" | |||||
value="未使用" style="width:50px;margin-right:6px" onClick="location='cards_manage.php?isexp=0';"> | |||||
<input type="button" class='np coolbg inputbut' name="ss14" value="已售出" | |||||
style="width:50px;margin-right:6px" onClick="location='cards_manage.php?isexp=1';"> | |||||
<input type="button" class='np coolbg inputbut' name="ss15" value="已使用" | |||||
style="width:50px;margin-right:6px" onClick="location='cards_manage.php?isexp=-1';"> | |||||
<input type="button" class='np coolbg inputbut' name="ss16" value="全部" style="width:40px;margin-right:6px" | |||||
onClick="location='cards_manage.php';"> | |||||
<td width="45%" align="right" style="padding-top:4px;"> | |||||
<button type="button" onClick="location='cards_manage.php?isexp=0';" | |||||
class="btn btn-secondary btn-sm">未使用</button> | |||||
<button type="button" onClick="location='cards_manage.php?isexp=1';" | |||||
class="btn btn-secondary btn-sm">已售出</button> | |||||
<button type="button" onClick="location='cards_manage.php?isexp=-1';" | |||||
class="btn btn-secondary btn-sm">已使用</button> | |||||
<button type="button" onClick="location='cards_manage.php';" class="btn btn-secondary btn-sm">全部</button> | |||||
</td> | </td> | ||||
<td width="25%" align="right" style="padding-top:4px;"> <input type="button" class='np coolbg inputbut' | |||||
name="ss1" value="生成点卡" style="width:70px;margin-right:6px" onClick="location='cards_make.php';"> | |||||
<input type="button" class='np coolbg inputbut' name="ss12" value="点卡产品分类" | |||||
style="width:90px;margin-right:6px" onClick="location='cards_type.php';"> | |||||
<td width="25%" align="right" style="padding-top:4px;"> | |||||
<button type="button" onClick="location='cards_make.php';" class="btn btn-secondary btn-sm">生成点卡</button> | |||||
<button type="button" onClick="location='cards_type.php';" | |||||
class="btn btn-secondary btn-sm">点卡产品分类</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -91,8 +91,8 @@ | |||||
</form> | </form> | ||||
<tr> | <tr> | ||||
<td height="30" colspan="7" bgcolor="#ffffff"> | <td height="30" colspan="7" bgcolor="#ffffff"> | ||||
<input type="button" class='np coolbg inputbut' name="b7" value="反选" style="width:40" onClick="ReSel();"> | |||||
<input type="button" class='np coolbg inputbut' name="b7" value="删除" style="width:40" onClick="DelSel();"> | |||||
<button type="button" onClick="ReSel();" class="btn btn-secondary btn-sm">反选</button> | |||||
<button type="button" onClick="DelSel();" class="btn btn-secondary btn-sm">删除</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -1,24 +1,30 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#cfcfcf;"> | |||||
<form name="form1" action="cards_type.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save"> | |||||
<tr> | |||||
<td height="28" colspan="4" bgcolor="#EDF9D5" background="images/tbg.gif"> <strong>点卡产品分类: </strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2"> | |||||
<td width="26%" height="24" align="center" valign="top">产品名称</td> | |||||
<td width="27%" align="center" valign="top">点数(金币数)</td> | |||||
<td width="30%" align="center">价格</td> | |||||
<td width="17%" align="center">状态</td> | |||||
</tr> | |||||
<?php | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" | |||||
style=" background:#cfcfcf;"> | |||||
<form name="form1" action="cards_type.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save"> | |||||
<tr> | |||||
<td height="28" colspan="4" bgcolor="#EDF9D5" background="images/tbg.gif"> <strong>点卡产品分类: </strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2"> | |||||
<td width="26%" height="24" align="center" valign="top">产品名称</td> | |||||
<td width="27%" align="center" valign="top">点数(金币数)</td> | |||||
<td width="30%" align="center">价格</td> | |||||
<td width="17%" align="center">状态</td> | |||||
</tr> | |||||
<?php | |||||
$dsql->SetQuery("Select * From #@__moneycard_type"); | $dsql->SetQuery("Select * From #@__moneycard_type"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
$k=0; | $k=0; | ||||
@@ -26,51 +32,57 @@ | |||||
{ | { | ||||
$k++; | $k++; | ||||
?> | ?> | ||||
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->tid?>"> | |||||
<tr align="center" bgcolor="#FFFFFF"> | |||||
<td height="24" valign="top"> | |||||
<input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" class='pubinputs' style="width:90%" /> | |||||
</td> | |||||
<td height="24" valign="top"> | |||||
<input name="num_<?php echo $k?>" value="<?php echo $row->num?>" type="text" id="num_<?php echo $k?>" class='pubinputs' style="width:80%" /> | |||||
</td> | |||||
<td> | |||||
<input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" class='pubinputs' style="width:80%" /> | |||||
(元) | |||||
</td> | |||||
<td> | |||||
<input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1' class='np' /> | |||||
保留 | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->tid?>"> | |||||
<tr align="center" bgcolor="#FFFFFF"> | |||||
<td height="24" valign="top"> | |||||
<input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" | |||||
class='pubinputs' style="width:90%" /> | |||||
</td> | |||||
<td height="24" valign="top"> | |||||
<input name="num_<?php echo $k?>" value="<?php echo $row->num?>" type="text" id="num_<?php echo $k?>" | |||||
class='pubinputs' style="width:80%" /> | |||||
</td> | |||||
<td> | |||||
<input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" | |||||
class='pubinputs' style="width:80%" /> | |||||
(元) | |||||
</td> | |||||
<td> | |||||
<input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1' | |||||
class='np' /> | |||||
保留 | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
<input type="hidden" name="idend" value="<?php echo $k?>"> | |||||
<tr bgcolor="#F8FCF1"> | |||||
<td height="24" colspan="4" valign="top" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>新增一个点卡产品类型:</strong></td> | |||||
</tr> | |||||
<tr height="24" align="center" bgcolor="#FFFFFF"> | |||||
<td valign="top"> | |||||
<input name="pname_new" type="text" id="pname_new" class='pubinputs' style="width:90%" /> | |||||
</td> | |||||
<td valign="top"> | |||||
<input name="num_new" value="100" type="text" id="num_new" class='pubinputs' style="width:80%" /> | |||||
</td> | |||||
<td valign="top"> | |||||
<input name="money_new" type="text" id="money_new" class='pubinputs' style='width:80%' value="30" /> | |||||
(元) | |||||
</td> | |||||
<td align="center" bgcolor="#FFFFFF"> | |||||
<input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np' /> | |||||
新增 </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="34" colspan="4" align="center" bgcolor="#F9FCEF"> | |||||
<input name="imageField" type="submit" class="np coolbg" value="确定" /> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
<input type="hidden" name="idend" value="<?php echo $k?>"> | |||||
<tr bgcolor="#F8FCF1"> | |||||
<td height="24" colspan="4" valign="top" bgcolor="#F9FCEF" style="padding-left:10px;"> | |||||
<strong>新增一个点卡产品类型:</strong></td> | |||||
</tr> | |||||
<tr height="24" align="center" bgcolor="#FFFFFF"> | |||||
<td valign="top"> | |||||
<input name="pname_new" type="text" id="pname_new" class='pubinputs' style="width:90%" /> | |||||
</td> | |||||
<td valign="top"> | |||||
<input name="num_new" value="100" type="text" id="num_new" class='pubinputs' style="width:80%" /> | |||||
</td> | |||||
<td valign="top"> | |||||
<input name="money_new" type="text" id="money_new" class='pubinputs' style='width:80%' value="30" /> | |||||
(元) | |||||
</td> | |||||
<td align="center" bgcolor="#FFFFFF"> | |||||
<input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np' /> | |||||
新增 </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="34" colspan="4" align="center" bgcolor="#F9FCEF"> | |||||
<button type="submit" class="btn btn-secondary">确定</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,273 +1,316 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>栏目管理--快速创建栏目</title> | |||||
<script type="text/javascript" src="../static/js/jquery.js"></script> | |||||
<script type="text/javascript"> | |||||
var $ = jQuery; | |||||
$(document).ready(function(){ | |||||
//删除按钮事件 | |||||
$("#addQuick .del").click(function() { | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>栏目管理--快速创建栏目</title> | |||||
<script type="text/javascript" src="../static/js/jquery.js"></script> | |||||
<script type="text/javascript"> | |||||
var $ = jQuery; | |||||
$(document).ready(function () { | |||||
//删除按钮事件 | |||||
$("#addQuick .del").click(function () { | |||||
$(this).parents(".repeat").remove(); | $(this).parents(".repeat").remove(); | ||||
}); | |||||
//添加按钮事件 | |||||
$("#add").click(function(){ | |||||
var id = $("#addQuick tr").prevAll("tr").length + 1; | |||||
}); | |||||
//添加按钮事件 | |||||
$("#add").click(function () { | |||||
var id = $("#addQuick tr").prevAll("tr").length + 1; | |||||
$("#addQuick tr:eq(1)").clone(true).addClass("repeat") | $("#addQuick tr:eq(1)").clone(true).addClass("repeat") | ||||
.find(".rank input") | |||||
.attr("value",function(){return id}) | |||||
.end() | |||||
.find(".pubinputs") | |||||
.attr("name",function(){return this.name+id}) | |||||
.attr("id",function(){return this.id+id}) | |||||
.end() | |||||
.appendTo($("#addQuick")); | |||||
}); | |||||
//删除按钮事件 | |||||
$("#addQuickRel .del").click(function() { | |||||
.find(".rank input") | |||||
.attr("value", function () { return id }) | |||||
.end() | |||||
.find(".pubinputs") | |||||
.attr("name", function () { return this.name + id }) | |||||
.attr("id", function () { return this.id + id }) | |||||
.end() | |||||
.appendTo($("#addQuick")); | |||||
}); | |||||
//删除按钮事件 | |||||
$("#addQuickRel .del").click(function () { | |||||
$(this).parents(".repeat").remove(); | $(this).parents(".repeat").remove(); | ||||
}); | |||||
//添加按钮事件 | |||||
$("#addrel").click(function(){ | |||||
var id = $("#addQuickRel tr").prevAll("tr").length + 1; | |||||
}); | |||||
//添加按钮事件 | |||||
$("#addrel").click(function () { | |||||
var id = $("#addQuickRel tr").prevAll("tr").length + 1; | |||||
$("#addQuickRel tr:eq(1)").clone(true).addClass("repeat") | $("#addQuickRel tr:eq(1)").clone(true).addClass("repeat") | ||||
.find(".rank input") | |||||
.attr("value",function(){return id}) | |||||
.end() | |||||
.find(".pubinputs") | |||||
.attr("name",function(){return this.name+id}) | |||||
.attr("id",function(){return this.id+id}) | |||||
.end() | |||||
.appendTo($("#addQuickRel")); | |||||
.find(".rank input") | |||||
.attr("value", function () { return id }) | |||||
.end() | |||||
.find(".pubinputs") | |||||
.attr("name", function () { return this.name + id }) | |||||
.attr("id", function () { return this.id + id }) | |||||
.end() | |||||
.appendTo($("#addQuickRel")); | |||||
}); | |||||
}); | }); | ||||
}); | |||||
</script> | |||||
<script language="javascript"> | |||||
function ShowHide(objname){ | |||||
var obj = document.getElementById(objname); | |||||
if(obj.style.display == "block" || obj.style.display == "") | |||||
obj.style.display = "none"; | |||||
else | |||||
obj.style.display = "block"; | |||||
} | |||||
function ShowObj(objname){ | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "block"; | |||||
} | |||||
function HideObj(objname){ | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "none"; | |||||
} | |||||
function showSeltype(objname) | |||||
{ | |||||
if(objname.value != 0) | |||||
{ | |||||
$("#addQuickRel").show(); | |||||
$("#pathtype").show(); | |||||
$("#addQuick").hide(); | |||||
$("#savetype").val('rel'); | |||||
} else { | |||||
$("#addQuickRel").hide(); | |||||
$("#addQuick").show(); | |||||
$("#pathtype").hide(); | |||||
$("#savetype").val(''); | |||||
} | |||||
} | |||||
</script> | |||||
<link href='css/base.css' rel='stylesheet' type='text/css'> | |||||
</script> | |||||
<script language="javascript"> | |||||
function ShowHide(objname) { | |||||
var obj = document.getElementById(objname); | |||||
if (obj.style.display == "block" || obj.style.display == "") | |||||
obj.style.display = "none"; | |||||
else | |||||
obj.style.display = "block"; | |||||
} | |||||
function ShowObj(objname) { | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "block"; | |||||
} | |||||
function HideObj(objname) { | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "none"; | |||||
} | |||||
function showSeltype(objname) { | |||||
if (objname.value != 0) { | |||||
$("#addQuickRel").show(); | |||||
$("#pathtype").show(); | |||||
$("#addQuick").hide(); | |||||
$("#savetype").val('rel'); | |||||
} else { | |||||
$("#addQuickRel").hide(); | |||||
$("#addQuick").show(); | |||||
$("#pathtype").hide(); | |||||
$("#savetype").val(''); | |||||
} | |||||
} | |||||
</script> | |||||
<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'> | |||||
<style> | |||||
.table { | |||||
margin: 0; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body leftmargin='15' topmargin='10'> | <body leftmargin='15' topmargin='10'> | ||||
<form name="form1" action="catalog_add.php" method="post"> | |||||
<input type="hidden" name="dopost" value="savequick" /> | |||||
<input type="hidden" name="savetype" value="" id="savetype"/> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" style="BORDER-COLLAPSE: collapse"> | |||||
<tr> | |||||
<td width="100%" height="20" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td height="30"><img height='14' src='images/book1.gif' width='20' /> <a href="catalog_main.php"><u>栏目管理</u></a> >> 批量增加栏目 </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="100%" height="1" background="images/sp_bg.gif"></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td height="10"></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="95" align="left" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0" > | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF"><table width="84" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote1.gif"> 常规选项 </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#ffffff;text-align:left;"> | |||||
<tr> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>公用参数:</strong></td> | |||||
<td bgcolor="#F9FCEF"></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否支持投稿:</td> | |||||
<td class='bline'><input type='radio' name='issend' value='0' class='np' /> | |||||
不支持 | |||||
| |||||
<input type='radio' name='issend' value='1' class='np' checked='1' /> | |||||
支持 </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">目录保存位置:</td> | |||||
<td class='bline'><input name="referpath" type="radio" id="truepath1" class="np" value="parent" checked='1' /> | |||||
默认HMTL目录( | |||||
<?php | |||||
<form name="form1" action="catalog_add.php" method="post"> | |||||
<input type="hidden" name="dopost" value="savequick" /> | |||||
<input type="hidden" name="savetype" value="" id="savetype" /> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" | |||||
style="BORDER-COLLAPSE: collapse" class="mt-3"> | |||||
<tr> | |||||
<td width="100%" height="20" valign="top"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td height="30"><img height='14' src='images/book1.gif' width='20' /> <a | |||||
href="catalog_main.php"><u>栏目管理</u></a> >> 批量增加栏目 </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="100%" height="1" background="images/sp_bg.gif"></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td height="10"></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="95" align="left" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF"> | |||||
<table width="84" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote1.gif"> 常规选项 </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" | |||||
style="border:1px solid #cfcfcf;background:#ffffff;text-align:left;" class="table"> | |||||
<tr> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>公用参数:</strong></td> | |||||
<td bgcolor="#F9FCEF"></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否支持投稿:</td> | |||||
<td class='bline'> | |||||
<label><input type='radio' name='issend' value='0' class='np' /> | |||||
不支持</label> | |||||
| |||||
<label><input type='radio' name='issend' value='1' class='np' checked='1' /> | |||||
支持</label> </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">目录保存位置:</td> | |||||
<td class='bline'> | |||||
<input name="referpath" type="radio" id="truepath1" class="np" value="parent" | |||||
checked='1' /> | |||||
<label for="truepath1">默认HMTL目录( | |||||
<?php | |||||
$pardir = '{cmspath}'.$cfg_arcdir; | $pardir = '{cmspath}'.$cfg_arcdir; | ||||
if(!empty($typedir)) $pardir = $typedir.'/'; | if(!empty($typedir)) $pardir = $typedir.'/'; | ||||
$pardir = preg_replace("#\/{1,}#", '/', $pardir); | $pardir = preg_replace("#\/{1,}#", '/', $pardir); | ||||
echo $pardir; | echo $pardir; | ||||
?> | ?> | ||||
) | |||||
<input name="referpath" type="radio" id="truepath2" class="np" value="cmspath" /> | |||||
CMS根目录 | |||||
<input name="nextdir" type="hidden" id="nextdir" value="<?php echo $pardir; ?>" /> | |||||
<span id="pathtype" style="display:none"><input name="referpath" type="radio" id="truepath3" class="np" value="typepath" /> | |||||
隶属栏目所属的目录</span></td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">隶属栏目:</td> | |||||
<td class='bline'> | |||||
<select name='reid' onchange="showSeltype(this)"> | |||||
<option value='0'>选择所属目录... </option> | |||||
<?php echo $typeOptions;?> | |||||
</select> | |||||
(默认为顶级栏目) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">内容模型: </td> | |||||
<td class='bline'><select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)"> | |||||
<?php | |||||
)</label> | |||||
<input name="referpath" type="radio" id="truepath2" class="np" value="cmspath" /> | |||||
<label for="truepath2">CMS根目录</label> | |||||
<input name="nextdir" type="hidden" id="nextdir" value="<?php echo $pardir; ?>" /> | |||||
<span id="pathtype" style="display:none"><input name="referpath" type="radio" id="truepath3" class="np" | |||||
value="typepath" /> | |||||
隶属栏目所属的目录</span></td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">隶属栏目:</td> | |||||
<td class='bline'> | |||||
<select name='reid' onchange="showSeltype(this)"> | |||||
<option value='0'>选择所属目录... </option> | |||||
<?php echo $typeOptions;?> | |||||
</select> | |||||
(默认为顶级栏目) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">内容模型: </td> | |||||
<td class='bline'><select name="channeltype" id="channeltype" style="width:200px" | |||||
onChange="ParTemplet(this)"> | |||||
<?php | |||||
foreach($channelArray as $k=>$arr) | foreach($channelArray as $k=>$arr) | ||||
{ | { | ||||
if($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | if($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | ||||
else echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | else echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">栏目列表选项:</td> | |||||
<td class='bline'><input type='radio' name='isdefault' value='1' class='np' checked='1' /> | |||||
链接到默认页 | |||||
<input type='radio' name='isdefault' value='0' class='np' /> | |||||
链接到列表第一页 | |||||
<input type='radio' name='isdefault' value='-1' class='np' /> | |||||
使用动态页 </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">默认页的名称: </td> | |||||
<td class='bline'><input name="defaultname" type="text" value="index.html" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr id='helpvar2' style='display:none'> | |||||
<td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td> | |||||
<td height="24" bgcolor="#F3F7EA"> {Y}、{M}、{D} 年月日<br/> | |||||
{timestamp} INT类型的UNIX时间戳<br/> | |||||
{aid} 文章ID<br/> | |||||
{pinyin} 拼音+文章ID<br/> | |||||
{py} 拼音部首+文章ID<br/> | |||||
{typedir} 栏目目录 <br/> | |||||
{cc} 日期+ID混编后用转换为适合的字母 <br/> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" class='bline' style="padding-left:10px;">文章命名规则:</td> | |||||
<td class='bline'><input name="namerule" type="text" id="namerule" value="{typedir}/{Y}{M}{D}/{aid}.html" size="40" class="pubinputs" /> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar2')" /> </td> | |||||
</tr> | |||||
<tr id='helpvar3' style='display:none'> | |||||
<td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td> | |||||
<td bgcolor="#F3F7EA">{page} 列表的页码</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">列表命名规则:</td> | |||||
<td><input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" size="40" class="pubinputs" /> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>栏目填写:</strong></td> | |||||
<td bgcolor="#F9FCEF"></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan='2' style="padding:5px 0px 8px 10px"> | |||||
<table id="addQuick" width="800" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf"> | |||||
<tbody> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td width="60" height="28">排序</td> | |||||
<td width="170">顶级栏目名称</td> | |||||
<td width="520">子栏目(用"目录名称1,目录名称2..."这样表示多个栏目)</td> | |||||
<td width="50" align="center"><input name="" type="button" value="添加" id="add" class="coolbt"></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF" height="32" align="center"> | |||||
<td class="rank" style="padding:5px;"><input type="hidden" name="posttype" value="" class="pubinputs" /> | |||||
<input type="text" name="rank" id="rank" value="1" class="pubinputs" style="width:50px;" /></td> | |||||
<td align='center'><input type="text" name="toptype" id="toptype" class="pubinputs" style="width:160px;" /></td> | |||||
<td><input type="text" name="sontype" id="sontype" class="pubinputs" style="width:480px;" /></td> | |||||
<td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td> | |||||
</tr> | |||||
<?php for($i=2;$i<=10;$i++) { ?> | |||||
<tr bgcolor="#FFFFFF" height="32" class="repeat" align="center"> | |||||
<td class="rank"><input type="hidden" name="posttype<?php echo $i; ?>" value="<?php echo $i; ?>" /> | |||||
<input type="text" name="rank<?php echo $i; ?>" id="rank<?php echo $i; ?>" value="<?php echo $i; ?>" class="pubinputs" style="width:50px;" /></td> | |||||
<td align='center'><input type="text" name="toptype<?php echo $i; ?>" id="toptype<?php echo $i; ?>" class="pubinputs" style="width:160px;" /></td> | |||||
<td><input type="text" name="sontype<?php echo $i; ?>" id="sontype<?php echo $i; ?>" class="pubinputs" style="width:480px;" /></td> | |||||
<td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td> | |||||
</tr> | |||||
<?php } ?> | |||||
</tbody> | |||||
</table> | |||||
<table id="addQuickRel" width="302" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" style="display:none"> | |||||
<tbody> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td width="60" height="28">排序</td> | |||||
<td width="170">栏目名称</td> | |||||
<td width="50" align="center"><input name="" type="button" value="添加" id="addrel" class="coolbt"></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF" height="32" align="center"> | |||||
<td class="rank" style="padding:5px;"><input type="hidden" name="posttype" value="" class="pubinputs" /> | |||||
<input type="text" name="rank" id="rank" value="1" class="pubinputs" style="width:50px;" /></td> | |||||
<td align='center'><input type="text" name="reltype" id="reltype" class="pubinputs" style="width:160px;" /></td> | |||||
<td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td> | |||||
</tr> | |||||
<?php for($i=2;$i<=10;$i++) { ?> | |||||
<tr bgcolor="#FFFFFF" height="32" class="repeat" align="center"> | |||||
<td class="rank"><input type="hidden" name="posttype<?php echo $i; ?>" value="<?php echo $i; ?>" /> | |||||
<input type="text" name="rank<?php echo $i; ?>" id="rank<?php echo $i; ?>" value="<?php echo $i; ?>" class="pubinputs" style="width:50px;" /></td> | |||||
<td align='center'><input type="text" name="reltype<?php echo $i; ?>" id="reltype<?php echo $i; ?>" class="pubinputs" style="width:160px;" /></td> | |||||
<td align="center"><input name="" type="button" value="删除" id="add" class="del coolbt"></td> | |||||
</tr> | |||||
<?php } ?> | |||||
</tbody> | |||||
</table> | |||||
</select> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">栏目列表选项:</td> | |||||
<td class='bline'> | |||||
<label><input type='radio' name='isdefault' value='1' class='np' checked='1' /> | |||||
链接到默认页</label> | |||||
<label><input type='radio' name='isdefault' value='0' class='np' /> | |||||
链接到列表第一页</label> | |||||
<label><input type='radio' name='isdefault' value='-1' class='np' /> | |||||
使用动态页</label> </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">默认页的名称: </td> | |||||
<td class='bline'><input name="defaultname" type="text" value="index.html" class="pubinputs" /></td> | |||||
</tr> | |||||
<tr id='helpvar2' style='display:none'> | |||||
<td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td> | |||||
<td height="24" bgcolor="#F3F7EA"> {Y}、{M}、{D} 年月日<br /> | |||||
{timestamp} INT类型的UNIX时间戳<br /> | |||||
{aid} 文章ID<br /> | |||||
{pinyin} 拼音+文章ID<br /> | |||||
{py} 拼音部首+文章ID<br /> | |||||
{typedir} 栏目目录 <br /> | |||||
{cc} 日期+ID混编后用转换为适合的字母 <br /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" class='bline' style="padding-left:10px;">文章命名规则:</td> | |||||
<td class='bline'><input name="namerule" type="text" id="namerule" value="{typedir}/{Y}{M}{D}/{aid}.html" | |||||
size="40" class="pubinputs" /> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" | |||||
onClick="ShowHide('helpvar2')" /> </td> | |||||
</tr> | |||||
<tr id='helpvar3' style='display:none'> | |||||
<td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td> | |||||
<td bgcolor="#F3F7EA">{page} 列表的页码</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">列表命名规则:</td> | |||||
<td><input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" size="40" | |||||
class="pubinputs" /> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" | |||||
onClick="ShowHide('helpvar3')" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;"><strong>栏目填写:</strong></td> | |||||
<td bgcolor="#F9FCEF"></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan='2' style="padding:5px 0px 8px 10px"> | |||||
<table id="addQuick" width="850" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf"> | |||||
<tbody> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td width="60" height="28">排序</td> | |||||
<td width="170">顶级栏目名称</td> | |||||
<td width="520">子栏目(用"目录名称1,目录名称2..."这样表示多个栏目)</td> | |||||
<td width="250" align="center"><button type="button" id="add" class="btn btn-secondary btn-sm">添加</button> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF" height="32" align="center"> | |||||
<td class="rank" style="padding:5px;"><input type="hidden" name="posttype" value="" | |||||
class="pubinputs" /> | |||||
<input type="text" name="rank" id="rank" value="1" class="pubinputs" style="width:50px;" /></td> | |||||
<td align='center'><input type="text" name="toptype" id="toptype" class="pubinputs" | |||||
style="width:160px;" /></td> | |||||
<td><input type="text" name="sontype" id="sontype" class="pubinputs" style="width:480px;" /></td> | |||||
<td align="center"><button name="" type="button" id="add" class="btn btn-secondary btn-sm del">删除</button></td> | |||||
</tr> | |||||
<?php for($i=2;$i<=10;$i++) { ?> | |||||
<tr bgcolor="#FFFFFF" height="32" class="repeat" align="center"> | |||||
<td class="rank"><input type="hidden" name="posttype<?php echo $i; ?>" | |||||
value="<?php echo $i; ?>" /> | |||||
<input type="text" name="rank<?php echo $i; ?>" id="rank<?php echo $i; ?>" | |||||
value="<?php echo $i; ?>" class="pubinputs" style="width:50px;" /></td> | |||||
<td align='center'><input type="text" name="toptype<?php echo $i; ?>" | |||||
id="toptype<?php echo $i; ?>" class="pubinputs" style="width:160px;" /></td> | |||||
<td><input type="text" name="sontype<?php echo $i; ?>" id="sontype<?php echo $i; ?>" | |||||
class="pubinputs" style="width:480px;" /></td> | |||||
<td align="center"><button name="" type="button" id="add" class="btn btn-secondary btn-sm del">删除</button></td> | |||||
</tr> | |||||
<?php } ?> | |||||
</tbody> | |||||
</table> | |||||
<table id="addQuickRel" width="302" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" | |||||
style="display:none"> | |||||
<tbody> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td width="60" height="28">排序</td> | |||||
<td width="170">栏目名称</td> | |||||
<td width="250" align="center"><button type="button" id="addrel" class="btn btn-secondary btn-sm">添加</button> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF" height="32" align="center"> | |||||
<td class="rank" style="padding:5px;"><input type="hidden" name="posttype" value="" | |||||
class="pubinputs" /> | |||||
<input type="text" name="rank" id="rank" value="1" class="pubinputs" style="width:50px;" /></td> | |||||
<td align='center'><input type="text" name="reltype" id="reltype" class="pubinputs" | |||||
style="width:160px;" /></td> | |||||
<td align="center"><button name="" type="button" id="add" class="btn btn-secondary btn-sm del">删除</button></td> | |||||
</tr> | |||||
<?php for($i=2;$i<=10;$i++) { ?> | |||||
<tr bgcolor="#FFFFFF" height="32" class="repeat" align="center"> | |||||
<td class="rank"><input type="hidden" name="posttype<?php echo $i; ?>" | |||||
value="<?php echo $i; ?>" /> | |||||
<input type="text" name="rank<?php echo $i; ?>" id="rank<?php echo $i; ?>" | |||||
value="<?php echo $i; ?>" class="pubinputs" style="width:50px;" /></td> | |||||
<td align='center'><input type="text" name="reltype<?php echo $i; ?>" | |||||
id="reltype<?php echo $i; ?>" class="pubinputs" style="width:160px;" /></td> | |||||
<td align="center"><button type="button" id="add" class="btn btn-secondary btn-sm del">删除</button></td> | |||||
</tr> | |||||
<?php } ?> | |||||
</tbody> | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;"> | |||||
<tr> | |||||
<td width="1%" height="36"></td> | |||||
<td width="99%" valign="bottom"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" class="np" /> | |||||
<a href="catalog_main.php"><img src="images/button_back.gif" width="60" height="22" border="0" /></a> </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF" | |||||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr> | |||||
<td width="1%" height="36"></td> | |||||
<td width="99%" valign="bottom" class="py-3"><button type="submit" class="btn btn-secondary">确定</button> | |||||
<a href="catalog_main.php" class="btn btn-secondary">返回</a></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,227 +1,253 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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"> | |||||
var channelArray = new Array(); | |||||
<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"> | |||||
<style> | |||||
.table { | |||||
margin-bottom: 0; | |||||
} | |||||
textarea { | |||||
min-height: 32px; | |||||
} | |||||
</style> | |||||
<script language="javascript"> | |||||
var channelArray = new Array(); | |||||
<?php | <?php | ||||
$i = 0; | $i = 0; | ||||
foreach($channelArray as $k=>$arr){ | |||||
echo "channelArray[$k] = \"{$arr['nid']}\";\r\n"; | |||||
} | |||||
foreach($channelArray as $k=> $arr){ | |||||
echo "channelArray[$k] = \"{$arr['nid']}\";\r\n"; | |||||
} | |||||
?> | ?> | ||||
function Nav() | |||||
{ | |||||
if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; | |||||
else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; | |||||
else return "OT"; | |||||
} | |||||
function SelectTemplets(fname) | |||||
{ | |||||
var posLeft = 200; | |||||
var posTop = 300; | |||||
window.open("./dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop); | |||||
} | |||||
function ShowHide(objname) | |||||
{ | |||||
var obj = document.getElementById(objname); | |||||
if(obj.style.display != "none") | |||||
obj.style.display = "none"; | |||||
else { | |||||
if(Nav()=='IE') obj.style.display = "block"; | |||||
else obj.style.display = "table-row"; | |||||
function Nav() { | |||||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
else return "OT"; | |||||
} | |||||
function SelectTemplets(fname) { | |||||
var posLeft = 200; | |||||
var posTop = 300; | |||||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop); | |||||
} | |||||
function ShowHide(objname) { | |||||
var obj = document.getElementById(objname); | |||||
if (obj.style.display != "none") | |||||
obj.style.display = "none"; | |||||
else { | |||||
if (Nav() == 'IE') obj.style.display = "block"; | |||||
else obj.style.display = "table-row"; | |||||
} | |||||
} | |||||
function ShowObj(objname) { | |||||
var obj = document.getElementById(objname); | |||||
if (Nav() == 'IE') obj.style.display = "block"; | |||||
else obj.style.display = "table"; | |||||
} | } | ||||
} | |||||
function ShowObj(objname) | |||||
{ | |||||
var obj = document.getElementById(objname); | |||||
if(Nav()=='IE') obj.style.display = "block"; | |||||
else obj.style.display = "table"; | |||||
} | |||||
function HideObj(objname){ | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "none"; | |||||
} | |||||
function ShowItem1(){ | |||||
ShowObj('head1'); ShowObj('needset'); | |||||
HideObj('head2'); HideObj('adset'); | |||||
HideObj('head3'); HideObj('ctset'); | |||||
} | |||||
function ShowItem2(){ | |||||
ShowObj('head2'); ShowObj('adset'); | |||||
HideObj('head1'); HideObj('needset'); | |||||
HideObj('head3'); HideObj('ctset'); | |||||
} | |||||
function ShowItem3(){ | |||||
ShowObj('head3'); ShowObj('ctset'); | |||||
HideObj('head1'); HideObj('needset'); | |||||
HideObj('head2'); HideObj('adset'); | |||||
} | |||||
function CheckTypeDir() | |||||
{ | |||||
var upinyin = document.getElementById('upinyin'); | |||||
var tpobj = document.getElementById('typedir'); | |||||
if(upinyin.checked) tpobj.style.display = "none"; | |||||
else tpobj.style.display = "block"; | |||||
} | |||||
function ParTemplet(obj) | |||||
{ | |||||
var sevvalue = channelArray[obj.value]; | |||||
var tobj = document.getElementById('smclass'); | |||||
var tempindex = document.getElementsByName('tempindex'); | |||||
var templist = document.getElementsByName('templist'); | |||||
var temparticle = document.getElementsByName('temparticle'); | |||||
var dfstyle = document.getElementsByName('dfstyle'); | |||||
var dfstyleValue = dfstyle[0].value; | |||||
tempindex[0].value = dfstyleValue+"/index_"+sevvalue+".htm"; | |||||
templist[0].value = dfstyleValue+"/list_"+sevvalue+".htm"; | |||||
temparticle[0].value = dfstyleValue+"/article_"+sevvalue+".htm"; | |||||
if(obj.value < 0) | |||||
{ | |||||
if(Nav()=='IE') tobj.style.display = "block"; | |||||
else tobj.style.display = "table-row"; | |||||
} | |||||
else | |||||
{ | |||||
tobj.style.display = "none"; | |||||
} | |||||
} | |||||
function checkSubmit() | |||||
{ | |||||
if(document.form1.typename.value==""){ | |||||
alert("栏目名称不能为空!"); | |||||
document.form1.typename.focus(); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
function HideObj(objname) { | |||||
var obj = document.getElementById(objname); | |||||
obj.style.display = "none"; | |||||
} | |||||
function ShowItem1() { | |||||
ShowObj('head1'); ShowObj('needset'); | |||||
HideObj('head2'); HideObj('adset'); | |||||
HideObj('head3'); HideObj('ctset'); | |||||
} | |||||
function CheckCross() | |||||
{ | |||||
var cross2 = document.getElementById('cross2'); | |||||
var crossid = document.getElementById('crossid'); | |||||
if(cross2.checked) crossid.style.display = 'block'; | |||||
else crossid.style.display = 'none'; | |||||
} | |||||
function ShowItem2() { | |||||
ShowObj('head2'); ShowObj('adset'); | |||||
HideObj('head1'); HideObj('needset'); | |||||
HideObj('head3'); HideObj('ctset'); | |||||
} | |||||
function ShowItem3() { | |||||
ShowObj('head3'); ShowObj('ctset'); | |||||
HideObj('head1'); HideObj('needset'); | |||||
HideObj('head2'); HideObj('adset'); | |||||
} | |||||
function CheckTypeDir() { | |||||
var upinyin = document.getElementById('upinyin'); | |||||
var tpobj = document.getElementById('typedir'); | |||||
if (upinyin.checked) tpobj.style.display = "none"; | |||||
else tpobj.style.display = "block"; | |||||
} | |||||
function ParTemplet(obj) { | |||||
var sevvalue = channelArray[obj.value]; | |||||
var tobj = document.getElementById('smclass'); | |||||
var tempindex = document.getElementsByName('tempindex'); | |||||
var templist = document.getElementsByName('templist'); | |||||
var temparticle = document.getElementsByName('temparticle'); | |||||
var dfstyle = document.getElementsByName('dfstyle'); | |||||
var dfstyleValue = dfstyle[0].value; | |||||
tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||||
templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||||
if (obj.value < 0) { | |||||
if (Nav() == 'IE') tobj.style.display = "block"; | |||||
else tobj.style.display = "table-row"; | |||||
} | |||||
else { | |||||
tobj.style.display = "none"; | |||||
} | |||||
} | |||||
function checkSubmit() { | |||||
if (document.form1.typename.value == "") { | |||||
alert("栏目名称不能为空!"); | |||||
document.form1.typename.focus(); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
function CheckCross() { | |||||
var cross2 = document.getElementById('cross2'); | |||||
var crossid = document.getElementById('crossid'); | |||||
if (cross2.checked) crossid.style.display = 'block'; | |||||
else crossid.style.display = 'none'; | |||||
} | |||||
</script> | |||||
</script> | |||||
</head> | </head> | ||||
<body leftmargin='15' topmargin='10' bgcolor="#FFFFFF"> | <body leftmargin='15' topmargin='10' bgcolor="#FFFFFF"> | ||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" style="BORDER-COLLAPSE: collapse"> | |||||
<tr> | |||||
<td width="100%" height="20" valign="top"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td height="30"><IMG height=14 src="images/book1.gif" width=20> <a href="catalog_main.php"><u>栏目管理</u></a>>> 修改栏目</td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="100%" height="1" background="images/sp_bg.gif"></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<tr><td height="10"></td></tr> | |||||
<tr> | |||||
<form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<input type="hidden" name="id" value="<?php echo $id; ?>" /> | |||||
<input type="hidden" name="topid" value="<?php echo $myrow['topid']; ?>" /> | |||||
<td height="95" align="center" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF" align="left"> | |||||
<table border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote1.gif"> 常规选项 </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>高级选项</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem3()"><u>栏目内容</u></a> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||||
<table height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()"><u>常规选项</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote1.gif">高级选项 </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem3()"><u>栏目内容</u></a> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" | |||||
style="BORDER-COLLAPSE: collapse" class="mt-3"> | |||||
<tr> | |||||
<td width="100%" height="20" valign="top"> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | <tr> | ||||
<td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||||
<table height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()"><u>常规选项</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()"><u>高级选项</u> </td> | |||||
<td width="84" align="center" background="images/itemnote1.gif">栏目内容 </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#ffffff;text-align:left;"> | |||||
<tr> | |||||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否支持投稿:</td> | |||||
<td class='bline'> <input type='radio' name='issend' value='0' class='np' <?php if($myrow['issend']=="0") echo " checked='1' ";?> /> | |||||
不支持 <input type='radio' name='issend' value='1' class='np' <?php if($myrow['issend']=="1") echo " checked='1' ";?> /> | |||||
支持 </td> | |||||
</tr> | |||||
<tr> | |||||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否隐藏栏目:</td> | |||||
<td class='bline'> <input type='radio' name='ishidden' value='0' class='np'<?php if($myrow['ishidden']=="0") echo " checked='1' ";?>/> | |||||
显示 <input type='radio' name='ishidden' value='1' class='np'<?php if($myrow['ishidden']=="1") echo " checked='1' ";?>/> | |||||
隐藏 </td> | |||||
<td height="30"><IMG height=14 src="images/book1.gif" width=20> <a | |||||
href="catalog_main.php"><u>栏目管理</u></a>>> 修改栏目</td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;"><font color='red'>内容模型:</font> </td> | |||||
<td class='bline'> <select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)"> | |||||
<?php | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="100%" height="1" background="images/sp_bg.gif"></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td height="10"></td> | |||||
</tr> | |||||
<tr> | |||||
<form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit();"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<input type="hidden" name="id" value="<?php echo $id; ?>" /> | |||||
<input type="hidden" name="topid" value="<?php echo $myrow['topid']; ?>" /> | |||||
<td height="95" align="center" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF" align="left"> | |||||
<table border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" height="24" align="center" background="images/itemnote1.gif"> 常规选项 </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" | |||||
onClick="ShowItem2()"><u>高级选项</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" | |||||
onClick="ShowItem3()"><u>栏目内容</u></a> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||||
<table height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" | |||||
onClick="ShowItem1()"><u>常规选项</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote1.gif">高级选项 </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" | |||||
onClick="ShowItem3()"><u>栏目内容</u></a> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | |||||
<tr> | |||||
<td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||||
<table height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" | |||||
onClick="ShowItem1()"><u>常规选项</u></a> </td> | |||||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" | |||||
onClick="ShowItem2()"><u>高级选项</u> </td> | |||||
<td width="84" align="center" background="images/itemnote1.gif">栏目内容 </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" | |||||
style="border:1px solid #cfcfcf;background:#ffffff;text-align:left;" class="table"> | |||||
<tr> | |||||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否支持投稿:</td> | |||||
<td class='bline'> <label><input type='radio' name='issend' value='0' class='np' | |||||
<?php if($myrow['issend']=="0") echo " checked='1' ";?> /> | |||||
不支持 </label> <label><input type='radio' name='issend' value='1' class='np' | |||||
<?php if($myrow['issend']=="1") echo " checked='1' ";?> /> | |||||
支持</label> </td> | |||||
</tr> | |||||
<tr> | |||||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否隐藏栏目:</td> | |||||
<td class='bline'> <label><input type='radio' name='ishidden' value='0' class='np' | |||||
<?php if($myrow['ishidden']=="0") echo " checked='1' ";?> /> | |||||
显示 </label> <label><input type='radio' name='ishidden' value='1' class='np' | |||||
<?php if($myrow['ishidden']=="1") echo " checked='1' ";?> /> | |||||
隐藏</label> </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;"> | |||||
<font color='red'>内容模型:</font> | |||||
</td> | |||||
<td class='bline'> <select name="channeltype" id="channeltype" style="width:200px" | |||||
onChange="ParTemplet(this)"> | |||||
<?php | |||||
foreach($channelArray as $k=>$arr) | foreach($channelArray as $k=>$arr) | ||||
{ | { | ||||
if($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | if($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | ||||
else echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | else echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;"><font color='red'>栏目名称:</font></td> | |||||
<td class='bline'><input name="typename" type="text" id="typename" size="30" value="<?php echo $myrow['typename']?>" class="iptxt" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;"> 排列顺序: </td> | |||||
<td class='bline'> <input name="sortrank" size="6" type="text" value="<?php echo $myrow['sortrank']?>" class="iptxt" /> | |||||
(由低 -> 高) </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">浏览权限:</td> | |||||
<td class='bline'> <select name="corank" id="corank" style="width:100"> | |||||
<?php | |||||
</select> </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;"> | |||||
<font color='red'>栏目名称:</font> | |||||
</td> | |||||
<td class='bline'><input name="typename" type="text" id="typename" size="30" | |||||
value="<?php echo $myrow['typename']?>" class="iptxt" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;"> 排列顺序: </td> | |||||
<td class='bline'> <input name="sortrank" size="6" type="text" value="<?php echo $myrow['sortrank']?>" | |||||
class="iptxt" /> | |||||
(由低 -> 高) </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">浏览权限:</td> | |||||
<td class='bline'> <select name="corank" id="corank" style="width:100"> | |||||
<?php | |||||
$dsql->SetQuery("Select * from #@__arcrank where rank >= 0"); | $dsql->SetQuery("Select * from #@__arcrank where rank >= 0"); | ||||
$dsql->Execute('cc'); | $dsql->Execute('cc'); | ||||
while($row = $dsql->GetObject('cc')) | while($row = $dsql->GetObject('cc')) | ||||
@@ -232,64 +258,78 @@ function CheckCross() | |||||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
(仅限制栏目里的文档浏览权限) </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">文件保存目录:</td> | |||||
<td class='bline'> <input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir']?>" style="width:300px" class="iptxt" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">栏目列表选项:</td> | |||||
<td> <input type='radio' name='isdefault' value='1' class='np'<?php if($myrow['isdefault']==1) echo " checked='1' ";?>/> | |||||
链接到默认页 | |||||
<input type='radio' name='isdefault' value='0' class='np'<?php if($myrow['isdefault']==0) echo " checked='1' ";?>/> | |||||
链接到列表第一页 | |||||
<input type='radio' name='isdefault' value='-1' class='np'<?php if($myrow['isdefault']==-1) echo " checked='1' ";?>/> | |||||
使用动态页 </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">默认页的名称: </td> | |||||
<td class='bline'><input name="defaultname" type="text" value="<?php echo $myrow['defaultname']?>" class="iptxt" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" class='bline' style="padding-left:10px;">栏目属性:</td> | |||||
<td class='bline'> | |||||
<input name="ispart" type="radio" id="radio" value="0" class='np'<?php if($myrow['ispart']==0) echo " checked='1' ";?>/> | |||||
最终列表栏目(允许在本栏目发布文档,并生成文档列表)<br> | |||||
<input name="ispart" type="radio" id="radio2" value="1" class='np'<?php if($myrow['ispart']==1) echo " checked='1' ";?>/> | |||||
频道封面(栏目本身不允许发布文档)<br> | |||||
<input name="ispart" type="radio" id="radio3" value="2" class='np'<?php if($myrow['ispart']==2) echo " checked='1' ";?>/> | |||||
外部连接(在"文件保存目录"处填写网址) | |||||
</select> | |||||
(仅限制栏目里的文档浏览权限) </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">文件保存目录:</td> | |||||
<td class='bline'> <input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir']?>" | |||||
style="width:300px" class="iptxt" /> | |||||
</td> | </td> | ||||
</tr> | |||||
<tr id='helpvarco' style='display:none'> | |||||
<td height="80" bgcolor="#F3F7EA" style="padding-left:10px;">栏目交叉说明: </td> | |||||
<td bgcolor="#F3F7EA"> | |||||
交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好。<br />例如: | |||||
网站上有大栏目——智能手机、音乐手机,另外又有栏目——诺基亚->智能手机、诺基亚->音乐手机,这样顶级的大栏目就和另一个大栏目的子栏目形成了交叉,这样只需要在大栏目中指定交叉的栏目即可。 | |||||
<br />注:会自动索引交叉栏目的内容,但不会索引交叉栏目下级栏目的内容,这种应用也适用于按地区划分资讯的站点。 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td style="padding-left:10px;">栏目交叉:<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvarco')" /><br />仅适用[最终列表栏目]</td> | |||||
<td class='bline' style="padding:3px 0px 3px 0px"> | |||||
<input name="cross" type="radio" id="cross0" onClick="CheckCross()" value="0" class='np'<?php if($myrow['cross']==0) echo " checked='1' ";?> /> | |||||
不交叉 | |||||
<input name="cross" type="radio" id="cross1" onClick="CheckCross()" value="1" class='np'<?php if($myrow['cross']==1) echo " checked='1' ";?>/> | |||||
自动获取同名栏目内容 | |||||
<input name="cross" type="radio" id="cross2" onClick="CheckCross()" value="2" class='np'<?php if($myrow['cross']==2) echo " checked='1' ";?>/> | |||||
手工指定交叉栏目ID(用逗号分开) | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">栏目列表选项:</td> | |||||
<td> <label><input type='radio' name='isdefault' value='1' class='np' | |||||
<?php if($myrow['isdefault']==1) echo " checked='1' ";?> /> | |||||
链接到默认页</label> | |||||
<label><input type='radio' name='isdefault' value='0' class='np' | |||||
<?php if($myrow['isdefault']==0) echo " checked='1' ";?> /> | |||||
链接到列表第一页</label> | |||||
<label><input type='radio' name='isdefault' value='-1' class='np' | |||||
<?php if($myrow['isdefault']==-1) echo " checked='1' ";?> /> | |||||
使用动态页</label> </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="26" style="padding-left:10px;">默认页的名称: </td> | |||||
<td class='bline'><input name="defaultname" type="text" value="<?php echo $myrow['defaultname']?>" | |||||
class="iptxt" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" class='bline' style="padding-left:10px;">栏目属性:</td> | |||||
<td class='bline'> | |||||
<label><input name="ispart" type="radio" id="radio" value="0" class='np' | |||||
<?php if($myrow['ispart']==0) echo " checked='1' ";?> /> | |||||
最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> | |||||
<label><input name="ispart" type="radio" id="radio2" value="1" class='np' | |||||
<?php if($myrow['ispart']==1) echo " checked='1' ";?> /> | |||||
频道封面(栏目本身不允许发布文档)</label><br> | |||||
<label><input name="ispart" type="radio" id="radio3" value="2" class='np' | |||||
<?php if($myrow['ispart']==2) echo " checked='1' ";?> /> | |||||
外部连接(在"文件保存目录"处填写网址)</label> | |||||
</td> | |||||
</tr> | |||||
<tr id='helpvarco' style='display:none'> | |||||
<td height="80" bgcolor="#F3F7EA" style="padding-left:10px;">栏目交叉说明: </td> | |||||
<td bgcolor="#F3F7EA"> | |||||
交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好。<br />例如: | |||||
网站上有大栏目——智能手机、音乐手机,另外又有栏目——诺基亚->智能手机、诺基亚->音乐手机,这样顶级的大栏目就和另一个大栏目的子栏目形成了交叉,这样只需要在大栏目中指定交叉的栏目即可。 | |||||
<br />注:会自动索引交叉栏目的内容,但不会索引交叉栏目下级栏目的内容,这种应用也适用于按地区划分资讯的站点。 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td style="padding-left:10px;">栏目交叉:<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" | |||||
style="cursor:pointer" onClick="ShowHide('helpvarco')" /><br />仅适用[最终列表栏目]</td> | |||||
<td class='bline' style="padding:3px 0px 3px 0px"> | |||||
<label><input name="cross" type="radio" id="cross0" onClick="CheckCross()" value="0" class='np' | |||||
<?php if($myrow['cross']==0) echo " checked='1' ";?> /> | |||||
不交叉</label> | |||||
<label><input name="cross" type="radio" id="cross1" onClick="CheckCross()" value="1" class='np' | |||||
<?php if($myrow['cross']==1) echo " checked='1' ";?> /> | |||||
自动获取同名栏目内容</label> | |||||
<label><input name="cross" type="radio" id="cross2" onClick="CheckCross()" value="2" class='np' | |||||
<?php if($myrow['cross']==2) echo " checked='1' ";?> /> | |||||
手工指定交叉栏目ID(用逗号分开)</label> | |||||
<br /> | <br /> | ||||
<textarea name="crossid" cols="50" rows="3" id="crossid" style="<?php if($myrow['cross']!=2) echo "display:none";?>" class="alltxt" ><?php echo $myrow['crossid']; ?></textarea> | |||||
</td> | |||||
</tr> | |||||
<tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'> | |||||
<td class='bline' style="padding-left:10px;">绑定小分类: <br />仅适用[分类信息模型]</td> | |||||
<td class='bline' style="padding:3px 0px 3px 0px"> | |||||
<textarea name="crossid" cols="50" rows="3" id="crossid" | |||||
style="<?php if($myrow['cross']!=2) echo "display:none";?>" | |||||
class="alltxt"><?php echo $myrow['crossid']; ?></textarea> | |||||
</td> | |||||
</tr> | |||||
<tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'> | |||||
<td class='bline' style="padding-left:10px;">绑定小分类: <br />仅适用[分类信息模型]</td> | |||||
<td class='bline' style="padding:3px 0px 3px 0px"> | |||||
<select name='smalltype[]' size='5' style='width:120px' multiple='yes'> | <select name='smalltype[]' size='5' style='width:120px' multiple='yes'> | ||||
<?php | |||||
<?php | |||||
$smtypes = explode(',',trim($myrow['smalltypes'])); | $smtypes = explode(',',trim($myrow['smalltypes'])); | ||||
$sql = "Select * From `#@__sys_enum` where egroup like 'infotype' order by disorder asc, id desc "; | $sql = "Select * From `#@__sys_enum` where egroup like 'infotype' order by disorder asc, id desc "; | ||||
$dsql->Execute('s',$sql); | $dsql->Execute('s',$sql); | ||||
@@ -313,146 +353,168 @@ function CheckCross() | |||||
} | } | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</select> | |||||
按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“<u>联动类别管理</u>”</a>中管理 | 按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“<u>联动类别管理</u>”</a>中管理 | ||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="adset"> | |||||
<tr> | |||||
<td class='bline' width="150" height="24" style="padding-left:10px;">多站点支持:</td> | |||||
<td class='bline'> <input name="moresite" type="radio" class="np" value="0"<?php if($myrow['moresite']==0) echo " checked='1' ";?>/> | |||||
不启用 | |||||
<input type="radio" name="moresite" class="np" value="1"<?php if($myrow['moresite']==1) echo " checked='1' ";?>/> | |||||
启用 </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">说明:</td> | |||||
<td bgcolor="#F9FCEF">绑名绑定仅需要在顶级栏目设定,子级栏目更改无效。</td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="24" style="padding-left:10px;">绑定域名:</td> | |||||
<td class='bline'> <input name="siteurl" type="text" id="siteurl" size="35" value="<?php echo $myrow['siteurl']?>" class="iptxt" /> | |||||
(需加 http://,一级或二级域名的根网址) </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="24" style="padding-left:10px;">站点根目录:</td> | |||||
<td class='bline'> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" | |||||
style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="adset" class="table"> | |||||
<tr> | |||||
<td class='bline' width="150" height="24" style="padding-left:10px;">多站点支持:</td> | |||||
<td class='bline'> <input name="moresite" type="radio" class="np" value="0" | |||||
<?php if($myrow['moresite']==0) echo " checked='1' ";?> /> | |||||
不启用 | |||||
<input type="radio" name="moresite" class="np" value="1" | |||||
<?php if($myrow['moresite']==1) echo " checked='1' ";?> /> | |||||
启用 </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">说明:</td> | |||||
<td bgcolor="#F9FCEF">绑名绑定仅需要在顶级栏目设定,子级栏目更改无效。</td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="24" style="padding-left:10px;">绑定域名:</td> | |||||
<td class='bline'> <input name="siteurl" type="text" id="siteurl" size="35" | |||||
value="<?php echo $myrow['siteurl']?>" class="iptxt" /> | |||||
(需加 http://,一级或二级域名的根网址) </td> | |||||
</tr> | |||||
<tr> | |||||
<td class='bline' height="24" style="padding-left:10px;">站点根目录:</td> | |||||
<td class='bline'> | |||||
为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。 | 为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。 | ||||
</td> | |||||
</tr> | |||||
<tr id='helpvar1' style='display:none'> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||||
<td bgcolor="#F9FCEF"> {tid}表示栏目ID,<br> | |||||
{cid}表示频道模型的'名字ID' <font color='#888888'> ( | |||||
<?php | |||||
</td> | |||||
</tr> | |||||
<tr id='helpvar1' style='display:none'> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||||
<td bgcolor="#F9FCEF"> {tid}表示栏目ID,<br> | |||||
{cid}表示频道模型的'名字ID' <font color='#888888'> ( | |||||
<?php | |||||
foreach($channelArray as $k=>$arr) | foreach($channelArray as $k=>$arr) | ||||
{ | { | ||||
echo "{$arr['typename']}({$arr['nid']})、"; | echo "{$arr['typename']}({$arr['nid']})、"; | ||||
} | } | ||||
?> | ?> | ||||
) </font> <br/> | |||||
模板文件的默认位置是放在模板目录 "cms安装目录 | |||||
<?php echo $cfg_templets_dir ?> | |||||
" 内。 | |||||
<input type='hidden' value='{style}' name='dfstyle' /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">封面模板:</td> | |||||
<td> <input name="tempindex" type="text" value="<?php echo $myrow['tempindex']?>" style="width:300px" class="iptxt" /> | |||||
<input type="button" name="set1" value="浏览..." class="coolbg np" style="width:60px" onClick="SelectTemplets('form1.tempindex');"/> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar1')"/> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">列表模板:</td> | |||||
<td> <input name="templist" type="text" value="<?php echo $myrow['templist']?>" style="width:300px" class="iptxt" /> | |||||
<input type="button" name="set3" value="浏览..." class="coolbg np" style="width:60px" onClick="SelectTemplets('form1.templist');"/> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">文章模板:</td> | |||||
<td><input name="temparticle" type="text" value="<?php echo $myrow['temparticle']?>" style="width:300px" class="iptxt" /> | |||||
<input type="button" name="set4" value="浏览..." class="coolbg np" style="width:60px" onClick="SelectTemplets('form1.temparticle');"/> | |||||
</td> | |||||
</tr> | |||||
<tr id='helpvar2' style='display:none'> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||||
<td height="24" bgcolor="#F9FCEF"> {Y}、{M}、{D} 年月日<br/> | |||||
{timestamp} INT类型的UNIX时间戳<br/> | |||||
{aid} 文章ID<br/> | |||||
{pinyin} 拼音+文章ID<br/> | |||||
{py} 拼音部首+文章ID<br/> | |||||
{typedir} 栏目目录 <br/> | |||||
{cc} 日期+ID混编后用转换为适合的字母 <br/> | |||||
) </font> <br /> | |||||
模板文件的默认位置是放在模板目录 "cms安装目录 | |||||
<?php echo $cfg_templets_dir ?> | |||||
" 内。 | |||||
<input type='hidden' value='{style}' name='dfstyle' /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">封面模板:</td> | |||||
<td> <input name="tempindex" type="text" value="<?php echo $myrow['tempindex']?>" style="width:300px" | |||||
class="iptxt" /> | |||||
<button type="button" name="set1" class="btn btn-secondary btn-sm" | |||||
onClick="SelectTemplets('form1.tempindex');">浏览...</button> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" | |||||
onClick="ShowHide('helpvar1')" /> | |||||
</td> | </td> | ||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">文章命名规则:</td> | |||||
<td> <input name="namerule" type="text" id="namerule" value="<?php echo $myrow['namerule']?>" size="40" class="iptxt" /> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar2')"/> | |||||
</td> | |||||
</tr> | |||||
<tr id='helpvar3' style='display:none'> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||||
<td bgcolor="#F9FCEF">{page} 列表的页码</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">列表命名规则:</td> | |||||
<td> <input name="namerule2" type="text" id="namerule2" value="<?php echo $myrow['namerule2']?>" size="40" class="iptxt" /> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')"/></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="65" style="padding-left:10px;">SEO标题:</td> | |||||
<td> | |||||
<input name="seotitle" type="text" style="width:250px" id="seotitle" class="alltxt" value="<?php echo $myrow['seotitle']?>" /> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">列表模板:</td> | |||||
<td> <input name="templist" type="text" value="<?php echo $myrow['templist']?>" style="width:300px" | |||||
class="iptxt" /> | |||||
<button type="button" name="set3" class="btn btn-secondary btn-sm" | |||||
onClick="SelectTemplets('form1.templist');">浏览...</button> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">文章模板:</td> | |||||
<td><input name="temparticle" type="text" value="<?php echo $myrow['temparticle']?>" style="width:300px" | |||||
class="iptxt" /> | |||||
<button type="button" name="set4" class="btn btn-secondary btn-sm" | |||||
onClick="SelectTemplets('form1.temparticle');">浏览...</button> | |||||
</td> | |||||
</tr> | |||||
<tr id='helpvar2' style='display:none'> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||||
<td height="24" bgcolor="#F9FCEF"> {Y}、{M}、{D} 年月日<br /> | |||||
{timestamp} INT类型的UNIX时间戳<br /> | |||||
{aid} 文章ID<br /> | |||||
{pinyin} 拼音+文章ID<br /> | |||||
{py} 拼音部首+文章ID<br /> | |||||
{typedir} 栏目目录 <br /> | |||||
{cc} 日期+ID混编后用转换为适合的字母 <br /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">文章命名规则:</td> | |||||
<td> <input name="namerule" type="text" id="namerule" value="<?php echo $myrow['namerule']?>" size="40" | |||||
class="iptxt" /> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" | |||||
onClick="ShowHide('helpvar2')" /> | |||||
</td> | |||||
</tr> | |||||
<tr id='helpvar3' style='display:none'> | |||||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||||
<td bgcolor="#F9FCEF">{page} 列表的页码</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26" style="padding-left:10px;">列表命名规则:</td> | |||||
<td> <input name="namerule2" type="text" id="namerule2" value="<?php echo $myrow['namerule2']?>" size="40" | |||||
class="iptxt" /> | |||||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" | |||||
onClick="ShowHide('helpvar3')" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="65" style="padding-left:10px;">SEO标题:</td> | |||||
<td> | |||||
<input name="seotitle" type="text" style="width:250px" id="seotitle" class="alltxt" | |||||
value="<?php echo $myrow['seotitle']?>" /> | |||||
(栏目模板里用{dede:field.seotitle /}调用) | (栏目模板里用{dede:field.seotitle /}调用) | ||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="65" style="padding-left:10px;">关键字:</td> | |||||
<td> <textarea name="keywords" cols="70" rows="4" id="keywords" class="alltxt" ><?php echo $myrow['keywords']?></textarea> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="65" style="padding-left:10px;">栏目描述:</td> | |||||
<td height="65"><textarea name="description" cols="70" style="height:50px" rows="4" id="description" class="alltxt" ><?php echo $myrow['description']?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="45" style="padding-left:10px;">继承选项:</td> | |||||
<td> | |||||
<input name="upnext" type="checkbox" id="upnext" value="1" class="np"/> | |||||
同时更改下级栏目的浏览权限、内容类型、模板风格、命名规则等通用属性 | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="ctset"> | |||||
<tr> | |||||
<td height="28"> 说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||||
</tr> | |||||
<tr> | |||||
<td style="padding:10px;"> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="65" style="padding-left:10px;">关键字:</td> | |||||
<td> <textarea name="keywords" cols="70" rows="4" id="keywords" | |||||
class="alltxt"><?php echo $myrow['keywords']?></textarea> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="65" style="padding-left:10px;">栏目描述:</td> | |||||
<td height="65"><textarea name="description" cols="70" style="height:50px" rows="4" id="description" | |||||
class="alltxt"><?php echo $myrow['description']?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="45" style="padding-left:10px;">继承选项:</td> | |||||
<td> | |||||
<label><input name="upnext" type="checkbox" id="upnext" value="1" class="np" /> | |||||
同时更改下级栏目的浏览权限、内容类型、模板风格、命名规则等通用属性</label> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" | |||||
style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="ctset" class="table"> | |||||
<tr> | |||||
<td height="28"> 说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||||
</tr> | |||||
<tr> | |||||
<td style="padding:10px;"> | |||||
<?php | <?php | ||||
GetEditor("content",$myrow['content'],"450","Default","print","false"); | GetEditor("content",$myrow['content'],"450","Default","print","false"); | ||||
?> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;"> | |||||
<tr> | |||||
<td width="1%" height="36"></td> | |||||
<td width="99%" valign="bottom"> | |||||
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" class="np"/> | |||||
| |||||
<a href="catalog_main.php"><img src="images/button_back.gif" width="60" height="22" border="0"></a> | |||||
</td> | |||||
</tr> | |||||
</table></td> | |||||
?> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF" | |||||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
<tr> | |||||
<td width="1%" height="36"></td> | |||||
<td width="99%" valign="bottom" class="py-3"> | |||||
<button type="submit" class="btn btn-secondary">确定</button> | |||||
| |||||
<a href="catalog_main.php" class="btn btn-secondary">返回</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</form> | </form> | ||||
</tr> | |||||
</table> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -3,6 +3,8 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>栏目管理</title> | <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"> | <link href="css/base.css" rel="stylesheet" type="text/css"> | ||||
<script language="javascript" src="js/global.js"></script> | <script language="javascript" src="js/global.js"></script> | ||||
<script language="javascript" src="js/context_menu.js"></script> | <script language="javascript" src="js/context_menu.js"></script> | ||||
@@ -116,20 +118,26 @@ height:18px | |||||
} | } | ||||
.nbline {border-bottom: 1px solid #d6d6d6; background-color:#FFFFFF; } | .nbline {border-bottom: 1px solid #d6d6d6; background-color:#FFFFFF; } | ||||
.bline2 {border-bottom: 1px solid #d6d6d6; background-color:#F9FCEF; } | .bline2 {border-bottom: 1px solid #d6d6d6; background-color:#F9FCEF; } | ||||
td, th{ | |||||
padding: .25em; | |||||
} | |||||
.maintable { | |||||
border: 1px solid #DEE2E6; | |||||
} | |||||
</style> | </style> | ||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8' onLoad="ContextMenu.intializeContextMenu()"> | <body background='images/allbg.gif' leftmargin='8' topmargin='8' onLoad="ContextMenu.intializeContextMenu()"> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" align="center"> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" align="center" class="maintable mt-3"> | |||||
<tr> | <tr> | ||||
<td height="28" background='images/tbg.gif' style="padding-left:10px;"> | <td height="28" background='images/tbg.gif' style="padding-left:10px;"> | ||||
<div style="float:left"> | |||||
<div style="float:left" class="py-3"> | |||||
<strong>网站栏目管理 </strong> | <strong>网站栏目管理 </strong> | ||||
</div> | </div> | ||||
<div style="float:right;padding-right:6px;"> | |||||
<a href='catalog_add.php?listtype=all' class='np coolbg'>增加顶级栏目</a> | |||||
<a href='catalog_add.php?dopost=quick' class='np coolbg'>批量增加栏目</a> | |||||
<a href="catalog_do.php?dopost=upcatcache" class='np coolbg'>更新栏目缓存</a> | |||||
<a href="makehtml_list.php" class='np coolbg'>更新栏目HTML</a> | |||||
<div style="float:right;padding-right:6px;" class="py-3"> | |||||
<a href='catalog_add.php?listtype=all' class='btn btn-secondary btn-sm'>增加顶级栏目</a> | |||||
<a href='catalog_add.php?dopost=quick' class='btn btn-secondary btn-sm'>批量增加栏目</a> | |||||
<a href="catalog_do.php?dopost=upcatcache" class='btn btn-secondary btn-sm'>更新栏目缓存</a> | |||||
<a href="makehtml_list.php" class='btn btn-secondary btn-sm'>更新栏目HTML</a> | |||||
</a> | </a> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -164,13 +172,13 @@ $tu->ListAllType($userChannel,$opendir); | |||||
</form> | </form> | ||||
<tr> | <tr> | ||||
<td height="36" bgcolor="#FFFFFF" align="center"> | <td height="36" bgcolor="#FFFFFF" align="center"> | ||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td align="right"> | <td align="right"> | ||||
<input type="button" name="sb1" value="更新排序" style="width:70px" class="coolbt" onClick="document.form1.submit();" /> | |||||
<input type="button" name="sb4" value="获取JS" style="width:70px" class="coolbt" onClick="location='makehtml_js.php';" /> | |||||
<input type="button" name="sb2" value="更新栏目HTML" style="width:90px" class="coolbt" onClick="location='makehtml_list.php';" /> | |||||
<input type="button" name="sb3" value="更新文档HTML" style="width:90px" class="coolbt" onClick="location='makehtml_archives.php';" /> | |||||
<button type="button" name="sb1" class="btn btn-secondary btn-sm" onClick="document.form1.submit();">更新排序</button> | |||||
<button type="button" name="sb4" class="btn btn-secondary btn-sm" onClick="location='makehtml_js.php';">获取JS</button> | |||||
<button type="button" name="sb2" class="btn btn-secondary btn-sm" onClick="location='makehtml_list.php';">更新栏目HTML</button> | |||||
<button type="button" name="sb3" class="btn btn-secondary btn-sm" onClick="location='makehtml_archives.php';">更新文档HTML</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -22,25 +22,24 @@ | |||||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered maintable mt-3"> | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#cfcfcf" class="table table-bordered maintable mt-3"> | ||||
<tr> | <tr> | ||||
<td align="center" height="28" background="images/newlinebg3.gif"> | <td align="center" height="28" background="images/newlinebg3.gif"> | ||||
<input type='button' class="coolbg np" | |||||
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';" | |||||
value='添加文档' /> | |||||
<button type='button' class="btn btn-secondary btn-sm" | |||||
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';">添加文档</button> | |||||
{dede:if $adminid == $mid } | {dede:if $adminid == $mid } | ||||
<input type='button' class="coolbg np" | |||||
onClick="location='content_i_list.php?cid={dede:global.cid/}&mid=0';" value='全部文档' /> | |||||
<button type='button' class="btn btn-secondary btn-sm" | |||||
onClick="location='content_i_list.php?cid={dede:global.cid/}&mid=0';">全部文档</button> | |||||
{else} | {else} | ||||
<input type='button' class="coolbg np" | |||||
<button type='button' class="btn btn-secondary btn-sm" | |||||
onClick="location='content_i_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';" | onClick="location='content_i_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';" | ||||
value='我的文档' /> | |||||
value=''>我的文档</button> | |||||
{/dede:if} | {/dede:if} | ||||
{dede:global.CheckUserSend/} | {dede:global.CheckUserSend/} | ||||
<input type='button' class="coolbg np" onClick="location='catalog_main.php';" value='栏目管理' /> | |||||
<input type='button' class="coolbg np" name='bb1' | |||||
onClick="location='makehtml_list.php?cid={dede:global.cid/}';" value='更新列表' /> | |||||
<input type='button' class="coolbg np" name='bb2' | |||||
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';" value='更新文档' /> | |||||
<input type='button' class="coolbg np" name='bb1' | |||||
onClick="location='recycling.php?cid={dede:global.cid/}';" value='文章回收站' /> | |||||
<button type='button' class="btn btn-secondary btn-sm" onClick="location='catalog_main.php';">栏目管理</button> | |||||
<button type='button' class="btn btn-secondary btn-sm" name='bb1' | |||||
onClick="location='makehtml_list.php?cid={dede:global.cid/}';">更新列表</button> | |||||
<button type='button' class="btn btn-secondary btn-sm" name='bb2' | |||||
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';">更新文档</button> | |||||
<button type='button' class="btn btn-secondary btn-sm" name='bb1' | |||||
onClick="location='recycling.php?cid={dede:global.cid/}';">文章回收站</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -104,18 +103,18 @@ | |||||
<tr bgcolor="#ffffff"> | <tr bgcolor="#ffffff"> | ||||
<td height="36" colspan="10"> | <td height="36" colspan="10"> | ||||
| | ||||
<a href="javascript:selAll()" class="coolbg">全选</a> | |||||
<a href="javascript:noSelAll()" class="coolbg">取消</a> | |||||
<a href="javascript:viewArc(0)" class="coolbg"> 查看 </a> | |||||
<a href="javascript:editArc(0)" class="coolbg"> 更改 </a> | |||||
<a href="javascript:updateArc(0)" class="coolbg"> 更新 </a> | |||||
<a href="javascript:checkArc(0)" class="coolbg"> 审核 </a> | |||||
<a href="javascript:adArc(0)" class="coolbg"> 推荐 </a> | |||||
<a href="javascript:selAll()" class="btn btn-secondary btn-sm">全选</a> | |||||
<a href="javascript:noSelAll()" class="btn btn-secondary btn-sm">取消</a> | |||||
<a href="javascript:viewArc(0)" class="btn btn-secondary btn-sm"> 查看 </a> | |||||
<a href="javascript:editArc(0)" class="btn btn-secondary btn-sm"> 更改 </a> | |||||
<a href="javascript:updateArc(0)" class="btn btn-secondary btn-sm"> 更新 </a> | |||||
<a href="javascript:checkArc(0)" class="btn btn-secondary btn-sm"> 审核 </a> | |||||
<a href="javascript:adArc(0)" class="btn btn-secondary btn-sm"> 推荐 </a> | |||||
<a href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" | <a href="javascript:;" onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" | ||||
class="coolbg"> 移动 </a> | |||||
<a href="javascript:delArc(0)" class="coolbg"> 删除 </a> | |||||
<a href="javascript:;" onClick="cAtts('attsAdd',event,this)" class="coolbg"> 增加属性 </a> | |||||
<a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="coolbg"> 删除属性 </a> | |||||
class="btn btn-secondary btn-sm"> 移动 </a> | |||||
<a href="javascript:delArc(0)" class="btn btn-secondary btn-sm"> 删除 </a> | |||||
<a href="javascript:;" onClick="cAtts('attsAdd',event,this)" class="btn btn-secondary btn-sm"> 增加属性 </a> | |||||
<a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="btn btn-secondary btn-sm"> 删除属性 </a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -158,8 +157,7 @@ | |||||
</select> | </select> | ||||
</td> | </td> | ||||
<td> | <td> | ||||
<input name="imageField" type="image" src="images/button_search.gif" width="60" | |||||
height="22" border="0" class="np" /> | |||||
<button type="submit" class="btn btn-secondary">搜索</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -22,26 +22,23 @@ | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="table maintable table-bordered mt-3"> | <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" class="table maintable table-bordered mt-3"> | ||||
<tr> | <tr> | ||||
<td align="center"> | <td align="center"> | ||||
<input type='button' class="coolbg np" | |||||
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';" | |||||
value='添加文档' /> | |||||
<button type='button' class="btn btn-secondary btn-sm" | |||||
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';">添加文档</button> | |||||
{dede:if $adminid==$mid } | {dede:if $adminid==$mid } | ||||
<input type='button' class="coolbg np" | |||||
onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';" value='全部文档' /> | |||||
<button type='button' class="btn btn-secondary btn-sm" | |||||
onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';">全部文档</button> | |||||
{else} | {else} | ||||
<input type='button' class="coolbg np" | |||||
onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';" | |||||
value='我的文档' /> | |||||
<button type='button' class="btn btn-secondary btn-sm" | |||||
onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';">我的文档</button> | |||||
{/dede:if} | {/dede:if} | ||||
{dede:global.CheckUserSend/} | {dede:global.CheckUserSend/} | ||||
<input type='button' class="coolbg np" onClick="location='catalog_main.php';" | |||||
value='栏目管理' /> | |||||
<input type='button' class="coolbg np" name='bb1' | |||||
onClick="location='makehtml_list.php?cid={dede:global.cid/}';" value='更新列表' /> | |||||
<input type='button' class="coolbg np" name='bb2' | |||||
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';" value='更新文档' /> | |||||
<input type='button' class="coolbg np" name='bb1' | |||||
onClick="location='recycling.php?cid={dede:global.cid/}';" value='文章回收站' /> | |||||
<button type='button' class="btn btn-secondary btn-sm" onClick="location='catalog_main.php';">栏目管理</button> | |||||
<button type='button' class="btn btn-secondary btn-sm" name='bb1' | |||||
onClick="location='makehtml_list.php?cid={dede:global.cid/}';">更新列表</button> | |||||
<button type='button' class="btn btn-secondary btn-sm" name='bb2' | |||||
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';">更新文档</button> | |||||
<button type='button' class="btn btn-secondary btn-sm" name='bb1' | |||||
onClick="location='recycling.php?cid={dede:global.cid/}';">文章回收站</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -107,18 +104,18 @@ | |||||
<tr bgcolor="#ffffff"> | <tr bgcolor="#ffffff"> | ||||
<td height="36" colspan="10"> | <td height="36" colspan="10"> | ||||
| | ||||
<a href="javascript:selAll()" class="coolbg">全选</a> | |||||
<a href="javascript:noSelAll()" class="coolbg">取消</a> | |||||
<a href="javascript:updateArc(0)" class="coolbg"> 更新 </a> | |||||
<a href="javascript:checkArc(0)" class="coolbg"> 审核 </a> | |||||
<a href="javascript:adArc(0)" class="coolbg"> 推荐 </a> | |||||
<a href="javascript:;" | |||||
<a class="btn btn-secondary btn-sm" href="javascript:selAll()">全选</a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:noSelAll()">取消</a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:updateArc(0)"> 更新 </a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:checkArc(0)"> 审核 </a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:adArc(0)"> 推荐 </a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:;" | |||||
onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" | onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" | ||||
class="coolbg"> 移动 </a> | class="coolbg"> 移动 </a> | ||||
<a href="javascript:delArc(0)" class="coolbg"> 删除 </a> | |||||
<?php if($channelid==1) echo " <a href=\"javascript:kwArc(0)\" class=\"coolbg\"> 自动关键字 </a>\r\n"; ?> | |||||
<a href="javascript:;" onClick="cAtts('attsAdd',event,this)" class="coolbg"> 增加属性 </a> | |||||
<a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="coolbg"> 删除属性 </a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:delArc(0)"> 删除 </a> | |||||
<?php if($channelid==1) echo " <a class='btn btn-secondary btn-sm' href='javascript:kwArc(0)' class='coolbg'> 自动关键字 </a>\r\n"; ?> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:;" onClick="cAtts('attsAdd',event,this)" class="coolbg"> 增加属性 </a> | |||||
<a href="javascript:;" onClick="cAtts('attsDel',event,this)" class="btn btn-secondary btn-sm"> 删除属性 </a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
@@ -167,8 +164,7 @@ | |||||
</select> | </select> | ||||
</td> | </td> | ||||
<td> | <td> | ||||
<input name="imageField" type="image" src="images/button_search.gif" width="60" | |||||
height="22" border="0" class="np" /> | |||||
<button type="submit" class="btn btn-secondary">搜索</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -118,12 +118,10 @@ | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table-borderless"> | <table width="98%" border="0" cellspacing="0" cellpadding="0" class="table-borderless"> | ||||
<tr> | <tr> | ||||
<td align="center"> | <td align="center"> | ||||
<input type='button' class="coolbg np" onClick="location='makehtml_spec.php';" | |||||
value='更新专题HTML' /> | |||||
<input type='button' class="coolbg np" onClick="location='spec_add.php';" value='添加专题' /> | |||||
<button type='button' class="btn btn-secondary btn-sm" onClick="location='makehtml_spec.php';">更新专题HTML</button> | |||||
<button type='button' class="btn btn-secondary btn-sm" onClick="location='spec_add.php';">添加专题</button> | |||||
<?php echo $CheckUserSend?> | <?php echo $CheckUserSend?> | ||||
<input type='button' class="coolbg np" onClick="location='catalog_main.php';" | |||||
value='频道管理' /> | |||||
<button type='button' class="btn btn-secondary btn-sm" onClick="location='catalog_main.php';">频道管理</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -173,14 +171,14 @@ | |||||
<tr bgcolor="#ffffff"> | <tr bgcolor="#ffffff"> | ||||
<td height="24" colspan="9"> | <td height="24" colspan="9"> | ||||
| | ||||
<a href="javascript:selAll()" class="coolbg">全选</a> | |||||
<a href="javascript:noSelAll()" class="coolbg">取消</a> | |||||
<a href="javascript:viewArc(0)" class="coolbg"> 查看 </a> | |||||
<a href="javascript:editArc(0)" class="coolbg"> 更改 </a> | |||||
<a href="javascript:updateArc(0)" class="coolbg"> 更新 </a> | |||||
<a href="javascript:checkArc(0)" class="coolbg"> 审核 </a> | |||||
<a href="javascript:adArc(0)" class="coolbg"> 推荐 </a> | |||||
<a href="javascript:delArc(0)" class="coolbg"> 删除 </a> | |||||
<a href="javascript:selAll()" class="btn btn-secondary btn-sm">全选</a> | |||||
<a href="javascript:noSelAll()" class="btn btn-secondary btn-sm">取消</a> | |||||
<a href="javascript:viewArc(0)" class="btn btn-secondary btn-sm"> 查看 </a> | |||||
<a href="javascript:editArc(0)" class="btn btn-secondary btn-sm"> 更改 </a> | |||||
<a href="javascript:updateArc(0)" class="btn btn-secondary btn-sm"> 更新 </a> | |||||
<a href="javascript:checkArc(0)" class="btn btn-secondary btn-sm"> 审核 </a> | |||||
<a href="javascript:adArc(0)" class="btn btn-secondary btn-sm"> 推荐 </a> | |||||
<a href="javascript:delArc(0)" class="btn btn-secondary btn-sm"> 删除 </a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
@@ -209,8 +207,7 @@ | |||||
<input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'> | <input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'> | ||||
</td> | </td> | ||||
<td> | <td> | ||||
<input name="imageField" type="image" src="images/button_search.gif" width="60" height="22" | |||||
border="0" class="np"> | |||||
<button type="submit" class="btn btn-secondary">搜索</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -1,163 +1,136 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<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"> | |||||
//获得选中文件的文件名 | |||||
function getCheckboxItem() | |||||
{ | |||||
var allSel=""; | |||||
if(document.form2.arcID.value) return document.form2.arcID.value; | |||||
for(i=0;i<document.form2.arcID.length;i++) | |||||
{ | |||||
if(document.form2.arcID[i].checked) | |||||
{ | |||||
if(allSel=="") | |||||
allSel = document.form2.arcID[i].value; | |||||
else | |||||
allSel = allSel+","+document.form2.arcID[i].value; | |||||
<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"> | |||||
//获得选中文件的文件名 | |||||
function getCheckboxItem() { | |||||
var allSel = ""; | |||||
if (document.form2.arcID.value) return document.form2.arcID.value; | |||||
for (i = 0; i < document.form2.arcID.length; i++) { | |||||
if (document.form2.arcID[i].checked) { | |||||
if (allSel == "") | |||||
allSel = document.form2.arcID[i].value; | |||||
else | |||||
allSel = allSel + "," + document.form2.arcID[i].value; | |||||
} | |||||
} | |||||
return allSel; | |||||
} | } | ||||
} | |||||
return allSel; | |||||
} | |||||
function selAll() | |||||
{ | |||||
for(i=0;i<document.form2.arcID.length;i++) | |||||
{ | |||||
if(!document.form2.arcID[i].checked) | |||||
{ | |||||
document.form2.arcID[i].checked=true; | |||||
function selAll() { | |||||
for (i = 0; i < document.form2.arcID.length; i++) { | |||||
if (!document.form2.arcID[i].checked) { | |||||
document.form2.arcID[i].checked = true; | |||||
} | |||||
} | |||||
} | } | ||||
} | |||||
} | |||||
function noSelAll() | |||||
{ | |||||
for(i=0;i<document.form2.arcID.length;i++) | |||||
{ | |||||
if(document.form2.arcID[i].checked) | |||||
{ | |||||
document.form2.arcID[i].checked=false; | |||||
function noSelAll() { | |||||
for (i = 0; i < document.form2.arcID.length; i++) { | |||||
if (document.form2.arcID[i].checked) { | |||||
document.form2.arcID[i].checked = false; | |||||
} | |||||
} | |||||
} | } | ||||
} | |||||
} | |||||
function ReturnValue() | |||||
{ | |||||
if(window.opener.document.<?php echo $f?>.value==""){ | |||||
window.opener.document.<?php echo $f?>.value = getCheckboxItem(); | |||||
} | |||||
else{ | |||||
window.opener.document.<?php echo $f?>.value += ","+getCheckboxItem(); | |||||
} | |||||
window.opener=null; | |||||
window.close(); | |||||
} | |||||
</script> | |||||
function ReturnValue() { | |||||
if (window.opener.document.<?php echo $f ?>.value == "") { | |||||
window.opener.document.<?php echo $f ?>.value = getCheckboxItem(); | |||||
} else { | |||||
window.opener.document.<?php echo $f ?>.value += "," + getCheckboxItem(); | |||||
} | |||||
window.opener = null; | |||||
window.close(); | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body leftmargin="0" topmargin="0" background='images/allbg.gif'> | <body leftmargin="0" topmargin="0" background='images/allbg.gif'> | ||||
<table width='98%' border='0' align='center' cellpadding='0' cellspacing='0' align="center"> | |||||
<tr> | |||||
<td align='center' valign='top'> | |||||
<table width="100%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr bgcolor="#FFFFFF"><td height="4"></td></tr> | |||||
</table> | |||||
<table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<tr bgcolor="#E7E7E7"> | |||||
<td height="24" colspan="9" background="images/tbg.gif"> | |||||
<strong> §文章列表</strong> | |||||
</td> | |||||
</tr> | |||||
<form name="form2"> | |||||
<tr align="center" bgcolor="#FAFAF1" height="22"> | |||||
<td width="6%">ID</td> | |||||
<td width="4%">选择</td> | |||||
<td width="30%">文章标题</td> | |||||
<td width="10%">更新时间</td> | |||||
<td width="11%">类目</td> | |||||
<td width="8%">点击</td> | |||||
<td width="7%">HTML</td> | |||||
<td width="10%">权限</td> | |||||
<td width="13%">属性</td> | |||||
</tr> | |||||
{dede:datalist} | |||||
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22"> | |||||
<td>{dede:field.id/}</td> | |||||
<td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td> | |||||
<td align='left'> | |||||
<a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives'><u>{dede:field.title/}</u></a> | |||||
</td> | |||||
<td>{dede:field.senddate function="GetDateMk(@me)" /}</td> | |||||
<td>{dede:field.typeid function='GetTypename(@me)'/}</td> | |||||
<td>{dede:field.click/}</td> | |||||
<td>{dede:field.ismake function="IsHtmlArchives(@me)" /}</td> | |||||
<td>{dede:field.arcrank function="GetRankName(@me)" /}</td> | |||||
<td>{dede:field.flag function="IsCommendArchives(@me)" /}</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr bgcolor="#FAFAF1"> | |||||
<td height="24" colspan="9"> | |||||
| |||||
<a href="javascript:selAll()" class="coolbg">全选</a> | |||||
| |||||
<a href="javascript:noSelAll()" class="coolbg">取消</a> | |||||
| |||||
<a href="javascript:ReturnValue()" class="coolbg">把选定值加到列表</a> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr align="right" bgcolor="#EEF4EA"> | |||||
<td height="20" colspan="9" align="center"> | |||||
{dede:pagelist listsize=5/} | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td height="4"></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="26"> | |||||
<table width='100%' border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC'> | |||||
<tr bgcolor='#EEF4EA'> | |||||
<form name='form3' action='content_select_list.php' method='get'> | |||||
<input type='hidden' name='f' value='<?php echo $f?>'> | |||||
<td background='images/wbg.gif'> | |||||
<table width='600' border='0' cellpadding='0' cellspacing='0'> | |||||
<tr> | |||||
<td width='90' align='center'>请选择类目:</td> | |||||
<td width='160'> | |||||
<select name='cid' style='width:250px'> | |||||
<option value='0'>选择分类...</option> | |||||
<?php echo $optionarr?> | |||||
</select> | |||||
</td> | |||||
<td width='70'> | |||||
关键字: | |||||
</td> | |||||
<td width='160'> | |||||
<input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'> | |||||
</td> | |||||
<td> | |||||
<input name="imageField" type="image" src="images/button_search.gif" width="60" height="22" border="0" class="np"> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</form> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2" height="4"></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||||
<tr bgcolor="#E7E7E7"> | |||||
<td height="24" colspan="9" background="images/tbg.gif"> | |||||
<strong> §文章列表</strong> | |||||
</td> | |||||
</tr> | |||||
<form name="form2"> | |||||
<tr align="center" bgcolor="#FAFAF1" height="22"> | |||||
<td width="6%">ID</td> | |||||
<td width="4%">选择</td> | |||||
<td width="30%">文章标题</td> | |||||
<td width="10%">更新时间</td> | |||||
<td width="11%">类目</td> | |||||
<td width="8%">点击</td> | |||||
<td width="7%">HTML</td> | |||||
<td width="10%">权限</td> | |||||
<td width="13%">属性</td> | |||||
</tr> | |||||
{dede:datalist} | |||||
<tr align='center' bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';" height="22"> | |||||
<td>{dede:field.id/}</td> | |||||
<td><input name="arcID" type="checkbox" id="arcID" value="{dede:field.id/}" class="np"></td> | |||||
<td align='left'> | |||||
<a href='archives_do.php?aid={dede:field.id/}&dopost=editArchives'><u>{dede:field.title/}</u></a> | |||||
</td> | |||||
<td>{dede:field.senddate function="GetDateMk(@me)" /}</td> | |||||
<td>{dede:field.typeid function='GetTypename(@me)'/}</td> | |||||
<td>{dede:field.click/}</td> | |||||
<td>{dede:field.ismake function="IsHtmlArchives(@me)" /}</td> | |||||
<td>{dede:field.arcrank function="GetRankName(@me)" /}</td> | |||||
<td>{dede:field.flag function="IsCommendArchives(@me)" /}</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr bgcolor="#FAFAF1"> | |||||
<td height="24" colspan="9"> | |||||
| |||||
<a href="javascript:selAll()" class="btn btn-secondary btn-sm">全选</a> | |||||
| |||||
<a href="javascript:noSelAll()" class="btn btn-secondary btn-sm">取消</a> | |||||
| |||||
<a href="javascript:ReturnValue()" class="btn btn-secondary btn-sm">把选定值加到列表</a> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr align="right" bgcolor="#EEF4EA"> | |||||
<td height="20" colspan="9" align="center"> | |||||
{dede:pagelist listsize=5/} | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width='100%' align="center" border='0' cellpadding='1' cellspacing='1' bgcolor='#CBD8AC' class="table maintable table-borderless"> | |||||
<tr bgcolor='#EEF4EA'> | |||||
<form name='form3' action='content_select_list.php' method='get'> | |||||
<input type='hidden' name='f' value='<?php echo $f?>'> | |||||
<td> | |||||
<table width='600' border='0' cellpadding='0' cellspacing='0'> | |||||
<tr> | |||||
<td width='90' align='center'>请选择类目:</td> | |||||
<td width='160'> | |||||
<select name='cid' style='width:150px'> | |||||
<option value='0'>选择分类...</option> | |||||
<?php echo $optionarr?> | |||||
</select> | |||||
</td> | |||||
<td width='70'> | |||||
关键字: | |||||
</td> | |||||
<td width='160'> | |||||
<input type='text' name='keyword' value='<?php echo $keyword?>' style='width:150'> | |||||
</td> | |||||
<td> | |||||
<button type="submit" class="btn btn-secondary">搜索</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</form> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -134,26 +134,26 @@ | |||||
<table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="table table-bordered maintable mt-3"> | <table width="98%" align="center" border="0" cellspacing="0" cellpadding="0" class="table table-bordered maintable mt-3"> | ||||
<tr> | <tr> | ||||
<td align="center"> | <td align="center"> | ||||
<input type='button' class="coolbg np" | |||||
<button type='button' class="btn btn-secondary btn-sm" | |||||
onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';" | onClick="location='catalog_do.php?channelid={dede:global.channelid/}&cid={dede:global.cid/}&dopost=addArchives';" | ||||
value='添加文档' /> | |||||
>添加文档</button> | |||||
{dede:if $adminid==$mid } | {dede:if $adminid==$mid } | ||||
<input type='button' class="coolbg np" | |||||
<button type='button' class="btn btn-secondary btn-sm" | |||||
onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';" | onClick="location='content_list.php?cid={dede:global.cid/}&mid=0';" | ||||
value='全部文档' /> | |||||
>全部文档</button> | |||||
{else} | {else} | ||||
<input type='button' class="coolbg np" | |||||
<button type='button' class="btn btn-secondary btn-sm" | |||||
onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';" | onClick="location='content_list.php?cid={dede:global.cid/}&mid=<?php echo $cuserLogin->getUserID(); ?>';" | ||||
value='我的文档' /> | |||||
>我的文档</button> | |||||
{/dede:if} | {/dede:if} | ||||
<input type='button' class="coolbg np" onClick="location='catalog_main.php';" | |||||
value='栏目管理' /> | |||||
<input type='button' class="coolbg np" name='bb1' | |||||
<button type='button' class="btn btn-secondary btn-sm" onClick="location='catalog_main.php';" | |||||
>栏目管理</button> | |||||
<button type='button' class="btn btn-secondary btn-sm" name='bb1' | |||||
onClick="location='makehtml_list.php?cid={dede:global.cid/}';" | onClick="location='makehtml_list.php?cid={dede:global.cid/}';" | ||||
value='更新列表' /> | |||||
<input type='button' class="coolbg np" name='bb2' | |||||
>更新列表</button> | |||||
<button type='button' class="btn btn-secondary btn-sm" name='bb2' | |||||
onClick="location='makehtml_archives.php?cid={dede:global.cid/}';" | onClick="location='makehtml_archives.php?cid={dede:global.cid/}';" | ||||
value='更新文档' /> | |||||
>更新文档</button> | |||||
<?php echo $CheckUserSend; ?> | <?php echo $CheckUserSend; ?> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -213,15 +213,15 @@ | |||||
<tr bgcolor="#ffffff"> | <tr bgcolor="#ffffff"> | ||||
<td height="24" colspan="9"> | <td height="24" colspan="9"> | ||||
| | ||||
<a href="javascript:selAll()" class="coolbg">全选</a> | |||||
<a href="javascript:noSelAll()" class="coolbg">取消</a> | |||||
<a href="javascript:updateArc(0)" class="coolbg"> 更新 </a> | |||||
<a href="javascript:checkArc(0)" class="coolbg"> 审核 </a> | |||||
<a href="javascript:adArc(0)" class="coolbg"> 推荐 </a> | |||||
<a href="javascript:;" | |||||
<a class="btn btn-secondary btn-sm" href="javascript:selAll()" class="coolbg">全选</a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:noSelAll()" class="coolbg">取消</a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:updateArc(0)" class="coolbg"> 更新 </a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:checkArc(0)" class="coolbg"> 审核 </a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:adArc(0)" class="coolbg"> 推荐 </a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:;" | |||||
onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" | onClick="moveArc(event,this,<?php echo (empty($channelid) ? 0 : $channelid); ?>)" | ||||
class="coolbg"> 移动 </a> | class="coolbg"> 移动 </a> | ||||
<a href="javascript:delArc(0)" class="coolbg"> 删除 </a> | |||||
<a class="btn btn-secondary btn-sm" href="javascript:delArc(0)" class="coolbg"> 删除 </a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
@@ -259,9 +259,7 @@ | |||||
style='width:150'> | style='width:150'> | ||||
</td> | </td> | ||||
<td> | <td> | ||||
<input name="imageField" type="image" | |||||
src="images/button_search.gif" width="60" height="22" | |||||
border="0" class="np"> | |||||
<button type="submit" class="btn btn-secondary">搜索</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -1,82 +1,88 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>编辑评论</title> | |||||
<style type="text/css"> | |||||
<!-- | |||||
body { | |||||
background-image: url(images/allbg.gif); | |||||
} | |||||
--> | |||||
</style> | |||||
<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> | |||||
<style type="text/css"> | |||||
body { | |||||
background-image: url(images/allbg.gif); | |||||
} | |||||
</style> | |||||
<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> | </head> | ||||
<body> | <body> | ||||
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#cfcfcf"> | |||||
<tr> | |||||
<td width="100%" height="24" colspan="2" background="images/tbg.gif" style="padding-left:10px;"><strong><a href="<?php echo $ENV_GOBACK_URL; ?>"><u>评论管理</u></a> >> 编辑评论:</strong> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="187" colspan="2" align="center" bgcolor="#FFFFFF"> | |||||
<form name="form1" method="post" action="feedback_edit.php"> | |||||
<input type="hidden" name="dopost" value="edit" /> | |||||
<input type="hidden" name="id" value="<?php echo $row['id']; ?>" /> | |||||
<table width="100%" border="0" cellpadding="3" cellspacing="1" style="text-align:left;"> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td width="120" height="24">评论所属文章:</td> | |||||
<td> | |||||
<?php echo RemoveXSS($row['arctitle']);?> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">评论人:</td> | |||||
<td> | |||||
<input name="username" type="text" id="username" size="20" value="<?php echo $row['username']; ?>" /> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">评论发布时间:</td> | |||||
<td> | |||||
<?php echo GetDateTimeMK($row['dtime']); ?> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">IP地址:</td> | |||||
<td> | |||||
<?php echo $row['ip']; ?> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">评论内容:</td> | |||||
<td>更改的评论内容HTML代码不会被屏蔽,可用HTML语法编辑。</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="62" align="center"> </td> | |||||
<td height="62"> | |||||
<textarea name="msg" cols="60" rows="5" id="msg"><?php echo cn_substr(Text2Html($row['msg']), 250); ?></textarea></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">管理员回复:</td> | |||||
<td>回复内容的HTML代码会被屏蔽。</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24" align="center"> </td> | |||||
<td height="24"> | |||||
<textarea name="adminmsg" cols="60" rows="5" id="adminmsg"></textarea></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="40" width='600' colspan="2" align="center"> | |||||
<input type="submit" name="Submit1" class='coolbg np' value="保存更改" /> | |||||
| |||||
<input type="button" name="Submit2" class='coolbg np' value="不理返回" onClick="location='<?php echo $ENV_GOBACK_URL; ?>';" /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#cfcfcf" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td width="100%" height="24" colspan="2" background="images/tbg.gif" style="padding-left:10px;"><strong><a | |||||
href="<?php echo $ENV_GOBACK_URL; ?>"><u>评论管理</u></a> >> 编辑评论:</strong> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="187" colspan="2" align="center" bgcolor="#FFFFFF"> | |||||
<form name="form1" method="post" action="feedback_edit.php"> | |||||
<input type="hidden" name="dopost" value="edit" /> | |||||
<input type="hidden" name="id" value="<?php echo $row['id']; ?>" /> | |||||
<table width="100%" border="0" cellpadding="3" cellspacing="1" style="text-align:left;" class="table table-borderless"> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td width="120" height="24">评论所属文章:</td> | |||||
<td> | |||||
<?php echo RemoveXSS($row['arctitle']);?> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">评论人:</td> | |||||
<td> | |||||
<input name="username" type="text" id="username" size="20" value="<?php echo $row['username']; ?>" /> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">评论发布时间:</td> | |||||
<td> | |||||
<?php echo GetDateTimeMK($row['dtime']); ?> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">IP地址:</td> | |||||
<td> | |||||
<?php echo $row['ip']; ?> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">评论内容:</td> | |||||
<td>更改的评论内容HTML代码不会被屏蔽,可用HTML语法编辑。</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="62" align="center"> </td> | |||||
<td height="62"> | |||||
<textarea name="msg" cols="60" rows="5" | |||||
id="msg"><?php echo cn_substr(Text2Html($row['msg']), 250); ?></textarea></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24">管理员回复:</td> | |||||
<td>回复内容的HTML代码会被屏蔽。</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="24" align="center"> </td> | |||||
<td height="24"> | |||||
<textarea name="adminmsg" cols="60" rows="5" id="adminmsg"></textarea></td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td height="40" width='600' colspan="2" align="center"> | |||||
<button type="submit" class="btn btn-secondary">保存更改</button> | |||||
| |||||
<button onClick="location='<?php echo $ENV_GOBACK_URL; ?>';" type="button" class="btn btn-secondary">不理返回</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -66,7 +66,7 @@ | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" align="center" cellspacing="1" bgcolor="#D6D6D6" class="table table-borderless maintable mt-3"> | |||||
<table width="98%" border="0" cellpadding="3" align="center" cellspacing="1" bgcolor="#D6D6D6" class="table table-bordered maintable mt-3"> | |||||
<tr> | <tr> | ||||
<td height="28" background='images/tbg.gif' style="padding-left:10px;"> | <td height="28" background='images/tbg.gif' style="padding-left:10px;"> | ||||
<div style="float:left;"> | <div style="float:left;"> | ||||
@@ -80,7 +80,7 @@ | |||||
<option value="0">--请选择--</option> | <option value="0">--请选择--</option> | ||||
{dede:global.openarray /} | {dede:global.openarray /} | ||||
</select> | </select> | ||||
<input type='submit' name='sb' value=' 搜索 ' class='coolbt' /> | |||||
<button type="submit" class="btn btn-secondary">搜索</button> | |||||
</form> | </form> | ||||
</div> | </div> | ||||
</td> | </td> | ||||
@@ -88,7 +88,7 @@ | |||||
<form name='feedback'> | <form name='feedback'> | ||||
<tr> | <tr> | ||||
<td height="215" bgcolor="#FFFFFF" valign="top"> | <td height="215" bgcolor="#FFFFFF" valign="top"> | ||||
<table width='100%' border='0' cellpadding='0' cellspacing='0'> | |||||
<table width='100%' border='0' cellpadding='0' cellspacing='0' class="table table-borderless"> | |||||
{dede:datalist} | {dede:datalist} | ||||
<tr height='25'> | <tr height='25'> | ||||
<td> | <td> | ||||
@@ -115,9 +115,7 @@ | |||||
时间:{dede:field.dtime function="GetDateTimeMK(@me)" /} | 时间:{dede:field.dtime function="GetDateTimeMK(@me)" /} | ||||
</td> | </td> | ||||
<td width="10%" align="center"> | <td width="10%" align="center"> | ||||
<a href='feedback_edit.php?id={dede:field.id/}'><img | |||||
src="images/feedback-edit.gif" border="0" width="45" | |||||
height="18"></a> | |||||
<a href='feedback_edit.php?id={dede:field.id/}'><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 编辑</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr align="center" bgcolor="#FFFFFF"> | <tr align="center" bgcolor="#FFFFFF"> | ||||
@@ -146,20 +144,20 @@ | |||||
<table width="98%"> | <table width="98%"> | ||||
<tr> | <tr> | ||||
<td width="30%"> | <td width="30%"> | ||||
<input type='button' name='kk1' value='全选' onClick="selAll()" | |||||
class="coolbg np" /> | |||||
<input type='button' name='kk2' value='取消' onClick="selNone()" | |||||
class="coolbg np" /> | |||||
<input type='button' name='kk3' value='反选' onClick="selNor()" | |||||
class="coolbg np" /> | |||||
<button type='button' name='kk1' onClick="selAll()" | |||||
class="btn btn-secondary btn-sm">全选</button> | |||||
<button type='button' name='kk2' onClick="selNone()" | |||||
class="btn btn-secondary btn-sm">取消</button> | |||||
<button type='button' name='kk3' onClick="selNor()" | |||||
class="btn btn-secondary btn-sm">反选</button> | |||||
</td> | </td> | ||||
<td align="right"> | <td align="right"> | ||||
<input type='button' name='db' value=' 删除相同IP的所有评论 ' | |||||
onClick="delFeedbackIP()" class="coolbg np" /> | |||||
<input type='button' name='db' value=' 删除评论 ' onClick="delFeedback()" | |||||
class="coolbg np" /> | |||||
<input type='button' name='db2' value=' 审核评论 ' onClick="checkFeedback()" | |||||
class="coolbg np" /> | |||||
<button type='button' name='db' | |||||
onClick="delFeedbackIP()" class="btn btn-secondary btn-sm">删除相同IP的所有评论</button> | |||||
<button type='button' name='db' onClick="delFeedback()" | |||||
class="btn btn-secondary btn-sm">删除评论</button> | |||||
<button type='button' name='db2' onClick="checkFeedback()" | |||||
class="btn btn-secondary btn-sm">审核评论</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -1,180 +1,206 @@ | |||||
<html> | <html> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>DedeCMS menu</title> | |||||
<link rel="stylesheet" href="css/base.css" type="text/css" /> | |||||
<script language="javascript" type="text/javascript" src="../static/js/dedeajax2.js"></script> | |||||
<script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script> | |||||
<?php | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>DedeCMS menu</title> | |||||
<link rel="stylesheet" href="css/base.css" type="text/css" /> | |||||
<script language="javascript" type="text/javascript" src="../static/js/dedeajax2.js"></script> | |||||
<script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script> | |||||
<?php | |||||
echo "<script language='javascript'>var curopenItem = '$openitem';</script>\r\n"; | echo "<script language='javascript'>var curopenItem = '$openitem';</script>\r\n"; | ||||
?> | ?> | ||||
<script language="javascript" type="text/javascript" src="js/leftmenu.js"></script> | |||||
<style> | |||||
div { | |||||
padding:0px; | |||||
margin:0px; | |||||
} | |||||
body { | |||||
padding:0px; | |||||
margin:auto; | |||||
text-align:center; | |||||
background-color:#eff5ed; | |||||
background:url(images/leftmenu_bg.gif); | |||||
padding-left:3px; | |||||
overflow:scroll; | |||||
overflow-x:hidden; | |||||
scrollbar-face-color: #eff8e6; | |||||
scrollbar-shadow-color: #edf2e3; | |||||
scrollbar-highlight-color: #ffffff; | |||||
scrollbar-3dlight-color: #F2F2F2; | |||||
scrollbar-darkshadow-color: #bdbcbd; | |||||
scrollbar-arrow-color: #bdbcbd | |||||
} | |||||
dl.bitem { | |||||
clear:both; | |||||
width:140px; | |||||
margin:0px 0px 5px 12px; | |||||
background:url(images/menunewbg.gif) repeat-x; | |||||
} | |||||
dl.bitem2 { | |||||
clear:both; | |||||
width:140px; | |||||
margin:0px 0px 5px 12px; | |||||
background:url(images/menunewbg2.gif) repeat-x; | |||||
} | |||||
dl.bitem dt, dl.bitem2 dt { | |||||
height:25px; | |||||
line-height:25px; | |||||
padding-left:35px; | |||||
cursor:pointer; | |||||
} | |||||
dl.bitem dt b, dl.bitem2 dt b { | |||||
color:#4D6C2F; | |||||
} | |||||
dl.bitem dd, dl.bitem2 dd { | |||||
padding:3px 3px 3px 3px; | |||||
background-color:#fff; | |||||
} | |||||
div.items { | |||||
clear:both; | |||||
padding:0px; | |||||
height:0px; | |||||
} | |||||
.fllct { | |||||
float:left; | |||||
width:85px; | |||||
} | |||||
.flrct { | |||||
padding-top:3px; | |||||
float:left; | |||||
} | |||||
.sitemu li { | |||||
padding:0px 0px 0px 18px; | |||||
line-height:22px; | |||||
background:url(images/arr4.gif) no-repeat 5px 9px; | |||||
} | |||||
ul { | |||||
padding-top:3px; | |||||
} | |||||
li { | |||||
height:22px; | |||||
} | |||||
a.mmac div { | |||||
background:url(images/leftbg2.gif) no-repeat; | |||||
height:37px!important; | |||||
height:47px; | |||||
padding:6px 4px 4px 10px; | |||||
word-wrap: break-word; | |||||
word-break : break-all; | |||||
font-weight:bold; | |||||
color:#325304; | |||||
} | |||||
a.mm div { | |||||
background:url(images/leftmbg1.gif) no-repeat; | |||||
height:37px!important; | |||||
height:47px; | |||||
padding:6px 4px 4px 10px; | |||||
word-wrap: break-word; | |||||
word-break : break-all; | |||||
font-weight:bold; | |||||
color:#475645; | |||||
cursor:pointer; | |||||
} | |||||
a.mm:hover div { | |||||
background:url(images/leftbg2.gif) no-repeat; | |||||
color:#4F7632; | |||||
} | |||||
.mmf { | |||||
height:1px; | |||||
padding:5px 7px 5px 7px; | |||||
} | |||||
#mainct { | |||||
padding-top:8px; | |||||
background: url(images/idnbg1.gif) repeat-y; | |||||
} | |||||
</style> | |||||
<link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" /> | |||||
<base target="main" /> | |||||
<script language="javascript" type="text/javascript" src="js/leftmenu.js"></script> | |||||
<style> | |||||
div { | |||||
padding: 0px; | |||||
margin: 0px; | |||||
} | |||||
body { | |||||
padding: 0px; | |||||
margin: auto; | |||||
text-align: center; | |||||
background-color: #eff5ed; | |||||
background: url(images/leftmenu_bg.gif); | |||||
padding-left: 3px; | |||||
overflow: scroll; | |||||
overflow-x: hidden; | |||||
scrollbar-face-color: #eff8e6; | |||||
scrollbar-shadow-color: #edf2e3; | |||||
scrollbar-highlight-color: #ffffff; | |||||
scrollbar-3dlight-color: #F2F2F2; | |||||
scrollbar-darkshadow-color: #bdbcbd; | |||||
scrollbar-arrow-color: #bdbcbd | |||||
} | |||||
dl.bitem { | |||||
clear: both; | |||||
width: 140px; | |||||
margin: 0px 0px 5px 12px; | |||||
background: url(images/menunewbg.gif) repeat-x; | |||||
} | |||||
dl.bitem2 { | |||||
clear: both; | |||||
width: 140px; | |||||
margin: 0px 0px 5px 12px; | |||||
background: url(images/menunewbg2.gif) repeat-x; | |||||
} | |||||
dl.bitem dt, | |||||
dl.bitem2 dt { | |||||
height: 25px; | |||||
line-height: 25px; | |||||
padding-left: 35px; | |||||
cursor: pointer; | |||||
} | |||||
dl.bitem dt b, | |||||
dl.bitem2 dt b { | |||||
color: #4D6C2F; | |||||
} | |||||
dl.bitem dd, | |||||
dl.bitem2 dd { | |||||
padding: 3px 3px 3px 3px; | |||||
background-color: #fff; | |||||
} | |||||
div.items { | |||||
clear: both; | |||||
padding: 0px; | |||||
height: 0px; | |||||
} | |||||
.fllct { | |||||
float: left; | |||||
width: 85px; | |||||
} | |||||
.flrct { | |||||
padding-top: 3px; | |||||
float: left; | |||||
} | |||||
.sitemu li { | |||||
padding: 0px 0px 0px 18px; | |||||
line-height: 22px; | |||||
background: url(images/arr4.gif) no-repeat 5px 9px; | |||||
} | |||||
ul { | |||||
padding-top: 3px; | |||||
} | |||||
li { | |||||
height: 22px; | |||||
} | |||||
a.mmac div { | |||||
background: url(images/leftbg2.gif) no-repeat; | |||||
height: 37px !important; | |||||
height: 47px; | |||||
padding: 6px 4px 4px 10px; | |||||
word-wrap: break-word; | |||||
word-break: break-all; | |||||
font-weight: bold; | |||||
color: #325304; | |||||
} | |||||
a.mm div { | |||||
background: url(images/leftmbg1.gif) no-repeat; | |||||
height: 37px !important; | |||||
height: 47px; | |||||
padding: 6px 4px 4px 10px; | |||||
word-wrap: break-word; | |||||
word-break: break-all; | |||||
font-weight: bold; | |||||
color: #475645; | |||||
cursor: pointer; | |||||
} | |||||
a.mm:hover div { | |||||
background: url(images/leftbg2.gif) no-repeat; | |||||
color: #4F7632; | |||||
} | |||||
.mmf { | |||||
height: 1px; | |||||
padding: 5px 7px 5px 7px; | |||||
} | |||||
#mainct { | |||||
padding-top: 8px; | |||||
background: url(images/idnbg1.gif) repeat-y; | |||||
} | |||||
</style> | |||||
<link href="images/style<?php echo $cfg_admin_skin;?>/style.css" rel="stylesheet" type="text/css" /> | |||||
<base target="main" /> | |||||
</head> | </head> | ||||
<body target="main" onLoad="CheckOpenMenu();"> | <body target="main" onLoad="CheckOpenMenu();"> | ||||
<table width="180" align="left" border='0' cellspacing='0' cellpadding='0' style="text-align:left;"> | |||||
<tr> | |||||
<td valign='top' style='padding-top:10px' width='20'><a id='link1' class='mmac'> | |||||
<div onClick="ShowMainMenu(1)">核心</div> | |||||
</a> <a id='link100' class='mm'> | |||||
<div onClick="ShowMainMenu(100)">模块</div> | |||||
</a> <a id='link5' class='mm'> | |||||
<div onClick="ShowMainMenu(5)">生成</div> | |||||
</a> <a id='link3' class='mm'> | |||||
<div onClick="ShowMainMenu(3)">采集</div> | |||||
</a> <a id='link6' class='mm'> | |||||
<div onClick="ShowMainMenu(6)">会员</div> | |||||
</a> | |||||
<?php | |||||
<table width="180" align="left" border='0' cellspacing='0' cellpadding='0' style="text-align:left;"> | |||||
<tr> | |||||
<td valign='top' style='padding-top:10px' width='20'><a id='link1' class='mmac'> | |||||
<div onClick="ShowMainMenu(1)">核心</div> | |||||
</a> <a id='link100' class='mm'> | |||||
<div onClick="ShowMainMenu(100)">模块</div> | |||||
</a> <a id='link5' class='mm'> | |||||
<div onClick="ShowMainMenu(5)">生成</div> | |||||
</a> <a id='link3' class='mm'> | |||||
<div onClick="ShowMainMenu(3)">采集</div> | |||||
</a> <a id='link6' class='mm'> | |||||
<div onClick="ShowMainMenu(6)">会员</div> | |||||
</a> | |||||
<?php | |||||
if($cuserLogin->getUserType() >= 10) { | if($cuserLogin->getUserType() >= 10) { | ||||
?> | ?> | ||||
<a id='link7' class='mm'> | |||||
<div onClick="ShowMainMenu(7)">模板</div> | |||||
</a> <a id='link10' class='mm'> | |||||
<div onClick="ShowMainMenu(10)">系统</div> | |||||
</a> | |||||
<?php | |||||
<a id='link7' class='mm'> | |||||
<div onClick="ShowMainMenu(7)">模板</div> | |||||
</a> <a id='link10' class='mm'> | |||||
<div onClick="ShowMainMenu(10)">系统</div> | |||||
</a> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
<div class='mmf'></div></td> | |||||
<td width='160' id='mainct' valign="top"><div id='ct1'> | |||||
<?php | |||||
<div class='mmf'></div> | |||||
</td> | |||||
<td width='160' id='mainct' valign="top"> | |||||
<div id='ct1'> | |||||
<?php | |||||
GetMenus($cuserLogin->getUserRank(), 'main'); | GetMenus($cuserLogin->getUserRank(), 'main'); | ||||
?> | ?> | ||||
</div> | |||||
<div id='ct100'></div> | |||||
<div id='ct3'></div> | |||||
<div id='ct5'></div> | |||||
<div id='ct6'></div> | |||||
<div id='ct7'></div> | |||||
<div id='ct20'></div> | |||||
<div id='ct10'></div></td> | |||||
</tr> | |||||
<tr> | |||||
<td width='26'></td> | |||||
<td width='160' valign='top'><img src='images/idnbgfoot.gif' /></td> | |||||
</tr> | |||||
</table> | |||||
<?php | |||||
</div> | |||||
<div id='ct100'></div> | |||||
<div id='ct3'></div> | |||||
<div id='ct5'></div> | |||||
<div id='ct6'></div> | |||||
<div id='ct7'></div> | |||||
<div id='ct20'></div> | |||||
<div id='ct10'></div> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width='26'></td> | |||||
<td width='160' valign='top'><img src='images/idnbgfoot.gif' /></td> | |||||
</tr> | |||||
</table> | |||||
<?php | |||||
if(!empty($openitem) && $openitem!=1) | if(!empty($openitem) && $openitem!=1) | ||||
{ | { | ||||
?> | ?> | ||||
<script language='javascript'> | |||||
ShowMainMenu(100); | |||||
</script> | |||||
<?php | |||||
<script language='javascript'> | |||||
ShowMainMenu(100); | |||||
</script> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
<script language="javascript"> | |||||
function myAlert() | |||||
{ | |||||
alert('dede'); | |||||
} | |||||
</script> | |||||
<script language="javascript"> | |||||
function myAlert() { | |||||
alert('dede'); | |||||
} | |||||
</script> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -62,7 +62,7 @@ | |||||
</tr> | </tr> | ||||
<tr align="center" bgcolor="#ffffff"> | <tr align="center" bgcolor="#ffffff"> | ||||
<td colspan="7"> | <td colspan="7"> | ||||
<table width="90%" border="0" cellspacing="0" cellpadding="0"> | |||||
<table width="90%" border="0" cellspacing="0" cellpadding="0" class="table-borderless"> | |||||
<form name='formsearch'> | <form name='formsearch'> | ||||
<tr> | <tr> | ||||
<td> | <td> | ||||
@@ -82,7 +82,7 @@ | |||||
<option value="60">60天以内</option> | <option value="60">60天以内</option> | ||||
</select> | </select> | ||||
| | ||||
<input type="submit" name="Submit" value="搜索" /> | |||||
<button type="submit" class="btn btn-secondary btn-sm">搜索</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
@@ -128,10 +128,9 @@ | |||||
</form> | </form> | ||||
<tr> | <tr> | ||||
<td height="30" colspan="7" bgcolor="#FCFDF7"> | <td height="30" colspan="7" bgcolor="#FCFDF7"> | ||||
<input type="button" name="b5" value="反选" style="width:40px" class="coolbg np" onClick="ReSel();" /> | |||||
<input type="button" name="b6" value="删除所选" style="width:80px" class="coolbg np" onClick="DelSel();" /> | |||||
<input type="button" name="b7" value="清空所有日志" style="width:100px" class="coolbg np" | |||||
onClick="ClearLog();" /> | |||||
<button type="button" onClick="ReSel();" class="btn btn-secondary btn-sm">反选</button> | |||||
<button type="button" onClick="DelSel();" class="btn btn-secondary btn-sm">删除所选</button> | |||||
<button type="button" onClick="ClearLog();" class="btn btn-secondary btn-sm">清空所有日志</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr bgcolor="#F9FCEF"> | <tr bgcolor="#F9FCEF"> | ||||
@@ -1,144 +1,150 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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" /> | |||||
<style> | |||||
.coolbg2 | |||||
{ | |||||
border: 1px solid #000000; | |||||
background-color: #F2F5E9; | |||||
height:18px; | |||||
} | |||||
.pubinputs | |||||
{ | |||||
height:22px; | |||||
margin-top: 5px; | |||||
} | |||||
</style> | |||||
<script language='javascript'> | |||||
function CheckSubmit() | |||||
{ | |||||
if(document.form1.title.value==""){ | |||||
alert("请设定媒体标题!"); | |||||
document.form1.title.focus(); | |||||
return false; | |||||
} | |||||
} | |||||
var startNum = 6; | |||||
function MakeUpload() | |||||
{ | |||||
var upfield = document.getElementById("uploadfield"); | |||||
var endNum = Number(document.form1.picnum.value)+startNum; | |||||
if(endNum>40) endNum = 40; | |||||
for(startNum;startNum<=endNum;startNum++){ | |||||
upfield.innerHTML += "<input type='file' name='upfile"+startNum+"' style='width:300px' size='30' class='pubinputs' /><br/>"; | |||||
} | |||||
} | |||||
function ResetUpload() | |||||
{ | |||||
var upfield = document.getElementById("uploadfield"); | |||||
upfield.innerHTML = ""; | |||||
startNum = 2; | |||||
} | |||||
</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/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | |||||
<style> | |||||
.coolbg2 { | |||||
border: 1px solid #000000; | |||||
background-color: #F2F5E9; | |||||
height: 18px; | |||||
} | |||||
.pubinputs { | |||||
height: 22px; | |||||
margin-top: 5px; | |||||
} | |||||
</style> | |||||
<script language='javascript'> | |||||
function CheckSubmit() { | |||||
if (document.form1.title.value == "") { | |||||
ShowMsg("请设定媒体标题!"); | |||||
document.form1.title.focus(); | |||||
return false; | |||||
} | |||||
} | |||||
var startNum = 6; | |||||
function MakeUpload() { | |||||
var upfield = document.getElementById("uploadfield"); | |||||
var endNum = Number(document.form1.picnum.value) + startNum; | |||||
if (endNum > 40) endNum = 40; | |||||
for (startNum; startNum <= endNum; startNum++) { | |||||
upfield.innerHTML += "<input type='file' name='upfile" + startNum + "' style='width:300px' size='30' class='pubinputs' /><br/>"; | |||||
} | |||||
} | |||||
function ResetUpload() { | |||||
var upfield = document.getElementById("uploadfield"); | |||||
upfield.innerHTML = ""; | |||||
startNum = 2; | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background="images/allbg.gif" leftmargin='8' topmargin='8'> | <body background="images/allbg.gif" leftmargin='8' topmargin='8'> | ||||
<table width="98%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6"> | |||||
<tr> | |||||
<td height="28" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="2%" align="center" valign="middle"><img src="images/item_tt2.gif" width="7" height="15" /></td> | |||||
<td width="44%"><strong>上传新文件:</strong></td> | |||||
<td width="54%" align="right">[<a href='media_main.php'><u>附件/媒体数据管理</u></a>]</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="19" bgcolor="#ffffff"> | |||||
<img src="images/help.gif" border="0" /> | |||||
提示:图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)。 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="69" align="center" valign="top" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellpadding="0" cellspacing="0"> | |||||
<form enctype="multipart/form-data" name='form1' action="media_add.php" method="POST" onSubmit="return CheckSubmit();"> | |||||
<input type="hidden" name="dopost" value="upload" /> | |||||
<input type="hidden" name="token" value="<?php echo make_hash();?>" /> | |||||
<tr> | |||||
<td width="15%" height="30" align="center" bgcolor="#FFFFFF" class='bline'>媒体类型:</td> | |||||
<td width="85%" height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;"> | |||||
<input name="mediatype" type="radio" class="np" value="1" checked='1' /> | |||||
图片 | |||||
<input type="radio" name="mediatype" class="np" value="2" /> | |||||
FLASH | |||||
<input type="radio" name="mediatype" class="np" value="3" /> | |||||
视频/音频 | |||||
<input type="radio" name="mediatype" class="np" value="4" /> | |||||
附件/其它 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>说明标题:</td> | |||||
<td height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;"> | |||||
<input name="title" type="text" id="title" size="30" style="width:300px" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>参数说明:</td> | |||||
<td height="30" bgcolor="#FFFFFF" class='bline' colspan='2' style="text-align:left;"> | |||||
图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>附加参数:</td> | |||||
<td height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;">宽: | |||||
<input name="mediawidth" type="text" id="mediawidth" size="5" /> | |||||
(像素) 高: | |||||
<input name="mediaheight" type="text" id="mediaheight" size="5" /> | |||||
(像素) 播放时间: | |||||
<input name="playtime" type="text" id="mediawidth3" size="5" /> | |||||
(分钟)</td> | |||||
</tr> | |||||
<table width="98%" align="center" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="28" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | <tr> | ||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>上传文件:</td> | |||||
<td bgcolor="#FFFFFF" class='bline' style="text-align:left;">数量: | |||||
<input name="picnum" type="text" id="picnum" value="5" size="6" /> | |||||
<input type="button" name="Submit" value="增加" onClick="MakeUpload()" /> | |||||
| |||||
<input type="button" name="Submit" value="恢复" onClick="ResetUpload()" /> | |||||
</td> | |||||
<td width="2%" align="center" valign="middle"><img src="images/item_tt2.gif" width="7" height="15" /></td> | |||||
<td width="44%"><strong>上传新文件:</strong></td> | |||||
<td width="54%" align="right">[<a href='media_main.php'><u>附件/媒体数据管理</u></a>]</td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td align="center" bgcolor="#FFFFFF"> </td> | |||||
<td bgcolor="#FFFFFF" style="text-align:left;"> | |||||
<input name="upfile1" type="file" id="upfile1" style='width:300px' size='30' class='pubinputs' /><br/> | |||||
<input name="upfile2" type="file" id="upfile2" style='width:300px' size='30' class='pubinputs' /><br/> | |||||
<input name="upfile3" type="file" id="upfile3" style='width:300px' size='30' class='pubinputs' /><br/> | |||||
<input name="upfile4" type="file" id="upfile4" style='width:300px' size='30' class='pubinputs' /><br/> | |||||
<input name="upfile5" type="file" id="upfile5" style='width:300px' size='30' class='pubinputs' /><br/> | |||||
<span id='uploadfield'></span> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="50" colspan="2" bgcolor="#FFFFFF"> | |||||
<table width="60%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td align="center"> | |||||
<input class="np" name="imageField" type="image" src="images/button_save.gif" width="60" height="22" border="0" /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="19" bgcolor="#ffffff"> | |||||
<img src="images/help.gif" border="0" /> | |||||
提示:图片类型仅支持jpg、png、gif、wbmp格式,flash为.swf格式,视音频和附件为限定扩展名的类型(可在系统参数中修改)。 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="69" align="center" valign="top" bgcolor="#FFFFFF"> | |||||
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<form enctype="multipart/form-data" name='form1' action="media_add.php" method="POST" | |||||
onSubmit="return CheckSubmit();"> | |||||
<input type="hidden" name="dopost" value="upload" /> | |||||
<input type="hidden" name="token" value="<?php echo make_hash();?>" /> | |||||
<tr> | |||||
<td width="15%" height="30" align="center" bgcolor="#FFFFFF" class='bline'>媒体类型:</td> | |||||
<td width="85%" height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;"> | |||||
<input name="mediatype" type="radio" class="np" value="1" checked='1' /> | |||||
图片 | |||||
<input type="radio" name="mediatype" class="np" value="2" /> | |||||
FLASH | |||||
<input type="radio" name="mediatype" class="np" value="3" /> | |||||
视频/音频 | |||||
<input type="radio" name="mediatype" class="np" value="4" /> | |||||
附件/其它 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>说明标题:</td> | |||||
<td height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;"> | |||||
<input name="title" type="text" id="title" size="30" style="width:300px" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>参数说明:</td> | |||||
<td height="30" bgcolor="#FFFFFF" class='bline' colspan='2' style="text-align:left;"> | |||||
图片不需要指定“宽”、“高”,其它附加参数仅方便多媒体文件管理,没其它含义 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>附加参数:</td> | |||||
<td height="25" bgcolor="#FFFFFF" class='bline' style="text-align:left;">宽: | |||||
<input name="mediawidth" type="text" id="mediawidth" size="5" /> | |||||
(像素) 高: | |||||
<input name="mediaheight" type="text" id="mediaheight" size="5" /> | |||||
(像素) 播放时间: | |||||
<input name="playtime" type="text" id="mediawidth3" size="5" /> | |||||
(分钟)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#FFFFFF" class='bline'>上传文件:</td> | |||||
<td bgcolor="#FFFFFF" class='bline' style="text-align:left;">数量: | |||||
<input name="picnum" type="text" id="picnum" value="5" size="6" /> | |||||
<input type="button" name="Submit" value="增加" onClick="MakeUpload()" /> | |||||
| |||||
<input type="button" name="Submit" value="恢复" onClick="ResetUpload()" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td align="center" bgcolor="#FFFFFF"> </td> | |||||
<td bgcolor="#FFFFFF" style="text-align:left;"> | |||||
<input name="upfile1" type="file" id="upfile1" style='width:300px' size='30' class='pubinputs' /><br /> | |||||
<input name="upfile2" type="file" id="upfile2" style='width:300px' size='30' class='pubinputs' /><br /> | |||||
<input name="upfile3" type="file" id="upfile3" style='width:300px' size='30' class='pubinputs' /><br /> | |||||
<input name="upfile4" type="file" id="upfile4" style='width:300px' size='30' class='pubinputs' /><br /> | |||||
<input name="upfile5" type="file" id="upfile5" style='width:300px' size='30' class='pubinputs' /><br /> | |||||
<span id='uploadfield'></span> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="50" colspan="2" bgcolor="#FFFFFF"> | |||||
<table width="60%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td align="center"> | |||||
<button type="submit" class="btn btn-secondary">保存</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | |||||
</table> | |||||
</body> | |||||
</tr> | |||||
</table> | |||||
</body> | |||||
</html> | </html> |
@@ -27,7 +27,7 @@ | |||||
<tr> | <tr> | ||||
<td height="30" align="center" bgcolor="#F9FCEF"> | <td height="30" align="center" bgcolor="#F9FCEF"> | ||||
<form action="member_main.php" name="form1" method="get"> | <form action="member_main.php" name="form1" method="get"> | ||||
<table border="0" cellspacing="0" cellpadding="3" class="table table-borderless"> | |||||
<table border="0" cellspacing="0" cellpadding="3" class="table table-borderless" style="width: 790px;"> | |||||
<tr> | <tr> | ||||
<td>关键字:</td> | <td>关键字:</td> | ||||
<td><input name="keyword" type="text" id="keyword" size="12" style="width:120px" | <td><input name="keyword" type="text" id="keyword" size="12" style="width:120px" | ||||
@@ -51,17 +51,6 @@ | |||||
<option value="保密">保密</option> | <option value="保密">保密</option> | ||||
</select> | </select> | ||||
</td> | </td> | ||||
<td> | |||||
<select name="mtype" id="mtype" style="width:60px"> | |||||
{dede:global name='mtypeform'/} | |||||
<?php | |||||
foreach($MemberModels as $row) | |||||
{ | |||||
echo "<option value=".$row['name'].">".$row['name']."</option>\r\n"; | |||||
} | |||||
?> | |||||
</select> | |||||
</td> | |||||
<td> | <td> | ||||
<select name="spacesta" id="spacesta" style="width:150px"> | <select name="spacesta" id="spacesta" style="width:150px"> | ||||
<option value='-10'>--会员状态--</option> | <option value='-10'>--会员状态--</option> | ||||
@@ -74,8 +63,7 @@ | |||||
?> | ?> | ||||
</select></td> | </select></td> | ||||
<td> | <td> | ||||
<input name="imageField" class="np" type="image" src="images/button_search.gif" width="60" height="22" | |||||
border="0" /> | |||||
<button type="submit" class="btn btn-secondary btn-sm">搜索</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -158,9 +146,9 @@ | |||||
<tr bgcolor="#ffffff"> | <tr bgcolor="#ffffff"> | ||||
<td height="36" colspan="9"> | <td height="36" colspan="9"> | ||||
| | ||||
<a href="javascript:selAll()" class="coolbg">全选</a> | |||||
<a href="javascript:noSelAll()" class="coolbg">取消</a> | |||||
<a href="javascript:delArc(0)" class="coolbg"> 删除 </a> | |||||
<button type="button" onClick="selAll();" class="btn btn-secondary btn-sm">全选</button> | |||||
<button type="button" onClick="noSelAll();" class="btn btn-secondary btn-sm">取消</button> | |||||
<button type="button" onClick="delArc(0);" class="btn btn-secondary btn-sm">删除</button> | |||||
(如果已经整合了论坛的用户请不要使用批量删除功能)</td> | (如果已经整合了论坛的用户请不要使用批量删除功能)</td> | ||||
</tr> | </tr> | ||||
<tr bgcolor="#F9FCEF"> | <tr bgcolor="#F9FCEF"> | ||||
@@ -62,12 +62,12 @@ | |||||
<tr> | <tr> | ||||
<td height="30" align="center" bgcolor="#FAFCEF"> | <td height="30" align="center" bgcolor="#FAFCEF"> | ||||
<form name="form2" method="get" action="member_operations.php"> | <form name="form2" method="get" action="member_operations.php"> | ||||
<table border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<table border="0" cellspacing="0" cellpadding="0" class="table table-borderless" style="width: 400px;"> | |||||
<tr> | <tr> | ||||
<td>输入订单号:</td> | <td>输入订单号:</td> | ||||
<td> | <td> | ||||
<input name="buyid" type="text" id="buyid"></td> | <input name="buyid" type="text" id="buyid"></td> | ||||
<td width="100" align="center"> <input name="imageField" type="submit" value="搜索" class='np coolbg' /> | |||||
<td width="100" align="center"> <button type="submit" class="btn btn-secondary btn-sm">搜索</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -83,18 +83,13 @@ | |||||
<tr> | <tr> | ||||
<td width="30%" style="padding-left:10px;"><strong>会员消费管理:</strong> </td> | <td width="30%" style="padding-left:10px;"><strong>会员消费管理:</strong> </td> | ||||
<td width="45%" align="right" style="padding-top:4px;"> | <td width="45%" align="right" style="padding-top:4px;"> | ||||
<input type="button" name="ss13" value="未付款" style="width:50px;margin-right:6px" | |||||
onClick="location='member_operations.php?sta=0';" class='np coolbg' /> | |||||
<input type="button" name="ss14" value="已付款" style="width:50px;margin-right:6px" | |||||
onClick="location='member_operations.php?sta=1';" class='np coolbg' /> | |||||
<input type="button" name="ss142" value="已完成" style="width:50px;margin-right:6px" | |||||
onClick="location='member_operations.php?sta=2';" class='np coolbg' /> | |||||
<input type="button" name="ss16" value="全部" style="width:40px;margin-right:6px" | |||||
onClick="location='member_operations.php';" class='np coolbg' /> | |||||
<button type="button" onClick="location='member_operations.php?sta=0';" class="btn btn-secondary btn-sm">未付款</button> | |||||
<button type="button" onClick="location='member_operations.php?sta=1';" class="btn btn-secondary btn-sm">已付款</button> | |||||
<button type="button" onClick="location='member_operations.php?sta=2';" class="btn btn-secondary btn-sm">已完成</button> | |||||
<button type="button" onClick="location='member_operations.php';" class="btn btn-secondary btn-sm">全部</button> | |||||
</td> | </td> | ||||
<td width="25%" align="right" style="padding-top:4px;"> | <td width="25%" align="right" style="padding-top:4px;"> | ||||
<input type="button" name="ss12" value="会员管理" style="width:90px;margin-right:6px" | |||||
onClick="location='member_main.php';" class='np coolbg' /> | |||||
<button type="button" onClick="location='member_main.php';" class="btn btn-secondary btn-sm">会员管理</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -146,10 +141,11 @@ | |||||
<tr> | <tr> | ||||
<td height="28" colspan="8" bgcolor="#FCFDF7" style="padding-top:4px;"> | <td height="28" colspan="8" bgcolor="#FCFDF7" style="padding-top:4px;"> | ||||
| | ||||
<input type="button" name="b7" value="反选" style="width:40" onClick="ReSel();" class='np coolbg' /> | |||||
<input type="button" name="b" value="删除" style="width:40" onClick="DelSel();" class='np coolbg' /> | |||||
<input type="button" name="b5" value="设为已付款状态" style="width:100" onClick="UpSel();" class='np coolbg' /> | |||||
<input type="button" name="b9" value="设为已完成状态" style="width:100" onClick="OkSel();" class='np coolbg' /></td> | |||||
<button type="button" onClick="ReSel();" class="btn btn-secondary btn-sm">反选</button> | |||||
<button type="button" onClick="DelSel();" class="btn btn-secondary btn-sm">删除</button> | |||||
<button type="button" onClick="UpSel();" class="btn btn-secondary btn-sm">设为已付款状态</button> | |||||
<button type="button" onClick="OkSel();" class="btn btn-secondary btn-sm">设为已完成状态</button> | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="36" colspan="8" bgcolor="#F9FCEF" align="center"> | <td height="36" colspan="8" bgcolor="#F9FCEF" align="center"> | ||||
@@ -1,88 +1,113 @@ | |||||
{dede:page pagesize="20"/} | {dede:page pagesize="20"/} | ||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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" /> | |||||
<style type="text/css"> | |||||
.rb{ border-right:1px solid #98CAEF } | |||||
.tb{ border-top:1px solid #98CAEF } | |||||
.current {border:1px solid #CFCFCF;padding:5px;background:#FFFEF4;color:#FF0000;} | |||||
</style> | |||||
<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" /> | |||||
<style type="text/css"> | |||||
.rb { | |||||
border-right: 1px solid #98CAEF | |||||
} | |||||
.tb { | |||||
border-top: 1px solid #98CAEF | |||||
} | |||||
.current { | |||||
border: 1px solid #CFCFCF; | |||||
padding: 5px; | |||||
background: #FFFEF4; | |||||
color: #FF0000; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body background="images/allbg.gif"> | <body background="images/allbg.gif"> | ||||
<div class="bodytitle"> | |||||
<div class="bodytitleleft"></div> | |||||
<div class="bodytitletxt" style="padding-left:10px;">短信管理</div> | |||||
</div> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#CFCFCF;margin-bottom:5px;"> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#F9FCEF"> | |||||
<form action="member_pm.php" name="form1" method="get"> | |||||
<table width="484" border="0" cellpadding="0" cellspacing="0"> | |||||
<div class="bodytitle mt-3"> | |||||
<div class="bodytitleleft"></div> | |||||
<div class="bodytitletxt" style="padding-left:10px;">短信管理</div> | |||||
</div> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-borderless" | |||||
style="background:#CFCFCF;margin-bottom:5px;"> | |||||
<tr> | |||||
<td height="30" align="center" bgcolor="#F9FCEF"> | |||||
<form action="member_pm.php" name="form1" method="get"> | |||||
<table width="684" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="90"> 关键字:</td> | |||||
<td width="110" align="center"> | |||||
<input name="keyword" type="text" id="keyword" size="12" style="width:100" | |||||
value="{dede:global name='keyword'/}" /> | |||||
</td> | |||||
<td width="80"> 用户:</td> | |||||
<td width="74"><input name="username" type="text" id="username" size="12" style="width:100" | |||||
value="{dede:global name='username'/}" /></td> | |||||
<td width="100" align="center"> | |||||
<select name="folder" id="folder"> | |||||
<option value="inbox">收件箱</option> | |||||
<option value="outbox">发件箱</option> | |||||
</select> | |||||
</td> | |||||
<td width="60" align="center"> | |||||
<button type="submit" class="btn btn-secondary btn-sm">搜索</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered" | |||||
style=" background:#CFCFCF;"> | |||||
<tr> | |||||
<td height="24" colspan="9" bgcolor="#EDF9D5" background='images/tbg.gif'> | |||||
<table width="99%" border="0" cellspacing="0" cellpadding="0" class="table-borderless"> | |||||
<tr> | <tr> | ||||
<td width="90"> 关键字:</td> | |||||
<td width="110" align="center"> | |||||
<input name="keyword" type="text" id="keyword" size="12" style="width:100" value="{dede:global name='keyword'/}" /> | |||||
</td> | |||||
<td width="80"> 用户:</td> | |||||
<td width="74"><input name="username" type="text" id="username" size="12" style="width:100" value="{dede:global name='username'/}" /></td> | |||||
<td width="100" align="center"> | |||||
<select name="folder" id="folder"> | |||||
<option value="inbox">收件箱</option> | |||||
<option value="outbox">发件箱</option> | |||||
</select> | |||||
</td> | |||||
<td width="60" align="center"> | |||||
<input name="imageField" type="submit" value="搜索" class="np coolbg" /> | |||||
</td> | |||||
<td align="left"><span class="current" id="cate_1">短信列表</span> <a href='member_pmall.php'>群发短信</a> <a | |||||
href='member_pmone.php'>单独短信</a></td> | |||||
<td align="left"></td> | |||||
<td align="left"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</form> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style=" background:#CFCFCF;"> | |||||
<tr> | |||||
<td height="24" colspan="9" bgcolor="#EDF9D5" background='images/tbg.gif'> | |||||
<table width="99%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td align="left"><span class="current" id="cate_1">短信列表</span> <a href='member_pmall.php'>群发短信</a> <a href='member_pmone.php'>单独短信</a></td> | |||||
<td align="left"></td> | |||||
<td align="left"></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" height="26"> | |||||
<td width="10%" align="center">发送时间</td> | |||||
<td width="20%" align="center">标题</td> | |||||
<td width="5%" align="center">已读?</td> | |||||
<td width="10%" align="center">{dede:global name='postuser'/}</td> | |||||
<td width="36%" align="center">内容</td> | |||||
<td width="9%" align="center">文件夹</td> | |||||
<td width="10%" align="center">操作</td> | |||||
</tr> | |||||
{dede:datalist} | |||||
<tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td> | |||||
<td>{dede:field.subject function='dede_htmlspecialchars(@me)'/}<br></td> | |||||
<td>{dede:field.hasview function='IsReader(@me)'/}</td> | |||||
<td>{dede:field.floginid/}</td> | |||||
<td title="{dede:field.message/}">{dede:field.message function='cn_substr(HtmlReplace(@me),60)'/}</td> | |||||
<td>{dede:field.folder function='GetFolders(@me)'/}</td> | |||||
<td> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td align="center" height="25"><a href="member_pm.php?ID={dede:field.id/}&dopost=del">删除</a></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="26" colspan="9" align="center"> {dede:pagelist listsize=6/} </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" height="26"> | |||||
<td width="10%" align="center">发送时间</td> | |||||
<td width="20%" align="center">标题</td> | |||||
<td width="5%" align="center">已读?</td> | |||||
<td width="10%" align="center">{dede:global name='postuser'/}</td> | |||||
<td width="36%" align="center">内容</td> | |||||
<td width="9%" align="center">文件夹</td> | |||||
<td width="10%" align="center">操作</td> | |||||
</tr> | |||||
{dede:datalist} | |||||
<tr height="26" align="center" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td>{dede:field.sendtime function='GetDateMk(@me)'/}</td> | |||||
<td>{dede:field.subject function='dede_htmlspecialchars(@me)'/}<br></td> | |||||
<td>{dede:field.hasview function='IsReader(@me)'/}</td> | |||||
<td>{dede:field.floginid/}</td> | |||||
<td title="{dede:field.message/}">{dede:field.message function='cn_substr(HtmlReplace(@me),60)'/}</td> | |||||
<td>{dede:field.folder function='GetFolders(@me)'/}</td> | |||||
<td> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table-borderless"> | |||||
<tr> | |||||
<td align="center" height="25"><a href="member_pm.php?ID={dede:field.id/}&dopost=del">删除</a></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="26" colspan="9" align="center"> {dede:pagelist listsize=6/} </td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,79 +1,92 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<form name="form1" action="member_rank.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save"> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<tr height="28"> | |||||
<td colspan="6" background='images/tbg.gif'><strong><u>会员管理</u> > 会员级别设置:</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#F8FCF1" height="24"> | |||||
<td colspan="6"><strong>级别名称和级别值:(注册会员这个级别不能删除,否则会员系统将会无法正常使用某些功能)</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FDFEE9" height="24" align="center"> | |||||
<td width="20%">级别名称</td> | |||||
<td width="18%">会员等级值</td> | |||||
<td width="15%">默认金币</td> | |||||
<td width="15%">默认积分</td> | |||||
<td width="16%">类型</td> | |||||
<td width="16%">状态</td> | |||||
</tr> | |||||
<?php | |||||
<form name="form1" action="member_rank.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save"> | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<tr height="28"> | |||||
<td colspan="6" background='images/tbg.gif'><strong><u>会员管理</u> > 会员级别设置:</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#F8FCF1" height="24"> | |||||
<td colspan="6"><strong>级别名称和级别值:(注册会员这个级别不能删除,否则会员系统将会无法正常使用某些功能)</strong></td> | |||||
</tr> | |||||
<tr bgcolor="#FDFEE9" height="24" align="center"> | |||||
<td width="20%">级别名称</td> | |||||
<td width="18%">会员等级值</td> | |||||
<td width="15%">默认金币</td> | |||||
<td width="15%">默认积分</td> | |||||
<td width="16%">类型</td> | |||||
<td width="16%">状态</td> | |||||
</tr> | |||||
<?php | |||||
$k=0; | $k=0; | ||||
while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
{ | { | ||||
$k++; | $k++; | ||||
?> | ?> | ||||
<tr align="center" bgcolor="#FFFFFF" height="24"> | |||||
<td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id; ?>"><input name="name_<?php echo $k?>" value="<?php echo $row->membername; ?>" type="text" id="name_<?php echo $k?>" class='autoinput alltxt' /></td> | |||||
<td><input name="rank_<?php echo $k?>" value="<?php echo $row->rank; ?>" type="text" id="rank_<?php echo $k?>" class='autoinput alltxt' /></td> | |||||
<td><input name="money_<?php echo $k?>" value="<?php echo $row->money; ?>" type="text" id="money_<?php echo $k?>" class='autoinput alltxt' /></td> | |||||
<td><input name="scores_<?php echo $k?>" value="<?php echo $row->scores; ?>" type="text" id="scores_<?php echo $k?>" class='autoinput alltxt' /></td> | |||||
<td align="center"> | |||||
<?php | |||||
<tr align="center" bgcolor="#FFFFFF" height="24"> | |||||
<td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id; ?>"><input | |||||
name="name_<?php echo $k?>" value="<?php echo $row->membername; ?>" type="text" id="name_<?php echo $k?>" | |||||
class='autoinput alltxt' /></td> | |||||
<td><input name="rank_<?php echo $k?>" value="<?php echo $row->rank; ?>" type="text" id="rank_<?php echo $k?>" | |||||
class='autoinput alltxt' /></td> | |||||
<td><input name="money_<?php echo $k?>" value="<?php echo $row->money; ?>" type="text" | |||||
id="money_<?php echo $k?>" class='autoinput alltxt' /></td> | |||||
<td><input name="scores_<?php echo $k?>" value="<?php echo $row->scores; ?>" type="text" | |||||
id="scores_<?php echo $k?>" class='autoinput alltxt' /></td> | |||||
<td align="center"> | |||||
<?php | |||||
if($row->id<=5) { echo "系统"; } | if($row->id<=5) { echo "系统"; } | ||||
else { echo "用户"; } | else { echo "用户"; } | ||||
?></td> | ?></td> | ||||
<td><input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" <?php if($row->id == 3) echo 'disabled="disabled"';?> class="np" value="1" checked='checked' /> | |||||
正在使用 </td> | |||||
</tr> | |||||
<?php | |||||
<td><input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" | |||||
<?php if($row->id == 3) echo 'disabled="disabled"';?> class="np" value="1" checked='checked' /> | |||||
正在使用 </td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
<input type="hidden" name="idend" value="<?php echo $k; ?>"> | |||||
<tr bgcolor="#F8FCF1" height="24"> | |||||
<td colspan="6"><strong>新增一个级别:</strong>(由于会员升级是以级别值由低向高升级的,因此增加组别时需注意此值的设置,<font color='red'><u>如果你增加新的会员组的级别值低于10,将自动被视为普通的注册会员。</u></font>) </td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF" align="center" height="24"> | |||||
<td> 级别名称 </td> | |||||
<td> 级别值(待审为0,注册会员为10) </td> | |||||
<td> 默认金币 </td> | |||||
<td> 默认积分 </td> | |||||
<td> 操作设置 </td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF" align="center" height="24"> | |||||
<td><input name="name_new" type="text" id="name_new" class='autoinput alltxt' /></td> | |||||
<td><input name="rank_new" type="text" id="rank_new" value='20' class='autoinput alltxt' /></td> | |||||
<td><input name="money_new" type="text" id="money_new" value='0' class='autoinput alltxt' /></td> | |||||
<td><input name="scores_new" type="text" id="scores_new" value='100' class='autoinput alltxt' /></td> | |||||
<td><input name="check_new" type="checkbox" id="check_new" class="np" value="1" checked /> | |||||
增加等级 </td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="6" bgcolor="#F8FCF1"> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="36" colspan="6" align="center" bgcolor="#FFFFFF"><input name="imageField" type="image" src="images/button_save.gif" width="60" height="22" border="0" class="np" /></td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
<input type="hidden" name="idend" value="<?php echo $k; ?>"> | |||||
<tr bgcolor="#F8FCF1" height="24"> | |||||
<td colspan="6"><strong>新增一个级别:</strong>(由于会员升级是以级别值由低向高升级的,因此增加组别时需注意此值的设置,<font color='red'> | |||||
<u>如果你增加新的会员组的级别值低于10,将自动被视为普通的注册会员。</u></font>) </td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF" align="center" height="24"> | |||||
<td> 级别名称 </td> | |||||
<td> 级别值(待审为0,注册会员为10) </td> | |||||
<td> 默认金币 </td> | |||||
<td> 默认积分 </td> | |||||
<td> 操作设置 </td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF" align="center" height="24"> | |||||
<td><input name="name_new" type="text" id="name_new" class='autoinput alltxt' /></td> | |||||
<td><input name="rank_new" type="text" id="rank_new" value='20' class='autoinput alltxt' /></td> | |||||
<td><input name="money_new" type="text" id="money_new" value='0' class='autoinput alltxt' /></td> | |||||
<td><input name="scores_new" type="text" id="scores_new" value='100' class='autoinput alltxt' /></td> | |||||
<td><input name="check_new" type="checkbox" id="check_new" class="np" value="1" checked /> | |||||
增加等级 </td> | |||||
<td> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="6" bgcolor="#F8FCF1"> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="36" colspan="6" align="center" bgcolor="#FFFFFF"><button type="submit" class="btn btn-secondary">保存</button></td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -6,7 +6,6 @@ | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>会员管理--积分头衔设置</title> | <title>会员管理--积分头衔设置</title> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | <script language="javascript" src="../static/js/jquery.js"></script> | ||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript" src="js/main.js"></script> | <script language="javascript" src="js/main.js"></script> | ||||
<script type="text/javascript"> | <script type="text/javascript"> | ||||
function CheckAll(form, prefix, checkall) { | function CheckAll(form, prefix, checkall) { | ||||
@@ -19,23 +18,12 @@ | |||||
} | } | ||||
} | } | ||||
</script> | </script> | ||||
<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 href="css/base.css" rel="stylesheet" type="text/css" /> | ||||
<style type="text/css"> | |||||
.rb { | |||||
border-right: 1px solid #98CAEF | |||||
} | |||||
.tb { | |||||
border-top: 1px solid #98CAEF | |||||
} | |||||
td { | |||||
padding-left: 10px | |||||
} | |||||
</style> | |||||
</head> | |||||
<body background="images/allbg.gif"> | <body background="images/allbg.gif"> | ||||
<div class="bodytitle"> | |||||
<div class="bodytitle mt-3"> | |||||
<div class="bodytitleleft"></div> | <div class="bodytitleleft"></div> | ||||
<div class="bodytitletxt" style="padding-left:10px;">积分头衔设置</div> | <div class="bodytitletxt" style="padding-left:10px;">积分头衔设置</div> | ||||
</div> | </div> | ||||
@@ -49,34 +37,35 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CFCFCF" align="center"> | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#CFCFCF" align="center" | |||||
class="table maintable table-bordered"> | |||||
<tr> | <tr> | ||||
<td width="6%" height="30" align="center" valign="middle" bgcolor="#FBFCE2"> | |||||
<td width="6%" align="center" valign="middle" bgcolor="#FBFCE2"> | |||||
<input type="checkbox" name="chkall" id="chkall" onClick="CheckAll(this.form)" class='np' /> | <input type="checkbox" name="chkall" id="chkall" onClick="CheckAll(this.form)" class='np' /> | ||||
删?</td> | 删?</td> | ||||
<td width="23%" height="30" align="center" bgcolor="#FEFCEF">积分大于</td> | |||||
<td width="24%" height="30" align="center" bgcolor="#FEFCEF">星星数</td> | |||||
<td width="23%" height="30" align="center" bgcolor="#FEFCEF">级别头衔</td> | |||||
<td width="24%" height="30" align="center" bgcolor="#FEFCEF">是否默认</td> | |||||
<td width="23%" align="center" bgcolor="#FEFCEF">积分大于</td> | |||||
<td width="24%" align="center" bgcolor="#FEFCEF">星星数</td> | |||||
<td width="23%" align="center" bgcolor="#FEFCEF">级别头衔</td> | |||||
<td width="24%" align="center" bgcolor="#FEFCEF">是否默认</td> | |||||
</tr> | </tr> | ||||
<?php | <?php | ||||
foreach($Scores as $v){ | foreach($Scores as $v){ | ||||
?> | ?> | ||||
<tr height="28" bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
<tr bgcolor="#FFFFFF" onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | onMouseOut="javascript:this.bgColor='#FFFFFF';"> | ||||
<td height="28" align="center"> | |||||
<td align="center"> | |||||
<input name="Ids-<?php echo $v['id']?>" type="checkbox" id="Ids-<?php echo $v['id']?>" value="1" class='np' /> | <input name="Ids-<?php echo $v['id']?>" type="checkbox" id="Ids-<?php echo $v['id']?>" value="1" class='np' /> | ||||
</td> | </td> | ||||
<td height="28" align="left" style="padding:5px;"> | |||||
<td align="left" style="padding:5px;"> | |||||
<input name="integral-<?php echo $v['id']?>" type="text" id="integral-<?php echo $v['id']?>" | <input name="integral-<?php echo $v['id']?>" type="text" id="integral-<?php echo $v['id']?>" | ||||
value="<?php echo $v['integral']?>" size="10" /></td> | value="<?php echo $v['integral']?>" size="10" /></td> | ||||
<td height="28" align="left" style="padding:5px;"> | |||||
<td align="left" style="padding:5px;"> | |||||
<input name="icon-<?php echo $v['id']?>" type="text" id="icon-<?php echo $v['id']?>" | <input name="icon-<?php echo $v['id']?>" type="text" id="icon-<?php echo $v['id']?>" | ||||
value="<?php echo $v['icon']?>" size="3" /></td> | value="<?php echo $v['icon']?>" size="3" /></td> | ||||
<td height="28" align="left" style="padding:5px;"> | |||||
<td align="left" style="padding:5px;"> | |||||
<input name="titles-<?php echo $v['id']?>" type="text" id="titles-<?php echo $v['id']?>" | <input name="titles-<?php echo $v['id']?>" type="text" id="titles-<?php echo $v['id']?>" | ||||
value="<?php echo $v['titles']?>" size="20" /></td> | value="<?php echo $v['titles']?>" size="20" /></td> | ||||
<td height="28" align="left" style="padding:5px;"> | |||||
<td align="left" style="padding:5px;"> | |||||
<select name="isdefault-<?php echo $v['id']?>" id="isdefault-<?php echo $v['id']?>"> | <select name="isdefault-<?php echo $v['id']?>" id="isdefault-<?php echo $v['id']?>"> | ||||
<option value="1" <?php if($v['isdefault']) echo " selected='selected'";?>>是</option> | <option value="1" <?php if($v['isdefault']) echo " selected='selected'";?>>是</option> | ||||
<option value="0" <?php if(!$v['isdefault']) echo " selected='selected'";?>>否</option> | <option value="0" <?php if(!$v['isdefault']) echo " selected='selected'";?>>否</option> | ||||
@@ -87,22 +76,21 @@ | |||||
} | } | ||||
?> | ?> | ||||
<tr bgcolor="#F9FCEF"> | <tr bgcolor="#F9FCEF"> | ||||
<td height="28"> 新增:</td> | |||||
<td height="28" style="padding:5px;"><input name="add_integral" type="text" id="add_integral" size="10" /></td> | |||||
<td height="28" style="padding:5px;"><input name="add_icon" type="text" id="add_icon" size="3" /></td> | |||||
<td height="28" style="padding:5px;"><input name="add_titles" type="text" id="add_titles" size="20" /></td> | |||||
<td height="28" style="padding:5px;"> | |||||
<td >新增:</td> | |||||
<td style="padding:5px;"><input name="add_integral" type="text" id="add_integral" size="10" /></td> | |||||
<td style="padding:5px;"><input name="add_icon" type="text" id="add_icon" size="3" /></td> | |||||
<td style="padding:5px;"><input name="add_titles" type="text" id="add_titles" size="20" /></td> | |||||
<td style="padding:5px;"> | |||||
<select name="add_isdefault" id="add_isdefault"> | <select name="add_isdefault" id="add_isdefault"> | ||||
<option value="1">是</option> | <option value="1">是</option> | ||||
<option value="0">否</option> | <option value="0">否</option> | ||||
</select></td> | </select></td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<br /> | |||||
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||||
<table width="96%" border="0" align="center" cellpadding="0" cellspacing="0" class="mb-3"> | |||||
<tr> | <tr> | ||||
<td height="40" align="center"> | <td height="40" align="center"> | ||||
<input name="imageField" type="submit" class="np coolbg" value="提交" id="imageField" /> | |||||
<button type="submit" class="btn btn-secondary">提交</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -1,35 +1,41 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="tbtitle" style="background:#cfcfcf;"> | |||||
<form name="form1" action="member_type.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<tr> | |||||
<td height="24" colspan="5" bgcolor="#EDF9D5" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="30%" style="padding-left:10px;"><strong>会员产品分类:</strong></td> | |||||
<td align="right" style="padding-top:4px;"> | |||||
<input type="button" name="ss1" value="会员级别管理" style="width:90px;margin-right:6px" onClick="location='member_rank.php';" class='np coolbg' /> | |||||
<input type="button" name="ss2" value="会员业务记录" style="width:90px" onClick="location='member_operations.php';" class='np coolbg' /> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2"> | |||||
<td width="22%" height="24" align="center" valign="top">产品名称</td> | |||||
<td width="23%" align="center" valign="top">会员级别</td> | |||||
<td width="21%" align="center">产品价格</td> | |||||
<td width="18%" align="center">会员期限(天)</td> | |||||
<td width="16%" align="center">状态</td> | |||||
</tr> | |||||
<?php | |||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" | |||||
style="background:#cfcfcf;"> | |||||
<form name="form1" action="member_type.php" method="post"> | |||||
<input type="hidden" name="dopost" value="save" /> | |||||
<tr> | |||||
<td height="24" colspan="5" bgcolor="#EDF9D5" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" style="padding-left:10px;"><strong>会员产品分类:</strong></td> | |||||
<td align="right" style="padding-top:4px;"> | |||||
<button type="button" class="btn btn-secondary" onClick="location='member_rank.php';">会员级别管理</button> | |||||
<button type="button" class="btn btn-secondary" onClick="location='member_operations.php';">会员业务记录</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2"> | |||||
<td width="22%" height="24" align="center" valign="top">产品名称</td> | |||||
<td width="23%" align="center" valign="top">会员级别</td> | |||||
<td width="21%" align="center">产品价格</td> | |||||
<td width="18%" align="center">会员期限(天)</td> | |||||
<td width="16%" align="center">状态</td> | |||||
</tr> | |||||
<?php | |||||
$dsql->SetQuery("Select * From #@__member_type"); | $dsql->SetQuery("Select * From #@__member_type"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
$k=0; | $k=0; | ||||
@@ -37,89 +43,91 @@ | |||||
{ | { | ||||
$k++; | $k++; | ||||
?> | ?> | ||||
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->aid?>" /> | |||||
<tr align="center" bgcolor="#FFFFFF"> | |||||
<td height="24" valign="top"> | |||||
<input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" | |||||
type="text" id="pname_<?php echo $k?>" style="width:90%" class='pubinputs' /> | |||||
</td> | |||||
<td height="24" valign="top"> | |||||
<select name='rank_<?php echo $k?>' id='rank_<?php echo $k?>' style='width:90%' /> | |||||
<input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->aid?>" /> | |||||
<tr align="center" bgcolor="#FFFFFF"> | |||||
<td height="24" valign="top"> | |||||
<input name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" type="text" id="pname_<?php echo $k?>" | |||||
style="width:90%" class='pubinputs' /> | |||||
</td> | |||||
<td height="24" valign="top"> | |||||
<select name='rank_<?php echo $k?>' id='rank_<?php echo $k?>' style='width:90%' /> | |||||
<?php | <?php | ||||
foreach($arcranks as $kkk=>$vvv){ | foreach($arcranks as $kkk=>$vvv){ | ||||
if($row->rank==$kkk) echo " <option value='{$kkk}' selected>{$vvv}</option>\r\n"; | if($row->rank==$kkk) echo " <option value='{$kkk}' selected>{$vvv}</option>\r\n"; | ||||
else echo " <option value='{$kkk}'>{$vvv}</option>\r\n"; | else echo " <option value='{$kkk}'>{$vvv}</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</td> | |||||
<td> | |||||
<input name="money_<?php echo $k?>" value="<?php echo $row->money?>" | |||||
type="text" id="money_<?php echo $k?>" style="width:80%" class='pubinputs' /> | |||||
(元) | |||||
</td> | |||||
<td> | |||||
<select name='exptime_<?php echo $k?>' id='exptime_<?php echo $k?>' style='width:90%'> | |||||
<?php | |||||
</select> | |||||
</td> | |||||
<td> | |||||
<input name="money_<?php echo $k?>" value="<?php echo $row->money?>" type="text" id="money_<?php echo $k?>" | |||||
style="width:80%" class='pubinputs' /> | |||||
(元) | |||||
</td> | |||||
<td> | |||||
<select name='exptime_<?php echo $k?>' id='exptime_<?php echo $k?>' style='width:90%'> | |||||
<?php | |||||
foreach($times as $kkk=>$vvv){ | foreach($times as $kkk=>$vvv){ | ||||
if($row->exptime==$kkk) echo " <option value='{$kkk}' selected>{$vvv}</option>\r\n"; | if($row->exptime==$kkk) echo " <option value='{$kkk}' selected>{$vvv}</option>\r\n"; | ||||
else echo " <option value='{$kkk}'>{$vvv}</option>\r\n"; | else echo " <option value='{$kkk}'>{$vvv}</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</td> | |||||
<td> | |||||
<input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1' class='np' /> | |||||
保留 | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
</select> | |||||
</td> | |||||
<td> | |||||
<input name="check_<?php echo $k?>" type="checkbox" id="check_<?php echo $k?>" value="1" checked='1' | |||||
class='np' /> | |||||
保留 | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
<input type="hidden" name="idend" value="<?php echo $k?>"> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="24" colspan="5" valign="top"> <strong>新增一个会员产品类型:</strong></td> | |||||
</tr> | |||||
<tr height="24" align="center" bgcolor="#FFFFFF"> | |||||
<td valign="top"> | |||||
<input name="pname_new" type="text" id="pname_new" style="width:90%" class='pubinputs' /> | |||||
</td> | |||||
<td valign="top"> | |||||
<select name='rank_new' id='rank_new' style='width:90%'> | |||||
<?php | |||||
<input type="hidden" name="idend" value="<?php echo $k?>"> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="24" colspan="5" valign="top"> <strong>新增一个会员产品类型:</strong></td> | |||||
</tr> | |||||
<tr height="24" align="center" bgcolor="#FFFFFF"> | |||||
<td valign="top"> | |||||
<input name="pname_new" type="text" id="pname_new" style="width:90%" class='pubinputs' /> | |||||
</td> | |||||
<td valign="top"> | |||||
<select name='rank_new' id='rank_new' style='width:90%'> | |||||
<?php | |||||
foreach($arcranks as $kkk=>$vvv){ | foreach($arcranks as $kkk=>$vvv){ | ||||
echo " <option value='{$kkk}'>{$vvv}</option>\r\n"; | echo " <option value='{$kkk}'>{$vvv}</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</td> | |||||
<td valign="top"> | |||||
<input name="money_new" type="text" id="money_new" style='width:80%' value="100" class='pubinputs' /> | |||||
(元) | |||||
</td> | |||||
<td valign="top"> | |||||
<select name='exptime_new' id='exptime_new' style='width:90%'> | |||||
<?php | |||||
</select> | |||||
</td> | |||||
<td valign="top"> | |||||
<input name="money_new" type="text" id="money_new" style='width:80%' value="100" class='pubinputs' /> | |||||
(元) | |||||
</td> | |||||
<td valign="top"> | |||||
<select name='exptime_new' id='exptime_new' style='width:90%'> | |||||
<?php | |||||
foreach($times as $kkk=>$vvv){ | foreach($times as $kkk=>$vvv){ | ||||
echo " <option value='{$kkk}'>{$vvv}</option>\r\n"; | echo " <option value='{$kkk}'>{$vvv}</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
</select> | |||||
</td> | |||||
<td align="center" bgcolor="#FFFFFF"> | |||||
<input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np' /> | |||||
新增 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="5" bgcolor="#ffffff"> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="34" colspan="5" align="center" bgcolor="#F9FCEF"> | |||||
<button type="submit" class="btn btn-secondary">确定</button> | |||||
</td> | </td> | ||||
<td align="center" bgcolor="#FFFFFF"> | |||||
<input name="check_new" type="checkbox" id="check_new" value="1" checked='1' class='np' /> | |||||
新增 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" colspan="5" bgcolor="#ffffff"> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="34" colspan="5" align="center" bgcolor="#F9FCEF"> | |||||
<input name="imageField" type="submit" class="np coolbg" value="确定" class='np coolbg /' /> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -5,6 +5,8 @@ | |||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | ||||
<title>增加自定义标记</title> | <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'> | <link href='css/base.css' rel='stylesheet' type='text/css'> | ||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | <link href="../static/css/daterangepicker.css" rel="stylesheet"> | ||||
<script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script> | <script src="../static/js/jquery.js" language="javascript" type="text/javascript"></script> | ||||
@@ -53,14 +55,14 @@ | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf"> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" class="table maintable table-bordered mt-3"> | |||||
<tr> | <tr> | ||||
<td height="19" background="images/tbg.gif" style="padding-left:10px;"><b><a | <td height="19" background="images/tbg.gif" style="padding-left:10px;"><b><a | ||||
href="mytag_main.php"><u>自定义标记管理</u></a></b>>>增加新标记</td> | href="mytag_main.php"><u>自定义标记管理</u></a></b>>>增加新标记</td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="200" bgcolor="#FFFFFF" valign="top"> | <td height="200" bgcolor="#FFFFFF" valign="top"> | ||||
<table width="100%" border="0" cellspacing="4" cellpadding="4"> | |||||
<table width="100%" border="0" cellspacing="4" cellpadding="4" class="table table-borderless"> | |||||
<form action="mytag_add.php" method="post" enctype="multipart/form-data" name="form1" | <form action="mytag_add.php" method="post" enctype="multipart/form-data" name="form1" | ||||
onSubmit="return checkSubmit()"> | onSubmit="return checkSubmit()"> | ||||
<input type='hidden' name='dopost' value='save' /> | <input type='hidden' name='dopost' value='save' /> | ||||
@@ -100,13 +102,13 @@ | |||||
<tr> | <tr> | ||||
<td height="25" align="center">开始时间:</td> | <td height="25" align="center">开始时间:</td> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<input name="starttime" type="text" id="starttime" value="<?php echo $startDay?>" class="datepicker"/> | |||||
<input name="starttime" type="text" id="starttime" value="<?php echo $startDay?>" class="datepicker" /> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td height="25" align="center">结束时间:</td> | <td height="25" align="center">结束时间:</td> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<input name="endtime" type="text" id="endtime" value="<?php echo $endDay?>" class="datepicker"/> | |||||
<input name="endtime" type="text" id="endtime" value="<?php echo $endDay?>" class="datepicker" /> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -126,8 +128,7 @@ | |||||
<tr> | <tr> | ||||
<td height="53" align="center"> </td> | <td height="53" align="center"> </td> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<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> | </td> | ||||
</tr> | </tr> | ||||
</form> | </form> | ||||
@@ -1,51 +1,57 @@ | |||||
{dede:config.pagesize value="20"/} | {dede:config.pagesize value="20"/} | ||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf"> | |||||
<tr> | |||||
<td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;"> | |||||
<b>自定义标记管理</b> | |||||
[<a href="mytag_add.php"><u>增加一个标记</u></a>] | |||||
[<a href="mytag_tag_guide.php"><u>智能标记向导</u></a>] | |||||
</td> | |||||
</tr> | |||||
<tr align="center" bgcolor="#FBFCE2" height="24"> | |||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;"> | |||||
<b>自定义标记管理</b> | |||||
<a class="btn btn-secondary" href="mytag_add.php">增加一个标记</a> | |||||
<a class="btn btn-secondary" href="mytag_tag_guide.php">智能标记向导</a> | |||||
</td> | |||||
</tr> | |||||
<tr align="center" bgcolor="#FBFCE2" height="24"> | |||||
<td width="10%">编号</td> | <td width="10%">编号</td> | ||||
<td width="20%">标记名称</td> | <td width="20%">标记名称</td> | ||||
<td width="15%">所属栏目</td> | <td width="15%">所属栏目</td> | ||||
<td width="15%">时间限制</td> | <td width="15%">时间限制</td> | ||||
<td width="20%">结束时间</td> | <td width="20%">结束时间</td> | ||||
<td width="20%">管理</td> | <td width="20%">管理</td> | ||||
</tr> | |||||
{dede:datalist} | |||||
</tr> | |||||
{dede:datalist} | |||||
<tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';" | <tr align="center" bgcolor="#FFFFFF" height="24" onMouseMove="javascript:this.bgColor='#FCFDEE';" | ||||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td>{dede:field.aid /}</td> | |||||
<td>{dede:field.tagname /}</td> | |||||
<td>{dede:field.typename function='TestType(@me)'/}</td> | |||||
<td>{dede:field.timeset function='TimeSetValue(@me)'/}</td> | |||||
<td>{dede:field.endtime function='GetDateMk(@me)'/}</td> | |||||
<td> | |||||
<a href='mytag_edit.php?aid={dede:field.aid /}&dopost=edit'>更改</a> | | |||||
<a href='mytag_edit.php?aid={dede:field.aid /}&dopost=delete&token=<?php echo $_SESSION['token'] ;?>'>删除</a> | | |||||
<a href='mytag_edit.php?aid={dede:field.aid /}&dopost=getjs'>JS调用</a> | |||||
</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr align="center" bgcolor="#F9FCEF" height="36"> | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td>{dede:field.aid /}</td> | |||||
<td>{dede:field.tagname /}</td> | |||||
<td>{dede:field.typename function='TestType(@me)'/}</td> | |||||
<td>{dede:field.timeset function='TimeSetValue(@me)'/}</td> | |||||
<td>{dede:field.endtime function='GetDateMk(@me)'/}</td> | |||||
<td> | |||||
<a href='mytag_edit.php?aid={dede:field.aid /}&dopost=edit'>更改</a> | | |||||
<a href='mytag_edit.php?aid={dede:field.aid /}&dopost=delete&token=<?php echo $_SESSION['token'] ;?>'>删除</a> | | |||||
<a href='mytag_edit.php?aid={dede:field.aid /}&dopost=getjs'>JS调用</a> | |||||
</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr align="center" bgcolor="#F9FCEF" height="36"> | |||||
<td colspan="7"> | <td colspan="7"> | ||||
{dede:pagelist listsize=6/} | |||||
{dede:pagelist listsize=6/} | |||||
</td> | </td> | ||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,99 +1,113 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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"> | |||||
function ChangeListStyle(){ | |||||
var itxt = document.getElementById("myinnertext"); | |||||
var myems = document.getElementsByName("liststyle"); | |||||
if(myems[0].checked) itxt.value = document.getElementById("list1").innerHTML; | |||||
else if(myems[1].checked) itxt.value = document.getElementById("list2").innerHTML; | |||||
else if(myems[2].checked) itxt.value = document.getElementById("list3").innerHTML; | |||||
else if(myems[3].checked) itxt.value = document.getElementById("list4").innerHTML; | |||||
itxt.value = itxt.value.replace("<BR>","<BR/>"); | |||||
itxt.value = itxt.value.toLowerCase(); | |||||
} | |||||
function DoSubmit(j){ | |||||
document.form1.dopost.value = j; | |||||
document.form1.submit(); | |||||
} | |||||
function SelectArcList(fname){ | |||||
var posLeft = 10; | |||||
var posTop = 10; | |||||
window.open("content_select_list.php?f="+fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left="+posLeft+", top="+posTop); | |||||
} | |||||
</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"> | |||||
function ChangeListStyle() { | |||||
var itxt = document.getElementById("myinnertext"); | |||||
var myems = document.getElementsByName("liststyle"); | |||||
if (myems[0].checked) itxt.value = document.getElementById("list1").innerHTML; | |||||
else if (myems[1].checked) itxt.value = document.getElementById("list2").innerHTML; | |||||
else if (myems[2].checked) itxt.value = document.getElementById("list3").innerHTML; | |||||
else if (myems[3].checked) itxt.value = document.getElementById("list4").innerHTML; | |||||
itxt.value = itxt.value.replace("<BR>", "<BR/>"); | |||||
itxt.value = itxt.value.toLowerCase(); | |||||
} | |||||
function DoSubmit(j) { | |||||
document.form1.dopost.value = j; | |||||
document.form1.submit(); | |||||
} | |||||
function SelectArcList(fname) { | |||||
var posLeft = 10; | |||||
var posTop = 10; | |||||
window.open("content_select_list.php?f=" + fname, "selArcList", "scrollbars=yes,resizable=yes,statebar=no,width=700,height=500,left=" + posLeft + ", top=" + posTop); | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<center> | |||||
<span style="display:none" id="list1"> | |||||
·[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br/> | |||||
</span> | |||||
<span style="display:none" id="list2"> | |||||
·[field:typelink/] [field:textlink/]<br/> | |||||
</span> | |||||
<span style="display:none" id="list3"> | |||||
<table width='98%' border='0' cellspacing='2' cellpadding='0'> | |||||
<tr><td align='center'>[field:imglink/]</td></tr> | |||||
<tr><td align='center'>[field:textlink/]</td></tr> | |||||
</table> | |||||
</span> | |||||
<span style="display:none" id="list4"> | |||||
<table width='100%' border='0' cellspacing='2' cellpadding='2'> | |||||
<tr> | |||||
<td width='30%' rowspan='2' align='center'>[field:imglink/]</td> | |||||
<td width='70%'><a href='[field:filename/]'>[field:title/]</a></td> | |||||
</tr> | |||||
<tr><td>[field:info/]</td></tr> | |||||
</table> | |||||
</span> | |||||
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form action="mytag_tag_guide_ok.php" method="post" target="stafrm" name="form1"> | |||||
<input type="hidden" name="dopost" value="gettag"/> | |||||
<tr> | |||||
<td height="28" align="left" background="images/tbg.gif" style="padding-left:10px;"><b><a href="mytag_main.php" align="left"><u>自定义标记管理</u></a></b> >> 智能标记生成向导:</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="265" valign="top" bgcolor="#FFFFFF"> | |||||
<table width="99%" border="0" align="right" cellpadding="0" cellspacing="0" style="text-align:left;"> | |||||
<tr> | |||||
<td height="28">列表样式:</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="72"> | |||||
<table width="99%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="25%" height="126"> | |||||
<img src="images/g_t2.gif" width="130" height="100" /> | |||||
<input name="liststyle" class="np" type="radio" onClick="ChangeListStyle()" value="1" checked='1' /> </td> | |||||
<td width="25%"> | |||||
<img src="images/g_t1.gif" width="130" height="110" /> | |||||
<input type="radio" class="np" onClick="ChangeListStyle()" name="liststyle" value="2" /> </td> | |||||
<td width="25%"> | |||||
<img src="images/g_t3.gif" width="130" height="110" /> | |||||
<input type="radio" class="np" onClick="ChangeListStyle()" name="liststyle" value="3" /> </td> | |||||
<td> | |||||
<img src="images/g_t4.gif" width="130" height="110" /> | |||||
<input type="radio" class="np" onClick="ChangeListStyle()" name="liststyle" value="4" /> </td> | |||||
</tr> | |||||
</table> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">调用栏目: | |||||
<?php | |||||
<center> | |||||
<span style="display:none" id="list1"> | |||||
·[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br /> | |||||
</span> | |||||
<span style="display:none" id="list2"> | |||||
·[field:typelink/] [field:textlink/]<br /> | |||||
</span> | |||||
<span style="display:none" id="list3"> | |||||
<table width='98%' border='0' cellspacing='2' cellpadding='0'> | |||||
<tr> | |||||
<td align='center'>[field:imglink/]</td> | |||||
</tr> | |||||
<tr> | |||||
<td align='center'>[field:textlink/]</td> | |||||
</tr> | |||||
</table> | |||||
</span> | |||||
<span style="display:none" id="list4"> | |||||
<table width='100%' border='0' cellspacing='2' cellpadding='2'> | |||||
<tr> | |||||
<td width='30%' rowspan='2' align='center'>[field:imglink/]</td> | |||||
<td width='70%'><a href='[field:filename/]'>[field:title/]</a></td> | |||||
</tr> | |||||
<tr> | |||||
<td>[field:info/]</td> | |||||
</tr> | |||||
</table> | |||||
</span> | |||||
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form action="mytag_tag_guide_ok.php" method="post" target="stafrm" name="form1"> | |||||
<input type="hidden" name="dopost" value="gettag" /> | |||||
<tr> | |||||
<td height="28" align="left" background="images/tbg.gif" style="padding-left:10px;"><b><a | |||||
href="mytag_main.php" align="left"><u>自定义标记管理</u></a></b> >> 智能标记生成向导:</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="265" valign="top" bgcolor="#FFFFFF"> | |||||
<table width="99%" border="0" align="right" cellpadding="0" cellspacing="0" style="text-align:left;" class="table table-borderless"> | |||||
<tr> | |||||
<td height="28">列表样式:</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="72"> | |||||
<table width="99%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="25%" height="126"> | |||||
<img src="images/g_t2.gif" width="130" height="100" /> | |||||
<input name="liststyle" class="np" type="radio" onClick="ChangeListStyle()" value="1" | |||||
checked='1' /> </td> | |||||
<td width="25%"> | |||||
<img src="images/g_t1.gif" width="130" height="110" /> | |||||
<input type="radio" class="np" onClick="ChangeListStyle()" name="liststyle" value="2" /> </td> | |||||
<td width="25%"> | |||||
<img src="images/g_t3.gif" width="130" height="110" /> | |||||
<input type="radio" class="np" onClick="ChangeListStyle()" name="liststyle" value="3" /> </td> | |||||
<td> | |||||
<img src="images/g_t4.gif" width="130" height="110" /> | |||||
<input type="radio" class="np" onClick="ChangeListStyle()" name="liststyle" value="4" /> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">调用栏目: | |||||
<?php | |||||
$tl = new TypeLink(0); | $tl = new TypeLink(0); | ||||
$typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1); | $typeOptions = $tl->GetOptionArray(0,$admin_catalogs,0,1); | ||||
echo "<select name='typeid' style='width:284px'>\r\n"; | echo "<select name='typeid' style='width:284px'>\r\n"; | ||||
echo "<option value='0' selected>不限栏目...</option>\r\n"; | echo "<option value='0' selected>不限栏目...</option>\r\n"; | ||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28"> 限定频道: | |||||
<?php | |||||
?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28"> 限定频道: | |||||
<?php | |||||
echo "<select name='channel' style='width:100px'>\r\n"; | echo "<select name='channel' style='width:100px'>\r\n"; | ||||
echo "<option value='0' selected>不限频道...</option>\r\n"; | echo "<option value='0' selected>不限频道...</option>\r\n"; | ||||
$tl->dsql->SetQuery("Select id,typename From #@__channeltype where id>0"); | $tl->dsql->SetQuery("Select id,typename From #@__channeltype where id>0"); | ||||
@@ -104,8 +118,8 @@ function SelectArcList(fname){ | |||||
} | } | ||||
echo "</select>"; | echo "</select>"; | ||||
?> | ?> | ||||
附加属性: | |||||
<?php | |||||
附加属性: | |||||
<?php | |||||
echo "<select name='att' style='width:100px'>\r\n"; | echo "<select name='att' style='width:100px'>\r\n"; | ||||
echo "<option value='0' selected>不限...</option>\r\n"; | echo "<option value='0' selected>不限...</option>\r\n"; | ||||
$tl->dsql->SetQuery("Select * From #@__arcatt"); | $tl->dsql->SetQuery("Select * From #@__arcatt"); | ||||
@@ -115,90 +129,99 @@ function SelectArcList(fname){ | |||||
echo "<option value='{$row->att}'>{$row->attname}</option>\r\n"; | echo "<option value='{$row->att}'>{$row->attname}</option>\r\n"; | ||||
} | } | ||||
echo "</select>"; | echo "</select>"; | ||||
?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">调用记录条数: | |||||
<input name="row" type="text" id="row" value="10" size="4" /> | |||||
显示列数: | |||||
<input name="col" type="text" id="col" value="1" size="4" /> | |||||
标题长度: | |||||
<input name="titlelen" type="text" id="titlelen" value="24" size="4" /> | |||||
(1 字节 = 0.5个中文字)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28"> 高级筛选: | |||||
<input name="types[]" type="checkbox" id="type[]" value="image" class="np" /> | |||||
带缩略图 | |||||
<input name="types[]" type="checkbox" id="type[]" value="commend" class="np" /> | |||||
推荐 | |||||
<input name="types[]" type="checkbox" id="type[]" value="spec" class="np" /> | |||||
专题 关键字: | |||||
<input name="keyword" type="text" id="keyword" /> | |||||
(","逗号分开) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">排列顺序: | |||||
<select name="orderby" id="orderby" style="width:120"> | |||||
<option value="sortrank">置顶权限值</option> | |||||
<option value="pubdate" selected>发布时间</option> | |||||
<option value="senddate">录入时间</option> | |||||
<option value="click">点击量</option> | |||||
<option value="id">文档ID</option> | |||||
<option value="lastpost">最后评论时间</option> | |||||
<option value="scores">评论积分</option> | |||||
<option value="rand">随机获取</option> | |||||
</select> | |||||
<input name="order" type="radio" class="np" value="desc" checked='1' /> | |||||
由高到低 | |||||
<input type="radio" name="order" class="np" value="asc" /> | |||||
由低到高</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">文档发布时间: | |||||
<input name="subday" type="text" id="subday" value="0" size="6" /> | |||||
天以内 (0 表示不限)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">提取特定文档: <input name="selarc" type="button" id="selarc" value="选择节点文章" style="width:100" onClick="SelectArcList('form1.arcid');"> | |||||
<textarea name="arcid" rows="3" id="arcid" style="width:90%"></textarea> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">单条记录样式(InnerText):</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="99"><textarea name="innertext" cols="80" rows="6" id="myinnertext">·[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br/></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="80"> | |||||
<font color="#CC6600">支持字段:id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl, | |||||
<br /> | |||||
stime(pubdate 的"0000-00-00"格式),textlink,typelink,imglink,image | |||||
普通字段直接用[field:字段名/]表示。<br /> | |||||
·Pubdate发布时间的调用参数 [field:pubdate function=MyDate('Y-m-d H:i:s',@me)/] </font> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="39"> | |||||
<input name="Submit1" type="button" id="Submit1" onClick="DoSubmit('gettag')" value="生成模板调用标记" class="coolbg np" /> | |||||
| |||||
<input name="Submit2" type="button" id="Submit2" onClick="DoSubmit('savetag')" value="保存为自定义标记" class="coolbg np" /> </td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
</form> | |||||
<tr> | |||||
<td valign="top" height="25" bgcolor="#F9FCEF" align="left">输出结果:</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="150" valign="top" bgcolor="#FFFFFF"> | |||||
<div id='mdv' style='width:100%;height:130;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</center> | |||||
?> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">调用记录条数: | |||||
<input name="row" type="text" id="row" value="10" size="4" /> | |||||
显示列数: | |||||
<input name="col" type="text" id="col" value="1" size="4" /> | |||||
标题长度: | |||||
<input name="titlelen" type="text" id="titlelen" value="24" size="4" /> | |||||
(1 字节 = 0.5个中文字)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28"> 高级筛选: | |||||
<input name="types[]" type="checkbox" id="type[]" value="image" class="np" /> | |||||
带缩略图 | |||||
<input name="types[]" type="checkbox" id="type[]" value="commend" class="np" /> | |||||
推荐 | |||||
<input name="types[]" type="checkbox" id="type[]" value="spec" class="np" /> | |||||
专题 关键字: | |||||
<input name="keyword" type="text" id="keyword" /> | |||||
(","逗号分开) </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">排列顺序: | |||||
<select name="orderby" id="orderby" style="width:120"> | |||||
<option value="sortrank">置顶权限值</option> | |||||
<option value="pubdate" selected>发布时间</option> | |||||
<option value="senddate">录入时间</option> | |||||
<option value="click">点击量</option> | |||||
<option value="id">文档ID</option> | |||||
<option value="lastpost">最后评论时间</option> | |||||
<option value="scores">评论积分</option> | |||||
<option value="rand">随机获取</option> | |||||
</select> | |||||
<input name="order" type="radio" class="np" value="desc" checked='1' /> | |||||
由高到低 | |||||
<input type="radio" name="order" class="np" value="asc" /> | |||||
由低到高</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">文档发布时间: | |||||
<input name="subday" type="text" id="subday" value="0" size="6" /> | |||||
天以内 (0 表示不限)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">提取特定文档: <button class="btn btn-secondary btn-sm" type="button" id="selarc" | |||||
onClick="SelectArcList('form1.arcid');">选择节点文章</button> | |||||
<textarea name="arcid" rows="3" id="arcid" style="width:90%" class="mt-3"></textarea> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="28">单条记录样式(InnerText):</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="99"><textarea name="innertext" cols="80" rows="6" | |||||
id="myinnertext">·[field:textlink/]([field:pubdate function=MyDate('m-d',@me)/])<br/></textarea> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="80"> | |||||
<font color="#CC6600"> | |||||
支持字段:id,title,color,typeid,ismake,description,pubdate,senddate,arcrank,click,litpic,typedir,typename,arcurl,typeurl, | |||||
<br /> | |||||
stime(pubdate 的"0000-00-00"格式),textlink,typelink,imglink,image | |||||
普通字段直接用[field:字段名/]表示。<br /> | |||||
·Pubdate发布时间的调用参数 [field:pubdate function=MyDate('Y-m-d H:i:s',@me)/] </font> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="39"> | |||||
<button name="Submit1" type="button" id="Submit1" class="btn btn-secondary" onClick="DoSubmit('gettag')" value="" | |||||
class="coolbg np">生成模板调用标记</button> | |||||
| |||||
<button name="Submit2" type="button" id="Submit2" class="btn btn-secondary" onClick="DoSubmit('savetag')" value="保存为自定义标记" | |||||
class="coolbg np">生成模板调用标记</button></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr> | |||||
<td valign="top" height="25" bgcolor="#F9FCEF" align="left">输出结果:</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="150" valign="top" bgcolor="#FFFFFF"> | |||||
<div id='mdv' style='width:100%;height:130;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</center> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -69,16 +69,16 @@ | |||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" | <table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable table-bordered mt-3" | ||||
style="background:#cbd8ac;margin-bottom:5px"> | |||||
style="background:#cbd8ac;margin-bottom:5px;"> | |||||
<tr> | <tr> | ||||
<td height="30" align="center" bgcolor="#FAFCEF"> | <td height="30" align="center" bgcolor="#FAFCEF"> | ||||
<form name="form2" method="get" action="shops_operations.php"> | <form name="form2" method="get" action="shops_operations.php"> | ||||
<table border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<table border="0" cellspacing="0" cellpadding="0" class="table table-borderless" style="width: 400px;"> | |||||
<tr> | <tr> | ||||
<td>输入订单号:</td> | <td>输入订单号:</td> | ||||
<td> | <td> | ||||
<input name="buyid" type="text" id="buyid"></td> | <input name="buyid" type="text" id="buyid"></td> | ||||
<td width="100" align="center"> <input name="imageField" type="submit" class='np coolbg' value="搜索"> | |||||
<td width="100" align="center"> <button type="submit" class="btn btn-secondary btn-sm">搜索</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -94,20 +94,14 @@ | |||||
<tr> | <tr> | ||||
<td width="30%" style="padding-left:10px;"><strong>订单列表:</strong> </td> | <td width="30%" style="padding-left:10px;"><strong>订单列表:</strong> </td> | ||||
<td width="45%" align="right" style="padding-top:4px"> | <td width="45%" align="right" style="padding-top:4px"> | ||||
<input type="button" name="ss13" value="未付款" style="width:50px;margin-right:6px" | |||||
onClick="location='shops_operations.php?sta=0';" class='np coolbg' /> | |||||
<input type="button" name="ss14" value="已付款" style="width:50px;margin-right:6px" | |||||
onClick="location='shops_operations.php?sta=1';" class='np coolbg' /> | |||||
<input type="button" name="ss142" value="已发货" style="width:50px;margin-right:6px" | |||||
onClick="location='shops_operations.php?sta=2';" class='np coolbg' /> | |||||
<input type="button" name="ss142" value="已完成" style="width:50px;margin-right:6px" | |||||
onClick="location='shops_operations.php?sta=4';" class='np coolbg' /> | |||||
<input type="button" name="ss16" value="全部" style="width:40px;margin-right:6px" | |||||
onClick="location='shops_operations.php';" class='np coolbg' /> | |||||
<button type="button" onClick="location='shops_operations.php?sta=0'" class="btn btn-secondary btn-sm">未付款</button> | |||||
<button type="button" onClick="location='shops_operations.php?sta=1';" class="btn btn-secondary btn-sm">已付款</button> | |||||
<button type="button" onClick="location='shops_operations.php?sta=2';" class="btn btn-secondary btn-sm">已发货</button> | |||||
<button type="button" onClick="location='shops_operations.php?sta=4';" class="btn btn-secondary btn-sm">已完成</button> | |||||
<button type="button" onClick="location='shops_operations.php';" class="btn btn-secondary btn-sm">全部</button> | |||||
</td> | </td> | ||||
<td width="25%" align="right" style="padding-top:4px"> | <td width="25%" align="right" style="padding-top:4px"> | ||||
<input type="button" name="ss12" value="订单管理" style="width:90px;margin-right:6px" | |||||
onClick="location='shops_operations.php';" class='np coolbg' /> | |||||
<button type="button" onClick="location='shops_operations.php';" class="btn btn-secondary btn-sm">订单管理</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -171,11 +165,11 @@ | |||||
</form> | </form> | ||||
<tr> | <tr> | ||||
<td height="28" colspan="11" bgcolor="#FCFDF7" style="padding-top:4px;"> | <td height="28" colspan="11" bgcolor="#FCFDF7" style="padding-top:4px;"> | ||||
<input type="button" name="b7" value="反选" class='np coolbg' style="width:40" onClick="ReSel();"> | |||||
<input type="button" name="b" value="删除" style="width:40" onClick="DelSel();" class='np coolbg' /> | |||||
<input type="button" name="b5" value="设为已付款状态" class='np coolbg' style="width:100" onClick="UpSel();"> | |||||
<input type="button" name="b9" value="设为已发货状态" class='np coolbg' style="width:100" onClick="PushSel();"> | |||||
<input type="button" name="b9" value="设为已完成状态" class='np coolbg' style="width:100" onClick="OkSel();"> | |||||
<button type="button" onClick="ReSel();" class="btn btn-secondary btn-sm">反选</button> | |||||
<button type="button" onClick="DelSel();" class="btn btn-secondary btn-sm">删除</button> | |||||
<button type="button" onClick="UpSel();" class="btn btn-secondary btn-sm">设为已付款状态</button> | |||||
<button type="button" onClick="PushSel();" class="btn btn-secondary btn-sm">设为已发货状态</button> | |||||
<button type="button" onClick="OkSel();" class="btn btn-secondary btn-sm">设为已完成状态</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -9,6 +9,7 @@ | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | ||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <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/jquery.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | <script language="javascript" src="../static/js/dedeajax2.js"></script> | ||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | <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/moment.min.js"></script> | ||||
@@ -17,16 +18,15 @@ | |||||
<script language="javascript" src="js/main.js"></script> | <script language="javascript" src="js/main.js"></script> | ||||
<link href="../static/css/cropper.min.css" rel="stylesheet"> | <link href="../static/css/cropper.min.css" rel="stylesheet"> | ||||
<script src="../static/js/cropper.min.js"></script> | <script src="../static/js/cropper.min.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript"> | <script language="javascript"> | ||||
function checkSubmit() { | function checkSubmit() { | ||||
if (document.form1.title.value == '') { | if (document.form1.title.value == '') { | ||||
alert('软件名称不能为空!'); | |||||
ShowMsg('软件名称不能为空!'); | |||||
document.form1.title.focus(); | document.form1.title.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
if (document.form1.typeid.value == 0) { | if (document.form1.typeid.value == 0) { | ||||
alert('请选择档案的主类别!'); | |||||
ShowMsg('请选择档案的主类别!'); | |||||
return false; | return false; | ||||
} | } | ||||
} | } | ||||
@@ -9,6 +9,7 @@ | |||||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | ||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | <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/jquery.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | <script language="javascript" src="../static/js/dedeajax2.js"></script> | ||||
<link href="../static/css/daterangepicker.css" rel="stylesheet"> | <link href="../static/css/daterangepicker.css" rel="stylesheet"> | ||||
<link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | <link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | ||||
@@ -17,11 +18,11 @@ | |||||
<script language="javascript" src="js/main.js"></script> | <script language="javascript" src="js/main.js"></script> | ||||
<link href="../static/css/cropper.min.css" rel="stylesheet"> | <link href="../static/css/cropper.min.css" rel="stylesheet"> | ||||
<script src="../static/js/cropper.min.js"></script> | <script src="../static/js/cropper.min.js"></script> | ||||
<script src="../static/js/bootstrap.bundle.js"></script> | |||||
<script language="javascript"> | <script language="javascript"> | ||||
function checkSubmit() { | function checkSubmit() { | ||||
if (document.form1.title.value == '') { | if (document.form1.title.value == '') { | ||||
alert('软件名称不能为空!'); | |||||
ShowMsg('软件名称不能为空!'); | |||||
document.form1.title.focus(); | document.form1.title.focus(); | ||||
return false; | return false; | ||||
} | } | ||||
@@ -1,66 +1,74 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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'> | |||||
function checkSubmit() | |||||
{ | |||||
if(document.form1.userid.value==""){ | |||||
alert("用户ID不能为空!"); | |||||
document.form1.userid.focus(); | |||||
return false; | |||||
} | |||||
if(document.form1.uname.value==""){ | |||||
alert("用户名不能为空!"); | |||||
document.form1.uname.focus(); | |||||
return false; | |||||
} | |||||
if(document.form1.pwd.value==""){ | |||||
alert("用户密码不能为空!"); | |||||
document.form1.pwd.focus(); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
</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'> | |||||
function checkSubmit() { | |||||
if (document.form1.userid.value == "") { | |||||
alert("用户ID不能为空!"); | |||||
document.form1.userid.focus(); | |||||
return false; | |||||
} | |||||
if (document.form1.uname.value == "") { | |||||
alert("用户名不能为空!"); | |||||
document.form1.uname.focus(); | |||||
return false; | |||||
} | |||||
if (document.form1.pwd.value == "") { | |||||
alert("用户密码不能为空!"); | |||||
document.form1.pwd.focus(); | |||||
return false; | |||||
} | |||||
return true; | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <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="19" background="images/tbg.gif" bgcolor="#E7E7E7"> | |||||
<table width="96%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="24%" style="padding-left:10px;"><b><strong>新增帐号</strong></b> </td> | |||||
<td width="76%" align="right"><strong><a href="sys_admin_user.php"><u>管理帐号</u></a></strong></td> | |||||
</tr> | |||||
</table></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="215" align="center" valign="top" bgcolor="#FFFFFF"> | |||||
<form name="form1" action="sys_admin_user_add.php" onSubmit="return checkSubmit();" method="post"> | |||||
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> | |||||
<input type="hidden" name="dopost" value="add" /> | |||||
<table width="98%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="16%" height="30">用户登录ID:</td> | |||||
<td width="84%" style="text-align:left;"><input name="userid" type="text" id="userid" size="16" style="width:200px" /> | |||||
(只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符)</td> | |||||
<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" bgcolor="#E7E7E7"> | |||||
<table width="96%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | |||||
<tr> | |||||
<td width="24%" style="padding-left:10px;"><b><strong>新增帐号</strong></b> </td> | |||||
<td width="76%" align="right"><strong><a href="sys_admin_user.php"><u>管理帐号</u></a></strong></td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="30">用户笔名:</td> | |||||
<td style="text-align:left;"><input name="uname" type="text" id="uname" size="16" style="width:200px" /> (发布文章后显示责任编辑的名字)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户密码:</td> | |||||
<td style="text-align:left;"><input name="pwd" type="text" id="pwd" size="16" style="width:200px" /> (只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户组:</td> | |||||
<td style="text-align:left;"> | |||||
<select name='usertype' style='width:200px'> | |||||
<?php | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="215" align="center" valign="top" bgcolor="#FFFFFF"> | |||||
<form name="form1" action="sys_admin_user_add.php" onSubmit="return checkSubmit();" method="post"> | |||||
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> | |||||
<input type="hidden" name="dopost" value="add" /> | |||||
<table width="98%" border="0" cellspacing="1" cellpadding="1" class="table table-borderless"> | |||||
<tr> | |||||
<td width="16%" height="30">用户登录ID:</td> | |||||
<td width="84%" style="text-align:left;"><input name="userid" type="text" id="userid" size="16" | |||||
style="width:200px" /> | |||||
(只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户笔名:</td> | |||||
<td style="text-align:left;"><input name="uname" type="text" id="uname" size="16" style="width:200px" /> | |||||
(发布文章后显示责任编辑的名字)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户密码:</td> | |||||
<td style="text-align:left;"><input name="pwd" type="text" id="pwd" size="16" style="width:200px" /> | |||||
(只能用'0-9'、'a-z'、'A-Z'、'.'、'@'、'_'、'-'、'!'以内范围的字符)</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">用户组:</td> | |||||
<td style="text-align:left;"> | |||||
<select name='usertype' style='width:200px'> | |||||
<?php | |||||
$dsql->SetQuery("Select * from `#@__admintype` order by rank asc"); | $dsql->SetQuery("Select * from `#@__admintype` order by rank asc"); | ||||
$dsql->Execute("ut"); | $dsql->Execute("ut"); | ||||
@@ -69,45 +77,52 @@ | |||||
echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n"; | echo "<option value='".$myrow->rank."'>".$myrow->typename."</option>\r\n"; | ||||
} | } | ||||
?> | ?> | ||||
</select> | |||||
| |||||
【<a href='sys_group.php'><u>用户组设定</u></a>】 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">授权栏目:</td> | |||||
<td style="text-align:left;"> | |||||
<select name="typeids[]" id="typeid" size='10' style="width:200px" multiple="true"> | |||||
<option value="0" class='alltype' selected>--所有频道--</option> | |||||
<?php echo $typeOptions?> | |||||
</select>(按 Ctrl 可以进行多选) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">真实姓名:</td> | |||||
<td style="text-align:left;"><input name="tname" type="text" id="tname" size="16" style="width:200px" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">电子邮箱:</td> | |||||
<td style="text-align:left;"><input name="email" type="text" id="email" size="16" style="width:200px" /> </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">安全验证串:</td> | |||||
<td style="text-align:left;"> | |||||
<input name="safecode" type="text" id="safecode" size="16" style="width:200px" /> | |||||
<input name="randcode" type="hidden" value="<?php echo $randcode; ?>" /> | |||||
| |||||
(复制本代码: <font color='red'><?php echo $safecode; ?></font> ) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="60"> </td> | |||||
<td><input type="submit" name="Submit" value=" 增加用户 " class="coolbg np" /></td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</select> | |||||
| |||||
【<a href='sys_group.php'><u>用户组设定</u></a>】 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">授权栏目:</td> | |||||
<td style="text-align:left;"> | |||||
<select name="typeids[]" id="typeid" size='10' style="width:200px" multiple="true"> | |||||
<option value="0" class='alltype' selected>--所有频道--</option> | |||||
<?php echo $typeOptions?> | |||||
</select> | |||||
(按 Ctrl 可以进行多选) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">真实姓名:</td> | |||||
<td style="text-align:left;"><input name="tname" type="text" id="tname" size="16" style="width:200px" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">电子邮箱:</td> | |||||
<td style="text-align:left;"><input name="email" type="text" id="email" size="16" style="width:200px" /> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="30">安全验证串:</td> | |||||
<td style="text-align:left;"> | |||||
<input name="safecode" type="text" id="safecode" size="16" style="width:200px" /> | |||||
<input name="randcode" type="hidden" value="<?php echo $randcode; ?>" /> | |||||
| |||||
(复制本代码: <font color='red'><?php echo $safecode; ?></font> ) | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="60"> </td> | |||||
<td> | |||||
<button type="submit" class="btn btn-secondary" onClick="DoSubmit('gettag')" | |||||
class="coolbg np">增加用户</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,60 +1,66 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <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="3" 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_group_add.php"><u>增加一个用户组</u></a> | |||||
| | |||||
<a href="sys_admin_user.php"><u>管理系统用户</u></a> | |||||
</b> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" align="center" > | |||||
<td width="20%" height="24">Rank</td> | |||||
<td width="45%">组名称</td> | |||||
<td width="35%">管理</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="3" 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"><b> | |||||
<a href="sys_group_add.php" class="btn btn-secondary">增加一个用户组</a> | |||||
<a href="sys_admin_user.php" class="btn btn-secondary">管理系统用户</a> | |||||
</b> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FBFCE2" align="center"> | |||||
<td width="20%" height="24">Rank</td> | |||||
<td width="45%">组名称</td> | |||||
<td width="35%">管理</td> | |||||
</tr> | |||||
<?php | |||||
$dsql->SetQuery("Select rank,typename,system From #@__admintype"); | $dsql->SetQuery("Select rank,typename,system From #@__admintype"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while($row = $dsql->GetObject()) | while($row = $dsql->GetObject()) | ||||
{ | { | ||||
?> | ?> | ||||
<tr align="center" bgcolor="#FFFFFF"> | |||||
<td height="24"> | |||||
<?php echo $row->rank?> | |||||
</td> | |||||
<td height="24"> | |||||
<?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> | |||||
<?php if($row->system==0){ ?><a href='sys_group_edit.php?dopost=del&rank=<?php echo $row->rank; ?>'>[删除组]</a><?php } ?> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
<tr align="center" bgcolor="#FFFFFF"> | |||||
<td height="24"> | |||||
<?php echo $row->rank?> | |||||
</td> | |||||
<td height="24"> | |||||
<?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> | |||||
<?php if($row->system==0){ ?><a | |||||
href='sys_group_edit.php?dopost=del&rank=<?php echo $row->rank; ?>'>[删除组]</a><?php } ?> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
<tr> | |||||
<td height="24" colspan="3" bgcolor="#F9FCEF"> </td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
<tr> | |||||
<td height="24" colspan="3" bgcolor="#F9FCEF"> </td> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,39 +1,44 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<center> | |||||
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name='form1' action='sys_group_add.php' method='post'> | |||||
<input type='hidden' name='dopost' value='save'> | |||||
<tr> | |||||
<td height="23" background="images/tbg.gif" align="left" style="padding-left:10px;"><b><a href='sys_group.php'>系统用户组管理</a>>>增加用户组:</b></td> | |||||
</tr> | |||||
<tr> | |||||
<td valign="top" bgcolor="#FFFFFF" align="center"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="9%" height="30">组名称:</td> | |||||
<td width="91%" style="text-align:left;"> <input name="groupname" type="text" id="groupname"> | |||||
</td> | |||||
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name='form1' action='sys_group_add.php' method='post'> | |||||
<input type='hidden' name='dopost' value='save'> | |||||
<tr> | |||||
<td height="23" background="images/tbg.gif" align="left" style="padding-left:10px;"><b><a | |||||
href='sys_group.php'>系统用户组管理</a>>>增加用户组:</b></td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td width="9%" height="30">级别值:</td> | |||||
<td width="91%" style="text-align:left;"> <input name="rankid" type="text" id="rankid" size="6"> | |||||
(数字,系统已占用的级别值: | |||||
<?php | |||||
<tr> | |||||
<td valign="top" bgcolor="#FFFFFF" align="center"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="9%" height="30">组名称:</td> | |||||
<td width="91%" style="text-align:left;"> <input name="groupname" type="text" id="groupname"> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="9%" height="30">级别值:</td> | |||||
<td width="91%" style="text-align:left;"> <input name="rankid" type="text" id="rankid" size="6"> | |||||
(数字,系统已占用的级别值: | |||||
<?php | |||||
$dsql->SetQuery("Select rank From #@__admintype"); | $dsql->SetQuery("Select rank From #@__admintype"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while($row = $dsql->GetObject()) echo '<font color=red>'.$row->rank.'</font>、'; | while($row = $dsql->GetObject()) echo '<font color=red>'.$row->rank.'</font>、'; | ||||
?> | ?> | ||||
,级别值必须小于10,超过或等于10所有权限设置将无效(超级管理员),如果10个组不能完全满足你的要求,允许使用小数) </td> | |||||
</tr> | |||||
<?php | |||||
,级别值必须小于10,超过或等于10所有权限设置将无效(超级管理员),如果10个组不能完全满足你的要求,允许使用小数) </td> | |||||
</tr> | |||||
<?php | |||||
$start = 0; | $start = 0; | ||||
$k = 0; | $k = 0; | ||||
$gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt'); | $gouplists = file(dirname(__FILE__).'/../inc/grouplist.txt'); | ||||
@@ -47,8 +52,8 @@ | |||||
$start++; | $start++; | ||||
$lhead = " | $lhead = " | ||||
<tr> | <tr> | ||||
<td height='25' colspan='2' bgcolor='#F9FAF3' style='text-align:left;'>{$start}、".str_replace('>>','',$line)."</td></tr> | |||||
<tr><td height='25' colspan='2' style='text-align:left;'> | |||||
<td height='25' colspan='2' bgcolor='#F9FAF3' style='text-align:left; line-height: 22px;'>{$start}、".str_replace('>>','',$line)."</td></tr> | |||||
<tr><td height='25' colspan='2' style='text-align:left; line-height: 22px;'> | |||||
"; | "; | ||||
echo $lhead; | echo $lhead; | ||||
} | } | ||||
@@ -59,42 +64,43 @@ | |||||
$tagname = str_replace('[br]', '<br />', $ls[2]); | $tagname = str_replace('[br]', '<br />', $ls[2]); | ||||
if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<font color='#888888'>($tag)</font>"; | if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<font color='#888888'>($tag)</font>"; | ||||
else $tagname = str_replace('<br />', "<font color='#888888'>($tag)</font><br />", $tagname); | else $tagname = str_replace('<br />', "<font color='#888888'>($tag)</font><br />", $tagname); | ||||
echo " <input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'>$tagname\r\n"; | |||||
echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'> $tagname</label>\r\n"; | |||||
$k++; | $k++; | ||||
} | } | ||||
} | } | ||||
$start++; | $start++; | ||||
?> | ?> | ||||
</td> | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td height='25' colspan='2' bgcolor='#F9FAF3' style="text-align:left;"><?php echo $start?>、插件权限</td> | |||||
</tr> | |||||
<tr> | <tr> | ||||
<td height='25' colspan='2' style='text-align:left;'> | |||||
<?php | |||||
<td height='25' colspan='2' bgcolor='#F9FAF3' style="text-align:left;"><?php echo $start?>、插件权限</td> | |||||
</tr> | |||||
<tr> | |||||
<td height='25' colspan='2' style='text-align:left;'> | |||||
<?php | |||||
$l = 0; | $l = 0; | ||||
$dsql->SetQuery('Select plusname From #@__plus'); | $dsql->SetQuery('Select plusname From #@__plus'); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while($row=$dsql->GetObject()){ | while($row=$dsql->GetObject()){ | ||||
echo " <input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'>{$row->plusname}\r\n"; | |||||
echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'> {$row->plusname}</label>\r\n"; | |||||
$k++; | $k++; | ||||
$l++; | $l++; | ||||
if($l%6==0) echo "<br />"; | if($l%6==0) echo "<br />"; | ||||
} | } | ||||
?> | |||||
</td> | |||||
?> | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<tr> | |||||
<td height="50" align="center"> </td> | <td height="50" align="center"> </td> | ||||
<td height="50" style="text-align:left;"><input class="np" name="imageField" type="image" src="images/button_save.gif" width="60" height="22" border="0"> | |||||
<td height="50" style="text-align:left;"><button type="submit" class="btn btn-secondary" onClick="DoSubmit('gettag')" | |||||
class="coolbg np">保存</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | |||||
</form> | |||||
</table> | |||||
</center> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,34 +1,41 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<center> | |||||
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<form name='form1' action='sys_group_edit.php' method='post'> | |||||
<input type='hidden' name='dopost' value='save'> | |||||
<tr> | |||||
<td height="23" background="images/tbg.gif" align="left" style="padding-left:10px;"><b><a href='sys_group.php'>系统用户组管理</a>>>更改用户组:</b></td> | |||||
</tr> | |||||
<tr> | |||||
<td valign="top" bgcolor="#FFFFFF" align="center"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="9%" height="30">组名称:</td> | |||||
<td width="91%" style="text-align:left;"> <input name="typename" type="text" id="typename" value="<?php echo $groupSet['typename']?>"> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="9%" height="30">级别值:</td> | |||||
<td width="91%" style="text-align:left;"> | |||||
<input name="rank" type="hidden" id="rank" value="<?php echo $groupSet['rank']?>"> | |||||
<?php echo $groupSet['rank']?> | |||||
</td> | |||||
<center> | |||||
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name='form1' action='sys_group_edit.php' method='post'> | |||||
<input type='hidden' name='dopost' value='save'> | |||||
<tr> | |||||
<td height="23" background="images/tbg.gif" align="left" style="padding-left:10px;"><b><a | |||||
href='sys_group.php'>系统用户组管理</a>>>更改用户组:</b></td> | |||||
</tr> | </tr> | ||||
<?php | |||||
<tr> | |||||
<td valign="top" bgcolor="#FFFFFF" align="center"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="9%" height="30">组名称:</td> | |||||
<td width="91%" style="text-align:left;"> <input name="typename" type="text" id="typename" | |||||
value="<?php echo $groupSet['typename']?>"> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="9%" height="30">级别值:</td> | |||||
<td width="91%" style="text-align:left;"> | |||||
<input name="rank" type="hidden" id="rank" value="<?php echo $groupSet['rank']?>"> | |||||
<?php echo $groupSet['rank']?> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
$start = 0; | $start = 0; | ||||
$k = 0; | $k = 0; | ||||
$gouplists = file(DEDEADMIN.'/inc/grouplist.txt'); | $gouplists = file(DEDEADMIN.'/inc/grouplist.txt'); | ||||
@@ -54,42 +61,44 @@ | |||||
$tagname = str_replace('[br]','<br>',$ls[2]); | $tagname = str_replace('[br]','<br>',$ls[2]); | ||||
if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<font color='#888888'>($tag)</font>"; | if(!preg_match("#<br \/>#", $tagname) ) $tagname .= "<font color='#888888'>($tag)</font>"; | ||||
else $tagname = str_replace('<br />', "<font color='#888888'>($tag)</font><br />", $tagname); | else $tagname = str_replace('<br />', "<font color='#888888'>($tag)</font><br />", $tagname); | ||||
echo " <input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'".CRank($tag).">$tagname\r\n"; | |||||
echo " <label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='$tag'".CRank($tag)."> $tagname</label>\r\n"; | |||||
$k++; | $k++; | ||||
} | } | ||||
} | } | ||||
$start++; | $start++; | ||||
?> | ?> | ||||
</td> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height='25' colspan='2' bgcolor='#F9FAF3' style="text-align:left;"><?php echo $start?>、插件权限</td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td height='25' colspan='2' bgcolor='#F9FAF3' style="text-align:left;"><?php echo $start?>、插件权限</td> | |||||
</tr> | |||||
<tr> | <tr> | ||||
<td height='25' colspan='2' style="text-align:left;"> | |||||
<?php | |||||
<td height='25' colspan='2' style="text-align:left;"> | |||||
<?php | |||||
$l = 0; | $l = 0; | ||||
$dsql->SetQuery('SELECT plusname FROM #@__plus'); | $dsql->SetQuery('SELECT plusname FROM #@__plus'); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while($row=$dsql->GetObject()){ | while($row=$dsql->GetObject()){ | ||||
echo " <input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}").">{$row->plusname}\r\n"; | |||||
echo " <label></label><input name='purviews[]' type='checkbox' class='np' id='purviews$k' value='plus_{$row->plusname}'".CRank("plus_{$row->plusname}")."> {$row->plusname}</label>\r\n"; | |||||
$k++; | $k++; | ||||
$l++; | $l++; | ||||
if($l % 6 == 0) echo "<br>"; | if($l % 6 == 0) echo "<br>"; | ||||
} | } | ||||
?> | |||||
</td> | |||||
?> | |||||
</td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<tr> | |||||
<td height="50" align="center"> </td> | <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"><input class="np" name="imageField" type="image" src="images/button_save.gif" width="60" | |||||
height="22" border="0"> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | |||||
</form> | |||||
</table> | |||||
</center> | |||||
</tr> | |||||
</form> | |||||
</table> | |||||
</center> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,70 +1,67 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <head> | ||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>系统配置参数</title> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript"> | |||||
var searchconfig = false; | |||||
function Nav() | |||||
{ | |||||
if(window.navigator.userAgent.indexOf("MSIE")>=1) return 'IE'; | |||||
else if(window.navigator.userAgent.indexOf("Firefox")>=1) return 'FF'; | |||||
else return "OT"; | |||||
} | |||||
function $Obj(objname) | |||||
{ | |||||
return document.getElementById(objname); | |||||
} | |||||
function ShowConfig(em,allgr) | |||||
{ | |||||
if(searchconfig) location.reload(); | |||||
for(var i=1;i<=allgr;i++) | |||||
{ | |||||
if(i==em) $Obj('td'+i).style.display = (Nav()=='IE' ? 'block' : 'table'); | |||||
else $Obj('td'+i).style.display = 'none'; | |||||
} | |||||
$Obj('addvar').style.display = 'none'; | |||||
} | |||||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
<title>系统配置参数</title> | |||||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||||
<script language="javascript" src="../static/js/jquery.js"></script> | |||||
<script language="javascript"> | |||||
var searchconfig = false; | |||||
function Nav() { | |||||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
else return "OT"; | |||||
} | |||||
function $Obj(objname) { | |||||
return document.getElementById(objname); | |||||
} | |||||
function ShowConfig(em, allgr) { | |||||
if (searchconfig) location.reload(); | |||||
for (var i = 1; i <= allgr; i++) { | |||||
if (i == em) $Obj('td' + i).style.display = (Nav() == 'IE' ? 'block' : 'table'); | |||||
else $Obj('td' + i).style.display = 'none'; | |||||
} | |||||
$Obj('addvar').style.display = 'none'; | |||||
} | |||||
function ShowHide(objname) | |||||
{ | |||||
var obj = $Obj(objname); | |||||
if(obj.style.display != "none") obj.style.display = "none"; | |||||
else obj.style.display = (Nav()=='IE' ? 'block' : 'table-row'); | |||||
} | |||||
function ShowHide(objname) { | |||||
var obj = $Obj(objname); | |||||
if (obj.style.display != "none") obj.style.display = "none"; | |||||
else obj.style.display = (Nav() == 'IE' ? 'block' : 'table-row'); | |||||
} | |||||
function backSearch() | |||||
{ | |||||
location.reload(); | |||||
} | |||||
function getSearch() | |||||
{ | |||||
var searchKeywords = $Obj('keywds').value; | |||||
var myajax = new DedeAjax($Obj('_search')); | |||||
myajax.SendGet('sys_info.php?dopost=search&keywords='+searchKeywords) | |||||
$Obj('_searchback').innerHTML = '<input name="searchbackBtn" type="button" value="返回" id="searchbackBtn" onclick="backSearch()"/>' | |||||
$Obj('_mainsearch').innerHTML = ''; | |||||
searchconfig = true; | |||||
} | |||||
function resetCookieEncode() | |||||
{ | |||||
jQuery.get("sys_info.php?dopost=make_encode", function(data){ | |||||
jQuery("#edit___cfg_cookie_encode").val(data); | |||||
}); | |||||
} | |||||
</script> | |||||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
function backSearch() { | |||||
location.reload(); | |||||
} | |||||
function getSearch() { | |||||
var searchKeywords = $Obj('keywds').value; | |||||
var myajax = new DedeAjax($Obj('_search')); | |||||
myajax.SendGet('sys_info.php?dopost=search&keywords=' + searchKeywords) | |||||
$Obj('_searchback').innerHTML = '<input name="searchbackBtn" type="button" value="返回" id="searchbackBtn" onclick="backSearch()"/>' | |||||
$Obj('_mainsearch').innerHTML = ''; | |||||
searchconfig = true; | |||||
} | |||||
function resetCookieEncode() { | |||||
jQuery.get("sys_info.php?dopost=make_encode", function (data) { | |||||
jQuery("#edit___cfg_cookie_encode").val(data); | |||||
}); | |||||
} | |||||
</script> | |||||
<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> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<div style="min-width:780px"> | |||||
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center"> | |||||
<tr> | |||||
<td height="28" background="images/tbg.gif" style="padding-left:10px;"><b>DedeCMS系统配置参数:</b></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" bgcolor="#ffffff" align="center"><?php | |||||
<div style="min-width:780px"> | |||||
<table width="98%" border="0" cellpadding="2" cellspacing="1" bgcolor="#D6D6D6" align="center" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="28" background="images/tbg.gif" style="padding-left:10px;"><b>DedeCMS系统配置参数:</b></td> | |||||
</tr> | |||||
<tr> | |||||
<td height="24" bgcolor="#ffffff" align="center"><?php | |||||
$ds = file(DEDEADMIN.'/inc/configgroup.txt'); | $ds = file(DEDEADMIN.'/inc/configgroup.txt'); | ||||
$totalGroup = count($ds); | $totalGroup = count($ds); | ||||
$i = 0; | $i = 0; | ||||
@@ -80,35 +77,39 @@ foreach($ds as $dl) | |||||
} | } | ||||
} | } | ||||
?> | ?> | ||||
| <a href="#" onClick="ShowHide('addvar')">添加新变量</a></td> | |||||
</tr> | |||||
<tr id="addvar" style="display:none"> | |||||
<td height="24" bgcolor="#ffffff" align="center"><form name="fadd" action="sys_info.php" method="post"> | |||||
<input type='hidden' name='dopost' value='add'> | |||||
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="12%" height="26">变量名称:</td> | |||||
<td width="38%" align="left"><input name="nvarname" type="text" id="nvarname" class="npvar" style="width:80%" /></td> | |||||
<td width="12%" align="center">变量值:</td> | |||||
<td width="38%" align="left"><input name="nvarvalue" type="text" id="nvarvalue" class="npvar" style="width:80%" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="10%" height="26">变量类型:</td> | |||||
<td colspan='3' align="left"><input name="vartype" type="radio" value="string" class='np' checked='checked' /> | |||||
文本 | |||||
<input name="vartype" type="radio" value="number" class='np' /> | |||||
数字 | |||||
<input type="radio" name="vartype" value="bool" class='np' /> | |||||
布尔(Y/N) | |||||
<input type="radio" name="vartype" value="bstring" class='np' /> | |||||
多行文本 </td> | |||||
| <a href="#" onClick="ShowHide('addvar')">添加新变量</a></td> | |||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="26">参数说明:</td> | |||||
<td align="left"><input type="text" name="varmsg" id="varmsg" class="npvar" style="width:80%" /></td> | |||||
<td align="center">所属组:</td> | |||||
<td align="left"><?php | |||||
<tr id="addvar" style="display:none"> | |||||
<td height="24" bgcolor="#ffffff" align="center"> | |||||
<form name="fadd" action="sys_info.php" method="post"> | |||||
<input type='hidden' name='dopost' value='add'> | |||||
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> | |||||
<table width="98%" border="0" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="12%" height="26">变量名称:</td> | |||||
<td width="38%" align="left"><input name="nvarname" type="text" id="nvarname" class="npvar" | |||||
style="width:80%" /></td> | |||||
<td width="12%" align="center">变量值:</td> | |||||
<td width="38%" align="left"><input name="nvarvalue" type="text" id="nvarvalue" class="npvar" | |||||
style="width:80%" /></td> | |||||
</tr> | |||||
<tr> | |||||
<td width="10%" height="26">变量类型:</td> | |||||
<td colspan='3' align="left"><input name="vartype" type="radio" value="string" class='np' | |||||
checked='checked' /> | |||||
文本 | |||||
<input name="vartype" type="radio" value="number" class='np' /> | |||||
数字 | |||||
<input type="radio" name="vartype" value="bool" class='np' /> | |||||
布尔(Y/N) | |||||
<input type="radio" name="vartype" value="bstring" class='np' /> | |||||
多行文本 </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="26">参数说明:</td> | |||||
<td align="left"><input type="text" name="varmsg" id="varmsg" class="npvar" style="width:80%" /></td> | |||||
<td align="center">所属组:</td> | |||||
<td align="left"><?php | |||||
echo "<select name='vargroup' class='npvar'>\r\n"; | echo "<select name='vargroup' class='npvar'>\r\n"; | ||||
foreach($ds as $dl){ | foreach($ds as $dl){ | ||||
$dl = trim($dl); | $dl = trim($dl); | ||||
@@ -117,28 +118,32 @@ foreach($ds as $dl) | |||||
echo "<option value='{$dls[0]}'>{$dls[1]}</option>\r\n"; | echo "<option value='{$dls[0]}'>{$dls[1]}</option>\r\n"; | ||||
} | } | ||||
echo "</select>\r\n"; | echo "</select>\r\n"; | ||||
?> | |||||
<input type="submit" name="Submit" value="保存变量" class="np coolbg" /></td> | |||||
?> | |||||
<button type="submit" class="btn btn-secondary btn-sm">保存变量</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" style="margin-top:10px" bgcolor="#D6D6D6" | |||||
align="center" class="table maintable table-bordered mt-3"> | |||||
<tr> | |||||
<td height="28" align="right" background="images/tbg.gif" style="border:1px solid #cfcfcf;border-bottom:none;"> | |||||
配置搜索: | |||||
<input type="text" name="keywds" id="keywds" /> | |||||
<button type="button" onclick="getSearch()" class="btn btn-secondary btn-sm">保存变量</button> | |||||
<span id="_searchback"></span></td> | |||||
</tr> | </tr> | ||||
</table> | |||||
</form></td> | |||||
</tr> | |||||
</table> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" style="margin-top:10px" bgcolor="#D6D6D6" align="center"> | |||||
<tr> | |||||
<td height="28" align="right" background="images/tbg.gif" style="border:1px solid #cfcfcf;border-bottom:none;"> 配置搜索: | |||||
<input type="text" name="keywds" id="keywds" /> | |||||
<input name="searchBtn" type="button" value="搜索" id="searchBtn" onclick="getSearch()"/> | |||||
<span id="_searchback"></span></td> | |||||
</tr> | |||||
<tr> | |||||
<td bgcolor="#FFFFFF" width="100%"> | |||||
<form action="sys_info.php" method="post" name="form1"> | |||||
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> | |||||
<input type="hidden" name="dopost" value="save"> | |||||
<div id="_search"></div> | |||||
<div id="_mainsearch"> | |||||
<?php | |||||
<tr> | |||||
<td bgcolor="#FFFFFF" width="100%"> | |||||
<form action="sys_info.php" method="post" name="form1"> | |||||
<input type="hidden" name="token" value="<?php echo $_SESSION['token']; ?>"> | |||||
<input type="hidden" name="dopost" value="save"> | |||||
<div id="_search"></div> | |||||
<div id="_mainsearch"> | |||||
<?php | |||||
$n = 0; | $n = 0; | ||||
if(!isset($gp)) $gp = 1; | if(!isset($gp)) $gp = 1; | ||||
foreach($ds as $dl) | foreach($ds as $dl) | ||||
@@ -148,13 +153,14 @@ foreach($ds as $dl) | |||||
$dls = explode(',',$dl); | $dls = explode(',',$dl); | ||||
$n++; | $n++; | ||||
?> | ?> | ||||
<table width="100%" style='<?php if($n!=$gp) echo "display:none"; ?>' id="td<?php echo $n?>" border="0" cellspacing="1" cellpadding="1" bgcolor="#cfcfcf"> | |||||
<tr align="center" bgcolor="#FBFCE2" height="25"> | |||||
<td width="300">参数说明</td> | |||||
<td>参数值</td> | |||||
<td width="220">变量名</td> | |||||
</tr> | |||||
<?php | |||||
<table width="100%" style='<?php if($n!=$gp) echo "display:none"; ?>' id="td<?php echo $n?>" border="0" | |||||
cellspacing="1" cellpadding="1" bgcolor="#cfcfcf"> | |||||
<tr align="center" bgcolor="#FBFCE2" > | |||||
<td width="300">参数说明</td> | |||||
<td>参数值</td> | |||||
<td width="220">变量名</td> | |||||
</tr> | |||||
<?php | |||||
$dsql->SetQuery("Select * From `#@__sysconfig` where groupid='{$dls[0]}' order by aid asc"); | $dsql->SetQuery("Select * From `#@__sysconfig` where groupid='{$dls[0]}' order by aid asc"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
$i = 1; | $i = 1; | ||||
@@ -170,9 +176,9 @@ while($row = $dsql->GetArray()) | |||||
} | } | ||||
$i++; | $i++; | ||||
?> | ?> | ||||
<tr align="center" height="25" bgcolor="<?php echo $bgcolor?>"> | |||||
<td width="300"><?php echo $row['info']; ?>: </td> | |||||
<td align="left" style="padding:3px;"><?php | |||||
<tr align="center" bgcolor="<?php echo $bgcolor?>"> | |||||
<td width="300"><?php echo $row['info']; ?>: </td> | |||||
<td align="left" style="padding:8px;"><?php | |||||
if($row['type']=='bool') | if($row['type']=='bool') | ||||
{ | { | ||||
$c1=''; | $c1=''; | ||||
@@ -195,31 +201,38 @@ if($row['type']=='bool') | |||||
echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value=\"".dede_htmlspecialchars($row['value'])."\" style='width:80%'>{$addstr}"; | echo "<input type='text' name='edit___{$row['varname']}' id='edit___{$row['varname']}' value=\"".dede_htmlspecialchars($row['value'])."\" style='width:80%'>{$addstr}"; | ||||
} | } | ||||
?></td> | ?></td> | ||||
<td><?php echo $row['varname']?></td> | |||||
</tr> | |||||
<?php | |||||
<td><?php echo $row['varname']?></td> | |||||
</tr> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
</table> | |||||
<?php | |||||
</table> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
</div> | |||||
<table width="100%" border="0" cellspacing="1" cellpadding="1" style="border:1px solid #cfcfcf;border-top:none;"> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="50" colspan="3"><table width="98%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="11%"> </td> | |||||
<td width="11%"><input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" class="np"></td> | |||||
<td width="78%"><img src="images/button_reset.gif" width="60" height="22" style="cursor:pointer" onClick="document.form1.reset()"></td> | |||||
</tr> | |||||
</table></td> | |||||
</div> | |||||
<table width="100%" border="0" cellspacing="1" cellpadding="1" | |||||
style="border:1px solid #cfcfcf;border-top:none;" class="table table-borderless"> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="50" colspan="3"> | |||||
<table width="98%" border="0" cellspacing="1" cellpadding="1"> | |||||
<tr> | |||||
<td width="11%"> </td> | |||||
<td width="11%"> | |||||
<button type="submit" class="btn btn-secondary">确定</button> | |||||
</td> | |||||
<td width="78%"><button type="submit" onClick="document.form1.reset()" class="btn btn-secondary">重置</button></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</td> | |||||
</tr> | </tr> | ||||
</table> | |||||
</form></td> | |||||
</tr> | |||||
</table> | |||||
</div> | |||||
</table> | |||||
</div> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -1,66 +1,72 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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"> | |||||
<link rel="stylesheet" type="text/css" media="all" href="../static/js/calendar/calendar-win2k-1.css" title="win2k-1" /> | |||||
<script type="text/javascript" src="../static/js/calendar/calendar.js"></script> | |||||
<script type="text/javascript" src="../static/js/calendar/calendar-cn.js"></script> | |||||
<script language="javascript"> | |||||
function SelectTemplets(fname) | |||||
{ | |||||
if(document.all){ | |||||
var posLeft = window.event.clientY-100; | |||||
var posTop = window.event.clientX-400; | |||||
} | |||||
else{ | |||||
var posLeft = 100; | |||||
var posTop = 100; | |||||
} | |||||
window.open("./dialog/select_templets.php?f="+fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left="+posLeft+", top="+posTop); | |||||
} | |||||
</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/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 href="css/base.css" rel="stylesheet" type="text/css"> | |||||
<link rel="stylesheet" type="text/css" media="all" href="../static/js/calendar/calendar-win2k-1.css" | |||||
title="win2k-1" /> | |||||
<script type="text/javascript" src="../static/js/calendar/calendar.js"></script> | |||||
<script type="text/javascript" src="../static/js/calendar/calendar-cn.js"></script> | |||||
<script language="javascript"> | |||||
function SelectTemplets(fname) { | |||||
if (document.all) { | |||||
var posLeft = window.event.clientY - 100; | |||||
var posTop = window.event.clientX - 400; | |||||
} | |||||
else { | |||||
var posLeft = 100; | |||||
var posTop = 100; | |||||
} | |||||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=600,height=400,left=" + posLeft + ", top=" + posTop); | |||||
} | |||||
</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/htmlmixed/htmlmixed.js"></script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" align="center"> | |||||
<form name="form1" action="tag_test_action.php" target="stafrm" method="post"> | |||||
<input type="hidden" name="dopost" value="make" /> | |||||
<input type="hidden" name="token" value="<?php echo make_hash();?>" /> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>全局标记测试:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2" valign="top" bgcolor="#FFFFFF"> | |||||
全局标记指的是应用在网站主页、单独页面、频道封面使用的单独的模板标记,在列表或文章模板中,一般只允许调用channel、arclist标记(hotart、coolart、imglist等都是这个标记延伸出来的标记),但是环境变量限定为文章或列表所在的栏目,如果您要测试的标记是在列表或文章中使用,请指定环境变量(栏目ID)。<br/> | |||||
各标记的具体含义和用途,请在<a href="http://www.dedecms.com/archives/templethelp/help/index.htm" target="_blank"><u>模板标记参考</u></a>一章查阅。 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2" valign="top" bgcolor="#FFFFFF">输入要测试的局部代码: </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="62" colspan="2" bgcolor="#FFFFFF"> | |||||
<textarea name="partcode" id="partcode" style="width:99%;height:120px"></textarea> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="103" height="20" valign="top" bgcolor="#FFFFFF">环境变量:</td> | |||||
<td width="865" height="20" valign="top" bgcolor="#FFFFFF"> | |||||
<?php | |||||
<table width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" align="center" class="table maintable table-bordered mt-3"> | |||||
<form name="form1" action="tag_test_action.php" target="stafrm" method="post"> | |||||
<input type="hidden" name="dopost" value="make" /> | |||||
<input type="hidden" name="token" value="<?php echo make_hash();?>" /> | |||||
<tr> | |||||
<td height="28" colspan="2" background='images/tbg.gif'> | |||||
<table width="98%" border="0" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%" height="18" style="padding-left:10px;"><strong>全局标记测试:</strong></td> | |||||
<td width="70%" align="right"> </td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2" valign="top" bgcolor="#FFFFFF"> | |||||
全局标记指的是应用在网站主页、单独页面、频道封面使用的单独的模板标记,在列表或文章模板中,一般只允许调用channel、arclist标记(hotart、coolart、imglist等都是这个标记延伸出来的标记),但是环境变量限定为文章或列表所在的栏目,如果您要测试的标记是在列表或文章中使用,请指定环境变量(栏目ID)。<br /> | |||||
各标记的具体含义和用途,请在<a href="http://www.dedecms.com/archives/templethelp/help/index.htm" | |||||
target="_blank"><u>模板标记参考</u></a>一章查阅。 | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="2" valign="top" bgcolor="#FFFFFF">输入要测试的局部代码: </td> | |||||
</tr> | |||||
<tr> | |||||
<td height="62" colspan="2" bgcolor="#FFFFFF"> | |||||
<textarea name="partcode" id="partcode" style="width:99%;height:120px"></textarea> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="103" height="20" valign="top" bgcolor="#FFFFFF">环境变量:</td> | |||||
<td width="865" height="20" valign="top" bgcolor="#FFFFFF"> | |||||
<?php | |||||
if(empty($cid)) $cid="0"; | if(empty($cid)) $cid="0"; | ||||
$tl = new TypeLink($cid); | $tl = new TypeLink($cid); | ||||
$typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0); | $typeOptions = $tl->GetOptionArray($cid,$admin_catalogs,0); | ||||
@@ -69,47 +75,48 @@ function SelectTemplets(fname) | |||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
?> | ?> | ||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td height="31" colspan="2" bgcolor="#FAFAF1" align="center"> | |||||
<button type="submit" class="btn btn-secondary" onClick="DoSubmit('gettag')" | |||||
class="coolbg np">提交测试</button> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> | |||||
<table width="100%" class="table table-borderless"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj, ty) { | |||||
if (ty == "+") document.all[obj].style.pixelHeight += 50; | |||||
else if (document.all[obj].style.pixelHeight > 80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight + 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td height="31" colspan="2" bgcolor="#FAFAF1" align="center"> | |||||
<input type="submit" name="Submit" value="提交测试" class="coolbg np" /> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:300;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</form> | |||||
<tr bgcolor="#F9FCEF"> | |||||
<td height="20" colspan="2"> | |||||
<table width="100%"> | |||||
<tr> | |||||
<td width="74%">进行状态: </td> | |||||
<td width="26%" align="right"> | |||||
<script language='javascript'> | |||||
function ResizeDiv(obj,ty) | |||||
{ | |||||
if(ty=="+") document.all[obj].style.pixelHeight += 50; | |||||
else if(document.all[obj].style.pixelHeight>80) document.all[obj].style.pixelHeight = document.all[obj].style.pixelHeight + 50; | |||||
} | |||||
</script> | |||||
[<a href='#' onClick="ResizeDiv('mdv','+');">增大</a>] [<a href='#' onClick="ResizeDiv('mdv','-');">缩小</a>] | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<tr bgcolor="#FFFFFF"> | |||||
<td colspan="2" id="mtd"> | |||||
<div id='mdv' style='width:100%;height:300;'> | |||||
<iframe name="stafrm" frameborder="0" id="stafrm" width="100%" height="100%"></iframe> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<script type="text/javascript"> | |||||
</table> | |||||
<script type="text/javascript"> | |||||
var editor = CodeMirror.fromTextArea(document.getElementById('partcode'), { | var editor = CodeMirror.fromTextArea(document.getElementById('partcode'), { | ||||
lineNumbers: true, | |||||
lineWrapping: true, | |||||
mode: 'text/html' | |||||
lineNumbers: true, | |||||
lineWrapping: true, | |||||
mode: 'text/html' | |||||
}); | }); | ||||
</script> | |||||
</script> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,55 +1,69 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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" /> | |||||
<style type="text/css"> | |||||
.linerow { border-bottom: 1px solid #CBD8AC; } | |||||
td { padding-left:5px; } | |||||
</style> | |||||
<script language="javascript"> | |||||
function DelTpl(filename) | |||||
{ | |||||
if(window.confirm('你确定要删除这篇文档吗?')) location='tpl.php?action=del&acdir=<?php echo $acdir; ?>&filename='+filename; | |||||
else return false; | |||||
} | |||||
</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" /> | |||||
<style type="text/css"> | |||||
.linerow { | |||||
border-bottom: 1px solid #CBD8AC; | |||||
} | |||||
td { | |||||
padding-left: 5px; | |||||
} | |||||
a.btn { | |||||
color: white!important; | |||||
} | |||||
</style> | |||||
<script language="javascript"> | |||||
function DelTpl(filename) { | |||||
if (window.confirm('你确定要删除这篇文档吗?')) location = 'tpl.php?action=del&acdir=<?php echo $acdir; ?>&filename=' + filename; | |||||
else return false; | |||||
} | |||||
</script> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" style="margin-bottom:6px;"> | |||||
<tr> | |||||
<td height="28" background="images/tbg.gif" colspan="7"> | |||||
<b>模板管理</b> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width='98%' border='0' cellspacing='1' cellpadding='0' align="center" bgcolor="#cfcfcf"> | |||||
<tr height="26" align="center"> | |||||
<td width="25%" background="images/wbg.gif"><strong>文件名</strong></td> | |||||
<td width="33%" background="images/wbg.gif"><strong>文件描述</strong></td> | |||||
<td width="22%" background="images/wbg.gif"><strong>修改时间</strong></td> | |||||
<td width="20%" background="images/wbg.gif"><strong>操作</strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan='4' height="28" bgcolor="#F9FCEF"> | |||||
<div style='float:left'> | |||||
<b> | |||||
当前位置: | |||||
<?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" colspan="7"> | |||||
<b>模板管理</b> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width='98%' border='0' cellspacing='1' cellpadding='0' align="center" bgcolor="#cfcfcf" class="table maintable table-bordered"> | |||||
<tr height="26" align="center"> | |||||
<td width="25%" background="images/wbg.gif"><strong>文件名</strong></td> | |||||
<td width="33%" background="images/wbg.gif"><strong>文件描述</strong></td> | |||||
<td width="22%" background="images/wbg.gif"><strong>修改时间</strong></td> | |||||
<td width="20%" background="images/wbg.gif"><strong>操作</strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan='4' height="28" bgcolor="#F9FCEF"> | |||||
<div style='float:left'> | |||||
<b> | |||||
当前位置: | |||||
<?php | |||||
if($acdir=='plus') echo '插件模板'; | if($acdir=='plus') echo '插件模板'; | ||||
else if($acdir=='system') echo '底层模板'; | else if($acdir=='system') echo '底层模板'; | ||||
else echo '核心模板 > '.$acdir; | else echo '核心模板 > '.$acdir; | ||||
?> | ?> | ||||
</b> | |||||
</div> | |||||
<div style='float:right;padding-right:10px'> | |||||
<a href='templets_main.php'>[<u>默认模板目录</u>]</a> | |||||
<a href='templets_main.php?acdir=plus'>[<u>插件模板目录</u>]</a> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
</b> | |||||
</div> | |||||
<div style='float:right;padding-right:10px'> | |||||
<a class="btn btn-secondary btn-sm" href='templets_main.php'>默认模板目录</a> | |||||
<a class="btn btn-secondary btn-sm" href='templets_main.php?acdir=plus'>插件模板目录</a> | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
<?php | |||||
$dh = dir($templetdird); | $dh = dir($templetdird); | ||||
while($filename=$dh->read()) | while($filename=$dh->read()) | ||||
{ | { | ||||
@@ -58,41 +72,43 @@ function DelTpl(filename) | |||||
$filetime = MyDate("Y-m-d H:i",$filetime); | $filetime = MyDate("Y-m-d H:i",$filetime); | ||||
$fileinfo = (isset($fileinfos[$filename]) ? $fileinfos[$filename] : '未知模板'); | $fileinfo = (isset($fileinfos[$filename]) ? $fileinfos[$filename] : '未知模板'); | ||||
?> | ?> | ||||
<tr height="26" bgcolor='#FFFFFF' onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td> | |||||
<a href='<?php echo $templeturld.'/'.$filename; ?>' target='_blank'> | |||||
<img src='images/htm.gif' border='0' align='absmiddle' /><?php echo $filename; ?> | |||||
</a> | |||||
</td> | |||||
<td> | |||||
<?php echo $fileinfo; ?> | |||||
</td> | |||||
<td align='center'> | |||||
<?php echo $filetime; ?> | |||||
</td> | |||||
<td align='center'> | |||||
<a href='tpl.php?action=edit&acdir=<?php echo $acdir; ?>&filename=<?php echo $filename; ?>'>[修改]</a> | |||||
<?php | |||||
<tr height="26" bgcolor='#FFFFFF' onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td> | |||||
<a href='<?php echo $templeturld.'/'.$filename; ?>' target='_blank'> | |||||
<img src='images/htm.gif' border='0' align='absmiddle' /> <?php echo $filename; ?> | |||||
</a> | |||||
</td> | |||||
<td> | |||||
<?php echo $fileinfo; ?> | |||||
</td> | |||||
<td align='center'> | |||||
<?php echo $filetime; ?> | |||||
</td> | |||||
<td align='center'> | |||||
<a href='tpl.php?action=edit&acdir=<?php echo $acdir; ?>&filename=<?php echo $filename; ?>' title="编辑"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> | |||||
<?php | |||||
if(!isset($fileinfos[$filename])) | if(!isset($fileinfos[$filename])) | ||||
{ | { | ||||
?> | ?> | ||||
| | |||||
<a href='#' onClick="javascript:DelTpl('<?php echo $filename; ?>');">[删除]</a> | |||||
<?php | |||||
| | |||||
<a href='#' onClick="javascript:DelTpl('<?php echo $filename; ?>');" title="删除"><i class="fa fa-trash" aria-hidden="true"></i></a> | |||||
<?php | |||||
} | } | ||||
?> | ?> | ||||
</td> | |||||
</tr> | |||||
<?php } ?> | |||||
<tr> | |||||
<td colspan="4" height='32' bgcolor="#F9FCEF"> | |||||
| |||||
<a href='tpl.php?action=newfile&acdir=<?php echo $acdir; ?>'>[新建模板]</a> | |||||
| |||||
<a href='tpl.php?action=upload&acdir=<?php echo $acdir; ?>'>[上传模板]</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<?php } ?> | |||||
<tr> | |||||
<td colspan="4" height='32' bgcolor="#F9FCEF"> | |||||
| |||||
<a class="btn btn-secondary" href='tpl.php?action=newfile&acdir=<?php echo $acdir; ?>'>新建模板</a> | |||||
| |||||
<a class="btn btn-secondary" href='tpl.php?action=upload&acdir=<?php echo $acdir; ?>'>上传模板</a> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | |||||
</html> |
@@ -1,42 +1,54 @@ | |||||
<!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"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
<head> | <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" /> | |||||
<style type="text/css"> | |||||
.linerow { border-bottom: 1px solid #CBD8AC; } | |||||
td { padding-left:5px; } | |||||
</style> | |||||
<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" /> | |||||
<style type="text/css"> | |||||
.linerow { | |||||
border-bottom: 1px solid #CBD8AC; | |||||
} | |||||
td { | |||||
padding-left: 5px; | |||||
} | |||||
</style> | |||||
</head> | </head> | ||||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | <body background='images/allbg.gif' leftmargin='8' topmargin='8'> | ||||
<table width="98%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#D6D6D6" style="margin-bottom:6px;"> | |||||
<tr> | |||||
<td height="28" background="images/tbg.gif" colspan="7" style="padding-left:10px;"> | |||||
<b>标签源码碎片管理</b> (DedeCMS 5.3及以上版本标签源码是完全独立的,懂程序的用户可以按需修改或自行增加标签) | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width='98%' border='0' cellspacing='1' cellpadding='0' bgcolor="#cfcfcf" align="center"> | |||||
<tr height="26" align="center"> | |||||
<td width="25%" background="images/wbg.gif"><strong>标签文件名</strong></td> | |||||
<td width="33%" background="images/wbg.gif" align="left"><strong>标签说明</strong></td> | |||||
<td width="22%" background="images/wbg.gif"><strong>修改时间</strong></td> | |||||
<td width="20%" background="images/wbg.gif"><strong>操作</strong></td> | |||||
</tr> | |||||
<tr> | |||||
<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" colspan="7" style="padding-left:10px;"> | |||||
<b>标签源码碎片管理</b> (DedeCMS 5.3及以上版本标签源码是完全独立的,懂程序的用户可以按需修改或自行增加标签) | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<table width='98%' border='0' cellspacing='1' cellpadding='0' bgcolor="#cfcfcf" align="center" class="table maintable table-bordered"> | |||||
<tr height="26" align="center"> | |||||
<td width="25%" background="images/wbg.gif"><strong>标签文件名</strong></td> | |||||
<td width="33%" background="images/wbg.gif" align="left"><strong>标签说明</strong></td> | |||||
<td width="22%" background="images/wbg.gif"><strong>修改时间</strong></td> | |||||
<td width="20%" background="images/wbg.gif"><strong>操作</strong></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan='4' height="28" bgcolor="#F9FCEF"> | <td colspan='4' height="28" bgcolor="#F9FCEF"> | ||||
<div style='float:left'> | |||||
<b> | |||||
当前位置:标签源码碎片管理(文件存放在 ../include/taglib 文件夹) | |||||
</b> | |||||
<div style='float:left'> | |||||
<b> | |||||
当前位置:标签源码碎片管理(文件存放在 ../include/taglib 文件夹) | |||||
</b> | |||||
</div> | </div> | ||||
<div style='float:right;padding-right:10px'> | |||||
<a href='tpl.php?action=addnewtag'>[<u>增加一个新的标签</u>]</a> | |||||
<div style='float:right;padding-right:10px'> | |||||
<a href='tpl.php?action=addnewtag'>[<u>增加一个新的标签</u>]</a> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
</tr> | |||||
<?php | |||||
</tr> | |||||
<?php | |||||
$dh = dir($libdir); | $dh = dir($libdir); | ||||
while($filename=$dh->read()) | while($filename=$dh->read()) | ||||
{ | { | ||||
@@ -45,26 +57,30 @@ td { padding-left:5px; } | |||||
$filetime = MyDate("Y-m-d H:i",$filetime); | $filetime = MyDate("Y-m-d H:i",$filetime); | ||||
$fileinfo = GetHelpInfo(str_replace('.lib.php','',$filename)); | $fileinfo = GetHelpInfo(str_replace('.lib.php','',$filename)); | ||||
?> | ?> | ||||
<tr height="26" bgcolor='#FFFFFF' onMouseMove="javascript:this.bgColor='#FCFDEE';" onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td> | |||||
<img src='images/htm.gif' border='0' align='absmiddle' /><?php echo $filename; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo $fileinfo; ?> | |||||
</td> | |||||
<td align='center'> | |||||
<?php echo $filetime; ?> | |||||
</td> | |||||
<td align='center'> | |||||
<a href='tpl.php?action=edittag&filename=<?php echo $filename; ?>'>[编辑]</a> | |||||
</td> | |||||
</tr> | |||||
<?php } ?> | |||||
<tr> | |||||
<td colspan="4" height='32' bgcolor="#F9FCEF"> | |||||
<p style="text-align:center;color:red">修改系统标签有风险,请小心操作!</p> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
<tr height="26" bgcolor='#FFFFFF' onMouseMove="javascript:this.bgColor='#FCFDEE';" | |||||
onMouseOut="javascript:this.bgColor='#FFFFFF';"> | |||||
<td> | |||||
<img src='images/htm.gif' border='0' align='absmiddle' /><?php echo $filename; ?> | |||||
</td> | |||||
<td> | |||||
<?php echo $fileinfo; ?> | |||||
</td> | |||||
<td align='center'> | |||||
<?php echo $filetime; ?> | |||||
</td> | |||||
<td align='center'> | |||||
<a href='tpl.php?action=edittag&filename=<?php echo $filename; ?>'><i class="fa fa-pencil-square-o" aria-hidden="true"></i> 编辑</a> | |||||
</td> | |||||
</tr> | |||||
<?php } ?> | |||||
<tr> | |||||
<td colspan="4" height='32' bgcolor="#F9FCEF"> | |||||
<div class="alert alert-danger" role="alert"> | |||||
修改系统标签有风险,请小心操作! | |||||
</div> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</body> | </body> | ||||
</html> | </html> |
@@ -142,7 +142,7 @@ class TypeUnit | |||||
{ | { | ||||
echo " <tr>\r\n"; | echo " <tr>\r\n"; | ||||
echo " <td style='background-color:#FBFCE2;' width='2%' class='bline'><img style='cursor:pointer' id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" src='images/dedeexplode.gif' width='11' height='11'></td>\r\n"; | echo " <td style='background-color:#FBFCE2;' width='2%' class='bline'><img style='cursor:pointer' id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" src='images/dedeexplode.gif' width='11' height='11'></td>\r\n"; | ||||
echo " <td style='background-color:#FBFCE2;' class='bline'><table width='98%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%'><input class='np' type='checkbox' name='tids[]' value='{$id}'><a href='catalog_do.php?cid=".$id."&dopost=listArchives' oncontextmenu=\"CommonMenu(event,this,$id,'".urlencode($typeName)."')\">{$nss}".$typeName."[ID:".$id."]</a>(文档:".$this->GetTotalArc($id).") <a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><img src='images/write2.gif'/></a>"; | |||||
echo " <td style='background-color:#FBFCE2;' class='bline'><table width='98%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%'><input class='np' type='checkbox' name='tids[]' value='{$id}'><a href='catalog_do.php?cid=".$id."&dopost=listArchives' oncontextmenu=\"CommonMenu(event,this,$id,'".urlencode($typeName)."')\"> {$nss}".$typeName."[ID:".$id."]</a>(文档:".$this->GetTotalArc($id).") <a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><img src='images/write2.gif'/></a>"; | |||||
echo " </td><td align='right'>"; | echo " </td><td align='right'>"; | ||||
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank'>预览</a>"; | echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank'>预览</a>"; | ||||
echo "|<a href='catalog_do.php?cid={$id}&dopost=listArchives'>内容</a>"; | echo "|<a href='catalog_do.php?cid={$id}&dopost=listArchives'>内容</a>"; | ||||
@@ -157,7 +157,7 @@ class TypeUnit | |||||
{ | { | ||||
echo " <tr >\r\n"; | echo " <tr >\r\n"; | ||||
echo " <td style='background-color:#FBFCE2;' width='2%' class='bline'><img style='cursor:pointer' id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" src='images/dedeexplode.gif' width='11' height='11'></td>\r\n"; | echo " <td style='background-color:#FBFCE2;' width='2%' class='bline'><img style='cursor:pointer' id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" src='images/dedeexplode.gif' width='11' height='11'></td>\r\n"; | ||||
echo " <td style='background-color:#FBFCE2;' class='bline'><table width='98%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%'><input class='np' type='checkbox' name='tids[]' value='{$id}'><a href='catalog_do.php?cid=".$id."&dopost=listArchives' oncontextmenu=\"CommonMenuPart(event,this,$id,'".urlencode($typeName)."')\">{$nss}".$typeName."[ID:".$id."]</a> <a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"> <img src='images/write2.gif'/> </a>"; | |||||
echo " <td style='background-color:#FBFCE2;' class='bline'><table width='98%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%'><input class='np' type='checkbox' name='tids[]' value='{$id}'><a href='catalog_do.php?cid=".$id."&dopost=listArchives' oncontextmenu=\"CommonMenuPart(event,this,$id,'".urlencode($typeName)."')\"> {$nss}".$typeName."[ID:".$id."]</a> <a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"> <img src='images/write2.gif'/> </a>"; | |||||
echo " </td><td align='right'>"; | echo " </td><td align='right'>"; | ||||
echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank'>预览</a>"; | echo "<a href='{$GLOBALS['cfg_phpurl']}/list.php?tid={$id}' target='_blank'>预览</a>"; | ||||
echo "|<a href='catalog_do.php?cid={$id}&dopost=listArchives'>内容</a>"; | echo "|<a href='catalog_do.php?cid={$id}&dopost=listArchives'>内容</a>"; | ||||
@@ -172,7 +172,7 @@ class TypeUnit | |||||
{ | { | ||||
echo " <tr height='24' bgcolor='#FBFCE2'>\r\n"; | echo " <tr height='24' bgcolor='#FBFCE2'>\r\n"; | ||||
echo " <td width='2%' class='bline2'><img style='cursor:pointer' id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" src='images/dedeexplode.gif' width='11' height='11'></td>\r\n"; | echo " <td width='2%' class='bline2'><img style='cursor:pointer' id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" src='images/dedeexplode.gif' width='11' height='11'></td>\r\n"; | ||||
echo " <td class='bline2'><table width='98%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%'><input class='np' type='checkbox' name='tids[]' value='{$id}'><a href='catalog_edit.php?id=".$id."' oncontextmenu=\"SingleMenu(event,this,$id,'".urlencode($typeName)."')\">{$nss}".$typeName."[ID:".$id."]</a> <a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><img src='images/write2.gif'/></a>"; | |||||
echo " <td class='bline2'><table width='98%' border='0' cellspacing='0' cellpadding='0'><tr><td width='50%'><input class='np' type='checkbox' name='tids[]' value='{$id}'><a href='catalog_edit.php?id=".$id."' oncontextmenu=\"SingleMenu(event,this,$id,'".urlencode($typeName)."')\"> {$nss}".$typeName."[ID:".$id."]</a> <a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><img src='images/write2.gif'/></a>"; | |||||
echo " </td><td align='right'>"; | echo " </td><td align='right'>"; | ||||
echo "<a href='{$typeDir}' target='_blank'>预览</a>"; | echo "<a href='{$typeDir}' target='_blank'>预览</a>"; | ||||
echo "|<a href='catalog_edit.php?id={$id}'>更改</a>"; | echo "|<a href='catalog_edit.php?id={$id}'>更改</a>"; | ||||