@@ -92,5 +92,5 @@ span.page-link{color:#fff;background:#28a745} | |||
a.btn{color:white!important} | |||
.btn-success{background:#28a745;border-color:#28a745} | |||
.table{color:#424b51} | |||
.table td,.table th{padding:.60rem;vertical-align:middle} | |||
.table td,.table th{padding:.6rem;vertical-align:middle} | |||
.table th img,.table td img{vertical-align:text-bottom} |
@@ -1,154 +1,131 @@ | |||
<!DOCTYPE html | |||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>栏目管理</title> | |||
<link rel="stylesheet" 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(); | |||
<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 rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="css/base.css"> | |||
<script src="js/main.js"></script> | |||
<style> | |||
textarea{min-height:30px} | |||
.table{margin-bottom:0} | |||
.btn+.btn{margin-left:10px} | |||
</style> | |||
<script> | |||
var channelArray = new Array(); | |||
<?php | |||
$i = 0; | |||
foreach($channelArray as $k=> $arr) | |||
{ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";\r\n"; | |||
} | |||
foreach($channelArray as $k=> $arr) | |||
{ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||
} | |||
?> | |||
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) { | |||
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=680,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 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 CheckPathSet() { | |||
var surl = document.getElementById("siteurl"); | |||
var sreid = document.getElementById("reid"); | |||
var mysel = document.getElementById("truepath3"); | |||
if (surl.value != "") { | |||
if (sreid.value == "0" || sreid.value == "") { | |||
mysel.checked = 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'; | |||
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) { | |||
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=680,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 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 CheckPathSet() { | |||
var surl = document.getElementById("siteurl"); | |||
var sreid = document.getElementById("reid"); | |||
var mysel = document.getElementById("truepath3"); | |||
if (surl.value != "") { | |||
if (sreid.value == "0" || sreid.value == "") { | |||
mysel.checked = true; | |||
} | |||
</script> | |||
} | |||
} | |||
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> | |||
</head> | |||
<body leftmargin='15' topmargin='10' bgcolor="#FFFFFF"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" | |||
style="BORDER-COLLAPSE: collapse" class="mt-3"> | |||
<body leftmargin="15" topmargin="10" bgcolor="#fff"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" 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> | |||
<td height="30"><img src="images/book1.gif"><a href="catalog_main.php">栏目管理</a>>>增加栏目</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -159,424 +136,376 @@ $i = 0; | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td height="10"></td> | |||
</tr> | |||
<tr> | |||
<form name="form1" action="catalog_add.php" method="post" onSubmit="return checkSubmit();"> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<input type="hidden" name="reid" id="reid" value="<?php echo $id; ?>" /> | |||
<input type='hidden' name='topid' id='topid' value='<?php echo $topid; ?>' /> | |||
<form name="form1" action="catalog_add.php" method="post" onSubmit="return checkSubmit()"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="reid" id="reid" value="<?php echo $id; ?>"> | |||
<input type='hidden' name='topid' id='topid' value='<?php echo $topid; ?>'> | |||
<?php | |||
if($id>0) | |||
{ | |||
echo " <input type='hidden' name='moresite' value='{$myrow['moresite']}' />\r\n"; | |||
echo " <input type='hidden' name='siteurl' value='{$myrow['siteurl']}' />\r\n"; | |||
echo " <input type='hidden' name='sitepath' value='{$myrow['sitepath']}' />\r\n"; | |||
} | |||
?> | |||
<td height="95" align="center" bgcolor="#FFFFFF"> | |||
if($id>0) | |||
{ | |||
echo " <input type='hidden' name='moresite' value='{$myrow['moresite']}'>"; | |||
echo " <input type='hidden' name='siteurl' value='{$myrow['siteurl']}'>"; | |||
echo " <input type='hidden' name='sitepath' value='{$myrow['sitepath']}'>"; | |||
} | |||
?> | |||
<td height="95" align="center" bgcolor="#fff"> | |||
<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF" align="left"> | |||
<td colspan="2" bgcolor="#fff" 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="javascript:;" | |||
onClick="ShowItem2()"><u>高级选项</u></a> </td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem3()"><u>栏目内容</u></a> </td> | |||
<td width="84" height="26" align="center" background="images/itemnote1.gif">常规选项</td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()">高级选项</a></td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem3()">栏目内容</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"> | |||
<td colspan="2" bgcolor="#fff" style="text-align:left"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" | |||
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="javascript:;" | |||
onClick="ShowItem3()"><u>栏目内容</u></a> </td> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()">常规选项</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()">栏目内容</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"> | |||
<td colspan="2" bgcolor="#fff" style="text-align:left"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" | |||
onClick="ShowItem1()"><u>常规选项</u></a> </td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem2()"><u>高级选项</u> </td> | |||
<td width="84" align="center" background="images/itemnote1.gif">栏目内容 </td> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()">常规选项</a></td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()">高级选项</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="text-align:left;border:1px solid #cfcfcf;background:#ffffff;" 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($issend==0) echo " checked='checked' ";?> /> | |||
不支持 </label> | |||
<label><input type='radio' name='issend' value='1' class='np' | |||
<?php if($issend==1) echo " checked='checked' ";?> /> | |||
支持</label> | |||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="text-align:left;border:1px solid #cfcfcf;background:#fff" 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($issend==0) echo " checked='checked' "; ?>> 不支持 </label> | |||
<label><input type='radio' name='issend' value='1' class='np' <?php if($issend==1) echo " checked='checked' "; ?>> 支持</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' checked="checked" /> | |||
显示 </label> | |||
<label><input type='radio' name='ishidden' value='1' class='np' /> | |||
隐藏</label> | |||
<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' checked="checked"> 显示 </label> | |||
<label><input type='radio' name='ishidden' value='1' class='np'> 隐藏</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;"> | |||
<font color='red'>内容模型:</font> | |||
</td> | |||
<td class='bline'> | |||
<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) | |||
{ | |||
if($k==$channelid) { | |||
$nid = $arr['nid']; | |||
echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | |||
} | |||
else | |||
{ | |||
echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | |||
} | |||
} | |||
?> | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) { | |||
$nid = $arr['nid']; | |||
echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>"; | |||
} else { | |||
echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>"; | |||
} | |||
} | |||
?> | |||
</select> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;"> | |||
<font color='red'>栏目名称:</font> | |||
<td class="bline" height="26" style="padding-left:10px">中文名称:</td> | |||
<td class="bline"><input name="typename" type="text" size="40" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">中文概况:</td> | |||
<td class="bline"><input name="namegk" type="text" size="40" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">英文名称:</td> | |||
<td class="bline"><input name="enname" type="text" size="40" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">英文概况:</td> | |||
<td class="bline"><input name="ennamegk" type="text" size="40" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">栏目大图:</td> | |||
<td> | |||
<input name="litpic" type="text" class="alltxt" size="40"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览..." onClick="SelectImage('form1.litpic');"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">栏目小图:</td> | |||
<td> | |||
<input name="litimg" type="text" class="alltxt" size="40"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览..." onClick="SelectImage('form1.litimg');"> | |||
</td> | |||
<td class='bline'><input name="typename" type="text" id="typename" size="30" 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="50" class="pubinputs" | |||
style="width:60px" /> | |||
(由低 -> 高) </td> | |||
<td class="bline" height="26" style="padding-left:10px">排列顺序:</td> | |||
<td class="bline"><input name="sortrank" type="text" value="50" class="pubinputs" style="width:100px">(由低 -> 高)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">浏览权限:</td> | |||
<td class='bline'> | |||
<td class="bline" height="26" style="padding-left:10px">浏览权限:</td> | |||
<td class="bline"> | |||
<select name="corank" id="corank" style="width:100px"> | |||
<?php | |||
$dsql->SetQuery("Select * from `#@__arcrank` where rank >= 0"); | |||
$dsql->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')) | |||
{ | |||
if($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>\r\n"; | |||
else | |||
{ | |||
//如果上级目录的corank>0,下级必须继承 | |||
if($corank==0) | |||
{ echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; } | |||
} | |||
} | |||
?> | |||
</select> | |||
(仅限制栏目里的文档浏览权限) </td> | |||
$dsql->SetQuery("Select * from `#@__arcrank` where rank >= 0"); | |||
$dsql->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')){ | |||
if($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>"; | |||
else { | |||
if($corank==0){ | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||
} | |||
} | |||
} | |||
?> | |||
</select>(仅限制栏目里的文档浏览权限)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">上级目录:</td> | |||
<td class='bline'> | |||
<td class="bline" height="26" style="padding-left:10px">上级目录:</td> | |||
<td class="bline"> | |||
<?php | |||
$pardir = '{cmspath}'.$cfg_arcdir; | |||
if(!empty($typedir)) $pardir = $typedir.'/'; | |||
$pardir = preg_replace("#\/{1,}#", '/', $pardir); | |||
echo $pardir; | |||
$pardir = '{cmspath}'.$cfg_arcdir; | |||
if(!empty($typedir)) $pardir = $typedir.'/'; | |||
$pardir = preg_replace("#\/{1,}#", '/', $pardir); | |||
echo $pardir; | |||
?> | |||
<input name="nextdir" type="hidden" id="nextdir" value="<?php echo $pardir?>" /> | |||
<input name="nextdir" type="hidden" id="nextdir" value="<?php echo $pardir?>"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">文件保存目录:</td> | |||
<td> | |||
<td height="26" style="padding-left:10px">文件保存目录:</td> | |||
<td style="padding:0"> | |||
<table border="0" cellspacing="1" cellpadding="1" class="table-borderless"> | |||
<tr> | |||
<td> | |||
<input name="typedir" type="text" id="typedir" class="pubinputs" style="width:300px"> | |||
</td> | |||
<td> | |||
<input name="upinyin" type="checkbox" id="upinyin" class="np" value="1" | |||
onClick="CheckTypeDir()" /> | |||
<label for="upinyin">拼音</label> | |||
</td> | |||
<tr > | |||
<td><input name="typedir" type="text" id="typedir" size="40" class="pubinputs"></td> | |||
<td><input name="upinyin" type="checkbox" id="upinyin" class="np" value="1" onClick="CheckTypeDir()"><label for="upinyin"> 拼音</label></td> | |||
</tr> | |||
</table> | |||
</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="chekced" /> | |||
<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="chekced"> | |||
<label for="truepath1">上级目录</label> | |||
<?php | |||
if($moresite==0){ | |||
?> | |||
<input name="referpath" type="radio" id="truepath2" class="np" value="cmspath" /> | |||
if($moresite==0){ | |||
?> | |||
<input name="referpath" type="radio" id="truepath2" class="np" value="cmspath"> | |||
<label for="truepath2">CMS根目录</label> | |||
<input name="referpath" type="radio" id="truepath3" class="np" value="basepath" /> | |||
<input name="referpath" type="radio" id="truepath3" class="np" value="basepath"> | |||
<label for="truepath3">站点根目录</label> | |||
<?php } ?> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">栏目列表选项:</td> | |||
<td height="26" style="padding-left:10px">栏目列表选项:</td> | |||
<td> | |||
<input type='radio' name='isdefault' id="isdefault1" value='1' class='np' checked="checked" /> | |||
<input type='radio' name='isdefault' id="isdefault1" value='1' class='np' checked="checked"> | |||
<label for="isdefault1">链接到默认页</label> | |||
<input type='radio' name='isdefault' id="isdefault0" value='0' class='np' /> | |||
<input type='radio' name='isdefault' id="isdefault0" value='0' class='np'> | |||
<label for="isdefault0">链接到列表第一页</label> | |||
<input type='radio' name='isdefault' id="isdefault-1" value='-1' class='np' /> | |||
<input type='radio' name='isdefault' id="isdefault-1" value='-1' class='np'> | |||
<label for="isdefault-1">使用动态页</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" class='bline' style="padding-left:10px;">默认页的名称: </td> | |||
<td class='bline'> | |||
<input name="defaultname" type="text" value="index.html" class="iptxt" /> | |||
</td> | |||
<td height="26" class="bline" style="padding-left:10px">默认页的名称:</td> | |||
<td class="bline"><input name="defaultname" type="text" value="index.html" class="iptxt" style="width:100px"></td> | |||
</tr> | |||
<tr> | |||
<td height="26" class='bline' style="padding-left:10px;">栏目属性:</td> | |||
<td class='bline'> | |||
<input name="ispart" type="radio" id="ispart0" value="0" class='np' checked="checked" /> | |||
<td height="26" class="bline" style="padding-left:10px">栏目属性:</td> | |||
<td class="bline"> | |||
<input name="ispart" type="radio" id="ispart0" value="0" class='np' checked="checked"> | |||
<label for="ispart0">最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label> <br> | |||
<input name="ispart" type="radio" id="ispart1" value="1" class='np' /> | |||
<input name="ispart" type="radio" id="ispart1" value="1" class='np'> | |||
<label for="ispart1">频道封面(栏目本身不允许发布文档)</label> <br> | |||
<input name="ispart" type="radio" id="ispart2" value="2" class='np' /> | |||
<input name="ispart" type="radio" id="ispart2" value="2" class='np'> | |||
<label for="ispart2">外部连接(在"文件保存目录"处填写网址)</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 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 style="padding:3px 0px 3px 0px"> | |||
<input name="cross" type="radio" id="cross0" value="0" class='np' onClick="CheckCross()" checked='1' /> | |||
<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> | |||
<input name="cross" type="radio" id="cross0" value="0" class='np' onClick="CheckCross()" checked='1'> | |||
<label for="cross0">不交叉</label> | |||
<input name="cross" type="radio" id="cross1" value="1" class='np' onClick="CheckCross()" /> | |||
<input name="cross" type="radio" id="cross1" value="1" class='np' onClick="CheckCross()"> | |||
<label for="cross1">自动获取同名栏目内容</label> | |||
<input name="cross" type="radio" id="cross2" value="2" class='np' onClick="CheckCross()" /> | |||
<input name="cross" type="radio" id="cross2" value="2" class='np' onClick="CheckCross()"> | |||
<label for="cross2">手工指定交叉栏目ID(用逗号分开)</label> | |||
<br /> | |||
<br> | |||
<textarea name="crossid" cols="50" rows="3" id="crossid" style="display:none" class="alltxt"></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"> | |||
<td class="bline" style="padding-left:10px">绑定小分类: <br>仅适用[分类信息模型]</td> | |||
<td class="bline"> | |||
<select name='smalltype[]' size='5' style='width:120px' multiple='yes'> | |||
<?php | |||
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
if($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>\r\n"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
echo "<option value='{$arr['evalue']}'> └───{$arr['ename']}</option>\r\n"; | |||
} | |||
else { | |||
echo "<option value='{$arr['evalue']}'> └─{$arr['ename']}</option>\r\n"; | |||
} | |||
echo "<option value='{$arr['evalue']}'>└───{$arr['ename']}</option>"; | |||
} else { | |||
echo "<option value='{$arr['evalue']}'>└─{$arr['ename']}</option>"; | |||
} | |||
?> | |||
</select> | |||
按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“<u>联动类别管理</u>”</a>中管理 | |||
} | |||
?> | |||
</select>按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</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" class="table"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;display:none;text-align:left" id="adset" class="table"> | |||
<?php | |||
if($id==0) | |||
{ | |||
?> | |||
<tr> | |||
<td class='bline' width="150" height="24" style="padding-left:10px;">多站点支持:</td> | |||
<td class='bline'> | |||
<label><input name="moresite" type="radio" class="np" value="0" checked="checked" /> | |||
不启用</label> | |||
<label><input type="radio" name="moresite" class="np" value="1" /> | |||
启用</label> | |||
if($id==0) | |||
{ | |||
?> | |||
<tr> | |||
<td class="bline" width="150" height="26" style="padding-left:10px">多站点支持:</td> | |||
<td class="bline"> | |||
<label><input name="moresite" type="radio" class="np" value="0" checked="checked"> 不启用 </label> | |||
<label><input type="radio" name="moresite" class="np" value="1"> 启用</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">说明:</td> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px">说明:</td> | |||
<td bgcolor="#F3F7EA">如果需要绑定二级域名,必须在“系统参数”中设定“支持多站点”。</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" onChange="CheckPathSet();" class="pubinputs" /> | |||
(需加 http://,一级或二级域名的根网址) | |||
</td> | |||
<td class="bline" height="26" style="padding-left:10px">绑定域名:</td> | |||
<td class="bline"><input name="siteurl" type="text" id="siteurl" size="40" class="alltxt" onChange="CheckPathSet();">(需加 http://,一级或二级域名的根网址)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="24" style="padding-left:10px;">站点根目录:</td> | |||
<td class='bline'> | |||
为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。 | |||
</td> | |||
<td class="bline" height="26" style="padding-left:10px">站点根目录:</td> | |||
<td class="bline">为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。</td> | |||
</tr> | |||
<?php | |||
} | |||
?> | |||
} | |||
?> | |||
<tr id='helpvar1' style='display:none'> | |||
<td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td> | |||
<td bgcolor="#F3F7EA"> {tid}表示栏目ID,<br> | |||
{cid}表示频道模型的'名字ID' <font color='#888888'> ( | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
echo "{$arr['typename']}({$arr['nid']})、"; | |||
} | |||
?> | |||
) </font> <br /> | |||
模板文件的默认位置是放在模板目录 "cms安装目录 | |||
<?php echo $cfg_templets_dir ?> | |||
" 内。 | |||
<input type='hidden' value='{style}' name='dfstyle' class="pubinputs" /> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px">支持变量:</td> | |||
<td bgcolor="#F3F7EA"> | |||
{tid}表示栏目ID,<br> | |||
{cid}表示频道模型的'名字ID'( | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
echo "{$arr['typename']}({$arr['nid']})、"; | |||
} | |||
?>)<br> | |||
模板文件的默认位置是放在模板目录 "cms安装目录<?php echo $cfg_templets_dir ?>" 内。 | |||
<input type='hidden' value='{style}' name='dfstyle' class="pubinputs"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">规则选项:</td> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px">规则选项:</td> | |||
<td bgcolor="#F3F7EA">按不同的内容类型设定相关模板及命名规则。</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">封面模板:</td> | |||
<td> <input name="tempindex" type="text" value="{style}/index_<?php echo $nid?>.htm" class="pubinputs" | |||
style="width:300px" /> | |||
<button type="button" name="set1" class="btn btn-success 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 height="26" style="padding-left:10px">封面模板:</td> | |||
<td> | |||
<input name="tempindex" type="text" value="{style}/index_<?php echo $nid?>.htm" size="40" class="alltxt"> | |||
<button type="button" name="set1" class="btn btn-success 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> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">列表模板:</td> | |||
<td> <input name="templist" type="text" value="{style}/list_<?php echo $nid?>.htm" class="pubinputs" | |||
style="width:300px" /> | |||
<button type="button" name="set3" class="btn btn-success btn-sm" | |||
onClick="SelectTemplets('form1.templist');">浏览...</button> | |||
<td height="26" style="padding-left:10px">列表模板:</td> | |||
<td> | |||
<input name="templist" type="text" value="{style}/list_<?php echo $nid?>.htm" size="40" class="alltxt"> | |||
<button type="button" name="set3" class="btn btn-success 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="{style}/article_<?php echo $nid?>.htm" class="pubinputs" | |||
style="width:300px" /> | |||
<button type="button" name="set4" class="btn btn-success btn-sm" style="width:60px" | |||
onClick="SelectTemplets('form1.temparticle');">浏览...</button> | |||
<td height="26" style="padding-left:10px">文章模板:</td> | |||
<td> | |||
<input name="temparticle" type="text" value="{style}/article_<?php echo $nid?>.htm" size="40" class="alltxt"> | |||
<button type="button" name="set4" class="btn btn-success btn-sm" style="width:60px" onClick="SelectTemplets('form1.temparticle')">浏览...</button> | |||
</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 height="26" bgcolor="#F3F7EA" style="padding-left:10px">支持变量:</td> | |||
<td height="26" 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" style="padding-left:10px;">文章命名规则:</td> | |||
<td> <input name="namerule" type="text" id="namerule" value="<?php echo $cfg_df_namerule;?>" | |||
class="pubinputs" style="width:250px" /> | |||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" | |||
onClick="ShowHide('helpvar2')" /> | |||
<td height="26" style="padding-left:10px">文章命名规则:</td> | |||
<td> | |||
<input name="namerule" type="text" id="namerule" value="<?php echo $cfg_df_namerule;?>" size="40" class="alltxt"> | |||
<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 height="26" bgcolor="#F3F7EA" style="padding-left:10px">支持变量:</td> | |||
<td bgcolor="#F3F7EA">{page} 列表的页码</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">列表命名规则:</td> | |||
<td height="26" style="padding-left:10px">列表命名规则:</td> | |||
<td> | |||
<input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" | |||
class="pubinputs" style="width:250px" /> | |||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" | |||
onClick="ShowHide('helpvar3')" /></td> | |||
<input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" size="40" class="alltxt"> | |||
<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="" /> | |||
(栏目模板里用{dede:field.seotitle /}调用) | |||
</td> | |||
<td height="60" style="padding-left:10px">SEO标题:</td> | |||
<td><input name="seotitle" type="text" id="seotitle" size="40" class="alltxt">(栏目模板里用{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"></textarea> | |||
</td> | |||
<td height="60" style="padding-left:10px">关键字:</td> | |||
<td><textarea name="keywords" cols="70" rows="4" id="keywords" class="alltxt"></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"></textarea></td> | |||
<td height="60" style="padding-left:10px">栏目描述:</td> | |||
<td height="60"><textarea name="description" cols="70" rows="4" id="description" class="alltxt"></textarea></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"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;display:none;text-align:left" id="ctset" class="table"> | |||
<tr> | |||
<td height="28" style="padding-left:10px;"> | |||
说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||
<td height="26" style="padding-left:10px">说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||
</tr> | |||
<tr> | |||
<td style="padding:10px;"> | |||
<td style="padding:10px"> | |||
<?php | |||
GetEditor("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;" class="mb-3"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr> | |||
<td width="1%" height="35"></td> | |||
<td width="99%" valign="bottom" class="py-3"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">确定</button> | |||
| |||
<a href="catalog_main.php" class="btn btn-success">返回</a> | |||
</td> | |||
</tr> | |||
@@ -586,5 +515,4 @@ $i = 0; | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -1,137 +1,116 @@ | |||
<!DOCTYPE html | |||
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>栏目管理</title> | |||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |||
<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(); | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>栏目管理</title> | |||
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="css/base.css"> | |||
<script src="js/main.js"></script> | |||
<style> | |||
textarea{min-height:30px} | |||
.table{margin-bottom:0} | |||
.btn+.btn{margin-left:10px} | |||
</style> | |||
<script> | |||
var channelArray = new Array(); | |||
<?php | |||
$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=680,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 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 CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
} | |||
</script> | |||
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=680,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 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 CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
} | |||
</script> | |||
</head> | |||
<body leftmargin='15' topmargin='10' bgcolor="#FFFFFF"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" | |||
style="BORDER-COLLAPSE: collapse" class="mt-3"> | |||
<body leftmargin="15" topmargin="10" bgcolor="#fff"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" 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> | |||
<td height="30"><img src="images/book1.gif"><a href="catalog_main.php">栏目管理</a>>>修改栏目</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -142,372 +121,321 @@ $i = 0; | |||
</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"> | |||
<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="#fff"> | |||
<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF" align="left"> | |||
<td colspan="2" bgcolor="#fff" 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="javascript:;" | |||
onClick="ShowItem2()"><u>高级选项</u></a> </td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem3()"><u>栏目内容</u></a> </td> | |||
<td width="84" height="26" align="center" background="images/itemnote1.gif">常规选项</td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()">高级选项</a></td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem3()">栏目内容</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"> | |||
<td colspan="2" bgcolor="#fff" style="text-align:left"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" | |||
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="javascript:;" | |||
onClick="ShowItem3()"><u>栏目内容</u></a> </td> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()">常规选项</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()">栏目内容</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"> | |||
<td colspan="2" bgcolor="#fff" style="text-align:left"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" | |||
onClick="ShowItem1()"><u>常规选项</u></a> </td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem2()"><u>高级选项</u> </td> | |||
<td width="84" align="center" background="images/itemnote1.gif">栏目内容 </td> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()">常规选项</a></td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()">高级选项</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"> | |||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;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> | |||
<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> | |||
<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 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) | |||
{ | |||
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"; | |||
} | |||
?> | |||
</select> | |||
</td> | |||
<td class='bline'> <select name="channeltype" id="channeltype" style="width:200px" | |||
onChange="ParTemplet(this)"> | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
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"; | |||
} | |||
?> | |||
</select> </td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;"> | |||
<font color='red'>栏目名称:</font> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">中文名称:</td> | |||
<td class="bline"><input name="typename" type="text" size="40" 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="namegk" type="text" size="40" value="<?php echo $myrow['namegk']?>" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">英文名称:</td> | |||
<td class="bline"><input name="enname" type="text" size="40" value="<?php echo $myrow['enname']?>" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">英文概况:</td> | |||
<td class="bline"><input name="ennamegk" type="text" size="40" value="<?php echo $myrow['ennamegk']?>" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">栏目大图:</td> | |||
<td> | |||
<input name="litpic" type="text" class="alltxt" size="40" value="<?php echo $myrow['litpic']?>"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览..." onClick="SelectImage('form1.litpic');"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">栏目小图:</td> | |||
<td> | |||
<input name="litimg" type="text" class="alltxt" size="40" value="<?php echo $myrow['litimg']?>"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览..." onClick="SelectImage('form1.litimg');"> | |||
</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> | |||
<td class="bline" height="26" style="padding-left:10px">排列顺序:</td> | |||
<td class="bline"> <input name="sortrank" type="text" value="<?php echo $myrow['sortrank']?>" class="iptxt" style="width:100px">(由低 -> 高)</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->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')) | |||
{ | |||
<td class="bline" height="26" style="padding-left:10px">浏览权限:</td> | |||
<td class="bline"> <select name="corank" id="corank" style="width:100px"> | |||
<?php | |||
$dsql->SetQuery("Select * from #@__arcrank where rank >= 0"); | |||
$dsql->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')) | |||
{ | |||
if($myrow['corank']==$row->rank) | |||
echo "<option value='".$row->rank."' selected>".$row->membername."</option>\r\n"; | |||
else | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
} | |||
?> | |||
</select> | |||
(仅限制栏目里的文档浏览权限) </td> | |||
echo "<option value='".$row->rank."' selected>".$row->membername."</option>\r\n"; | |||
else | |||
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']?>" size="40" class="iptxt"></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 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 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 class="bline" height="26" style="padding-left:10px">默认页的名称:</td> | |||
<td class="bline"><input name="defaultname" type="text" value="<?php echo $myrow['defaultname']?>" class="iptxt" style="width:100px"></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 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 /> | |||
<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 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> | |||
<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"> | |||
<td class="bline" style="padding-left:10px">绑定小分类: <br>仅适用[分类信息模型]</td> | |||
<td class="bline"> | |||
<select name='smalltype[]' size='5' style='width:120px;height: auto;' multiple='yes'> | |||
<?php | |||
$smtypes = explode(',',trim($myrow['smalltypes'])); | |||
$sql = "Select * From `#@__sys_enum` where egroup like 'infotype' order by disorder asc, id desc "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
$smtypes = explode(',',trim($myrow['smalltypes'])); | |||
$sql = "Select * From `#@__sys_enum` where egroup like 'infotype' order by disorder asc, id desc "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if(in_array($arr['evalue'],$smtypes)) { | |||
$selstr = " selected='1' "; | |||
} else { | |||
$selstr = ''; | |||
} | |||
if($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>\r\n"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
if(in_array($arr['evalue'],$smtypes)) { | |||
$selstr = " selected='1' "; | |||
} | |||
else { | |||
$selstr = ''; | |||
} | |||
if($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>\r\n"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
echo "<option value='{$arr['evalue']}'{$selstr}> └───{$arr['ename']}</option>\r\n"; | |||
} | |||
else { | |||
echo "<option value='{$arr['evalue']}'{$selstr}> └─{$arr['ename']}</option>\r\n"; | |||
} | |||
echo "<option value='{$arr['evalue']}'{$selstr}> └───{$arr['ename']}</option>\r\n"; | |||
} else { | |||
echo "<option value='{$arr['evalue']}'{$selstr}> └─{$arr['ename']}</option>\r\n"; | |||
} | |||
?> | |||
</select> | |||
按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“<u>联动类别管理</u>”</a>中管理 | |||
} | |||
?> | |||
</select>按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</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" class="table"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;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'> <label><input name="moresite" type="radio" class="np" value="0" | |||
<?php if($myrow['moresite']==0) echo " checked='1' ";?> /> | |||
不启用</label> | |||
<label><input type="radio" name="moresite" class="np" value="1" | |||
<?php if($myrow['moresite']==1) echo " checked='1' ";?> /> | |||
启用</label> </td> | |||
<td class="bline" width="150" height="26" style="padding-left:10px">多站点支持:</td> | |||
<td class="bline"> | |||
<label><input name="moresite" type="radio" class="np" value="0" <?php if($myrow['moresite']==0) echo " checked='1' "; ?>> 不启用 </label> | |||
<label><input type="radio" name="moresite" class="np" value="1" <?php if($myrow['moresite']==1) echo " checked='1' "; ?>> 启用</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">说明:</td> | |||
<td height="26" 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> | |||
<td class="bline" height="26" style="padding-left:10px">绑定域名:</td> | |||
<td class="bline"> <input name="siteurl" type="text" id="siteurl" size="40" 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> | |||
<td class="bline" height="26" 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 | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
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" /> | |||
<button type="button" name="set1" class="btn btn-success 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 height="26" bgcolor="#F9FCEF" style="padding-left:10px">支持变量:</td> | |||
<td bgcolor="#F9FCEF"> | |||
{tid}表示栏目ID,<br> | |||
{cid}表示频道模型的'名字ID'( | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
echo "{$arr['typename']}({$arr['nid']})、"; | |||
} | |||
?>)<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="templist" type="text" value="<?php echo $myrow['templist']?>" style="width:300px" | |||
class="iptxt" /> | |||
<button type="button" name="set3" class="btn btn-success btn-sm" | |||
onClick="SelectTemplets('form1.templist');">浏览...</button> | |||
<td height="26" style="padding-left:10px">封面模板:</td> | |||
<td> | |||
<input name="tempindex" type="text" value="<?php echo $myrow['tempindex']?>" size="40" class="iptxt"> | |||
<button type="button" name="set1" class="btn btn-success 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> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px">列表模板:</td> | |||
<td> | |||
<input name="templist" type="text" value="<?php echo $myrow['templist']?>" size="40" class="iptxt"> | |||
<button type="button" name="set3" class="btn btn-success 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-success btn-sm" | |||
onClick="SelectTemplets('form1.temparticle');">浏览...</button> | |||
<td height="26" style="padding-left:10px">文章模板:</td> | |||
<td> | |||
<input name="temparticle" type="text" value="<?php echo $myrow['temparticle']?>" size="40" class="iptxt"> | |||
<button type="button" name="set4" class="btn btn-success 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 height="26" bgcolor="#F9FCEF" style="padding-left:10px">支持变量:</td> | |||
<td height="26" 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 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 height="26" 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 height="26" style="padding-left:10px">列表命名规则:</td> | |||
<td> | |||
<input name="seotitle" type="text" style="width:250px" id="seotitle" class="alltxt" | |||
value="<?php echo $myrow['seotitle']?>" /> | |||
(栏目模板里用{dede:field.seotitle /}调用) | |||
<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;">关键字:</td> | |||
<td> <textarea name="keywords" cols="70" rows="4" id="keywords" | |||
class="alltxt"><?php echo $myrow['keywords']?></textarea> | |||
</td> | |||
<td height="60" style="padding-left:10px">SEO标题:</td> | |||
<td><input name="seotitle" type="text" id="seotitle" value="<?php echo $myrow['seotitle']?>" size="40" class="alltxt">(栏目模板里用{dede:field.seotitle /}调用)</td> | |||
</tr> | |||
<tr> | |||
<td height="60" 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> | |||
<td height="60" style="padding-left:10px">栏目描述:</td> | |||
<td height="60"><textarea name="description" cols="70" rows="4" id="description" class="alltxt"><?php echo $myrow['description']?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td height="45" style="padding-left:10px;">继承选项:</td> | |||
<td height="45" style="padding-left:10px">继承选项:</td> | |||
<td> | |||
<label><input name="upnext" type="checkbox" id="upnext" value="1" class="np" /> | |||
同时更改下级栏目的浏览权限、内容类型、模板风格、命名规则等通用属性</label> | |||
<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"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;display:none;text-align:left" id="ctset" class="table"> | |||
<tr> | |||
<td height="28"> 说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||
<td height="26">说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||
</tr> | |||
<tr> | |||
<td style="padding:10px;"> | |||
<td style="padding:10px"> | |||
<?php | |||
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;" class="mb-3"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f8f8f8" 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"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">确定</button> | |||
| |||
<a href="catalog_main.php" class="btn btn-success">返回</a> | |||
</td> | |||
</tr> | |||
@@ -517,5 +445,4 @@ $i = 0; | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -1,40 +1,37 @@ | |||
<!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"> | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<meta 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="js/global.js"></script> | |||
<script language="javascript" src="js/context_menu.js"></script> | |||
<script language="javascript" src="js/ieemu.js"></script> | |||
<script language="javascript" src="js/dialog.js"></script> | |||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||
<script language="javascript"> | |||
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="css/base.css"> | |||
<script src="js/global.js"></script> | |||
<script src="js/context_menu.js"></script> | |||
<script src="js/ieemu.js"></script> | |||
<script src="js/dialog.js"></script> | |||
<script src="../static/js/dedeajax2.js"></script> | |||
<script> | |||
function LoadSuns(ctid,tid) | |||
{ | |||
if($DE(ctid).innerHTML.length < 10){ | |||
$DE('img'+tid).src = 'images/dedecontract.gif'; | |||
{ | |||
if($DE(ctid).innerHTML.length < 10){ | |||
$DE('img'+tid).src = 'images/dedecontract.gif'; | |||
var myajax = new DedeAjax($DE(ctid)); | |||
myajax.SendGet('catalog_do.php?dopost=GetSunLists&cid='+tid); | |||
} | |||
else{ | |||
showHide(ctid,tid); | |||
} else { | |||
showHide(ctid,tid); | |||
} | |||
} | |||
function showHide(objname,tid) | |||
{ | |||
if($DE(objname).style.display=="none") | |||
{ | |||
$DE('img'+tid).src = 'images/dedecontract.gif'; | |||
$DE(objname).style.display = BROWSER.firefox? "" : "block"; | |||
} else { | |||
$DE('img'+tid).src = 'images/dedeexplode.gif'; | |||
$DE(objname).style.display="none"; | |||
} | |||
if($DE(objname).style.display=="none") | |||
{ | |||
$DE('img'+tid).src = 'images/dedecontract.gif'; | |||
$DE(objname).style.display = BROWSER.firefox? "" : "block"; | |||
} else { | |||
$DE('img'+tid).src = 'images/dedeexplode.gif'; | |||
$DE(objname).style.display="none"; | |||
} | |||
} | |||
if(moz) { | |||
extendEventObject(); | |||
@@ -104,85 +101,65 @@ function SingleMenu(eobj,obj,tid,tname) | |||
} | |||
</script> | |||
<style> | |||
.coolbg2 { | |||
border: 1px solid #000000; | |||
background-color: #F2F5E9; | |||
height:18px | |||
} | |||
.coolbt2 { | |||
border-left: 2px solid #EFEFEF; | |||
border-top: 2px solid #EFEFEF; | |||
border-right: 2px solid #ACACAC; | |||
border-bottom: 2px solid #ACACAC; | |||
background-color: #F7FCDA | |||
} | |||
.nbline {border-bottom: 1px solid #d6d6d6; background-color:#FFFFFF; } | |||
.bline2 {border-bottom: 1px solid #d6d6d6; background-color:#F9FCEF; } | |||
td, th{ | |||
padding: .25em; | |||
} | |||
.maintable { | |||
border: 1px solid #DEE2E6; | |||
} | |||
.coolbg2{border:1px solid #000000;background-color:#F2F5E9;height:18px} | |||
.coolbt2{border-left:2px solid #EFEFEF;border-top:2px solid #EFEFEF;border-right:2px solid #ACACAC;border-bottom:2px solid #ACACAC;background-color:#F7FCDA} | |||
.nbline{border-bottom:1px solid #d6d6d6;background-color:#FFFFFF} | |||
.bline2{border-bottom:1px solid #d6d6d6;background-color:#F9FCEF} | |||
.maintable{border:1px solid #DEE2E6} | |||
td,th{padding:.2rem} | |||
.btn+.btn{margin-left:10px} | |||
</style> | |||
</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" class="maintable mt-3"> | |||
<tr> | |||
<td height="28" background='images/tbg.gif' style="padding-left:10px;"> | |||
<div style="float:left" class="py-3"> | |||
<strong>网站栏目管理 </strong> | |||
</div> | |||
<div style="float:right;padding-right:6px;" class="py-3"> | |||
<a href='catalog_add.php?listtype=all' class='btn btn-success btn-sm'>增加顶级栏目</a> | |||
<a href='catalog_add.php?dopost=quick' class='btn btn-success btn-sm'>批量增加栏目</a> | |||
<a href="catalog_do.php?dopost=upcatcache" class='btn btn-success btn-sm'>更新栏目缓存</a> | |||
<a href="makehtml_list.php" class='btn btn-success btn-sm'>更新栏目HTML</a> | |||
</a> | |||
</td> | |||
<td height="26" background="images/tbg.gif"> | |||
<span style="float:left;padding-left:10px;line-height:26px" class="py-3"> | |||
<strong>网站栏目管理</strong> | |||
</span> | |||
<span style="float:right;padding-right:10px" class="py-3"> | |||
<a href="catalog_add.php?listtype=all" class="btn btn-success btn-sm">增加顶级栏目</a> | |||
<a href="catalog_add.php?dopost=quick" class="btn btn-success btn-sm">批量增加栏目</a> | |||
<a href="catalog_do.php?dopost=upcatcache" class="btn btn-success btn-sm">更新栏目缓存</a> | |||
<a href="makehtml_list.php" class="btn btn-success btn-sm">更新栏目HTML</a></a> | |||
</span> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="28" bgcolor="#ffffff"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="51%">提示:可使用右键菜单进行操作。</td> | |||
<td width="49%" align="right"> | |||
<?php if(!isset($exallct)) { ?> | |||
<a href='catalog_main.php?exallct=all'>[展开全部]</a> | |||
<?php }else{ ?> | |||
<a href='catalog_main.php'>[普通模式]</a> | |||
<?php } ?> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td height="26" bgcolor="#ffffff"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="50%" style="padding-left:10px;line-height:26px">提示:可使用右键菜单进行操作</td> | |||
<td width="50%" style="padding-right:10px" align="right"> | |||
<?php if(!isset($exallct)) { ?> | |||
<a href="catalog_main.php?exallct=all" class="btn btn-success btn-sm">展开全部</a> | |||
<?php } else { ?> | |||
<a href="catalog_main.php" class="btn btn-success btn-sm">普通模式</a> | |||
<?php } ?> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<form name='form1' method='post' action='catalog_do.php?dopost=upRankAll'> | |||
<form name="form1" method="post" action="catalog_do.php?dopost=upRankAll"> | |||
<tr> | |||
<td height="120" bgcolor="#FFFFFF" valign="top"> | |||
<td bgcolor="#FFFFFF" valign="top"> | |||
<?php | |||
if(empty($opendir)) $opendir=-1; | |||
if($userChannel>0) $opendir=$userChannel; | |||
$tu = new TypeUnit(); | |||
$tu->ListAllType($userChannel,$opendir); | |||
?> | |||
<br/> | |||
</td> | |||
</tr> | |||
</form> | |||
<tr> | |||
<td height="36" bgcolor="#FFFFFF" align="center"> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0" class="table table-borderless"> | |||
<tr> | |||
<td align="right"> | |||
<button type="button" name="sb1" class="btn btn-success btn-sm" onClick="document.form1.submit();">更新排序</button> | |||
<button type="button" name="sb4" class="btn btn-success btn-sm" onClick="location='makehtml_js.php';">获取JS</button> | |||
<button type="button" name="sb2" class="btn btn-success btn-sm" onClick="location='makehtml_list.php';">更新栏目HTML</button> | |||
<button type="button" name="sb3" class="btn btn-success btn-sm" onClick="location='makehtml_archives.php';">更新文档HTML</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td height="36" bgcolor="#FFFFFF" align="right" class="py-3" style="padding-right:10px"> | |||
<button type="button" name="sb1" class="btn btn-success btn-sm" onClick="document.form1.submit();">更新排序</button> | |||
<button type="button" name="sb4" class="btn btn-success btn-sm" onClick="location='makehtml_js.php';">获取JS</button> | |||
<button type="button" name="sb2" class="btn btn-success btn-sm" onClick="location='makehtml_list.php';">更新栏目HTML</button> | |||
<button type="button" name="sb3" class="btn btn-success btn-sm" onClick="location='makehtml_archives.php';">更新文档HTML</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</body> |
@@ -108,7 +108,7 @@ function JumpMenu(eobj,obj,tid,tname) | |||
} | |||
</script> | |||
<style> | |||
body{margin:0;background:#f2f2f2} | |||
body{margin:0;background:#f8f8f8} | |||
dl{clear:left} | |||
.dlf{float:left;margin-top:12px;margin-left:10px} | |||
.dlr{float:left;margin-top:10px} | |||
@@ -39,7 +39,7 @@ | |||
<input type="hidden" name="dopost" value="listArchives"> | |||
<table width="98%" cellpadding="1" cellspacing="1" align="center" class="mb-3" style="margin-top:10px;border:1px solid #dee2e6"> | |||
<tr> | |||
<td style="background:#f2f2f2"> | |||
<td style="background:#f8f8f8"> | |||
<table cellpadding="0" cellspacing="0" height="36"> | |||
<tr> | |||
<td> | |||
@@ -76,7 +76,7 @@ | |||
<form name="form2"> | |||
<table width="98%" cellpadding="2" cellspacing="1" bgcolor="#CFCFCF" align="center" class="table table-bordered maintable" style="margin-top:10px"> | |||
<tr> | |||
<td height="30" colspan="10" style="margin-left:10px;background:#f2f2f2">{dede:global.positionname/}文档列表(使用鼠标右键弹出菜单)</td> | |||
<td height="30" colspan="10" style="margin-left:10px;background:#f8f8f8">{dede:global.positionname/}文档列表(使用鼠标右键弹出菜单)</td> | |||
</tr> | |||
<tr align="center" bgcolor="#FBFCE2" height="26"> | |||
<td width="6%">ID</td> | |||
@@ -128,7 +128,7 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="36" colspan="10" align="center" style="background:#f2f2f2">{dede:pagelist listsize='6'/}</td> | |||
<td height="36" colspan="10" align="center" style="background:#f8f8f8">{dede:pagelist listsize='6'/}</td> | |||
</tr> | |||
</table> | |||
</form> | |||
@@ -6,18 +6,17 @@ | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="css/base.css"> | |||
<style> | |||
.btn+.btn{margin-left:10px} | |||
</style> | |||
</head> | |||
<body background="images/allbg.gif" leftmargin="8" topmargin="8"> | |||
<div class="bodytitle mt-3"> | |||
<div class="bodytitleleft"></div> | |||
<div class="bodytitletxt" style="padding-left:10px;"><?php echo $diy->name; ?>列表</div> | |||
</div> | |||
<form action="diy_list.php" method="post"> | |||
<input type="hidden" name="diyid" value="<?php echo $diyid; ?>"> | |||
<table width="98%" border="0" cellpadding="1" cellspacing="1" align="center" class="table maintable" style="margin-top:10px;background:#CFCFCF"> | |||
<tr> | |||
<td colspan="3" height="26" background="images/tbg.gif"> | |||
<div style="float:left"><a href="diy_main.php">自定义表单管理</a> > <?php echo $diy->name; ?></div> | |||
<div style="float:left"><a href="diy_main.php">自定义表单管理</a> > <?php echo $diy->name; ?>列表</div> | |||
<div style="float:right;padding-right:10px"><a href="/plus/diy.php?action=list&diyid=<?php echo $diy->diyid; ?>" target="_blank"><img src="images/gtk-tmp.png" align="left" title="前台预览">前台预览</a></div> | |||
</td> | |||
</tr> | |||
@@ -32,7 +31,7 @@ | |||
{ | |||
if($fields[$field]=='') continue; | |||
if($fielddata[1]=='img'){ | |||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='images/channeladd.gif' border='0'>图片附件</a>\r\n"; | |||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='images/channeladd.gif' border='0'>图片附件</a>"; | |||
} | |||
else if($fielddata[1]=='addon'){ | |||
$fields[$field] = "<a href='{$fields[$field]}' target='_blank'><img src='images/channeladd.gif' border='0'>其它附件</a>"; | |||
@@ -52,12 +51,12 @@ | |||
<td colspan="3" bgcolor="#fff">{dede:pagelist listsize='6'/}</td> | |||
</tr> | |||
<tr> | |||
<td colspan="3" height="36" bgcolor="#f2f2f2"> | |||
<label><input type="button" name="select" onClick="selAll()" value="全选"></label> | |||
<label><input type="button" name="select" onClick="noSelAll()" value="取消"></label> | |||
<label><input type="radio" name="action" class="btn btn-success btn-sm" value="check"> 审核</label> | |||
<label><input type="radio" name="action" class="btn btn-success btn-sm" value="delete"> 删除</label> | |||
<label><input type="submit" name="submit" class="btn btn-success btn-sm" value="提交"></label> | |||
<td colspan="3" height="36" bgcolor="#f8f8f8"> | |||
<input type="radio" name="action" value="check"> 审核 | |||
<input type="radio" name="action" value="delete"> 删除 | |||
<input type="button" name="select" onClick="selAll()" class="btn btn-success btn-sm" value="全选"> | |||
<input type="button" name="select" onClick="noSelAll()" class="btn btn-success btn-sm" value="取消"> | |||
<input type="submit" name="submit" class="btn btn-success btn-sm" value="提交"> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -9,17 +9,12 @@ | |||
<link rel="stylesheet" href="css/base.css"> | |||
</head> | |||
<body background="images/allbg.gif" leftmargin="8" topmargin="8"> | |||
<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="maintable" style="margin-top:10px;border:1px solid #CFCFCF;border-bottom:none"> | |||
<tr> | |||
<td bgcolor="#EDF9D5" class="tbtitletxt" background="images/tbg.gif"> | |||
<table width="96%" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="30%" class="py-3"><a href="diy_add.php" class="btn btn-success btn-sm ml-3">增加新的自定义表单</a></td> | |||
<td align="right"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -46,9 +41,9 @@ | |||
</tr> | |||
{/dede:datalist} | |||
</table> | |||
<table class="mb-3" width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style="margin:auto;border:1px solid #CFCFCF"> | |||
<table class="mb-3" width="98%" border="0" cellpadding="5" cellspacing="1" align="center" style="border:1px solid #CFCFCF"> | |||
<tr> | |||
<td height="36" align="center" style="background:#f2f2f2">{dede:pagelist listsize='6'/}</td> | |||
<td height="36" align="center" style="background:#f8f8f8">{dede:pagelist listsize='6'/}</td> | |||
</tr> | |||
</table> | |||
</body> |
@@ -11,7 +11,7 @@ echo "<script>var curopenItem = '$openitem';</script>"; | |||
?> | |||
<script src="js/leftmenu.js"></script> | |||
<style> | |||
body{margin:0;background:#f2f2f2;padding-left:10px;overflow:scroll;overflow-x:hidden} | |||
body{margin:0;background:#f8f8f8;padding-left:10px;overflow:scroll;overflow-x:hidden} | |||
img{margin-right:0} | |||
div{margin:0;padding:0} | |||
dl.bitem{margin:0 0 0 10px;width:140px;background:url(images/menunewbg.gif)repeat-x;clear:both} | |||
@@ -9,7 +9,7 @@ | |||
<link rel="stylesheet" href="../static/css/dede.css"> | |||
<title><?php echo $cfg_webname; ?>后台登录</title> | |||
<style> | |||
body{font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;background:#f2f2f2} | |||
body{font:14px Helvetica Neue,Helvetica,PingFang SC,Tahoma,Arial,sans-serif;background:#f8f8f8} | |||
header{background:#ffffff} | |||
header .logo{width:260px;padding:1rem 0} | |||
.login-from{max-width:580px;width:100%} | |||
@@ -87,7 +87,7 @@ function SelUp(){ | |||
</tr> | |||
</form> | |||
<tr bgcolor="#F9FCEF"> | |||
<td colspan="2" style="line-height:30px"> 进行状态: | |||
<td colspan="2" style="line-height:26px"> 进行状态: | |||
<script> | |||
function ResizeDiv(obj,ty) | |||
{ | |||
@@ -1,161 +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"> | |||
<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 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/key.js"></script> | |||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||
<script language='javascript' src='js/main.js'></script> | |||
<script language="JavaScript"> | |||
var pageno = 1; | |||
var totalrow = <?php echo $totalRow?>; | |||
var pagesize = <?php echo $pagesize?>; | |||
var orderby = '<?php echo $orderby?>'; | |||
//加载列表 | |||
function ReloadPage(ordertype) { | |||
orderby = ordertype; | |||
var listArea = $Obj('rslist'); | |||
var errMsg = "网络通信出错!<br>[<a href=\"javascript:ReloadPage('" + ordertype + "')\"><u>点击此重新加载列表</u></a>]"; | |||
var myajax = new DedeAjax(listArea, true, true, "", errMsg, "正在加载..."); | |||
myajax.SendGet("search_keywords_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype); | |||
} | |||
//载入指定页的列表 | |||
function LoadPage(npage) { | |||
pageno = npage; | |||
ReloadPage(orderby); | |||
ReloadPageNum(pageno); | |||
<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/key.js"></script> | |||
<script language="javascript" src="../static/js/dedeajax2.js"></script> | |||
<script language='javascript' src='js/main.js'></script> | |||
<script language="JavaScript"> | |||
var pageno = 1; | |||
var totalrow = <?php echo $totalRow?>; | |||
var pagesize = <?php echo $pagesize?>; | |||
var orderby = '<?php echo $orderby?>'; | |||
//加载列表 | |||
function ReloadPage(ordertype) { | |||
orderby = ordertype; | |||
var listArea = $Obj('rslist'); | |||
var errMsg = "网络通信出错!<br>[<a href=\"javascript:ReloadPage('" + ordertype + "')\"><u>点击此重新加载列表</u></a>]"; | |||
var myajax = new DedeAjax(listArea, true, true, "", errMsg, "正在加载..."); | |||
myajax.SendGet("search_keywords_main.php?dopost=getlist&pageno=" + pageno + "&orderby=" + ordertype); | |||
} | |||
//载入指定页的列表 | |||
function LoadPage(npage) { | |||
pageno = npage; | |||
ReloadPage(orderby); | |||
ReloadPageNum(pageno); | |||
} | |||
//更新一个关键词 | |||
function UpdateNote(nid) { | |||
var listArea = $Obj('rslist'); | |||
var kw = $Obj('keyword' + nid).value; | |||
var kws = $Obj('spwords' + nid).value; | |||
var ct = $Obj('count' + nid).value; | |||
var errMsg = "网络通信出错!<br>[<a href=\"javascript:LoadPage('" + pageno + "')\"><u>点击此重新加载列表</u></a>]"; | |||
var myajax = new DedeAjax(listArea, true, true, "", errMsg, "正在处理..."); | |||
<?php | |||
if (strtolower(substr($cfg_soft_lang, 0, 3)) == 'utf') { | |||
?> | |||
myajax.AddKeyUtf8('dopost', 'update'); | |||
myajax.AddKeyUtf8('aid', nid); | |||
myajax.AddKeyUtf8('keyword', kw); | |||
myajax.AddKeyUtf8('spwords', kws); | |||
myajax.AddKeyUtf8('count', ct); | |||
myajax.AddKeyUtf8('pageno', pageno); | |||
myajax.AddKeyUtf8('orderby', orderby); | |||
myajax.SendPost2('search_keywords_main.php'); | |||
<?php | |||
} | |||
//更新一个关键词 | |||
function UpdateNote(nid) { | |||
var listArea = $Obj('rslist'); | |||
var kw = $Obj('keyword' + nid).value; | |||
var kws = $Obj('spwords' + nid).value; | |||
var ct = $Obj('count' + nid).value; | |||
var errMsg = "网络通信出错!<br>[<a href=\"javascript:LoadPage('" + pageno + "')\"><u>点击此重新加载列表</u></a>]"; | |||
var myajax = new DedeAjax(listArea, true, true, "", errMsg, "正在处理..."); | |||
<?php | |||
if (strtolower(substr($cfg_soft_lang, 0, 3)) == 'utf') { | |||
?> | |||
myajax.AddKeyUtf8('dopost', 'update'); | |||
myajax.AddKeyUtf8('aid', nid); | |||
myajax.AddKeyUtf8('keyword', kw); | |||
myajax.AddKeyUtf8('spwords', kws); | |||
myajax.AddKeyUtf8('count', ct); | |||
myajax.AddKeyUtf8('pageno', pageno); | |||
myajax.AddKeyUtf8('orderby', orderby); | |||
myajax.SendPost2('search_keywords_main.php'); | |||
<?php | |||
} | |||
elseif(strtolower(substr($cfg_soft_lang, 0, 2)) == 'gb') { | |||
elseif(strtolower(substr($cfg_soft_lang, 0, 2)) == 'gb') { | |||
echo 'myajax.SendGet2("search_keywords_main.php?dopost=update&aid="+nid+"&keyword="+kw+"&spwords="+kws+"&count="+ct+"&pageno="+pageno+"&orderby="+orderby);'; | |||
} | |||
?> | |||
} | |||
?> | |||
ShowMsg('成功更新关键词'); | |||
//myajax.SendGet("search_keywords_main.php?dopost=update&aid="+nid+"&keyword="+kw+"&spwords="+kws+"&count="+ct+"&pageno="+pageno); | |||
//myajax.SendGet("search_keywords_main.php?dopost=update&aid="+nid+"&keyword="+kw+"&spwords="+kws+"&count="+ct+"&pageno="+pageno); | |||
} | |||
//删除关键词 | |||
function DelNote(nid) { | |||
var listArea = $Obj('rslist'); | |||
totalrow = totalrow - 1; | |||
var pagenum = Math.ceil(totalrow / pagesize); | |||
if (pagenum <= pageno) pageno = pagenum; | |||
var errMsg = "网络通信出错!<br>[<a href=\"javascript:LoadPage('" + pageno + "')\"><u>点击此重新加载列表</u></a>]"; | |||
var myajax = new DedeAjax(listArea, true, true, "", errMsg, "正在处理..."); | |||
myajax.SendGet("search_keywords_main.php?dopost=del&aid=" + nid + "&pageno=" + pageno + "&orderby=" + orderby); | |||
ReloadPageNum(pageno); | |||
} | |||
//重新加载分页列表 | |||
function ReloadPageNum(startnum) { | |||
var ListArea = $Obj('pagelist'); | |||
var pagenum = Math.ceil(totalrow / pagesize); | |||
var listsize = 3; | |||
var ahtml = ""; | |||
var startloop = 1; | |||
var endnum = 0; | |||
ahtml += "共:" + totalrow + " 条记录/" + pagenum + "页 "; | |||
if (pageno > 1) ahtml += "<a href='javascript:;' onclick='LoadPage(" + (pageno - 1) + ")'>↑上页</a> "; | |||
if (startnum >= pagenum - listsize) { | |||
//删除关键词 | |||
function DelNote(nid) { | |||
var listArea = $Obj('rslist'); | |||
totalrow = totalrow - 1; | |||
var pagenum = Math.ceil(totalrow / pagesize); | |||
if (pagenum <= pageno) pageno = pagenum; | |||
var errMsg = "网络通信出错!<br>[<a href=\"javascript:LoadPage('" + pageno + "')\"><u>点击此重新加载列表</u></a>]"; | |||
var myajax = new DedeAjax(listArea, true, true, "", errMsg, "正在处理..."); | |||
myajax.SendGet("search_keywords_main.php?dopost=del&aid=" + nid + "&pageno=" + pageno + "&orderby=" + orderby); | |||
ReloadPageNum(pageno); | |||
} | |||
//重新加载分页列表 | |||
function ReloadPageNum(startnum) { | |||
var ListArea = $Obj('pagelist'); | |||
var pagenum = Math.ceil(totalrow / pagesize); | |||
var listsize = 3; | |||
var ahtml = ""; | |||
var startloop = 1; | |||
var endnum = 0; | |||
ahtml += "共:" + totalrow + " 条记录/" + pagenum + "页 "; | |||
if (pageno > 1) ahtml += "<a href='javascript:;' onclick='LoadPage(" + (pageno - 1) + ")'>↑上页</a> "; | |||
if (startnum >= pagenum - listsize) { | |||
startloop = pagenum - (listsize * 2); | |||
if (startloop < 1) startloop = 1; | |||
for (i = startloop; i <= pagenum; i++) { | |||
if (i == pageno) ahtml += i + " "; | |||
else ahtml += "<a href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a> "; | |||
if (i == pageno) ahtml += i + " "; | |||
else ahtml += "<a href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a> "; | |||
} | |||
} | |||
else if (pagenum < listsize) { | |||
} | |||
else if (pagenum < listsize) { | |||
for (i = 1; i <= pagenum; i++) { | |||
if (i == pageno) ahtml += i + " "; | |||
else ahtml += "<a href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a> "; | |||
if (i == pageno) ahtml += i + " "; | |||
else ahtml += "<a href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a> "; | |||
} | |||
} | |||
else { | |||
} else { | |||
startloop = startnum - listsize; | |||
if (startloop < 1) { startloop = 1; endnum = startloop + (listsize * 2); } | |||
else { endnum = startnum + listsize; } | |||
if (endnum >= pagenum) endnum = pagenum; | |||
for (i = startloop; i <= endnum; i++) { | |||
if (i == pageno) ahtml += i + " "; | |||
else ahtml += "<a href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a> "; | |||
if (i == pageno) ahtml += i + " "; | |||
else ahtml += "<a href='javascript:;' onclick='LoadPage(" + i + ")'>[" + i + "]</a> "; | |||
} | |||
} | |||
if (pageno < pagenum) ahtml += "<a href='javascript:;' onclick='LoadPage(" + (pageno + 1) + ")'>下页↓</a> "; | |||
ListArea.innerHTML = ahtml; | |||
} | |||
</script> | |||
<style> | |||
.nnpp { | |||
border-bottom: 1px solid #666666; | |||
border-top: 1px solid #FFFFFF; | |||
border-left: 1px solid #FFFFFF; | |||
border-right: 1px solid #FFFFFF; | |||
filter: alpha(opacity=50); | |||
} | |||
</style> | |||
if (pageno < pagenum) ahtml += "<a href='javascript:;' onclick='LoadPage(" + (pageno + 1) + ")'>下页↓</a> "; | |||
ListArea.innerHTML = ahtml; | |||
} | |||
</script> | |||
<style> | |||
.nnpp{border-bottom:1px solid #666666;border-top:1px solid #FFFFFF;border-left:1px solid #FFFFFF;border-right:1px solid #FFFFFF;filter:alpha(opacity=50)} | |||
</style> | |||
</head> | |||
<body background='images/allbg.gif' leftmargin='8' topmargin='8'> | |||
<div class="main" align='center'> | |||
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#D6D6D6" style="margin-bottom:3px" class="table maintable table-bordered mt-3"> | |||
<tr> | |||
<td height="26" colspan="8" background="images/tbg.gif"> | |||
<table width="100%" border="0" class="table table-borderless"> | |||
<body background="images/allbg.gif" leftmargin="8" topmargin="8"> | |||
<div class="main" align="center"> | |||
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#f8f8f8" class="table maintable table-bordered mt-3"> | |||
<tr> | |||
<td width="31%" align="left" style="padding-left:10px;"><strong>搜索关键词维护</strong></td> | |||
<td align="right"> | |||
| |||
<button class="btn btn-success btn-sm" name="n1" type="button" id="n1" | |||
onClick="location='article_keywords_main.php';">文档关键字维护</button> | |||
</td> | |||
<td width="30%" align="left" style="padding-left:10px"><strong>搜索关键词维护</strong></td> | |||
<td align="right"><button class="btn btn-success btn-sm" name="n1" type="button" id="n1" onClick="location='article_keywords_main.php';">文档关键字维护</button></td> | |||
</tr> | |||
</table> | |||
<span id="rslist"> | |||
<?php | |||
GetKeywordList($dsql,$pageno,$pagesize,$orderby); | |||
?> | |||
</span> | |||
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#f8f8f8" class="table maintable table-bordered mt-3"> | |||
<tr align="center"> | |||
<td height="36" colspan="8" bgcolor="#f8f8f8"> | |||
<span id="pagelist"></span> | |||
<script>ReloadPageNum(1);</script> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<span id='rslist'> | |||
<?php | |||
GetKeywordList($dsql,$pageno,$pagesize,$orderby); | |||
?> | |||
</span> | |||
<table width="98%" border="0" cellpadding="1" cellspacing="1" bgcolor="#cfcfcf" style="margin-bottom:3px"> | |||
<tr align="center"> | |||
<td height="35" colspan="8" bgcolor="#F9FCEF"> | |||
<span id='pagelist'></span> | |||
<script language='javascript'>ReloadPageNum(1);</script> | |||
</td> | |||
</tr> | |||
</table> | |||
</div> | |||
</table> | |||
</div> | |||
</body> | |||
</html> |
@@ -1,54 +1,54 @@ | |||
<!DOCTYPE html> | |||
<html> | |||
<head> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<title>系统配置参数</title> | |||
<script src="../static/js/dedeajax2.js"></script> | |||
<script src="../static/js/jquery.js"></script> | |||
<script> | |||
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 backSearch() { | |||
location.reload(); | |||
} | |||
function getSearch() { | |||
var searchKeywords = $Obj('keywds').value; | |||
searchKeywords = searchKeywords.replace(/^cfg_/, ""); | |||
var myajax = new DedeAjax($Obj('_search')); | |||
myajax.SendGet('sys_info.php?dopost=search&keywords=' + searchKeywords) | |||
$Obj('_searchback').innerHTML = '<button class="btn btn-success btn-sm" name="searchbackBtn" type="button" id="searchbackBtn" onclick="backSearch()">返回</button>' | |||
$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 rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="css/base.css"> | |||
<meta charset="<?php echo $cfg_soft_lang; ?>"> | |||
<title>系统配置参数</title> | |||
<script src="../static/js/dedeajax2.js"></script> | |||
<script src="../static/js/jquery.js"></script> | |||
<script> | |||
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 backSearch() { | |||
location.reload(); | |||
} | |||
function getSearch() { | |||
var searchKeywords = $Obj('keywds').value; | |||
searchKeywords = searchKeywords.replace(/^cfg_/, ""); | |||
var myajax = new DedeAjax($Obj('_search')); | |||
myajax.SendGet('sys_info.php?dopost=search&keywords=' + searchKeywords) | |||
$Obj('_searchback').innerHTML = '<button class="btn btn-success btn-sm" name="searchbackBtn" type="button" id="searchbackBtn" onclick="backSearch()">返回</button>' | |||
$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 rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="css/base.css"> | |||
<style> | |||
.table{margin-bottom:0} | |||
.btn+.btn{margin-left:10px} | |||
@@ -129,8 +129,9 @@ | |||
</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"> | |||
<td height="26" align="right" background="images/tbg.gif" style="border:1px solid #cfcfcf;border-bottom:none"> | |||
<span style="line-height:26px">配置搜索:</span> | |||
<input type="text" name="keywds" id="keywds"> | |||
<button type="button" onclick="getSearch()" class="btn btn-success btn-sm">搜索</button> | |||
<span id="_searchback"></span> | |||
</td> | |||
@@ -206,11 +207,10 @@ | |||
} | |||
?> | |||
</div> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1" style="border:1px solid #cfcfcf;border-top:none" class="table table-borderless"> | |||
<tr bgcolor="#f2f2f2"> | |||
<td width="4%"></td> | |||
<td width="96%"> | |||
<button type="submit" class="btn btn-success">确定</button> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="table table-borderless"> | |||
<tr height="36"> | |||
<td> | |||
<button type="submit" class="btn btn-success">确定</button> | |||
<button type="button" onClick="document.form1.reset()" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
@@ -9,6 +9,7 @@ | |||
<style> | |||
.linerow{border-bottom:1px solid #CBD8AC} | |||
a.btn{color:white!important} | |||
.btn+.btn{margin-left:10px} | |||
</style> | |||
<script> | |||
function DelTpl(filename) { | |||
@@ -34,7 +35,7 @@ function DelTpl(filename) { | |||
</tr> | |||
<tr> | |||
<td colspan="4" height="30" bgcolor="#F9FCEF"> | |||
<span style="float:left;line-height:30px"> | |||
<span style="float:left;line-height:26px"> | |||
当前位置: | |||
<?php | |||
if($acdir=='plus') echo '插件模板'; | |||
@@ -62,7 +63,7 @@ function DelTpl(filename) { | |||
<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="编辑" class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> | |||
<a href="tpl.php?action=edit&acdir=<?php echo $acdir; ?>&filename=<?php echo $filename; ?>" title="编辑" class="btn btn-success btn-sm"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a> | |||
<?php | |||
if(!isset($fileinfos[$filename])){ | |||
?> | |||
@@ -76,8 +77,8 @@ function DelTpl(filename) { | |||
} | |||
?> | |||
<tr> | |||
<td colspan="4" height="36" bgcolor="#f2f2f2"> | |||
<a class="btn btn-success" href="tpl.php?action=newfile&acdir=<?php echo $acdir; ?>">新建模板</a> | |||
<td colspan="4" height="36" bgcolor="#f8f8f8"> | |||
<a class="btn btn-success" href="tpl.php?action=newfile&acdir=<?php echo $acdir; ?>">新建模板</a> | |||
<a class="btn btn-success" href="tpl.php?action=upload&acdir=<?php echo $acdir; ?>">上传模板</a> | |||
</td> | |||
</tr> | |||