|
|
@@ -158,87 +158,87 @@ while ($row = $dsql->GetObject()) { |
|
|
|
PutCookie('lastCid', GetTopid($id), 3600 * 24, "/"); |
|
|
|
if ($dopost == 'time') { |
|
|
|
?> |
|
|
|
<form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit();"> |
|
|
|
<input type="hidden" name="dopost" value="savetime"> |
|
|
|
<input type="hidden" name="id" value="<?php echo $id; ?>"> |
|
|
|
<input type="hidden" name="topid" value="<?php echo $myrow['topid']; ?>"> |
|
|
|
<input type="hidden" name="moresite" value="<?php echo $myrow['moresite']; ?>"> |
|
|
|
<table width="100%" cellpadding="0" cellspacing="0"> |
|
|
|
<tr> |
|
|
|
<td width="160" class="bline" height="26" align="center">是否支持投稿:</td> |
|
|
|
<td class="bline"> |
|
|
|
<label><input type='radio' name='issend' value='0' class='np' <?php if ($myrow['issend'] == "0") echo " checked='1' "; ?>> 不支持</label> |
|
|
|
<label><input type='radio' name='issend' value='1' class='np' <?php if ($myrow['issend'] == "1") echo " checked='1' "; ?>> 支持</label> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="bline" height="26" align="center">内容模型:</td> |
|
|
|
<td class="bline"> |
|
|
|
<?php |
|
|
|
foreach ($channelArray as $k => $arr) { |
|
|
|
if ($k == $channelid) echo "{$arr['typename']} | {$arr['nid']}"; |
|
|
|
} |
|
|
|
?> |
|
|
|
<a href='catalog_edit.php?id=<?php echo $id; ?>' class='btn btn-success btn-sm'>更多模型</a> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="bline" height="26" align="center">栏目名称:</td> |
|
|
|
<td class="bline"><input name="typename" type="text" id="typename" value="<?php echo $myrow['typename'] ?>" style="width:260px" class="iptxt"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="bline" height="26" align="center"> 排列顺序:</td> |
|
|
|
<td class="bline"> <input name="sortrank" type="text" value="<?php echo $myrow['sortrank'] ?>" style="width:100px" class="iptxt">(由低 > 高)</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="bline" height="26" align="center">浏览权限:</td> |
|
|
|
<td class="bline"> |
|
|
|
<select name="corank" id="corank" style="width:100px"> |
|
|
|
<?php |
|
|
|
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0"); |
|
|
|
$dsql->Execute(); |
|
|
|
while ($row = $dsql->GetObject()) { |
|
|
|
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" align="center">文件保存目录:</td> |
|
|
|
<td class="bline"><input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir'] ?>" style="width:260px"class="iptxt"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td height="26" align="center" class="bline">栏目列表选项:</td> |
|
|
|
<td class="bline"> |
|
|
|
<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" align="center">默认页的名称:</td> |
|
|
|
<td class="bline"><input name="defaultname" type="text" value="<?php echo $myrow['defaultname'] ?>" style="width:260px" class="iptxt"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td height="26" class="bline" align="center">栏目属性:</td> |
|
|
|
<td class="bline"> |
|
|
|
<label><input name="ispart" type="radio" id="radio" value="0" class='np' <?php if ($myrow['ispart'] == 0) echo " checked='1' "; ?>> 最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> |
|
|
|
<label><input name="ispart" type="radio" id="radio2" value="1" class='np' <?php if ($myrow['ispart'] == 1) echo " checked='1' "; ?>> 频道封面(栏目本身不允许发布文档)</label><br> |
|
|
|
<label><input name="ispart" type="radio" id="radio3" value="2" class='np' <?php if ($myrow['ispart'] == 2) echo " checked='1' "; ?>> 外部连接(在"文件保存目录"处填写网址)</label> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#F8FCF1" colspan="2" align="center" class="py-3"> |
|
|
|
<button onclick='getSelCat("<?php echo $targetid; ?>");' class='btn btn-success btn-sm'>保存</button> |
|
|
|
<button type='button' onclick='CloseMsg()' class='btn btn-success btn-sm'>关闭</button> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</form> |
|
|
|
<form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit();"> |
|
|
|
<input type="hidden" name="dopost" value="savetime"> |
|
|
|
<input type="hidden" name="id" value="<?php echo $id; ?>"> |
|
|
|
<input type="hidden" name="topid" value="<?php echo $myrow['topid']; ?>"> |
|
|
|
<input type="hidden" name="moresite" value="<?php echo $myrow['moresite']; ?>"> |
|
|
|
<table width="100%" cellpadding="0" cellspacing="0"> |
|
|
|
<tr> |
|
|
|
<td width="160" class="bline" height="26" align="center">是否支持投稿:</td> |
|
|
|
<td class="bline"> |
|
|
|
<label><input type='radio' name='issend' value='0' class='np' <?php if ($myrow['issend'] == "0") echo " checked='1' "; ?>> 不支持</label> |
|
|
|
<label><input type='radio' name='issend' value='1' class='np' <?php if ($myrow['issend'] == "1") echo " checked='1' "; ?>> 支持</label> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="bline" height="26" align="center">内容模型:</td> |
|
|
|
<td class="bline"> |
|
|
|
<?php |
|
|
|
foreach ($channelArray as $k => $arr) { |
|
|
|
if ($k == $channelid) echo "{$arr['typename']} | {$arr['nid']}"; |
|
|
|
} |
|
|
|
?> |
|
|
|
<a href='catalog_edit.php?id=<?php echo $id; ?>' class='btn btn-success btn-sm'>更多模型</a> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="bline" height="26" align="center">栏目名称:</td> |
|
|
|
<td class="bline"><input name="typename" type="text" id="typename" value="<?php echo $myrow['typename'] ?>" style="width:260px" class="iptxt"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="bline" height="26" align="center"> 排列顺序:</td> |
|
|
|
<td class="bline"> <input name="sortrank" type="text" value="<?php echo $myrow['sortrank'] ?>" style="width:100px" class="iptxt">(由低 > 高)</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td class="bline" height="26" align="center">浏览权限:</td> |
|
|
|
<td class="bline"> |
|
|
|
<select name="corank" id="corank" style="width:100px"> |
|
|
|
<?php |
|
|
|
$dsql->SetQuery("SELECT * FROM `#@__arcrank` WHERE `rank` >= 0"); |
|
|
|
$dsql->Execute(); |
|
|
|
while ($row = $dsql->GetObject()) { |
|
|
|
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" align="center">文件保存目录:</td> |
|
|
|
<td class="bline"><input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir'] ?>" style="width:260px"class="iptxt"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td height="26" align="center" class="bline">栏目列表选项:</td> |
|
|
|
<td class="bline"> |
|
|
|
<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" align="center">默认页的名称:</td> |
|
|
|
<td class="bline"><input name="defaultname" type="text" value="<?php echo $myrow['defaultname'] ?>" style="width:260px" class="iptxt"></td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td height="26" class="bline" align="center">栏目属性:</td> |
|
|
|
<td class="bline"> |
|
|
|
<label><input name="ispart" type="radio" id="radio" value="0" class='np' <?php if ($myrow['ispart'] == 0) echo " checked='1' "; ?>> 最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> |
|
|
|
<label><input name="ispart" type="radio" id="radio2" value="1" class='np' <?php if ($myrow['ispart'] == 1) echo " checked='1' "; ?>> 频道封面(栏目本身不允许发布文档)</label><br> |
|
|
|
<label><input name="ispart" type="radio" id="radio3" value="2" class='np' <?php if ($myrow['ispart'] == 2) echo " checked='1' "; ?>> 外部连接(在"文件保存目录"处填写网址)</label> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
<tr> |
|
|
|
<td bgcolor="#F8FCF1" colspan="2" align="center" class="py-3"> |
|
|
|
<button onclick='getSelCat("<?php echo $targetid; ?>");' class='btn btn-success btn-sm'>保存</button> |
|
|
|
<button type='button' onclick='CloseMsg()' class='btn btn-success btn-sm'>关闭</button> |
|
|
|
</td> |
|
|
|
</tr> |
|
|
|
</table> |
|
|
|
</form> |
|
|
|
<?php |
|
|
|
exit(); |
|
|
|
} else { |
|
|
|