| @@ -1,44 +1,45 @@ | |||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||
| <html> | <html> | ||||
| <head> | <head> | ||||
| <meta 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" type="text/css"> | |||||
| <link rel="stylesheet" href="../static/css/daterangepicker.css"> | |||||
| <link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | |||||
| <link rel="stylesheet" href="../static/css/cropper.min.css"> | |||||
| <script src="../static/js/jquery.js"></script> | |||||
| <script src="../static/js/dedeajax2.js"></script> | |||||
| <script src="../static/js/moment.min.js"></script> | |||||
| <script src="../static/js/daterangepicker.js"></script> | |||||
| <script src="js/main.js"></script> | |||||
| <script src="js/handlers.js"></script> | |||||
| <script src="../static/js/bootstrap.bundle.js"></script> | |||||
| <script src="../static/js/cropper.min.js"></script> | |||||
| <script> | |||||
| var arctype = 'article'; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == '') { | |||||
| ShowMsg('文章标题不能为空'); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg('请选择档案的主类别'); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <style> | |||||
| <meta 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" type="text/css"> | |||||
| <link rel="stylesheet" href="../static/css/daterangepicker.css"> | |||||
| <link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | |||||
| <link rel="stylesheet" href="../static/css/cropper.min.css"> | |||||
| <script src="../static/js/jquery.js"></script> | |||||
| <script src="../static/js/dedeajax2.js"></script> | |||||
| <script src="../static/js/moment.min.js"></script> | |||||
| <script src="../static/js/daterangepicker.js"></script> | |||||
| <script src="js/main.js"></script> | |||||
| <script src="js/handlers.js"></script> | |||||
| <script src="../static/js/bootstrap.bundle.js"></script> | |||||
| <script src="../static/js/cropper.min.js"></script> | |||||
| <script> | |||||
| var arctype = 'article'; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == '') { | |||||
| ShowMsg('文章标题不能为空'); | |||||
| return false; | |||||
| } | |||||
| if (document.form1.typeid.value == 0) { | |||||
| ShowMsg('请选择档案的主类别'); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <style> | |||||
| body{background:#ffffff} | body{background:#ffffff} | ||||
| table{border-collapse:separate} | |||||
| img{vertical-align:baseline} | img{vertical-align:baseline} | ||||
| table{border-collapse:separate} | |||||
| input,select{height:auto!important} | |||||
| .albCt img{cursor:pointer} | .albCt img{cursor:pointer} | ||||
| input,select{height:auto !important} | |||||
| .multipic{border:1px dashed #FC6} | .multipic{border:1px dashed #FC6} | ||||
| .albCt{border-bottom:1px dashed #FC0;margin-bottom:10px;padding-bottom:10px} | .albCt{border-bottom:1px dashed #FC0;margin-bottom:10px;padding-bottom:10px} | ||||
| </style> | |||||
| .btn+.btn{margin-left:10px} | |||||
| </style> | |||||
| </head> | </head> | ||||
| <body topmargin="8"> | <body topmargin="8"> | ||||
| <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | ||||
| @@ -394,7 +395,8 @@ input,select{height:auto !important} | |||||
| <td width="90" style="padding-left:10px">发布选项:</td> | <td width="90" style="padding-left:10px">发布选项:</td> | ||||
| <td width="380"> | <td width="380"> | ||||
| <label><input name="ishtml" type="radio" class="np" value="1" checked="1"> 生成HTML </label> | <label><input name="ishtml" type="radio" class="np" value="1" checked="1"> 生成HTML </label> | ||||
| <label><input type="radio" name="ishtml" class="np" value="0"> 仅动态浏览</label></td> | |||||
| <label><input type="radio" name="ishtml" class="np" value="0"> 仅动态浏览</label> | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -412,14 +414,14 @@ input,select{height:auto !important} | |||||
| ?> | ?> | ||||
| 随机选择模板: | 随机选择模板: | ||||
| <select name='templet' id='templet' style='width:200px' size='1'> | <select name='templet' id='templet' style='width:200px' size='1'> | ||||
| <?php | |||||
| $rndsel = mt_rand(1, count($cfg_tamplate_arr)) - 1; | |||||
| foreach($cfg_tamplate_arr as $k=>$v) | |||||
| { | |||||
| $v = trim($v); | |||||
| echo ($k==$rndsel ? "<option value='$v' selected>$v</option>" : "<option value='$v'>$v</option>"); | |||||
| } | |||||
| ?> | |||||
| <?php | |||||
| $rndsel = mt_rand(1, count($cfg_tamplate_arr)) - 1; | |||||
| foreach($cfg_tamplate_arr as $k=>$v) | |||||
| { | |||||
| $v = trim($v); | |||||
| echo ($k==$rndsel ? "<option value='$v' selected>$v</option>" : "<option value='$v'>$v</option>"); | |||||
| } | |||||
| ?> | |||||
| </select> | </select> | ||||
| <?php | <?php | ||||
| } else { | } else { | ||||
| @@ -432,11 +434,10 @@ input,select{height:auto !important} | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||||
| <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||||
| <tr height="36"> | <tr height="36"> | ||||
| <td width="4%"></td> | |||||
| <td width="96%" class="py-3"> | |||||
| <button type="submit" class="btn btn-success">保存</button> | |||||
| <td style="padding:.6rem"> | |||||
| <button type="submit" class="btn btn-success">保存</button> | |||||
| <button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | <button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -1,39 +1,40 @@ | |||||
| <!DOCTYPE html> | <!DOCTYPE html> | ||||
| <html> | <html> | ||||
| <head> | <head> | ||||
| <meta 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" type="text/css"> | |||||
| <link rel="stylesheet" href="../static/css/daterangepicker.css"> | |||||
| <link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | |||||
| <link rel="stylesheet" href="../static/css/cropper.min.css"> | |||||
| <script src="../static/js/jquery.js"></script> | |||||
| <script src="../static/js/dedeajax2.js"></script> | |||||
| <script src="../static/js/moment.min.js"></script> | |||||
| <script src="../static/js/daterangepicker.js"></script> | |||||
| <script src="js/main.js"></script> | |||||
| <script src="js/handlers.js"></script> | |||||
| <script src="../static/js/bootstrap.bundle.js"></script> | |||||
| <script src="../static/js/cropper.min.js"></script> | |||||
| <script> | |||||
| var swfu = null; | |||||
| var arctype = 'article'; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == '') { | |||||
| ShowMsg('文章标题不能为空'); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <style> | |||||
| <meta 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" type="text/css"> | |||||
| <link rel="stylesheet" href="../static/css/daterangepicker.css"> | |||||
| <link rel="stylesheet" href="../static/css/jquery.fileupload.css"> | |||||
| <link rel="stylesheet" href="../static/css/cropper.min.css"> | |||||
| <script src="../static/js/jquery.js"></script> | |||||
| <script src="../static/js/dedeajax2.js"></script> | |||||
| <script src="../static/js/moment.min.js"></script> | |||||
| <script src="../static/js/daterangepicker.js"></script> | |||||
| <script src="js/main.js"></script> | |||||
| <script src="js/handlers.js"></script> | |||||
| <script src="../static/js/bootstrap.bundle.js"></script> | |||||
| <script src="../static/js/cropper.min.js"></script> | |||||
| <script> | |||||
| var swfu = null; | |||||
| var arctype = 'article'; | |||||
| function checkSubmit() { | |||||
| if (document.form1.title.value == '') { | |||||
| ShowMsg('文章标题不能为空'); | |||||
| document.form1.title.focus(); | |||||
| return false; | |||||
| } | |||||
| } | |||||
| </script> | |||||
| <style> | |||||
| body{background:#ffffff} | body{background:#ffffff} | ||||
| table{border-collapse:separate} | |||||
| img{vertical-align:baseline} | img{vertical-align:baseline} | ||||
| table{border-collapse:separate} | |||||
| .albCt img{cursor:pointer} | .albCt img{cursor:pointer} | ||||
| </style> | |||||
| .btn+.btn{margin-left:10px} | |||||
| </style> | |||||
| </head> | </head> | ||||
| <body topmargin="8"> | <body topmargin="8"> | ||||
| <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | ||||
| @@ -71,7 +72,7 @@ img{vertical-align:baseline} | |||||
| <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
| <input type="hidden" name="id" value="<?php echo $aid?>"> | <input type="hidden" name="id" value="<?php echo $aid?>"> | ||||
| <input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | <input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | ||||
| <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;"> | |||||
| <table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff"> | |||||
| <tr> | <tr> | ||||
| <td height="26" colspan="2" class="bline"> | <td height="26" colspan="2" class="bline"> | ||||
| <table width="800" border="0" cellspacing="0" cellpadding="0"> | <table width="800" border="0" cellspacing="0" cellpadding="0"> | ||||
| @@ -311,7 +312,8 @@ img{vertical-align:baseline} | |||||
| <td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
| <td> | <td> | ||||
| <label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked";?>> 生成HTML </label> | <label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked";?>> 生成HTML </label> | ||||
| <label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked";?>> 仅动态浏览</label></td> | |||||
| <label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked";?>> 仅动态浏览</label> | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -384,18 +386,11 @@ img{vertical-align:baseline} | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||||
| <tr> | |||||
| <td height="36"> | |||||
| <table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||||
| <tr> | |||||
| <td width="4%"></td> | |||||
| <td width="96%"> | |||||
| <button type="submit" class="btn btn-success">保存</button> | |||||
| <button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||||
| </td> | |||||
| </tr> | |||||
| </table> | |||||
| <table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||||
| <tr height="36"> | |||||
| <td style="padding:.6rem"> | |||||
| <button type="submit" class="btn btn-success">保存</button> | |||||
| <button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| @@ -1,131 +1,154 @@ | |||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
| <!DOCTYPE html | |||||
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
| <html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
| <head> | <head> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
| <title>栏目管理</title> | |||||
| <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
| <link 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(); | |||||
| <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
| <title>栏目管理</title> | |||||
| <link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||||
| <link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||||
| <link href="css/base.css" rel="stylesheet" type="text/css"> | |||||
| <style> | |||||
| .table { | |||||
| margin-bottom: 0; | |||||
| } | |||||
| textarea { | |||||
| min-height: 32px; | |||||
| } | |||||
| </style> | |||||
| <script language="javascript"> | |||||
| var channelArray = new Array(); | |||||
| <?php | <?php | ||||
| $i = 0; | $i = 0; | ||||
| foreach($channelArray as $k=> $arr) | |||||
| { | |||||
| echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||||
| } | |||||
| 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) { | |||||
| 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 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 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 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'; | |||||
| } | |||||
| </script> | |||||
| </head> | </head> | ||||
| <body leftmargin="15" topmargin="10" bgcolor="#fff"> | |||||
| <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" class="mt-3"> | |||||
| <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"> | |||||
| <tr> | <tr> | ||||
| <td width="100%" height="20" valign="top"> | <td width="100%" height="20" valign="top"> | ||||
| <table width="100%" border="0" cellspacing="0" cellpadding="0"> | <table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||||
| <tr> | <tr> | ||||
| <td height="30"><img src="images/book1.gif"><a href="catalog_main.php">栏目管理</a>>>增加栏目</td> | |||||
| <td height="30"><IMG height=14 src="images/book1.gif" width=20> <a | |||||
| href="catalog_main.php"><u>栏目管理</u></a> >> 增加栏目</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -136,376 +159,424 @@ function CheckCross() { | |||||
| </table> | </table> | ||||
| <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | ||||
| <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; ?>'> | |||||
| <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; ?>' /> | |||||
| <?php | <?php | ||||
| 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"> | |||||
| 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"> | |||||
| <table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | <table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | ||||
| <tr> | <tr> | ||||
| <td colspan="2" bgcolor="#fff" align="left"> | |||||
| <td colspan="2" bgcolor="#FFFFFF" align="left"> | |||||
| <table border="0" cellpadding="0" cellspacing="0"> | <table border="0" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="100%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | <table width="100%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | ||||
| <tr> | <tr> | ||||
| <td colspan="2" bgcolor="#fff" style="text-align:left"> | |||||
| <table height="26" border="0" cellpadding="0" cellspacing="0"> | |||||
| <td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||||
| <table height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
| <tr> | <tr> | ||||
| <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="100%" border="0" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | <table width="100%" border="0" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | ||||
| <tr> | <tr> | ||||
| <td colspan="2" bgcolor="#fff" style="text-align:left"> | |||||
| <table height="26" border="0" cellpadding="0" cellspacing="0"> | |||||
| <td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||||
| <table height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
| <tr> | <tr> | ||||
| <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <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> | |||||
| <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> | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td class="bline" height="26" style="padding-left:10px">内容模型:</td> | |||||
| <td class="bline"> | |||||
| <td class='bline' height="26" style="padding-left:10px;"> | |||||
| <font color='red'>内容模型:</font> | |||||
| </td> | |||||
| <td class='bline'> | |||||
| <select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)"> | <select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)"> | ||||
| <?php | <?php | ||||
| 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>"; | |||||
| } | |||||
| } | |||||
| ?> | |||||
| 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"; | |||||
| } | |||||
| } | |||||
| ?> | |||||
| </select> | </select> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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 class='bline' height="26" style="padding-left:10px;"> | |||||
| <font color='red'>栏目名称:</font> | |||||
| </td> | </td> | ||||
| <td class='bline'><input name="typename" type="text" id="typename" size="30" class="iptxt" /></td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| <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"> | <select name="corank" id="corank" style="width:100px"> | ||||
| <?php | <?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>"; | |||||
| else { | |||||
| if($corank==0){ | |||||
| echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||||
| } | |||||
| } | |||||
| } | |||||
| ?> | |||||
| </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>\r\n"; | |||||
| else | |||||
| { | |||||
| //如果上级目录的corank>0,下级必须继承 | |||||
| if($corank==0) | |||||
| { echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; } | |||||
| } | |||||
| } | |||||
| ?> | |||||
| </select> | |||||
| (仅限制栏目里的文档浏览权限) </td> | |||||
| </tr> | </tr> | ||||
| <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 | <?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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="26" style="padding-left:10px">文件保存目录:</td> | |||||
| <td style="padding:0"> | |||||
| <td height="26" style="padding-left:10px;">文件保存目录:</td> | |||||
| <td> | |||||
| <table border="0" cellspacing="1" cellpadding="1" class="table-borderless"> | <table border="0" cellspacing="1" cellpadding="1" class="table-borderless"> | ||||
| <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> | |||||
| <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> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <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> | <label for="truepath1">上级目录</label> | ||||
| <?php | <?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> | <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> | <label for="truepath3">站点根目录</label> | ||||
| <?php } ?> | <?php } ?> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="26" style="padding-left:10px">栏目列表选项:</td> | |||||
| <td height="26" style="padding-left:10px;">栏目列表选项:</td> | |||||
| <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> | <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> | <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> | <label for="isdefault-1">使用动态页</label> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <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" style="width:100px"></td> | |||||
| <td height="26" class='bline' style="padding-left:10px;">默认页的名称: </td> | |||||
| <td class='bline'> | |||||
| <input name="defaultname" type="text" value="index.html" class="iptxt" /> | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| <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> | <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> | <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> | <label for="ispart2">外部连接(在"文件保存目录"处填写网址)</label> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr id='helpvarco' style='display:none'> | <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> | </td> | ||||
| </tr> | </tr> | ||||
| <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> | |||||
| <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 style="padding:3px 0px 3px 0px"> | |||||
| <input name="cross" type="radio" id="cross0" value="0" class='np' onClick="CheckCross()" checked='1' /> | |||||
| <label for="cross0">不交叉</label> | <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> | <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> | <label for="cross2">手工指定交叉栏目ID(用逗号分开)</label> | ||||
| <br> | |||||
| <br /> | |||||
| <textarea name="crossid" cols="50" rows="3" id="crossid" style="display:none" class="alltxt"></textarea> | <textarea name="crossid" cols="50" rows="3" id="crossid" style="display:none" class="alltxt"></textarea> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'> | <tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'> | ||||
| <td class="bline" style="padding-left:10px">绑定小分类: <br>仅适用[分类信息模型]</td> | |||||
| <td class="bline"> | |||||
| <td class='bline' style="padding-left:10px;">绑定小分类: <br />仅适用[分类信息模型]</td> | |||||
| <td class='bline' style="padding:3px 0px 3px 0px"> | |||||
| <select name='smalltype[]' size='5' style='width:120px' multiple='yes'> | <select name='smalltype[]' size='5' style='width:120px' multiple='yes'> | ||||
| <?php | <?php | ||||
| $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'])) | |||||
| $sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||||
| $dsql->Execute('s',$sql); | |||||
| while($arr = $dsql->GetArray('s')) | |||||
| { | { | ||||
| echo "<option value='{$arr['evalue']}'>└───{$arr['ename']}</option>"; | |||||
| } else { | |||||
| echo "<option value='{$arr['evalue']}'>└─{$arr['ename']}</option>"; | |||||
| 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"; | |||||
| } | |||||
| } | } | ||||
| } | |||||
| ?> | |||||
| </select>按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</a>中管理 | |||||
| ?> | |||||
| </select> | |||||
| 按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“<u>联动类别管理</u>”</a>中管理 | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </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"> | |||||
| <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"> | |||||
| <?php | <?php | ||||
| 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> | |||||
| 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> | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="26" bgcolor="#F3F7EA" style="padding-left:10px">说明:</td> | |||||
| <td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">说明:</td> | |||||
| <td bgcolor="#F3F7EA">如果需要绑定二级域名,必须在“系统参数”中设定“支持多站点”。</td> | <td bgcolor="#F3F7EA">如果需要绑定二级域名,必须在“系统参数”中设定“支持多站点”。</td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td class="bline" height="26" style="padding-left:10px">站点根目录:</td> | |||||
| <td class="bline">为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。</td> | |||||
| <td class='bline' height="24" style="padding-left:10px;">站点根目录:</td> | |||||
| <td class='bline'> | |||||
| 为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。 | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| <?php | <?php | ||||
| } | |||||
| ?> | |||||
| } | |||||
| ?> | |||||
| <tr id='helpvar1' style='display:none'> | <tr id='helpvar1' style='display:none'> | ||||
| <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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="26" bgcolor="#F3F7EA" style="padding-left:10px">规则选项:</td> | |||||
| <td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">规则选项:</td> | |||||
| <td bgcolor="#F3F7EA">按不同的内容类型设定相关模板及命名规则。</td> | <td bgcolor="#F3F7EA">按不同的内容类型设定相关模板及命名规则。</td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr id='helpvar2' style='display:none'> | <tr id='helpvar2' style='display:none'> | ||||
| <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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr id='helpvar3' style='display:none'> | <tr id='helpvar3' style='display:none'> | ||||
| <td height="26" bgcolor="#F3F7EA" style="padding-left:10px">支持变量:</td> | |||||
| <td height="24" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td> | |||||
| <td bgcolor="#F3F7EA">{page} 列表的页码</td> | <td bgcolor="#F3F7EA">{page} 列表的页码</td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="26" style="padding-left:10px">列表命名规则:</td> | |||||
| <td height="26" style="padding-left:10px;">列表命名规则:</td> | |||||
| <td> | <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="60" style="padding-left:10px">关键字:</td> | |||||
| <td><textarea name="keywords" cols="70" rows="4" id="keywords" class="alltxt"></textarea></td> | |||||
| <td height="65" style="padding-left:10px;">关键字:</td> | |||||
| <td> | |||||
| <textarea name="keywords" cols="70" rows="4" id="keywords" class="alltxt"></textarea> | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="60" style="padding-left:10px">栏目描述:</td> | |||||
| <td height="60"><textarea name="description" cols="70" rows="4" id="description" class="alltxt"></textarea></td> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| </table> | </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"> | |||||
| <table width="100%" border="0" cellspacing="0" cellpadding="0" | |||||
| style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="ctset" class="table"> | |||||
| <tr> | <tr> | ||||
| <td height="26" style="padding-left:10px">说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||||
| <td height="28" style="padding-left:10px;"> | |||||
| 说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td style="padding:10px"> | |||||
| <td style="padding:10px;"> | |||||
| <?php | <?php | ||||
| GetEditor("content","","450","Default","print","false"); | GetEditor("content","","450","Default","print","false"); | ||||
| ?> | ?> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||||
| <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF" | |||||
| style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
| <tr> | <tr> | ||||
| <td style="padding:.6rem"> | |||||
| <td width="1%" height="35"></td> | |||||
| <td width="99%" valign="bottom" class="py-3"> | |||||
| <button type="submit" class="btn btn-success">确定</button> | <button type="submit" class="btn btn-success">确定</button> | ||||
| | |||||
| <a href="catalog_main.php" class="btn btn-success">返回</a> | <a href="catalog_main.php" class="btn btn-success">返回</a> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -515,4 +586,5 @@ function CheckCross() { | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||
| @@ -1,116 +1,137 @@ | |||||
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
| <!DOCTYPE html | |||||
| PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||||
| <html xmlns="http://www.w3.org/1999/xhtml"> | <html xmlns="http://www.w3.org/1999/xhtml"> | ||||
| <head> | <head> | ||||
| <meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||||
| <title>栏目管理</title> | |||||
| <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(); | |||||
| <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(); | |||||
| <?php | <?php | ||||
| $i = 0; | $i = 0; | ||||
| foreach($channelArray as $k=> $arr){ | |||||
| echo "channelArray[$k] = \"{$arr['nid']}\";\r\n"; | |||||
| } | |||||
| foreach($channelArray as $k=> $arr){ | |||||
| echo "channelArray[$k] = \"{$arr['nid']}\";\r\n"; | |||||
| } | |||||
| ?> | ?> | ||||
| function Nav() { | |||||
| if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||||
| else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||||
| else return "OT"; | |||||
| } | |||||
| function SelectTemplets(fname) { | |||||
| var posLeft = 200; | |||||
| var posTop = 300; | |||||
| window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=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> | </head> | ||||
| <body leftmargin="15" topmargin="10" bgcolor="#fff"> | |||||
| <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" class="mt-3"> | |||||
| <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"> | |||||
| <tr> | <tr> | ||||
| <td width="100%" height="20" valign="top"> | <td width="100%" height="20" valign="top"> | ||||
| <table width="100%" border="0" cellspacing="0" cellpadding="0"> | <table width="100%" border="0" cellspacing="0" cellpadding="0"> | ||||
| <tr> | <tr> | ||||
| <td height="30"><img src="images/book1.gif"><a href="catalog_main.php">栏目管理</a>>>修改栏目</td> | |||||
| <td height="30"><IMG height=14 src="images/book1.gif" width=20> <a | |||||
| href="catalog_main.php"><u>栏目管理</u></a>>> 修改栏目</td> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| @@ -121,321 +142,372 @@ function CheckCross() { | |||||
| </table> | </table> | ||||
| <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | <table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | ||||
| <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="#fff"> | |||||
| <td height="10"></td> | |||||
| </tr> | |||||
| <tr> | |||||
| <form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit();"> | |||||
| <input type="hidden" name="dopost" value="save" /> | |||||
| <input type="hidden" name="id" value="<?php echo $id; ?>" /> | |||||
| <input type="hidden" name="topid" value="<?php echo $myrow['topid']; ?>" /> | |||||
| <td height="95" align="center" bgcolor="#FFFFFF"> | |||||
| <table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | <table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | ||||
| <tr> | <tr> | ||||
| <td colspan="2" bgcolor="#fff" align="left"> | |||||
| <td colspan="2" bgcolor="#FFFFFF" align="left"> | |||||
| <table border="0" cellpadding="0" cellspacing="0"> | <table border="0" cellpadding="0" cellspacing="0"> | ||||
| <tr> | <tr> | ||||
| <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="100%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | <table width="100%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | ||||
| <tr> | <tr> | ||||
| <td colspan="2" bgcolor="#fff" style="text-align:left"> | |||||
| <table height="26" border="0" cellpadding="0" cellspacing="0"> | |||||
| <td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||||
| <table height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
| <tr> | <tr> | ||||
| <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="100%" border="0" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | <table width="100%" border="0" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | ||||
| <tr> | <tr> | ||||
| <td colspan="2" bgcolor="#fff" style="text-align:left"> | |||||
| <table height="26" border="0" cellpadding="0" cellspacing="0"> | |||||
| <td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||||
| <table height="24" border="0" cellpadding="0" cellspacing="0"> | |||||
| <tr> | <tr> | ||||
| <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> | |||||
| <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> | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;text-align:left;" class="table"> | |||||
| <table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" | |||||
| style="border:1px solid #cfcfcf;background:#ffffff;text-align:left;" class="table"> | |||||
| <tr> | <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> | ||||
| <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> | ||||
| <tr> | <tr> | ||||
| <td class="bline" height="26" style="padding-left:10px">内容模型:</td> | |||||
| <td class="bline"> | |||||
| <select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)"> | |||||
| <?php | |||||
| foreach($channelArray as $k=>$arr) | |||||
| { | |||||
| 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 class='bline' height="26" style="padding-left:10px;"> | |||||
| <font color='red'>内容模型:</font> | |||||
| </td> | </td> | ||||
| </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 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> | |||||
| </td> | </td> | ||||
| <td class='bline'><input name="typename" type="text" id="typename" size="30" | |||||
| value="<?php echo $myrow['typename']?>" class="iptxt" /></td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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> | |||||
| <td class='bline' height="26" style="padding-left:10px;"> 排列顺序: </td> | |||||
| <td class='bline'> <input name="sortrank" size="6" type="text" value="<?php echo $myrow['sortrank']?>" | |||||
| class="iptxt" /> | |||||
| (由低 -> 高) </td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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')) | |||||
| { | |||||
| <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')) | |||||
| { | |||||
| if($myrow['corank']==$row->rank) | 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> | |||||
| </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> | |||||
| 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> | ||||
| <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 class='bline' height="26" style="padding-left:10px;">文件保存目录:</td> | |||||
| <td class='bline'> <input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir']?>" | |||||
| style="width:300px" class="iptxt" /> | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <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" 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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr id='helpvarco' style='display:none'> | <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> | </td> | ||||
| </tr> | </tr> | ||||
| <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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'> | <tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'> | ||||
| <td class="bline" style="padding-left:10px">绑定小分类: <br>仅适用[分类信息模型]</td> | |||||
| <td class="bline"> | |||||
| <td class='bline' style="padding-left:10px;">绑定小分类: <br />仅适用[分类信息模型]</td> | |||||
| <td class='bline' style="padding:3px 0px 3px 0px"> | |||||
| <select name='smalltype[]' size='5' style='width:120px;height: auto;' multiple='yes'> | <select name='smalltype[]' size='5' style='width:120px;height: auto;' multiple='yes'> | ||||
| <?php | <?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')) | |||||
| { | |||||
| 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'])) | |||||
| $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')) | |||||
| { | { | ||||
| echo "<option value='{$arr['evalue']}'{$selstr}> └───{$arr['ename']}</option>\r\n"; | |||||
| } else { | |||||
| echo "<option value='{$arr['evalue']}'{$selstr}> └─{$arr['ename']}</option>\r\n"; | |||||
| 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"; | |||||
| } | |||||
| } | } | ||||
| } | |||||
| ?> | |||||
| </select>按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</a>中管理 | |||||
| ?> | |||||
| </select> | |||||
| 按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“<u>联动类别管理</u>”</a>中管理 | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </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"> | |||||
| <table width="100%" border="0" cellspacing="0" cellpadding="0" | |||||
| style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="adset" class="table"> | |||||
| <tr> | <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" <?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="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> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="26" bgcolor="#F9FCEF" style="padding-left:10px">说明:</td> | |||||
| <td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">说明:</td> | |||||
| <td bgcolor="#F9FCEF">绑名绑定仅需要在顶级栏目设定,子级栏目更改无效。</td> | <td bgcolor="#F9FCEF">绑名绑定仅需要在顶级栏目设定,子级栏目更改无效。</td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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> | |||||
| <td class='bline' height="24" style="padding-left:10px;">绑定域名:</td> | |||||
| <td class='bline'> <input name="siteurl" type="text" id="siteurl" size="35" | |||||
| value="<?php echo $myrow['siteurl']?>" class="iptxt" /> | |||||
| (需加 http://,一级或二级域名的根网址) </td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td class="bline" height="26" style="padding-left:10px">站点根目录:</td> | |||||
| <td class="bline">为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。</td> | |||||
| </tr> | |||||
| <tr id='helpvar1' style='display:none'> | |||||
| <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 class='bline' height="24" style="padding-left:10px;">站点根目录:</td> | |||||
| <td class='bline'> | |||||
| 为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。 | |||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | |||||
| <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')"> | |||||
| <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> | </td> | ||||
| </tr> | </tr> | ||||
| <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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr id='helpvar2' style='display:none'> | <tr id='helpvar2' style='display:none'> | ||||
| <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 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> | </td> | ||||
| </tr> | </tr> | ||||
| <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> | </td> | ||||
| </tr> | </tr> | ||||
| <tr id='helpvar3' style='display:none'> | <tr id='helpvar3' style='display:none'> | ||||
| <td height="26" bgcolor="#F9FCEF" style="padding-left:10px">支持变量:</td> | |||||
| <td height="24" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||||
| <td bgcolor="#F9FCEF">{page} 列表的页码</td> | <td bgcolor="#F9FCEF">{page} 列表的页码</td> | ||||
| </tr> | </tr> | ||||
| <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> | |||||
| <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> | ||||
| <tr> | <tr> | ||||
| <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> | |||||
| <td height="65" style="padding-left:10px;">SEO标题:</td> | |||||
| <td> | |||||
| <input name="seotitle" type="text" style="width:250px" id="seotitle" class="alltxt" | |||||
| value="<?php echo $myrow['seotitle']?>" /> | |||||
| (栏目模板里用{dede:field.seotitle /}调用) | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| <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> | |||||
| <td height="65" style="padding-left:10px;">关键字:</td> | |||||
| <td> <textarea name="keywords" cols="70" rows="4" id="keywords" | |||||
| class="alltxt"><?php echo $myrow['keywords']?></textarea> | |||||
| </td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <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> | |||||
| <td height="65" style="padding-left:10px;">栏目描述:</td> | |||||
| <td height="65"><textarea name="description" cols="70" style="height:50px" rows="4" id="description" | |||||
| class="alltxt"><?php echo $myrow['description']?></textarea></td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td height="45" style="padding-left:10px">继承选项:</td> | |||||
| <td height="45" style="padding-left:10px;">继承选项:</td> | |||||
| <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> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </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"> | |||||
| <table width="100%" border="0" cellspacing="0" cellpadding="0" | |||||
| style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="ctset" class="table"> | |||||
| <tr> | <tr> | ||||
| <td height="26">说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||||
| <td height="28"> 说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||||
| </tr> | </tr> | ||||
| <tr> | <tr> | ||||
| <td style="padding:10px"> | |||||
| <td style="padding:10px;"> | |||||
| <?php | <?php | ||||
| GetEditor("content",$myrow['content'],"450","Default","print","false"); | GetEditor("content",$myrow['content'],"450","Default","print","false"); | ||||
| ?> | ?> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||||
| <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF" | |||||
| style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||||
| <tr> | <tr> | ||||
| <td style="padding:.6rem"> | |||||
| <td width="1%" height="36"></td> | |||||
| <td width="99%" valign="bottom" class="py-3"> | |||||
| <button type="submit" class="btn btn-success">确定</button> | <button type="submit" class="btn btn-success">确定</button> | ||||
| | |||||
| <a href="catalog_main.php" class="btn btn-success">返回</a> | <a href="catalog_main.php" class="btn btn-success">返回</a> | ||||
| </td> | </td> | ||||
| </tr> | </tr> | ||||
| @@ -445,4 +517,5 @@ function CheckCross() { | |||||
| </tr> | </tr> | ||||
| </table> | </table> | ||||
| </body> | </body> | ||||
| </html> | </html> | ||||