@@ -81,6 +81,6 @@ $dlist->Display(); | |||||
function GetSta($sta) | function GetSta($sta) | ||||
{ | { | ||||
if ($sta == 1) return ''; | if ($sta == 1) return ''; | ||||
else return 'checked="1"'; | |||||
else return 'checked="checked"'; | |||||
} | } | ||||
?> | ?> |
@@ -74,7 +74,7 @@ function getTypeOptions($id=0,$sep="└") | |||||
$dsql->Execute($id); | $dsql->Execute($id); | ||||
while ($nrow = $dsql->GetObject($id)) { | while ($nrow = $dsql->GetObject($id)) { | ||||
$isDisabled = $nrow->ispart==2? " disabled" : ""; | $isDisabled = $nrow->ispart==2? " disabled" : ""; | ||||
$typeOptions .= "<option value='{$nrow->id}'{$isDisabled}>{$sep}{$nrow->typename}</option>\r\n"; | |||||
$typeOptions .= "<option value='{$nrow->id}'{$isDisabled}>{$sep} {$nrow->typename}</option>\r\n"; | |||||
getTypeOptions($nrow->id, $sep."─"); | getTypeOptions($nrow->id, $sep."─"); | ||||
} | } | ||||
} | } | ||||
@@ -115,7 +115,7 @@ function getTypeOptions($id=0,$sep="└") | |||||
$dsql->Execute($id); | $dsql->Execute($id); | ||||
while ($nrow = $dsql->GetObject($id)) { | while ($nrow = $dsql->GetObject($id)) { | ||||
$isDisabled = $nrow->ispart==2? " disabled" : ""; | $isDisabled = $nrow->ispart==2? " disabled" : ""; | ||||
$typeOptions .= "<option value='{$nrow->id}' ".(in_array($nrow->id, $typeids) ? ' selected' : '')."{$isDisabled}>{$sep}{$nrow->typename}</option>\r\n"; | |||||
$typeOptions .= "<option value='{$nrow->id}' ".(in_array($nrow->id, $typeids) ? ' selected' : '')."{$isDisabled}>{$sep} {$nrow->typename}</option>\r\n"; | |||||
getTypeOptions($nrow->id, $sep."─"); | getTypeOptions($nrow->id, $sep."─"); | ||||
} | } | ||||
} | } | ||||
@@ -64,7 +64,7 @@ | |||||
<tr> | <tr> | ||||
<td>时间限制:</td> | <td>时间限制:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="timeset" value="0" checked="1"> 永不过期</label> | |||||
<label><input type="radio" name="timeset" value="0" checked="checked"> 永不过期</label> | |||||
<label><input type="radio" name="timeset" value="1"> 在设内时间内有效</label> | <label><input type="radio" name="timeset" value="1"> 在设内时间内有效</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -55,8 +55,8 @@ | |||||
<tr> | <tr> | ||||
<td>时间限制:</td> | <td>时间限制:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="timeset" value="0" <?php if ($row['timeset']==0) echo "checked='1'";?>> 永不过期</label> | |||||
<label><input type="radio" name="timeset" value="1" <?php if ($row['timeset']==1) echo "checked='1'";?>> 在设内时间内有效</label> | |||||
<label><input type="radio" name="timeset" value="0" <?php if ($row['timeset']==0) echo "checked='checked'";?>> 永不过期</label> | |||||
<label><input type="radio" name="timeset" value="1" <?php if ($row['timeset']==1) echo "checked='checked'";?>> 在设内时间内有效</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -30,14 +30,14 @@ | |||||
<tr> | <tr> | ||||
<td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>" /><?php echo $row->id;?></td> | <td><input type="hidden" name="ID_<?php echo $k?>" value="<?php echo $row->id?>" /><?php echo $row->id;?></td> | ||||
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" id="pname_<?php echo $k?>" class="w-100"></td> | <td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" id="pname_<?php echo $k?>" class="w-100"></td> | ||||
<td><label><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked="1"> 保留</label></td> | |||||
<td><label><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked="checked"> 保留</label></td> | |||||
</tr> | </tr> | ||||
<?php }?> | <?php }?> | ||||
<input type="hidden" name="idend" value="<?php echo $k?>"> | <input type="hidden" name="idend" value="<?php echo $k?>"> | ||||
<tr> | <tr> | ||||
<td></td> | <td></td> | ||||
<td><input type="text" name="pname_new" id="pname_new"class="w-100"></td> | <td><input type="text" name="pname_new" id="pname_new"class="w-100"></td> | ||||
<td><label><input type="checkbox" name="check_new" id="check_new" value="1" checked="1"> 新增</label></td> | |||||
<td><label><input type="checkbox" name="check_new" id="check_new" value="1" checked="checked"> 新增</label></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td bgcolor="#f5f5f5" colspan="3" align="center"><input name="submit" type="submit" class="btn btn-success btn-sm" value="确定"></td> | <td bgcolor="#f5f5f5" colspan="3" align="center"><input name="submit" type="submit" class="btn btn-success btn-sm" value="确定"></td> | ||||
@@ -198,9 +198,9 @@ | |||||
<tr> | <tr> | ||||
<td width="120">表现方式:</td> | <td width="120">表现方式:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo " checked='checked'";?>> <img src="../static/web/img/alb2.jpg" title="单页多图样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo " checked='checked'";?>> <img src="../static/web/img/alb1.jpg" title="幻灯片样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo " checked='checked'";?>> <img src="../static/web/img/alb3.jpg" title="多缩略图样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($cfg_album_style==1) echo "checked='checked'";?>> <img src="../static/web/img/alb2.jpg" title="单页多图样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($cfg_album_style==2) echo "checked='checked'";?>> <img src="../static/web/img/alb1.jpg" title="幻灯片样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($cfg_album_style==3) echo "checked='checked'";?>> <img src="../static/web/img/alb3.jpg" title="多缩略图样式"></label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -284,8 +284,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120">评论选项:</td> | <td width="120">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='checked'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='checked'";?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
@@ -60,7 +60,7 @@ | |||||
if (preg_match("#".$trow->att."#", $arcRow['flag'])) | if (preg_match("#".$trow->att."#", $arcRow['flag'])) | ||||
echo "<label class='mr-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | echo "<label class='mr-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | ||||
else | else | ||||
echo "<label class='mr-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label>"; | |||||
echo "<label class='mr-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label>"; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -189,9 +189,9 @@ | |||||
<tr> | <tr> | ||||
<td width="120">表现方式:</td> | <td width="120">表现方式:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($pagestyle==1) echo " checked='checked'";?>> <img src="../static/web/img/alb2.jpg" title="单页多图样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($pagestyle==2) echo " checked='checked'";?>> <img src="../static/web/img/alb1.jpg" title="幻灯片样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($pagestyle==3) echo " checked='checked'";?>> <img src="../static/web/img/alb3.jpg" title="多缩略图样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle1" onclick="checkMuList()" value="1" <?php if ($pagestyle==1) echo "checked='checked'";?>> <img src="../static/web/img/alb2.jpg" title="单页多图样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle2" onclick="checkMuList()" value="2" <?php if ($pagestyle==2) echo "checked='checked'";?>> <img src="../static/web/img/alb1.jpg" title="幻灯片样式"></label> | |||||
<label><input type="radio" name="pagestyle" id="pagestyle3" onclick="checkMuList()" value="3" <?php if ($pagestyle==3) echo "checked='checked'";?>> <img src="../static/web/img/alb3.jpg" title="多缩略图样式"></label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -319,8 +319,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120">评论选项:</td> | <td width="120">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label> | |||||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='checked'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='checked'";?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
@@ -200,11 +200,11 @@ | |||||
<tr> | <tr> | ||||
<td width="120">附加选项:</td> | <td width="120">附加选项:</td> | ||||
<td> | <td> | ||||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked="1"';?>> 下载远程图片和资源</label> | |||||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked="1"';?>> 删除非站内链接</label> | |||||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked="checked"';?>> 下载远程图片和资源</label> | |||||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked="checked"';?>> 删除非站内链接</label> | |||||
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a> | <a href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a> | ||||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked="1"';?>> 提取第一个图片为缩略图</label> | |||||
<label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup=='1') echo 'checked="1"';?>> 图片是否加水印</label> | |||||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked="checked"';?>> 提取第一个图片为缩略图</label> | |||||
<label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup=='1') echo 'checked="checked"';?>> 图片是否加水印</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -217,8 +217,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120" width="260">评论选项:</td> | <td width="120" width="260">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='checked'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='checked'";?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
@@ -55,7 +55,7 @@ | |||||
if (preg_match("#".$trow->att."#", $arcRow['flag'])) | if (preg_match("#".$trow->att."#", $arcRow['flag'])) | ||||
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label> "; | echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label> "; | ||||
else | else | ||||
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||||
echo "<label><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -193,8 +193,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120">附加选项:</td> | <td width="120">附加选项:</td> | ||||
<td> | <td> | ||||
<label><input name="remote" type="checkbox" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked="1" ';?>> 下载远程图片和资源</label> | |||||
<label><input name="autolitpic" type="checkbox" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked="1" ';?>> 提取第一个图片为缩略图</label> | |||||
<label><input name="remote" type="checkbox" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked="checked" ';?>> 下载远程图片和资源</label> | |||||
<label><input name="autolitpic" type="checkbox" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked="checked" ';?>> 提取第一个图片为缩略图</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -206,8 +206,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120" width="260">评论选项:</td> | <td width="120" width="260">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type='radio' name='notpost' value='0' <?php if ($arcRow['notpost']==0) echo " checked='1' ";?>> 允许评论</label> | |||||
<label><input type='radio' name='notpost' value='1' <?php if ($arcRow['notpost']==1) echo " checked='1' ";?>> 禁止评论</label> | |||||
<label><input type='radio' name='notpost' value='0' <?php if ($arcRow['notpost']==0) echo " checked='checked' ";?>> 允许评论</label> | |||||
<label><input type='radio' name='notpost' value='1' <?php if ($arcRow['notpost']==1) echo " checked='checked' ";?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
@@ -170,7 +170,7 @@ | |||||
<button type="button" name="Submit" onclick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">选择</button> | <button type="button" name="Submit" onclick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">选择</button> | ||||
</td> | </td> | ||||
<td> | <td> | ||||
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked="1"';?>> 自动获取</label> | |||||
<label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked="checked"';?>> 自动获取</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -192,10 +192,10 @@ | |||||
<tr> | <tr> | ||||
<td width="120">附加选项:</td> | <td width="120">附加选项:</td> | ||||
<td> | <td> | ||||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked="1"';?>> 下载远程图片和资源</label> | |||||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked="1"';?>> 删除非站内链接</label> | |||||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked="checked"';?>> 下载远程图片和资源</label> | |||||
<label><input type="checkbox" name="dellink" id="dellink" value="1" <?php if ($cfg_arc_dellink=='Y') echo 'checked="checked"';?>> 删除非站内链接</label> | |||||
<a href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a> | <a href="javascript:OpenMyWin('article_allowurl_edit.php');">[设置]</a> | ||||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked="1"';?>> 提取第一个图片为缩略图</label> | |||||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked="checked"';?>> 提取第一个图片为缩略图</label> | |||||
<label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup=='1') echo "checked";?>> 图片是否加水印</label> | <label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup=='1') echo "checked";?>> 图片是否加水印</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -208,8 +208,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120">分页方式:</td> | <td width="120">分页方式:</td> | ||||
<td> | <td> | ||||
<label class="l-height-28"><input type="radio" name="sptype" value="hand" <?php if ($cfg_arcautosp=='N') echo "checked='1'"?>> 手动</label> | |||||
<label class="l-height-28"><input type="radio" name="sptype" value="auto" <?php if ($cfg_arcautosp=='Y') echo "checked='1'"?>> 自动</label> | |||||
<label class="l-height-28"><input type="radio" name="sptype" value="hand" <?php if ($cfg_arcautosp=='N') echo "checked='checked'"?>> 手动</label> | |||||
<label class="l-height-28"><input type="radio" name="sptype" value="auto" <?php if ($cfg_arcautosp=='Y') echo "checked='checked'"?>> 自动</label> | |||||
<label>大小:<input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" class="admin-input-xs"> K(分页符为:#p#分页标题#e#)</label> | <label>大小:<input name="spsize" type="text" id="spsize" value="<?php echo $cfg_arcautosp_size?>" class="admin-input-xs"> K(分页符为:#p#分页标题#e#)</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -226,12 +226,12 @@ | |||||
<tr> | <tr> | ||||
<td width="120">评论选项:</td> | <td width="120">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='checked'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='checked'";?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="ishtml" value="1" checked="1"> 生成网页</label> | |||||
<label><input type="radio" name="ishtml" value="1" checked="checked"> 生成网页</label> | |||||
<label><input type="radio" name="ishtml" value="0"> 仅动态浏览</label> | <label><input type="radio" name="ishtml" value="0"> 仅动态浏览</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -189,8 +189,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120">附加选项:</td> | <td width="120">附加选项:</td> | ||||
<td> | <td> | ||||
<label><input name="remote" type="checkbox" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked="1" ';?>> 下载远程图片和资源</label> | |||||
<label><input name="autolitpic" type="checkbox" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked="1" ';?>> 提取第一个图片为缩略图</label> | |||||
<label><input name="remote" type="checkbox" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo ' checked="checked" ';?>> 下载远程图片和资源</label> | |||||
<label><input name="autolitpic" type="checkbox" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo ' checked="checked" ';?>> 提取第一个图片为缩略图</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -205,8 +205,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120">评论选项:</td> | <td width="120">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo " checked='1' ";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo " checked='1' ";?>> 禁止评论</label> | |||||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='checked'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='checked'";?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
@@ -37,7 +37,7 @@ | |||||
</tr> | </tr> | ||||
{dede:datalist empty='<tr><td colspan="5" align="center">暂无文档</td></tr>'} | {dede:datalist empty='<tr><td colspan="5" align="center">暂无文档</td></tr>'} | ||||
<tr align="center"> | <tr align="center"> | ||||
<td><input type="checkbox" name="aids[]" value="{dede:field.aid/}" checked="1"></td> | |||||
<td><input type="checkbox" name="aids[]" value="{dede:field.aid/}" checked="checked"></td> | |||||
<td><input type="hidden" name="keyword_{dede:field.aid/}" class="admin-input-lg" value="{dede:field.keyword/}">{dede:field.keyword/}</td> | <td><input type="hidden" name="keyword_{dede:field.aid/}" class="admin-input-lg" value="{dede:field.keyword/}">{dede:field.keyword/}</td> | ||||
<td> | <td> | ||||
<input type="hidden" name="rpurlold_{dede:field.aid/}" value="{dede:field.rpurl/}"> | <input type="hidden" name="rpurlold_{dede:field.aid/}" value="{dede:field.rpurl/}"> | ||||
@@ -37,7 +37,7 @@ | |||||
<tr> | <tr> | ||||
<td>删除选项:</td> | <td>删除选项:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="deltype" value="delnew" checked="1"> 保留最旧的一条</label> | |||||
<label><input type="radio" name="deltype" value="delnew" checked="checked"> 保留最旧的一条</label> | |||||
<label><input type="radio" name="deltype" value="delold"> 保留最新的一条</label> | <label><input type="radio" name="deltype" value="delold"> 保留最新的一条</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -42,7 +42,7 @@ | |||||
<td>密码类型:</td> | <td>密码类型:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="ctype" value="1"> 纯数字</label> | <label><input type="radio" name="ctype" value="1"> 纯数字</label> | ||||
<label><input type="radio" name="ctype" value="2" checked="1"> 大写字母</label> | |||||
<label><input type="radio" name="ctype" value="2" checked="checked"> 大写字母</label> | |||||
</td> | </td> | ||||
<td>密码组数:</td> | <td>密码组数:</td> | ||||
<td><input name="pwdgr" type="text" id="pwdgr" class="admin-input-sm" value="3"></td> | <td><input name="pwdgr" type="text" id="pwdgr" class="admin-input-sm" value="3"></td> | ||||
@@ -34,7 +34,7 @@ | |||||
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" id="pname_<?php echo $k?>" style="width:90%"></td> | <td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->pname?>" id="pname_<?php echo $k?>" style="width:90%"></td> | ||||
<td><input type="text" name="num_<?php echo $k?>" value="<?php echo $row->num?>" id="num_<?php echo $k?>" style="width:80%"></td> | <td><input type="text" name="num_<?php echo $k?>" value="<?php echo $row->num?>" id="num_<?php echo $k?>" style="width:80%"></td> | ||||
<td><input type="text" name="money_<?php echo $k?>" value="<?php echo $row->money?>" id="money_<?php echo $k?>" style="width:80%">(元)</td> | <td><input type="text" name="money_<?php echo $k?>" value="<?php echo $row->money?>" id="money_<?php echo $k?>" style="width:80%">(元)</td> | ||||
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked="1"> 保留</td> | |||||
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked="checked"> 保留</td> | |||||
</tr> | </tr> | ||||
<?php }?> | <?php }?> | ||||
<input type="hidden" name="idend" value="<?php echo $k?>"> | <input type="hidden" name="idend" value="<?php echo $k?>"> | ||||
@@ -42,7 +42,7 @@ | |||||
<td><input type="text" name="pname_new" id="pname_new" style="width:90%"></td> | <td><input type="text" name="pname_new" id="pname_new" style="width:90%"></td> | ||||
<td><input type="text" name="num_new" id="num_new" style="width:80%" value="100"></td> | <td><input type="text" name="num_new" id="num_new" style="width:80%" value="100"></td> | ||||
<td><input type="text" name="money_new" id="money_new" style="width:80%" value="30">(元)</td> | <td><input type="text" name="money_new" id="money_new" style="width:80%" value="30">(元)</td> | ||||
<td align="center"><input type="checkbox" name="check_new" id="check_new" value="1" checked="1"> 新增</td> | |||||
<td align="center"><input type="checkbox" name="check_new" id="check_new" value="1" checked="checked"> 新增</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td bgcolor="#f5f5f5" colspan="4" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td> | <td bgcolor="#f5f5f5" colspan="4" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td> | ||||
@@ -67,7 +67,7 @@ | |||||
} else if (preg_match("#\.#", $arr['evalue'])) { | } else if (preg_match("#\.#", $arr['evalue'])) { | ||||
echo "<option value='{$arr['evalue']}'>└── {$arr['ename']}</option>"; | echo "<option value='{$arr['evalue']}'>└── {$arr['ename']}</option>"; | ||||
} else { | } else { | ||||
echo "<option value='{$arr['evalue']}'>└─{$arr['ename']}</option>"; | |||||
echo "<option value='{$arr['evalue']}'>└─ {$arr['ename']}</option>"; | |||||
} | } | ||||
} | } | ||||
?> | ?> | ||||
@@ -165,7 +165,7 @@ | |||||
</td> | </td> | ||||
<td>栏目交叉:</td> | <td>栏目交叉:</td> | ||||
<td> | <td> | ||||
<label class="l-height-28"><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross()" checked="1"> 不交叉</label> | |||||
<label class="l-height-28"><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross()" checked="checked"> 不交叉</label> | |||||
<label class="l-height-28"><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross()"> 自动获取同名栏目文档</label> | <label class="l-height-28"><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross()"> 自动获取同名栏目文档</label> | ||||
<label class="l-height-28"><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross()"> 手工指定交叉栏目id(用英文逗号)</label> | <label class="l-height-28"><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross()"> 手工指定交叉栏目id(用英文逗号)</label> | ||||
<span onclick="ShowHide('helpvarco')" title="帮助" class="btn btn-success btn-sm"><i class="fa fa-question-circle"></i></span><br> | <span onclick="ShowHide('helpvarco')" title="帮助" class="btn btn-success btn-sm"><i class="fa fa-question-circle"></i></span><br> | ||||
@@ -236,8 +236,8 @@ | |||||
<p>{typedir} 栏目保存目录</p> | <p>{typedir} 栏目保存目录</p> | ||||
<p>{cc} 日期加混编id后用转换为适合字母</p> | <p>{cc} 日期加混编id后用转换为适合字母</p> | ||||
<p>伪静态规则(Nginx)</p> | <p>伪静态规则(Nginx)</p> | ||||
<p>rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1;</p> | |||||
<span>rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span> | |||||
<p>rewrite ^/doc-([0-9]+).html$ /apps/view.php?arcID=$1;</p> | |||||
<span>rewrite ^/doc-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
<td>SEO标题:</td> | <td>SEO标题:</td> | ||||
@@ -21,12 +21,12 @@ | |||||
<tr> | <tr> | ||||
<td width="10%">是否支持投稿:</td> | <td width="10%">是否支持投稿:</td> | ||||
<td width="40%"> | <td width="40%"> | ||||
<label><input type="radio" name="issend" value="1" checked="1"> 支持</label> | |||||
<label><input type="radio" name="issend" value="1" checked="checked"> 支持</label> | |||||
<label><input type="radio" name="issend" value="0"> 不支持</label> | <label><input type="radio" name="issend" value="0"> 不支持</label> | ||||
</td> | </td> | ||||
<td width="10%">目录保存位置:</td> | <td width="10%">目录保存位置:</td> | ||||
<td width="40%"> | <td width="40%"> | ||||
<label><input type="radio" name="referpath" value="parent" checked="1"> 默认网页目录( | |||||
<label><input type="radio" name="referpath" value="parent" checked="checked"> 默认网页目录( | |||||
<?php | <?php | ||||
$pardir = '{cmspath}'.$cfg_arcdir; | $pardir = '{cmspath}'.$cfg_arcdir; | ||||
if (!empty($typedir)) $pardir = $typedir.'/'; | if (!empty($typedir)) $pardir = $typedir.'/'; | ||||
@@ -63,7 +63,7 @@ | |||||
<tr> | <tr> | ||||
<td>栏目列表选项:</td> | <td>栏目列表选项:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="isdefault" value="1" checked="1"> 链接到默认页</label> | |||||
<label><input type="radio" name="isdefault" value="1" checked="checked"> 链接到默认页</label> | |||||
<label><input type="radio" name="isdefault" value="0"> 链接到列表第一页</label> | <label><input type="radio" name="isdefault" value="0"> 链接到列表第一页</label> | ||||
<label><input type="radio" name="isdefault" value="-1"> 使用动态页</label> | <label><input type="radio" name="isdefault" value="-1"> 使用动态页</label> | ||||
</td> | </td> | ||||
@@ -96,8 +96,8 @@ | |||||
<p>{typedir} 栏目保存目录</p> | <p>{typedir} 栏目保存目录</p> | ||||
<p>{cc} 日期加混编id后用转换为适合字母</p> | <p>{cc} 日期加混编id后用转换为适合字母</p> | ||||
<p>伪静态规则(Nginx)</p> | <p>伪静态规则(Nginx)</p> | ||||
<p>rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1;</p> | |||||
<span>rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span> | |||||
<p>rewrite ^/doc-([0-9]+).html$ /apps/view.php?arcID=$1;</p> | |||||
<span>rewrite ^/doc-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
<td>默认页的名称:</td> | <td>默认页的名称:</td> | ||||
@@ -23,13 +23,13 @@ | |||||
<tr> | <tr> | ||||
<td width="10%">是否支持投稿:</td> | <td width="10%">是否支持投稿:</td> | ||||
<td width="40%"> | <td width="40%"> | ||||
<label><input type="radio" name="issend" value="1" <?php if ($myrow['issend']=="1") echo "checked='1'";?>> 支持</label> | |||||
<label><input type="radio" name="issend" value="0" <?php if ($myrow['issend']=="0") echo "checked='1'";?>> 不支持</label> | |||||
<label><input type="radio" name="issend" value="1" <?php if ($myrow['issend']=="1") echo "checked='checked'";?>> 支持</label> | |||||
<label><input type="radio" name="issend" value="0" <?php if ($myrow['issend']=="0") echo "checked='checked'";?>> 不支持</label> | |||||
</td> | </td> | ||||
<td width="10%">是否隐藏栏目:</td> | <td width="10%">是否隐藏栏目:</td> | ||||
<td width="40%"> | <td width="40%"> | ||||
<label><input type="radio" name="ishidden" value="0" <?php if ($myrow['ishidden']=="0") echo "checked='1'";?>> 显示</label> | |||||
<label><input type="radio" name="ishidden" value="1" <?php if ($myrow['ishidden']=="1") echo "checked='1'";?>> 隐藏</label> | |||||
<label><input type="radio" name="ishidden" value="0" <?php if ($myrow['ishidden']=="0") echo "checked='checked'";?>> 显示</label> | |||||
<label><input type="radio" name="ishidden" value="1" <?php if ($myrow['ishidden']=="1") echo "checked='checked'";?>> 隐藏</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -63,7 +63,7 @@ | |||||
} else if (preg_match("#\.#", $arr['evalue'])) { | } else if (preg_match("#\.#", $arr['evalue'])) { | ||||
echo "<option value='{$arr['evalue']}'{$selstr}>└── {$arr['ename']}</option>"; | echo "<option value='{$arr['evalue']}'{$selstr}>└── {$arr['ename']}</option>"; | ||||
} else { | } else { | ||||
echo "<option value='{$arr['evalue']}'{$selstr}>└─{$arr['ename']}</option>"; | |||||
echo "<option value='{$arr['evalue']}'{$selstr}>└─ {$arr['ename']}</option>"; | |||||
} | } | ||||
} | } | ||||
?> | ?> | ||||
@@ -135,9 +135,9 @@ | |||||
<tr> | <tr> | ||||
<td>栏目列表选项:</td> | <td>栏目列表选项:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="isdefault" value="1" <?php if ($myrow['isdefault']==1) echo "checked='1'";?>> 链接到默认页</label> | |||||
<label><input type="radio" name="isdefault" value="0" <?php if ($myrow['isdefault']==0) echo "checked='1'";?>> 链接到列表第一页</label> | |||||
<label><input type="radio" name="isdefault" value="-1" <?php if ($myrow['isdefault']==-1) echo "checked='1'";?>> 使用动态页</label> | |||||
<label><input type="radio" name="isdefault" value="1" <?php if ($myrow['isdefault']==1) echo "checked='checked'";?>> 链接到默认页</label> | |||||
<label><input type="radio" name="isdefault" value="0" <?php if ($myrow['isdefault']==0) echo "checked='checked'";?>> 链接到列表第一页</label> | |||||
<label><input type="radio" name="isdefault" value="-1" <?php if ($myrow['isdefault']==-1) echo "checked='checked'";?>> 使用动态页</label> | |||||
</td> | </td> | ||||
<td>默认页的名称:</td> | <td>默认页的名称:</td> | ||||
<td><input type="text" name="defaultname" value="<?php echo $myrow['defaultname']?>" class="admin-input-lg"></td> | <td><input type="text" name="defaultname" value="<?php echo $myrow['defaultname']?>" class="admin-input-lg"></td> | ||||
@@ -145,15 +145,15 @@ | |||||
<tr> | <tr> | ||||
<td>栏目属性:</td> | <td>栏目属性:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="ispart" value="0" <?php if ($myrow['ispart']==0) echo "checked='1'";?>> 列表栏目(允许发布)</label> | |||||
<label><input type="radio" name="ispart" value="1" <?php if ($myrow['ispart']==1) echo "checked='1'";?>> 封面栏目(不允许发布)</label> | |||||
<label><input type="radio" name="ispart" value="2" <?php if ($myrow['ispart']==2) echo "checked='1'";?>> 外部栏目(文件保存目录填写链接)</label> | |||||
<label><input type="radio" name="ispart" value="0" <?php if ($myrow['ispart']==0) echo "checked='checked'";?>> 列表栏目(允许发布)</label> | |||||
<label><input type="radio" name="ispart" value="1" <?php if ($myrow['ispart']==1) echo "checked='checked'";?>> 封面栏目(不允许发布)</label> | |||||
<label><input type="radio" name="ispart" value="2" <?php if ($myrow['ispart']==2) echo "checked='checked'";?>> 外部栏目(文件保存目录填写链接)</label> | |||||
</td> | </td> | ||||
<td>栏目交叉:</td> | <td>栏目交叉:</td> | ||||
<td> | <td> | ||||
<label class="l-height-28"><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross()" <?php if ($myrow['cross']==0) echo "checked='1'";?>> 不交叉</label> | |||||
<label class="l-height-28"><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross()" <?php if ($myrow['cross']==1) echo "checked='1'";?>> 自动获取同名栏目文档</label> | |||||
<label class="l-height-28"><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross()" <?php if ($myrow['cross']==2) echo "checked='1'";?>> 手工指定交叉栏目id(用英文逗号)</label> | |||||
<label class="l-height-28"><input type="radio" name="cross" id="cross0" value="0" onclick="CheckCross()" <?php if ($myrow['cross']==0) echo "checked='checked'";?>> 不交叉</label> | |||||
<label class="l-height-28"><input type="radio" name="cross" id="cross1" value="1" onclick="CheckCross()" <?php if ($myrow['cross']==1) echo "checked='checked'";?>> 自动获取同名栏目文档</label> | |||||
<label class="l-height-28"><input type="radio" name="cross" id="cross2" value="2" onclick="CheckCross()" <?php if ($myrow['cross']==2) echo "checked='checked'";?>> 手工指定交叉栏目id(用英文逗号)</label> | |||||
<span onclick="ShowHide('helpvarco')" title="帮助" class="btn btn-success btn-sm"><i class="fa fa-question-circle"></i></span><br> | <span onclick="ShowHide('helpvarco')" title="帮助" class="btn btn-success btn-sm"><i class="fa fa-question-circle"></i></span><br> | ||||
<textarea name="crossid" id="crossid" class="admin-textarea-sm" style="<?php if ($myrow['cross']!=2) echo'display:none';?>"><?php echo $myrow['crossid'];?></textarea> | <textarea name="crossid" id="crossid" class="admin-textarea-sm" style="<?php if ($myrow['cross']!=2) echo'display:none';?>"><?php echo $myrow['crossid'];?></textarea> | ||||
<div id="helpvarco" class="alert alert-info my-2" style="display:none">交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好。注:会自动索引交叉栏目的文档,但不会索引交叉栏目下级栏目的文档,这种应用也适用于按地区划分资讯的站点</div> | <div id="helpvarco" class="alert alert-info my-2" style="display:none">交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好。注:会自动索引交叉栏目的文档,但不会索引交叉栏目下级栏目的文档,这种应用也适用于按地区划分资讯的站点</div> | ||||
@@ -162,8 +162,8 @@ | |||||
<tr> | <tr> | ||||
<td width="260">多站点支持:</td> | <td width="260">多站点支持:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="moresite" value="1" <?php if ($myrow['moresite']==1) echo "checked='1'";?>> 启用</label> | |||||
<label><input type="radio" name="moresite" value="0" <?php if ($myrow['moresite']==0) echo "checked='1'";?>> 不启用</label>(只需要顶级栏目设置,子级栏目修改无效) | |||||
<label><input type="radio" name="moresite" value="1" <?php if ($myrow['moresite']==1) echo "checked='checked'";?>> 启用</label> | |||||
<label><input type="radio" name="moresite" value="0" <?php if ($myrow['moresite']==0) echo "checked='checked'";?>> 不启用</label>(只需要顶级栏目设置,子级栏目修改无效) | |||||
</td> | </td> | ||||
<td>绑定域名:</td> | <td>绑定域名:</td> | ||||
<td><input type="text" name="siteurl" id="siteurl" value="<?php echo $myrow['siteurl']?>" class="admin-input-lg">(需要加http开头的链接)</td> | <td><input type="text" name="siteurl" id="siteurl" value="<?php echo $myrow['siteurl']?>" class="admin-input-lg">(需要加http开头的链接)</td> | ||||
@@ -220,8 +220,8 @@ | |||||
<p>{typedir} 栏目保存目录</p> | <p>{typedir} 栏目保存目录</p> | ||||
<p>{cc} 日期加混编id后用转换为适合字母</p> | <p>{cc} 日期加混编id后用转换为适合字母</p> | ||||
<p>伪静态规则(Nginx)</p> | <p>伪静态规则(Nginx)</p> | ||||
<p>rewrite ^/([0-9]+).html$ /apps/view.php?arcID=$1;</p> | |||||
<span>rewrite ^/([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span> | |||||
<p>rewrite ^/doc-([0-9]+).html$ /apps/view.php?arcID=$1;</p> | |||||
<span>rewrite ^/doc-([0-9]+)-([0-9]+).html$ /apps/view.php?aid=$1&pageno=$2;</span> | |||||
</div> | </div> | ||||
</td> | </td> | ||||
<td>SEO标题:</td> | <td>SEO标题:</td> | ||||
@@ -248,8 +248,8 @@ | |||||
<td>是否支持跨站调用:</td> | <td>是否支持跨站调用:</td> | ||||
<td> | <td> | ||||
<input value="<?php echo $myrow['apikey']?>" type="text" name="apikey" id="apikey" class="admin-input-lg" placeholder="请输入跨站调用秘钥"> | <input value="<?php echo $myrow['apikey']?>" type="text" name="apikey" id="apikey" class="admin-input-lg" placeholder="请输入跨站调用秘钥"> | ||||
<label><input type="radio" name="apienabled" value="1" <?php if ($myrow['apienabled']=="1") echo "checked='1'";?>> 支持</label> | |||||
<label><input type="radio" name="apienabled" value="0" <?php if ($myrow['apienabled']=="0") echo "checked='1'";?>> 不支持</label> | |||||
<label><input type="radio" name="apienabled" value="1" <?php if ($myrow['apienabled']=="1") echo "checked='checked'";?>> 支持</label> | |||||
<label><input type="radio" name="apienabled" value="0" <?php if ($myrow['apienabled']=="0") echo "checked='checked'";?>> 不支持</label> | |||||
<span class="btn btn-success btn-sm ml-2" title="更新秘钥" onclick="makeAPIKey()"><i class="fa fa-repeat"></i></span> | <span class="btn btn-success btn-sm ml-2" title="更新秘钥" onclick="makeAPIKey()"><i class="fa fa-repeat"></i></span> | ||||
<span class="btn btn-success btn-sm" title="秘钥标签" onclick="showAPI(<?php echo $id;?>)"><i class="fa fa-question-circle"></i></span> | <span class="btn btn-success btn-sm" title="秘钥标签" onclick="showAPI(<?php echo $id;?>)"><i class="fa fa-question-circle"></i></span> | ||||
</td> | </td> | ||||
@@ -59,7 +59,7 @@ | |||||
<tr> | <tr> | ||||
<td>文档操作:</td> | <td>文档操作:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="action" value="check" onclick="ShowHideMove()" checked="1"> 审核文档</label> | |||||
<label><input type="radio" name="action" value="check" onclick="ShowHideMove()" checked="checked"> 审核文档</label> | |||||
<label><input type="radio" name="action" value="makehtml" onclick="ShowHideMove()"> 更新网页</label> | <label><input type="radio" name="action" value="makehtml" onclick="ShowHideMove()"> 更新网页</label> | ||||
<label><input type="radio" name="action" value="move" onclick="ShowHideMove()"> 移动文档</label> | <label><input type="radio" name="action" value="move" onclick="ShowHideMove()"> 移动文档</label> | ||||
<label><input type="radio" name="action" value="del" onclick="ShowHideMove()"> 删除文档</label> | <label><input type="radio" name="action" value="del" onclick="ShowHideMove()"> 删除文档</label> | ||||
@@ -58,7 +58,7 @@ | |||||
<td>前台列表和文档页公开:</td> | <td>前台列表和文档页公开:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="public" value="2"> 完全公开</label> | <label><input type="radio" name="public" value="2"> 完全公开</label> | ||||
<label><input type="radio" name="public" value="1" checked="1"> 公开审核过的</label> | |||||
<label><input type="radio" name="public" value="1" checked="checked"> 公开审核过的</label> | |||||
<label><input type="radio" name="public" value="0"> 不公开</label> | <label><input type="radio" name="public" value="0"> 不公开</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -45,14 +45,14 @@ | |||||
<td> | <td> | ||||
<input type="hidden" name="isnull" value="1"> | <input type="hidden" name="isnull" value="1"> | ||||
<label><input type="radio" name="spage" value="split"> 是</label> | <label><input type="radio" name="spage" value="split"> 是</label> | ||||
<label><input type="radio" name="spage" value="no" checked="1"> 否</label> | |||||
<label><input type="radio" name="spage" value="no" checked="checked"> 否</label> | |||||
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符,实现文档分页,但仅允许一个字段)</span> | <span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符,实现文档分页,但仅允许一个字段)</span> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>数据类型:</td> | <td>数据类型:</td> | ||||
<td> | <td> | ||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype1" value="text" checked="1"> 单行文本(varchar)</label></div> | |||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype1" value="text" checked="checked"> 单行文本(varchar)</label></div> | |||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype2" value="textchar"> 单行文本(char)</label></div> | <div class="nw"><label><input type="radio" name="dtype" id="dtype2" value="textchar"> 单行文本(char)</label></div> | ||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype3" value="multitext"> 多行文本</label></div> | <div class="nw"><label><input type="radio" name="dtype" id="dtype3" value="multitext"> 多行文本</label></div> | ||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype4" value="htmltext"> 网页文本</label></div> | <div class="nw"><label><input type="radio" name="dtype" id="dtype4" value="htmltext"> 网页文本</label></div> | ||||
@@ -38,8 +38,8 @@ | |||||
<td>是否使用分页符:</td> | <td>是否使用分页符:</td> | ||||
<td> | <td> | ||||
<input type="hidden" name="isnull" value="1"> | <input type="hidden" name="isnull" value="1"> | ||||
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | |||||
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | |||||
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo "checked='checked'";?>> 是</label> | |||||
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='checked'";?>> 否</label> | |||||
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符,实现文档分页,但仅允许一个字段)</span> | <span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符,实现文档分页,但仅允许一个字段)</span> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -65,7 +65,7 @@ | |||||
<tr> | <tr> | ||||
<td>链接位置:</td> | <td>链接位置:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="ischeck" value="1" checked="1"> 内页</label> | |||||
<label><input type="radio" name="ischeck" value="1" checked="checked"> 内页</label> | |||||
<label><input type="radio" name="ischeck" value="2"> 首页</label> | <label><input type="radio" name="ischeck" value="2"> 首页</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -47,9 +47,9 @@ | |||||
<tr> | <tr> | ||||
<td>链接位置:</td> | <td>链接位置:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="ischeck" value="0" <?php if ($myLink['ischeck']==0) echo "checked='1'"?>> 未审核</label> | |||||
<label><input type="radio" name="ischeck" value="1" <?php if ($myLink['ischeck']==1) echo "checked='1'"?>> 内页</label> | |||||
<label><input type="radio" name="ischeck" value="2" <?php if ($myLink['ischeck']==2) echo "checked='1'"?>> 首页</label> | |||||
<label><input type="radio" name="ischeck" value="0" <?php if ($myLink['ischeck']==0) echo "checked='checked'"?>> 未审核</label> | |||||
<label><input type="radio" name="ischeck" value="1" <?php if ($myLink['ischeck']==1) echo "checked='checked'"?>> 内页</label> | |||||
<label><input type="radio" name="ischeck" value="2" <?php if ($myLink['ischeck']==2) echo "checked='checked'"?>> 首页</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -32,14 +32,14 @@ | |||||
<tr> | <tr> | ||||
<td><?php echo $row->id;?></td> | <td><?php echo $row->id;?></td> | ||||
<td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" id="pname_<?php echo $k?>" style="width:90%"></td> | <td><input type="text" name="pname_<?php echo $k?>" value="<?php echo $row->typename?>" id="pname_<?php echo $k?>" style="width:90%"></td> | ||||
<td align="center"><label><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked='1'> 保留</label></td> | |||||
<td align="center"><label><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked='checked'> 保留</label></td> | |||||
</tr> | </tr> | ||||
<?php }?> | <?php }?> | ||||
<input type="hidden" name="idend" value="<?php echo $k?>"> | <input type="hidden" name="idend" value="<?php echo $k?>"> | ||||
<tr> | <tr> | ||||
<td></td> | <td></td> | ||||
<td><input type="text" name="pname_new" id="pname_new" style="width:90%"></td> | <td><input type="text" name="pname_new" id="pname_new" style="width:90%"></td> | ||||
<td align="center"><label><input type="checkbox" name="check_new" id="check_new" value="1" checked="1"> 新增</label></td> | |||||
<td align="center"><label><input type="checkbox" name="check_new" id="check_new" value="1" checked="checked"> 新增</label></td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="3"> | <td colspan="3"> | ||||
@@ -38,7 +38,7 @@ | |||||
<tr> | <tr> | ||||
<td>是否更新子栏目:</td> | <td>是否更新子栏目:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="upnext" value="1" checked="1"> 更新子级栏目</label> | |||||
<label><input type="radio" name="upnext" value="1" checked="checked"> 更新子级栏目</label> | |||||
<label><input type="radio" name="upnext" value="0"> 仅更新所选栏目</label> | <label><input type="radio" name="upnext" value="0"> 仅更新所选栏目</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -27,7 +27,7 @@ | |||||
<tr> | <tr> | ||||
<td width="260">媒体类型:</td> | <td width="260">媒体类型:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="mediatype" value="1" checked="1"> 图片</label> | |||||
<label><input type="radio" name="mediatype" value="1" checked="checked"> 图片</label> | |||||
<label><input type="radio" name="mediatype" value="2"> FLASH</label> | <label><input type="radio" name="mediatype" value="2"> FLASH</label> | ||||
<label><input type="radio" name="mediatype" value="3"> 视频音频</label> | <label><input type="radio" name="mediatype" value="3"> 视频音频</label> | ||||
<label><input type="radio" name="mediatype" value="4"> 附件其它</label> | <label><input type="radio" name="mediatype" value="4"> 附件其它</label> | ||||
@@ -46,9 +46,9 @@ | |||||
<tr> | <tr> | ||||
<td>性别:</td> | <td>性别:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="sex" value="男" <?php if ($row['sex']=="男" ) echo" checked='1'" ;?>> 男</label> | |||||
<label><input type="radio" name="sex" value="女" <?php if ($row['sex']=="女" ) echo" checked='1'" ;?>> 女</label> | |||||
<label><input type="radio" name="sex" value="" <?php if ($row['sex']=="" ) echo" checked='1'" ;?>> 保密</label> | |||||
<label><input type="radio" name="sex" value="男" <?php if ($row['sex']=="男" ) echo" checked='checked'" ;?>> 男</label> | |||||
<label><input type="radio" name="sex" value="女" <?php if ($row['sex']=="女" ) echo" checked='checked'" ;?>> 女</label> | |||||
<label><input type="radio" name="sex" value="" <?php if ($row['sex']=="" ) echo" checked='checked'" ;?>> 保密</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -54,7 +54,7 @@ | |||||
?> | ?> | ||||
</select> | </select> | ||||
</td> | </td> | ||||
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked="1"> 保留</td> | |||||
<td><input type="checkbox" name="check_<?php echo $k?>" id="check_<?php echo $k?>" value="1" checked="checked"> 保留</td> | |||||
</tr> | </tr> | ||||
<?php }?> | <?php }?> | ||||
<input type="hidden" name="idend" value="<?php echo $k?>"> | <input type="hidden" name="idend" value="<?php echo $k?>"> | ||||
@@ -79,7 +79,7 @@ | |||||
?> | ?> | ||||
</select> | </select> | ||||
</td> | </td> | ||||
<td align="center"><input type="checkbox" name="check_new" id="check_new" value="1" checked="1"> 新增</td> | |||||
<td align="center"><input type="checkbox" name="check_new" id="check_new" value="1" checked="checked"> 新增</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td bgcolor="#f5f5f5" colspan="5" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td> | <td bgcolor="#f5f5f5" colspan="5" align="center"><button type="submit" class="btn btn-success btn-sm">保存</button></td> | ||||
@@ -32,10 +32,10 @@ | |||||
<tr> | <tr> | ||||
<td>封装类型:</td> | <td>封装类型:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" <?php if ($moduletype=='soft') echo "checked='1'";?>> 模块</label> | |||||
<label><input type="radio" name="moduletype" id="moduletype2" value="templets" <?php if ($moduletype=='templets') echo "checked='1'";?>> 模板</label> | |||||
<label><input type="radio" name="moduletype" id="moduletype3" value="plus" <?php if ($moduletype=='plus') echo "checked='1'";?>> 小插件</label> | |||||
<label><input type="radio" name="moduletype" id="moduletype4" value="patch" <?php if ($moduletype=='patch') echo "checked='1'";?>> 补丁</label> | |||||
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" <?php if ($moduletype=='soft') echo "checked='checked'";?>> 模块</label> | |||||
<label><input type="radio" name="moduletype" id="moduletype2" value="templets" <?php if ($moduletype=='templets') echo "checked='checked'";?>> 模板</label> | |||||
<label><input type="radio" name="moduletype" id="moduletype3" value="plus" <?php if ($moduletype=='plus') echo "checked='checked'";?>> 小插件</label> | |||||
<label><input type="radio" name="moduletype" id="moduletype4" value="patch" <?php if ($moduletype=='patch') echo "checked='checked'";?>> 补丁</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -52,8 +52,8 @@ | |||||
<tr> | <tr> | ||||
<td>是否涉及会员系统:</td> | <td>是否涉及会员系统:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="ismember" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='1') echo "checked='1'";?>> 涉及</label> | |||||
<label><input type="radio" name="ismember" id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='0') echo "checked='1'";?>> 不涉及</label> | |||||
<label><input type="radio" name="ismember" id="ismember1" value="1" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='1') echo "checked='checked'";?>> 涉及</label> | |||||
<label><input type="radio" name="ismember" id="ismember0" value="0" onclick="ShowHideMb('ismember0','rboxct')" <?php if ($ismember=='0') echo "checked='checked'";?>> 不涉及</label> | |||||
<div id="rboxct" style="display:<?php echo ($ismember=='0' ? 'none' : 'block');?>"> | <div id="rboxct" style="display:<?php echo ($ismember=='0' ? 'none' : 'block');?>"> | ||||
<label>导航使用名称:<input type="text" name="indexname" id="indexname" class="admin-input-sm" value="<?php echo $indexname;?>"></label><br> | <label>导航使用名称:<input type="text" name="indexname" id="indexname" class="admin-input-sm" value="<?php echo $indexname;?>"></label><br> | ||||
<label>导航使用网址:<input type="text" name="indexurl" id="indexurl" class="admin-input-sm" value="<?php echo $indexurl;?>"></label> | <label>导航使用网址:<input type="text" name="indexurl" id="indexurl" class="admin-input-sm" value="<?php echo $indexurl;?>"></label> | ||||
@@ -78,7 +78,7 @@ | |||||
<tr> | <tr> | ||||
<td>程序安装:</td> | <td>程序安装:</td> | ||||
<td> | <td> | ||||
<label><input type="checkbox" name="autosetup" id="autosetup" value="1" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')" <?php if (isset($autosetup) && $autosetup==1) echo "checked='1'";?>> 自动生成</label><br> | |||||
<label><input type="checkbox" name="autosetup" id="autosetup" value="1" onclick="ShowHideField('autosetup','autosetupinput','autosetupct')" <?php if (isset($autosetup) && $autosetup==1) echo "checked='checked'";?>> 自动生成</label><br> | |||||
<div style="display:<?php if (!isset($autosetup) || $autosetup==0) echo 'block'; else echo 'none';?>" id="autosetupinput"><input type="file" name="setup" id="setup" class="admin-input-lg"></div> | <div style="display:<?php if (!isset($autosetup) || $autosetup==0) echo 'block'; else echo 'none';?>" id="autosetupinput"><input type="file" name="setup" id="setup" class="admin-input-lg"></div> | ||||
<div style="display:<?php if (isset($autosetup) && $autosetup==1) echo 'block'; else echo 'none';?>" id="autosetupct"> | <div style="display:<?php if (isset($autosetup) && $autosetup==1) echo 'block'; else echo 'none';?>" id="autosetupct"> | ||||
<p>(由系统自动处理安装,请使用MySQL4.0版本格式的SQL语句:MySQL4.1/5.x版本请把创建表语句 ENGINE=MyISAM DEFAULT CHARSET=*,改为TYPE=MyISAM,SQL语句允许换行,但必须用 ";换行" 表示一条SQL语句结束,如果SQL中包含有模块网址的,用 _ROOTURL_ 表示,如:_ROOTURL_/ask/index.php)</p> | <p>(由系统自动处理安装,请使用MySQL4.0版本格式的SQL语句:MySQL4.1/5.x版本请把创建表语句 ENGINE=MyISAM DEFAULT CHARSET=*,改为TYPE=MyISAM,SQL语句允许换行,但必须用 ";换行" 表示一条SQL语句结束,如果SQL中包含有模块网址的,用 _ROOTURL_ 表示,如:_ROOTURL_/ask/index.php)</p> | ||||
@@ -89,7 +89,7 @@ | |||||
<tr> | <tr> | ||||
<td>删除程序:</td> | <td>删除程序:</td> | ||||
<td> | <td> | ||||
<label><input type="checkbox" name="autodel" id="autodel" value="1" onclick="ShowHideField('autodel','autodelinput','autodelct')" <?php if (isset($autodel) && $autodel==1) echo "checked='1'";?>> 自动生成</label><br> | |||||
<label><input type="checkbox" name="autodel" id="autodel" value="1" onclick="ShowHideField('autodel','autodelinput','autodelct')" <?php if (isset($autodel) && $autodel==1) echo "checked='checked'";?>> 自动生成</label><br> | |||||
<div style="display:<?php if (!isset($autodel) || $autodel==0) echo 'block'; else echo 'none';?>" id="autodelinput"><input type="file" name="uninstall" id="uninstall" class="admin-input-lg"></div> | <div style="display:<?php if (!isset($autodel) || $autodel==0) echo 'block'; else echo 'none';?>" id="autodelinput"><input type="file" name="uninstall" id="uninstall" class="admin-input-lg"></div> | ||||
<div style="display:<?php if (isset($autodel) && $autodel==1) echo 'block'; else echo 'none';?>" id="autodelct"> | <div style="display:<?php if (isset($autodel) && $autodel==1) echo 'block'; else echo 'none';?>" id="autodelct"> | ||||
<p>(由系统自动处理卸载,卸载时执行SQL允许换行,但必须用 ";换行" 表示一条SQL语句结束)</p> | <p>(由系统自动处理卸载,卸载时执行SQL允许换行,但必须用 ";换行" 表示一条SQL语句结束)</p> | ||||
@@ -100,7 +100,7 @@ | |||||
<tr> | <tr> | ||||
<td>模块文件选项:</td> | <td>模块文件选项:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="rebuild" value="yes" checked="1"> 重新编译所有文件</label> | |||||
<label><input type="radio" name="rebuild" value="yes" checked="checked"> 重新编译所有文件</label> | |||||
<label><input type="radio" name="rebuild" value="no"> 不对[文件列表]内文件重编译</label> | <label><input type="radio" name="rebuild" value="no"> 不对[文件列表]内文件重编译</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -32,7 +32,7 @@ | |||||
<tr> | <tr> | ||||
<td>封装类型:</td> | <td>封装类型:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" checked="1"> 模块</label> | |||||
<label><input type="radio" name="moduletype" id="moduletype1" value="soft" checked="checked"> 模块</label> | |||||
<label><input type="radio" name="moduletype" id="moduletype2" value="templets"> 模板</label> | <label><input type="radio" name="moduletype" id="moduletype2" value="templets"> 模板</label> | ||||
<label><input type="radio" name="moduletype" id="moduletype3" value="plus"> 小插件</label> | <label><input type="radio" name="moduletype" id="moduletype3" value="plus"> 小插件</label> | ||||
<label><input type="radio" name="moduletype" id="moduletype4" value="patch"> 补丁</label> | <label><input type="radio" name="moduletype" id="moduletype4" value="patch"> 补丁</label> | ||||
@@ -18,7 +18,7 @@ | |||||
<tr> | <tr> | ||||
<td width="260">模型性质:</td> | <td width="260">模型性质:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="issystem" id="is1" value="0" onclick="PublicDefault()" checked="1"> 自动模型</label> | |||||
<label><input type="radio" name="issystem" id="is1" value="0" onclick="PublicDefault()" checked="checked"> 自动模型</label> | |||||
<label><input type="radio" name="issystem" id="is2" value="1" onclick="PublicDefault()"> 系统模型</label> | <label><input type="radio" name="issystem" id="is2" value="1" onclick="PublicDefault()"> 系统模型</label> | ||||
<label><input type="radio" name="issystem" id="is3" value="-1" onclick="PublicDefault()"> 独立模型</label> | <label><input type="radio" name="issystem" id="is3" value="-1" onclick="PublicDefault()"> 独立模型</label> | ||||
<span>(系统模型禁止删除,独立模型具有单独主表,自动创建字段aid、栏目id、文档标题等,文档必须点击栏目进入列表管理)</span> | <span>(系统模型禁止删除,独立模型具有单独主表,自动创建字段aid、栏目id、文档标题等,文档必须点击栏目进入列表管理)</span> | ||||
@@ -53,7 +53,7 @@ | |||||
<tr> | <tr> | ||||
<td>是否支持会员投稿:</td> | <td>是否支持会员投稿:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="issend" value="0" checked="1"> 不支持</label> | |||||
<label><input type="radio" name="issend" value="0" checked="checked"> 不支持</label> | |||||
<label><input type="radio" name="issend" value="1"> 支持</label> | <label><input type="radio" name="issend" value="1"> 支持</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -86,13 +86,13 @@ | |||||
echo "<label><input type='radio' name='usertype' value=".$row3->name."> ".$row3->name."</label>"; | echo "<label><input type='radio' name='usertype' value=".$row3->name."> ".$row3->name."</label>"; | ||||
} | } | ||||
?> | ?> | ||||
<label><input type="radio" name="usertype" value="" checked="1"> 不限</label> | |||||
<label><input type="radio" name="usertype" value="" checked="checked"> 不限</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>会员投稿默认状态:</td> | <td>会员投稿默认状态:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="arcsta" value="-1" checked="1"> 未审核</label> | |||||
<label><input type="radio" name="arcsta" value="-1" checked="checked"> 未审核</label> | |||||
<label><input type="radio" name="arcsta" value="0"> 已审核(更新静态页)</label> | <label><input type="radio" name="arcsta" value="0"> 已审核(更新静态页)</label> | ||||
<label><input type="radio" name="arcsta" value="1"> 已审核(使用动态页)</label> | <label><input type="radio" name="arcsta" value="1"> 已审核(使用动态页)</label> | ||||
</td> | </td> | ||||
@@ -104,14 +104,14 @@ | |||||
<tr> | <tr> | ||||
<td>投稿是否使用摘要:</td> | <td>投稿是否使用摘要:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="needdes" value="1" checked="1"> 使用</label> | |||||
<label><input type="radio" name="needdes" value="1" checked="checked"> 使用</label> | |||||
<label><input type="radio" name="needdes" value="0"> 不使用</label> | <label><input type="radio" name="needdes" value="0"> 不使用</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>投稿是否使用缩图:</td> | <td>投稿是否使用缩图:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="needpic" value="1" checked="1"> 使用</label> | |||||
<label><input type="radio" name="needpic" value="1" checked="checked"> 使用</label> | |||||
<label><input type="radio" name="needpic" value="0"> 不使用</label> | <label><input type="radio" name="needpic" value="0"> 不使用</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -123,7 +123,7 @@ | |||||
<td>投稿具有唯一性:</td> | <td>投稿具有唯一性:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="onlyone" value="1"> 是</label> | <label><input type="radio" name="onlyone" value="1"> 是</label> | ||||
<label><input type="radio" name="onlyone" value="0" checked="1"> 不是</label> | |||||
<label><input type="radio" name="onlyone" value="0" checked="checked"> 不是</label> | |||||
<span>(与投稿唯一会员只能在该模型对应栏目中发布文档,其作用相当于自定义表单)</span> | <span>(与投稿唯一会员只能在该模型对应栏目中发布文档,其作用相当于自定义表单)</span> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -59,8 +59,8 @@ | |||||
<tr> | <tr> | ||||
<td>是否支持会员投稿:</td> | <td>是否支持会员投稿:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="issend" value="0" <?php if ($row['issend']==0) echo "checked='1'";?>> 不支持</label> | |||||
<label><input type="radio" name="issend" value="1" <?php if ($row['issend']==1) echo "checked='1'";?>> 支持</label> | |||||
<label><input type="radio" name="issend" value="0" <?php if ($row['issend']==0) echo "checked='checked'";?>> 不支持</label> | |||||
<label><input type="radio" name="issend" value="1" <?php if ($row['issend']==1) echo "checked='checked'";?>> 支持</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -93,15 +93,15 @@ | |||||
echo "<label><input type='radio' name='usertype' value='".$row3->name."'".($row['usertype']==$row3->name? "checked" : "")."> ".$row3->name."</label> "; | echo "<label><input type='radio' name='usertype' value='".$row3->name."'".($row['usertype']==$row3->name? "checked" : "")."> ".$row3->name."</label> "; | ||||
} | } | ||||
?> | ?> | ||||
<label><input type="radio" name="usertype" value="" <?php if ($row['usertype']=='') echo "checked='1'";?>> 不限</label> | |||||
<label><input type="radio" name="usertype" value="" <?php if ($row['usertype']=='') echo "checked='checked'";?>> 不限</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>会员投稿默认状态:</td> | <td>会员投稿默认状态:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="arcsta" value="-1" <?php if ($row['arcsta']==-1) echo "checked='1'";?>> 未审核</label> | |||||
<label><input type="radio" name="arcsta" value="0" <?php if ($row['arcsta']==0) echo "checked='1'";?>> 已审核(更新静态页)</label> | |||||
<label><input type="radio" name="arcsta" value="1" <?php if ($row['arcsta']==1) echo "checked='1'";?>> 已审核(使用动态页)</label> | |||||
<label><input type="radio" name="arcsta" value="-1" <?php if ($row['arcsta']==-1) echo "checked='checked'";?>> 未审核</label> | |||||
<label><input type="radio" name="arcsta" value="0" <?php if ($row['arcsta']==0) echo "checked='checked'";?>> 已审核(更新静态页)</label> | |||||
<label><input type="radio" name="arcsta" value="1" <?php if ($row['arcsta']==1) echo "checked='checked'";?>> 已审核(使用动态页)</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -118,15 +118,15 @@ | |||||
<tr> | <tr> | ||||
<td>投稿是否使用摘要:</td> | <td>投稿是否使用摘要:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="needdes" value="1" <?php if ($row['needdes']==1) echo "checked='1'";?>> 使用</label> | |||||
<label><input type="radio" name="needdes" value="0" <?php if ($row['needdes']==0) echo "checked='1'";?>> 不使用</label> | |||||
<label><input type="radio" name="needdes" value="1" <?php if ($row['needdes']==1) echo "checked='checked'";?>> 使用</label> | |||||
<label><input type="radio" name="needdes" value="0" <?php if ($row['needdes']==0) echo "checked='checked'";?>> 不使用</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>投稿是否使用缩图:</td> | <td>投稿是否使用缩图:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="needpic" value="1" <?php if ($row['needpic']==1) echo "checked='1'";?>> 使用</label> | |||||
<label><input type="radio" name="needpic" value="0" <?php if ($row['needpic']==0) echo "checked='1'";?>> 不使用</label> | |||||
<label><input type="radio" name="needpic" value="1" <?php if ($row['needpic']==1) echo "checked='checked'";?>> 使用</label> | |||||
<label><input type="radio" name="needpic" value="0" <?php if ($row['needpic']==0) echo "checked='checked'";?>> 不使用</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -136,8 +136,8 @@ | |||||
<tr> | <tr> | ||||
<td>投稿具有唯一性:</td> | <td>投稿具有唯一性:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="onlyone" value="1" <?php if ($row['onlyone']==1) echo "checked='1'";?>> 是</label> | |||||
<label><input type="radio" name="onlyone" value="0" <?php if ($row['onlyone']==0) echo "checked='1'";?>> 不是</label> | |||||
<label><input type="radio" name="onlyone" value="1" <?php if ($row['onlyone']==1) echo "checked='checked'";?>> 是</label> | |||||
<label><input type="radio" name="onlyone" value="0" <?php if ($row['onlyone']==0) echo "checked='checked'";?>> 不是</label> | |||||
<span>(与投稿唯一会员只能在该模型对应栏目中发布文档,其作用相当于自定义表单)</span> | <span>(与投稿唯一会员只能在该模型对应栏目中发布文档,其作用相当于自定义表单)</span> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -60,14 +60,14 @@ | |||||
<td> | <td> | ||||
<input type="hidden" name="isnull" value="1"> | <input type="hidden" name="isnull" value="1"> | ||||
<label><input type="radio" name="spage" value="split"> 是</label> | <label><input type="radio" name="spage" value="split"> 是</label> | ||||
<label><input type="radio" name="spage" value="no" checked="1"> 否</label> | |||||
<label><input type="radio" name="spage" value="no" checked="checked"> 否</label> | |||||
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符,实现文档分页,但仅允许一个字段)</span> | <span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符,实现文档分页,但仅允许一个字段)</span> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>数据类型:</td> | <td>数据类型:</td> | ||||
<td id="dataType"> | <td id="dataType"> | ||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype1" value="text" checked="1"> 单行文本(varchar)</label></div> | |||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype1" value="text" checked="checked"> 单行文本(varchar)</label></div> | |||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype2" value="textchar"> 单行文本(char)</label></div> | <div class="nw"><label><input type="radio" name="dtype" id="dtype2" value="textchar"> 单行文本(char)</label></div> | ||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype3" value="multitext"> 多行文本</label></div> | <div class="nw"><label><input type="radio" name="dtype" id="dtype3" value="multitext"> 多行文本</label></div> | ||||
<div class="nw"><label><input type="radio" name="dtype" id="dtype4" value="htmltext"> 网页文本</label></div> | <div class="nw"><label><input type="radio" name="dtype" id="dtype4" value="htmltext"> 网页文本</label></div> | ||||
@@ -60,8 +60,8 @@ | |||||
<td>是否使用分页符:</td> | <td>是否使用分页符:</td> | ||||
<td> | <td> | ||||
<input name="isnull" type="hidden" value="1"> | <input name="isnull" type="hidden" value="1"> | ||||
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo "checked='1'";?>> 是</label> | |||||
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='1'";?>> 否</label> | |||||
<label><input type="radio" name="spage" value="split" <?php if ($ctag->GetAtt('page')=='split') echo "checked='checked'";?>> 是</label> | |||||
<label><input type="radio" name="spage" value="no" <?php if ($ctag->GetAtt('page')=='no'||$ctag->GetAtt('page')=='') echo "checked='checked'";?>> 否</label> | |||||
<span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符,实现文档分页,但仅允许一个字段)</span> | <span>(如果文档使用分页符,文档用#p#副标题#e#作为分页符,实现文档分页,但仅允许一个字段)</span> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -47,7 +47,7 @@ | |||||
<tr> | <tr> | ||||
<td>时间限制:</td> | <td>时间限制:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="timeset" value="0" checked="1"> 永不过期</label> | |||||
<label><input type="radio" name="timeset" value="0" checked="checked"> 永不过期</label> | |||||
<label><input type="radio" name="timeset" value="1"> 在设内时间内有效</label> | <label><input type="radio" name="timeset" value="1"> 在设内时间内有效</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -32,7 +32,7 @@ | |||||
<table class="w-100 table-borderless"> | <table class="w-100 table-borderless"> | ||||
<tr> | <tr> | ||||
<td width="25%"> | <td width="25%"> | ||||
<label><img src="../static/web/img/g_t2.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle()" value="1" checked="1"></label> | |||||
<label><img src="../static/web/img/g_t2.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle()" value="1" checked="checked"></label> | |||||
</td> | </td> | ||||
<td width="25%"> | <td width="25%"> | ||||
<label><img src="../static/web/img/g_t1.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle()" value="2"></label> | <label><img src="../static/web/img/g_t1.jpg"><input type="radio" name="liststyle" onclick="ChangeListStyle()" value="2"></label> | ||||
@@ -117,7 +117,7 @@ | |||||
<option value="scores">评论积分</option> | <option value="scores">评论积分</option> | ||||
<option value="rand">随机获取</option> | <option value="rand">随机获取</option> | ||||
</select> | </select> | ||||
<label><input type="radio" name="order" value="desc" checked="1"> 由高到低</label> | |||||
<label><input type="radio" name="order" value="desc" checked="checked"> 由高到低</label> | |||||
<label><input type="radio" name="order" value="asc"> 由低到高</label> | <label><input type="radio" name="order" value="asc"> 由低到高</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -387,8 +387,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120" width="260">评论选项:</td> | <td width="120" width="260">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='checked'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='checked'";?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
@@ -55,7 +55,7 @@ | |||||
if (preg_match("#".$trow->att."#",$arcRow['flag'])) | if (preg_match("#".$trow->att."#",$arcRow['flag'])) | ||||
echo "<label class='mr-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | echo "<label class='mr-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | ||||
else | else | ||||
echo "<label class='mr-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label>"; | |||||
echo "<label class='mr-2'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label>"; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -327,8 +327,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120">附加选项:</td> | <td width="120">附加选项:</td> | ||||
<td> | <td> | ||||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked="1"';?>> 下载远程图片和资源</label> | |||||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked="1"';?>> 提取第一个图片为缩略图</label> | |||||
<label><input type="checkbox" name="remote" id="remote" value="1" <?php if ($cfg_rm_remote=='Y') echo 'checked="checked"';?>> 下载远程图片和资源</label> | |||||
<label><input type="checkbox" name="autolitpic" id="autolitpic" value="1" <?php if ($cfg_arc_autopic=='Y') echo 'checked="checked"';?>> 提取第一个图片为缩略图</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -343,8 +343,8 @@ | |||||
<tr> | <tr> | ||||
<td width="120" width="260">评论选项:</td> | <td width="120" width="260">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label> | |||||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='checked'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='checked'";?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
@@ -121,7 +121,7 @@ | |||||
<input type="text" name="keywords" id="keywords" value="" class="admin-input-lg"> | <input type="text" name="keywords" id="keywords" value="" class="admin-input-lg"> | ||||
<button type="button" name="Submit" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button> | <button type="button" name="Submit" class="btn btn-success btn-sm" onclick="SelectKeywords('form1.keywords');">选择</button> | ||||
</td> | </td> | ||||
<td><label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" ; id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked="1"';?>> 自动获取</label></td> | |||||
<td><label><input type="checkbox" name="autokey" onclick="ShowHide('keywords');" ; id="autokey" value="1" <?php if ($cfg_arc_autokeyword=='Y') echo 'checked="checked"';?>> 自动获取</label></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -207,12 +207,12 @@ | |||||
<tr> | <tr> | ||||
<td width="120" width="260">评论选项:</td> | <td width="120" width="260">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='1'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='1'";?>> 禁止评论</label> | |||||
<label><input type="radio" name="notpost" value="0" <?php if ($cfg_feedback_forbid=='N') echo "checked='checked'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($cfg_feedback_forbid=='Y') echo "checked='checked'";?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="ishtml" value="1" checked="1"> 生成网页</label> | |||||
<label><input type="radio" name="ishtml" value="1" checked="checked"> 生成网页</label> | |||||
<label><input type="radio" name="ishtml" value="0"> 仅动态浏览</label> | <label><input type="radio" name="ishtml" value="0"> 仅动态浏览</label> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -258,12 +258,12 @@ | |||||
<tr> | <tr> | ||||
<td width="120" width="260">评论选项:</td> | <td width="120" width="260">评论选项:</td> | ||||
<td width="260"> | <td width="260"> | ||||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='1'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='1'";?>> 禁止评论</label> | |||||
<label><input type="radio" name="notpost" value="0" <?php if ($arcRow['notpost']==0) echo "checked='checked'";?>> 允许评论</label> | |||||
<label><input type="radio" name="notpost" value="1" <?php if ($arcRow['notpost']==1) echo "checked='checked'";?>> 禁止评论</label> | |||||
<td width="120">发布选项:</td> | <td width="120">发布选项:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo "checked='1'";?>> 生成网页</label> | |||||
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo "checked='1'";?>> 仅动态浏览</label> | |||||
<label><input type="radio" name="ishtml" value="1" <?php if ($arcRow["ismake"]!=-1) echo "checked='checked'";?>> 生成网页</label> | |||||
<label><input type="radio" name="ishtml" value="0" <?php if ($arcRow["ismake"]==-1) echo "checked='checked'";?>> 仅动态浏览</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -12,7 +12,6 @@ | |||||
<script src="../static/web/js/bootstrap.min.js"></script> | <script src="../static/web/js/bootstrap.min.js"></script> | ||||
<script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
<script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
<style>#edsta{display:none;padding:10px;position:absolute;top:70px;left:70px;width:450px;height:auto;background:#f5f5f5;border:1px solid #dedede}</style> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<div id="edsta"><img src="../static/web/img/loadinglit.gif"></div> | <div id="edsta"><img src="../static/web/img/loadinglit.gif"></div> | ||||
@@ -4,29 +4,33 @@ if ($action=='edit') { | |||||
$sbjs = " onsubmit=\"alert('该分类是系统内置枚举,不允许修改'); return false;\" "; | $sbjs = " onsubmit=\"alert('该分类是系统内置枚举,不允许修改'); return false;\" "; | ||||
if ($arr['issystem']==0) $sbjs = ''; | if ($arr['issystem']==0) $sbjs = ''; | ||||
?> | ?> | ||||
<span class="float-left">修改类别</span> | |||||
<span class="float-right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></span> | |||||
<br style="clear:both"> | |||||
<form action="stepselect_main.php" method="post" <?php echo $sbjs;?>> | <form action="stepselect_main.php" method="post" <?php echo $sbjs;?>> | ||||
<input type="hidden" name="action" value="edit_save"> | <input type="hidden" name="action" value="edit_save"> | ||||
<input type="hidden" name="id" value="<?php echo $arr['id'];?>"> | <input type="hidden" name="id" value="<?php echo $arr['id'];?>"> | ||||
<div class="py-2">类别名:<input type="text" name="itemname" value="<?php echo $arr['itemname'];?>" class="admin-input-lg"></div> | |||||
<div class="py-2">缓存名:<input type="text" name="egroup" value="<?php echo $arr['egroup'];?>" class="admin-input-lg"></div> | |||||
<div class="py-2">缓存组名必须为英文或数字组合</div> | |||||
<div><button type="submit" class="btn btn-success btn-sm">保存</button></div> | |||||
<div class="pb-3"><label>类别名:<input type="text" name="itemname" value="<?php echo $arr['itemname'];?>" class="admin-input-lg"></label></div> | |||||
<div class="pb-3"> | |||||
<label>缓存名:<input type="text" name="egroup" value="<?php echo $arr['egroup'];?>" class="admin-input-lg"></label> | |||||
<span>(缓存组名必须用英文或数字)</span> | |||||
</div> | |||||
<div> | |||||
<a href="javascript:CloseTWin();" class="btn btn-success btn-sm">关闭</a> | |||||
<button type="submit" class="btn btn-success btn-sm">保存</button> | |||||
</div> | |||||
</form> | </form> | ||||
<?php | <?php | ||||
} else if ($action=='addnew') { | } else if ($action=='addnew') { | ||||
?> | ?> | ||||
<span class="float-left">新增类别</span> | |||||
<span class="float-right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></span> | |||||
<br style="clear:both"> | |||||
<form action="stepselect_main.php" method="post"> | <form action="stepselect_main.php" method="post"> | ||||
<input type="hidden" name="action" value="addnew_save"> | <input type="hidden" name="action" value="addnew_save"> | ||||
<div class="py-2">类别名:<input type="text" name="itemname" class="admin-input-lg"></div> | |||||
<div class="py-2">缓存名:<input type="text" name="egroup" class="admin-input-lg"></div> | |||||
<div class="py-2">缓存组名必须为英文或数字组合</div> | |||||
<div><button type="submit" class="btn btn-success btn-sm">保存</button></div> | |||||
<div class="pb-3"><label>类别名:<input type="text" name="itemname" class="admin-input-lg"></label></div> | |||||
<div class="pb-3"> | |||||
<label>缓存名:<input type="text" name="egroup" class="admin-input-lg"></label> | |||||
<span>(缓存组名必须用英文或数字)</span> | |||||
</div> | |||||
<div class="text-center"> | |||||
<a href="javascript:CloseTWin();" class="btn btn-success btn-sm">关闭</a> | |||||
<button type="submit" class="btn btn-success btn-sm">保存</button> | |||||
</div> | |||||
</form> | </form> | ||||
<?php | <?php | ||||
} else if ($action=='addenum') { | } else if ($action=='addenum') { | ||||
@@ -38,23 +42,26 @@ if ($action=='edit') { | |||||
while($row1 = $dsql->GetArray('out')) $options .= "<option value='{$row1['evalue']}'>{$row1['ename']}</option>"; | while($row1 = $dsql->GetArray('out')) $options .= "<option value='{$row1['evalue']}'>{$row1['ename']}</option>"; | ||||
} | } | ||||
?> | ?> | ||||
<span class="float-left">添加枚举</span> | |||||
<span class="float-right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></span> | |||||
<br style="clear:both"> | |||||
<form action="stepselect_main.php" method="post"> | <form action="stepselect_main.php" method="post"> | ||||
<input type="hidden" name="action" value="addenum_save"> | <input type="hidden" name="action" value="addenum_save"> | ||||
<input type="hidden" name="issign" value="<?php echo $arr['issign'];?>"> | <input type="hidden" name="issign" value="<?php echo $arr['issign'];?>"> | ||||
<input type="hidden" name="egroup" value="<?php echo $arr['egroup'];?>"> | <input type="hidden" name="egroup" value="<?php echo $arr['egroup'];?>"> | ||||
<div class="py-2"> | |||||
隶属枚举:<select name="topvalue" class="admin-input-lg"> | |||||
<div class="pb-3"> | |||||
<span>所属枚举:</span> | |||||
<select name="topvalue" class="admin-input-lg"> | |||||
<option value="0">保存一级枚举</option> | <option value="0">保存一级枚举</option> | ||||
<?php echo $options;?> | <?php echo $options;?> | ||||
</select> | </select> | ||||
</div> | </div> | ||||
<div class="py-2">枚举名:<input type="text" name="ename" class="admin-input-lg"></div> | |||||
<div class="py-2">排序值:<input type="text" name="disorder" class="admin-input-lg"></div> | |||||
<div class="py-2">如果不指定,默认以枚举添加先后来排序</div> | |||||
<div><input type="submit" value="保存" class="btn btn-success btn-sm"></div> | |||||
<div class="pb-3"><label>枚举名:<input type="text" name="ename" class="admin-input-lg"></label></div> | |||||
<div class="pb-3"> | |||||
<label>排序值:<input type="text" name="disorder" class="admin-input-lg"></label> | |||||
<span>(如果不指定,默认以枚举添加先后来排序)</span> | |||||
</div> | |||||
<div class="text-center"> | |||||
<a href="javascript:CloseTWin();" class="btn btn-success btn-sm">关闭</a> | |||||
<button type="submit" class="btn btn-success btn-sm">保存</button> | |||||
</div> | |||||
</form> | </form> | ||||
<?php | <?php | ||||
} else if ($action=='view') { | } else if ($action=='view') { | ||||
@@ -71,17 +78,13 @@ if ($action=='edit') { | |||||
} | } | ||||
} | } | ||||
?> | ?> | ||||
<span class="float-left">预览联动表单</span> | |||||
<span class="float-right"><a class="btn btn-success btn-sm" href="javascript:;" onclick="javascript:CloseTWin();">关闭</a></span> | |||||
<br style="clear:both"> | |||||
<div class="py-2"> | |||||
类别关系: | |||||
<div class="pb-3"> | |||||
<span>类别关系:</span> | |||||
<select name="topvalue" class="admin-input-lg"> | <select name="topvalue" class="admin-input-lg"> | ||||
<option value="0">请选择</option> | <option value="0">请选择</option> | ||||
<?php echo $options;?> | <?php echo $options;?> | ||||
</select> | </select> | ||||
<br> | |||||
这里仅显示数据关系,实际应用中,二级联动生成的表单是支持级连的,并非全部列出 | |||||
<span>(这里仅显示数据关系,实际应用中,二级联动生成的表单是支持级连的,并非全部列出)</span> | |||||
</div> | </div> | ||||
<br style="clear:both"> | |||||
<div class="text-center"><a href="javascript:CloseTWin();" class="btn btn-success btn-sm">关闭</a></div> | |||||
<?php }?> | <?php }?> |
@@ -124,9 +124,9 @@ | |||||
<tr> | <tr> | ||||
<td colspan="8"> | <td colspan="8"> | ||||
分卷大小:<input name="fsize" type="text" id="fsize" value="2048" class="admin-input-sm"> K | 分卷大小:<input name="fsize" type="text" id="fsize" value="2048" class="admin-input-sm"> K | ||||
<label><input type="checkbox" name="isstruct" id="isstruct" value="1" checked="1"> 备份结构</label> | |||||
<label><input type="checkbox" name="isstruct" id="isstruct" value="1" checked="checked"> 备份结构</label> | |||||
<?php if (@function_exists('gzcompress') && false) {?> | <?php if (@function_exists('gzcompress') && false) {?> | ||||
<label><input type="checkbox" name="iszip" id="iszip" value="1" checked="1"> 完成后压缩成ZIP</label> | |||||
<label><input type="checkbox" name="iszip" id="iszip" value="1" checked="checked"> 完成后压缩成ZIP</label> | |||||
<?php }?> | <?php }?> | ||||
<button name="b1" type="button" id="b1" class="btn btn-success btn-sm" onclick="SelAll()">全选</button> | <button name="b1" type="button" id="b1" class="btn btn-success btn-sm" onclick="SelAll()">全选</button> | ||||
<button name="b2" type="button" id="b2" class="btn btn-success btn-sm" onclick="ReSel()">反选</button> | <button name="b2" type="button" id="b2" class="btn btn-success btn-sm" onclick="ReSel()">反选</button> | ||||
@@ -62,7 +62,7 @@ | |||||
<td>主键字段:</td> | <td>主键字段:</td> | ||||
<td> | <td> | ||||
<input type="text" name="keyfield" id="keyfield" class="admin-input-sm"> | <input type="text" name="keyfield" id="keyfield" class="admin-input-sm"> | ||||
<label><input type="radio" name="rptype" id="ot1" value="replace" checked="1"> 普通替换</label> | |||||
<label><input type="radio" name="rptype" id="ot1" value="replace" checked="checked"> 普通替换</label> | |||||
<label><input type="radio" name="rptype" id="ot2" value="regex"> 正则表达式</label> | <label><input type="radio" name="rptype" id="ot2" value="regex"> 正则表达式</label> | ||||
<span>(正则模式必须指定)</span> | <span>(正则模式必须指定)</span> | ||||
</td> | </td> | ||||
@@ -31,11 +31,11 @@ | |||||
for ($i=0;$i<count($filelists);$i++) | for ($i=0;$i<count($filelists);$i++) | ||||
{ | { | ||||
echo "<tr align='center'>"; | echo "<tr align='center'>"; | ||||
$mtd = "<td width='10%'><input name='bakfile' id='bakfile' type='checkbox' value='".$filelists[$i]."' checked='1'></td><td width='40%'>{$filelists[$i]}</td>"; | |||||
$mtd = "<td width='10%'><input name='bakfile' id='bakfile' type='checkbox' value='".$filelists[$i]."' checked='checked'></td><td width='40%'>{$filelists[$i]}</td>"; | |||||
echo $mtd; | echo $mtd; | ||||
if (isset($filelists[$i+1])) { | if (isset($filelists[$i+1])) { | ||||
$i++; | $i++; | ||||
$mtd = "<td width='10%'><input name='bakfile' id='bakfile' type='checkbox' value='".$filelists[$i]."' checked='1'></td><td width='40%'>{$filelists[$i]}</td>"; | |||||
$mtd = "<td width='10%'><input name='bakfile' id='bakfile' type='checkbox' value='".$filelists[$i]."' checked='checked'></td><td width='40%'>{$filelists[$i]}</td>"; | |||||
echo $mtd; | echo $mtd; | ||||
} else { | } else { | ||||
echo "<td></td><td></td>"; | echo "<td></td><td></td>"; | ||||
@@ -45,7 +45,7 @@ | |||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td colspan="4"> | <td colspan="4"> | ||||
<label><input name="structfile" type="checkbox" id="structfile" value="<?php echo $structfile?>" checked="1"> 还原表结构信息(<?php echo $structfile?>)</label> | |||||
<label><input name="structfile" type="checkbox" id="structfile" value="<?php echo $structfile?>" checked="checked"> 还原表结构信息(<?php echo $structfile?>)</label> | |||||
<label><input name="delfile" type="checkbox" id="delfile" value="1"> 还原后删除备份文件</label> | <label><input name="delfile" type="checkbox" id="delfile" value="1"> 还原后删除备份文件</label> | ||||
<button name="b1" type="button" id="b1" onclick="SelAll()" class="btn btn-success btn-sm">全选</button> | <button name="b1" type="button" id="b1" onclick="SelAll()" class="btn btn-success btn-sm">全选</button> | ||||
<button name="b2" type="button" id="b2" onclick="ReSel()" class="btn btn-success btn-sm">反选</button> | <button name="b2" type="button" id="b2" onclick="ReSel()" class="btn btn-success btn-sm">反选</button> | ||||
@@ -114,8 +114,7 @@ else if ($open == 2) { | |||||
//分析本地链接 | //分析本地链接 | ||||
if (!isset($firstLink) && $islocal == 1) $firstLink = $link; | if (!isset($firstLink) && $islocal == 1) $firstLink = $link; | ||||
if ($islocal == 1 && $softconfig['islocal'] != 1) continue; | if ($islocal == 1 && $softconfig['islocal'] != 1) continue; | ||||
//支持http,迅雷下载,ftp,flashget | |||||
//支持http、迅雷下载、ftp、flashget | |||||
if (!preg_match("#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link)) { | if (!preg_match("#^http:\/\/|^thunder:\/\/|^ftp:\/\/|^flashget:\/\/#i", $link)) { | ||||
$link = $cfg_mainsite.$link; | $link = $cfg_mainsite.$link; | ||||
} | } | ||||
@@ -164,14 +163,13 @@ else if ($open == 2) { | |||||
while ($row = $dsql->GetObject('me')) { | while ($row = $dsql->GetObject('me')) { | ||||
$memberTypes[$row->rank] = $row->membername; | $memberTypes[$row->rank] = $row->membername; | ||||
} | } | ||||
$memberTypes[0] = "游客"; | |||||
$memberTypes[0] = "游客或没权限会员"; | |||||
$msgtitle = "您没有权限下载软件:{$arctitle}"; | $msgtitle = "您没有权限下载软件:{$arctitle}"; | ||||
$moremsg = "这个软件需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能下载,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | |||||
$moremsg = "该软件需要等级<span class='text-primary'>".$memberTypes[$needRank]."</span>才能下载,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span><a href='{$cfg_memberurl}/buy.php' class='btn btn-success btn-sm ml-2'>升级会员</button>"; | |||||
include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | ||||
exit(); | exit(); | ||||
} | } | ||||
//以下为正常情况,自动扣点数 | |||||
//如果文档需要金币,检查会员是否浏览过本文档 | |||||
//以下为正常情况,自动扣点数,如果文档需要金币,检查会员是否浏览过本文档 | |||||
if ($needMoney > 0 && $mid != $cfg_ml->M_ID) { | if ($needMoney > 0 && $mid != $cfg_ml->M_ID) { | ||||
$sql = "SELECT aid,money FROM `#@__member_operation` WHERE buyid='ARCHIVE".$id."' AND mid='".$cfg_ml->M_ID."'"; | $sql = "SELECT aid,money FROM `#@__member_operation` WHERE buyid='ARCHIVE".$id."' AND mid='".$cfg_ml->M_ID."'"; | ||||
$row = $dsql->GetOne($sql); | $row = $dsql->GetOne($sql); | ||||
@@ -180,7 +178,7 @@ else if ($open == 2) { | |||||
//没有足够的金币 | //没有足够的金币 | ||||
if ($needMoney > $cfg_ml->M_Money || $cfg_ml->M_Money == '') { | if ($needMoney > $cfg_ml->M_Money || $cfg_ml->M_Money == '') { | ||||
$msgtitle = "您没有权限下载软件:{$arctitle}"; | $msgtitle = "您没有权限下载软件:{$arctitle}"; | ||||
$moremsg = "该软件需要<span class='text-primary'>".$needMoney."</span>金币才能下载,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span>"; | |||||
$moremsg = "该软件需要消费<span class='text-primary'>".$needMoney."</span>金币才能下载,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span><a class='btn btn-success btn-sm ml-2' href='{$cfg_memberurl}/buy.php' target='_blank'>充值金币</a>"; | |||||
include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | ||||
exit(0); | exit(0); | ||||
} | } | ||||
@@ -188,7 +186,7 @@ else if ($open == 2) { | |||||
$inquery = "INSERT INTO `#@__member_operation` (mid,oldinfo,money,mtime,buyid,product,pname,sta) VALUES ('".$cfg_ml->M_ID."','$arctitle','$needMoney','".time()."', 'ARCHIVE".$id."', 'archive','下载软件', 2); "; | $inquery = "INSERT INTO `#@__member_operation` (mid,oldinfo,money,mtime,buyid,product,pname,sta) VALUES ('".$cfg_ml->M_ID."','$arctitle','$needMoney','".time()."', 'ARCHIVE".$id."', 'archive','下载软件', 2); "; | ||||
//记录定单 | //记录定单 | ||||
if (!$dsql->ExecuteNoneQuery($inquery)) { | if (!$dsql->ExecuteNoneQuery($inquery)) { | ||||
ShowMsg('记录定单失败, 请返回', '-1'); | |||||
ShowMsg('记录定单失败,请返回', '-1'); | |||||
exit(0); | exit(0); | ||||
} | } | ||||
//扣除金币 | //扣除金币 | ||||
@@ -47,8 +47,8 @@ if (isset($lv->Fields['corank']) && $lv->Fields['corank'] > 0) { | |||||
$memberTypes[$row->rank] = $row->membername; | $memberTypes[$row->rank] = $row->membername; | ||||
} | } | ||||
$memberTypes[0] = "游客或没权限会员"; | $memberTypes[0] = "游客或没权限会员"; | ||||
$msgtitle = "您没有权限浏览栏目:{$lv->Fields['typename']} "; | |||||
$moremsg = "该栏目需要<span class='text-primary'>".$memberTypes[$lv->Fields['corank']]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>,请进行<a href='{$cfg_memberurl}/buy.php' class='btn btn-success btn-sm'>升级会员</button>"; | |||||
$msgtitle = "您没有权限浏览栏目:{$lv->Fields['typename']}"; | |||||
$moremsg = "该栏目需要等级<span class='text-primary'>".$memberTypes[$lv->Fields['corank']]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span><a href='{$cfg_memberurl}/buy.php' class='btn btn-success btn-sm ml-2'>升级会员</button>"; | |||||
include_once(DEDETEMPLATE.'/apps/view_msg_catalog.htm'); | include_once(DEDETEMPLATE.'/apps/view_msg_catalog.htm'); | ||||
exit(); | exit(); | ||||
} | } | ||||
@@ -42,8 +42,8 @@ if ($needMoney > 0 || $needRank > 1) { | |||||
$memberTypes[$row->rank] = $row->membername; | $memberTypes[$row->rank] = $row->membername; | ||||
} | } | ||||
$memberTypes[0] = "游客或没权限会员"; | $memberTypes[0] = "游客或没权限会员"; | ||||
$msgtitle = "您没有权限浏览文档:{$arctitle} "; | |||||
$moremsg = "该文档需要<span class='text-primary'>".$memberTypes[$needRank]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | |||||
$msgtitle = "您没有权限浏览文档:{$arctitle}"; | |||||
$moremsg = "该文档需要消费<span class='text-primary'>".$memberTypes[$needRank]."</span>才能浏览,您目前等级是<span class='text-primary'>".$memberTypes[$cfg_ml->M_Rank]."</span>"; | |||||
include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | ||||
exit(); | exit(); | ||||
} | } | ||||
@@ -55,7 +55,7 @@ if ($needMoney > 0 || $needRank > 1) { | |||||
if (!is_array($row)) { | if (!is_array($row)) { | ||||
if ($cfg_ml->M_Money == '' || $needMoney > $cfg_ml->M_Money) { | if ($cfg_ml->M_Money == '' || $needMoney > $cfg_ml->M_Money) { | ||||
$msgtitle = "您没有权限浏览文档:{$arctitle} "; | $msgtitle = "您没有权限浏览文档:{$arctitle} "; | ||||
$moremsg = "该文档需要<span class='text-primary'>".$needMoney."</span>金币才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span><a class='btn btn-success btn-sm ml-2' href='{$GLOBALS['cfg_cmsurl']}/user/buy.php' target='_blank'>前去充值</a>"; | |||||
$moremsg = "该文档需要消费<span class='text-primary'>".$needMoney."</span>金币才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span><a class='btn btn-success btn-sm ml-2' href='{$cfg_memberurl}/buy.php' target='_blank'>充值金币</a>"; | |||||
include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | include_once(DEDETEMPLATE.'/apps/view_msg.htm'); | ||||
$arc->Close(); | $arc->Close(); | ||||
exit(); | exit(); | ||||
@@ -76,7 +76,7 @@ if ($needMoney > 0 || $needRank > 1) { | |||||
} | } | ||||
} | } | ||||
$msgtitle = "扣金币购买阅读"; | $msgtitle = "扣金币购买阅读"; | ||||
$moremsg = "该文档需要付费<span class='text-primary'>".$needMoney."</span>金币,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span><a class='btn btn-success btn-sm ml-2' href='{$GLOBALS['cfg_cmsurl']}/apps/view.php?aid=".$aid."&dopost=buy' target='_blank'>确认付点阅读</a>"; | |||||
$moremsg = "该文档需要消费<span class='text-primary'>".$needMoney."</span>金币才能浏览,您目前金币<span class='text-primary'>".$cfg_ml->M_Money."</span><a href='/apps/view.php?aid=".$aid."&dopost=buy' target='_blank' class='btn btn-success btn-sm ml-2'>确认阅读</a>"; | |||||
include_once($cfg_basedir.$cfg_templets_dir."/apps/view_msg.htm"); | include_once($cfg_basedir.$cfg_templets_dir."/apps/view_msg.htm"); | ||||
$arc->Close(); | $arc->Close(); | ||||
exit(); | exit(); | ||||
@@ -791,7 +791,7 @@ class Archives | |||||
$PageList = preg_replace("#.php\?aid=(\d+)#i", '-\\1-1.html', $PageList); | $PageList = preg_replace("#.php\?aid=(\d+)#i", '-\\1-1.html', $PageList); | ||||
} | } | ||||
} else { | } else { | ||||
$PageList .= "<li class=\"page-item active\"><a class='page-link'>1</a></li>"; | |||||
$PageList .= "<li class='page-item active'><a class='page-link'>1</a></li>"; | |||||
} | } | ||||
} else { | } else { | ||||
$n = $i; | $n = $i; | ||||
@@ -802,7 +802,7 @@ class Archives | |||||
$PageList = preg_replace("#&pageno=(\d+)#i", '-\\1.html', $PageList); | $PageList = preg_replace("#&pageno=(\d+)#i", '-\\1.html', $PageList); | ||||
} | } | ||||
} else { | } else { | ||||
$PageList .= "<li class=\"page-item active\"><span class='page-link'>{$n}</span></li>"; | |||||
$PageList .= "<li class='page-item active'><span class='page-link'>{$n}</span></li>"; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -835,7 +835,7 @@ class Archives | |||||
$nPage = $nowPage - 1; | $nPage = $nowPage - 1; | ||||
$lPage = $nowPage + 1; | $lPage = $nowPage + 1; | ||||
if ($nowPage == 1) { | if ($nowPage == 1) { | ||||
$PageList .= "<li class='page-item disabled'><a class='page-link' href='javascript:;'>上一页</a></li>"; | |||||
$PageList .= "<li class='page-item disabled'><span class='page-link'>上一页</span></li>"; | |||||
} else { | } else { | ||||
if ($nPage == 1) { | if ($nPage == 1) { | ||||
$PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst.".".$this->ShortName."'>上一页</a></li>"; | $PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst.".".$this->ShortName."'>上一页</a></li>"; | ||||
@@ -848,14 +848,14 @@ class Archives | |||||
if ($nowPage != 1) { | if ($nowPage != 1) { | ||||
$PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst.".".$this->ShortName."'>1</a></li>"; | $PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst.".".$this->ShortName."'>1</a></li>"; | ||||
} else { | } else { | ||||
$PageList .= "<li class=\"page-item active\"><span class='page-link'>1</span></li>"; | |||||
$PageList .= "<li class='page-item active'><span class='page-link'>1</span></li>"; | |||||
} | } | ||||
} else { | } else { | ||||
$n = $i; | $n = $i; | ||||
if ($nowPage != $i) { | if ($nowPage != $i) { | ||||
$PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst."_".$i.".".$this->ShortName."'>".$n."</a></li>"; | $PageList .= "<li class='page-item'><a class='page-link' href='".$this->NameFirst."_".$i.".".$this->ShortName."'>".$n."</a></li>"; | ||||
} else { | } else { | ||||
$PageList .= "<li class=\"page-item active\"><span class='page-link'>{$n}</span></li>"; | |||||
$PageList .= "<li class='page-item active'><span class='page-link'>{$n}</span></li>"; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -1171,11 +1171,9 @@ class ListView | |||||
if (preg_match('/info/i', $listitem)) $plist .= $maininfo; | if (preg_match('/info/i', $listitem)) $plist .= $maininfo; | ||||
//伪静态分页 | //伪静态分页 | ||||
if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
$plist = str_replace('.php?tid=','-',$plist); | |||||
$plist = preg_replace("/&TotalResult=(\d+)/i","",$plist);//去掉总结果数值 | |||||
//目录版默认 | |||||
$plist = preg_replace("/&PageNo=(\d+)/i",'-\\1',$plist); | |||||
//网页版$plist = preg_replace("/&PageNo=(\d+)/i",'-\\1.html',$plist); | |||||
$plist = str_replace(".php?tid=", "-", $plist); | |||||
$plist = preg_replace("/&PageNo=(\d+)/i", "-\\1", $plist); | |||||
$plist = preg_replace("/&TotalResult=(\d+)/i", "", $plist);//去掉分页数值 | |||||
} | } | ||||
return $plist; | return $plist; | ||||
} | } | ||||
@@ -142,12 +142,11 @@ if (!function_exists('GetFileName')) { | |||||
$namerule = $cfg_special.'/{aid}.html'; | $namerule = $cfg_special.'/{aid}.html'; | ||||
$typeid = -1; | $typeid = -1; | ||||
} | } | ||||
//伪静态文档 | |||||
//动态文档 | |||||
if ($rank != 0 || $ismake == -1 || $typeid == 0 || $money > 0) { | if ($rank != 0 || $ismake == -1 || $typeid == 0 || $money > 0) { | ||||
if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
//目录版return "/article/".$aid.""; | |||||
//网页版默认,文档形式:域名/1.html、域名/2.html,分页形式:域名/1-1.html、域名/1-2.html | |||||
return "/".$aid.".html"; | |||||
//开启伪静态文档/doc-1.html、/doc-2.html,则分页/doc-1-1.html、/doc-1-2.html | |||||
return "/doc-".$aid.".html"; | |||||
} else { | } else { | ||||
return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid"; | return $GLOBALS['cfg_phpurl']."/view.php?aid=$aid"; | ||||
} | } | ||||
@@ -200,18 +199,17 @@ if (!function_exists('GetTypeUrl')) { | |||||
global $cfg_typedir_df, $cfg_rewrite; | global $cfg_typedir_df, $cfg_rewrite; | ||||
$typedir = MfTypedir($typedir); | $typedir = MfTypedir($typedir); | ||||
$sitepath = MfTypedir($sitepath); | $sitepath = MfTypedir($sitepath); | ||||
//伪静态栏目 | |||||
if ($isdefault==-1) { | |||||
//动态 | |||||
//动态栏目 | |||||
if ($isdefault == -1) { | |||||
if ($cfg_rewrite == 'Y') { | if ($cfg_rewrite == 'Y') { | ||||
//网页版,栏目形式:域名/list-1.html、域名/list-2.html,分页形式:域名/list-1-1.html、域名/list-1-2.htmlreturn $GLOBALS['cfg_cmspath']."/list-".$typeid.".html"; | |||||
//目录版默认,栏目形式:域名/list-1、域名/list-2,分页形式:域名/list-1-1、域名/list-1-2 | |||||
//开启伪静态栏目/list-1、/list-2,则分页/list-1-1、/list-1-2 | |||||
return $GLOBALS['cfg_cmspath']."/list-".$typeid.""; | return $GLOBALS['cfg_cmspath']."/list-".$typeid.""; | ||||
} else { | } else { | ||||
$reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid; | $reurl = $GLOBALS['cfg_phpurl']."/list.php?tid=".$typeid; | ||||
} | } | ||||
} else if ($ispart == 2) { | |||||
//跳转网址 | |||||
} | |||||
//跳转网址 | |||||
else if ($ispart == 2) { | |||||
$reurl = $typedir; | $reurl = $typedir; | ||||
return $reurl; | return $reurl; | ||||
} else { | } else { | ||||
@@ -268,7 +266,7 @@ if (!function_exists('GetTopids')) { | |||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 获取上级ID列表 | |||||
* 获取上级id列表 | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $tid 栏目id | * @param string $tid 栏目id | ||||
@@ -361,7 +359,7 @@ function GetSonIdsLogic($id, $sArr, $channel = 0, $addthis = false) | |||||
/** | /** | ||||
* 栏目目录规则 | * 栏目目录规则 | ||||
* | * | ||||
* @param string $typedir 栏目目录 | |||||
* @param string $typedir 栏目目录 | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
function MfTypedir($typedir) | function MfTypedir($typedir) | ||||
@@ -98,7 +98,7 @@ | |||||
if ($ctag->GetName()=="img") { | if ($ctag->GetName()=="img") { | ||||
?> | ?> | ||||
<div class="mb-3"> | <div class="mb-3"> | ||||
<label class="mb-0"><input type="checkbox" name="isokcheck<?php echo $j;?>" id="isokcheck<?php echo $j;?>" value="1" onclick="CheckSelTable(<?php echo $j;?>)" checked="1"> 显示图片<?php echo $j;?>上传框</label> | |||||
<label class="mb-0"><input type="checkbox" name="isokcheck<?php echo $j;?>" id="isokcheck<?php echo $j;?>" value="1" onclick="CheckSelTable(<?php echo $j;?>)" checked="checked"> 显示图片<?php echo $j;?>上传框</label> | |||||
</div> | </div> | ||||
<div id="seltb<?php echo $j;?>" class="mb-3"> | <div id="seltb<?php echo $j;?>" class="mb-3"> | ||||
<div class="mb-3"><img src="<?php echo trim($ctag->GetInnerText());?>" class="thumbnail-md"></div> | <div class="mb-3"><img src="<?php echo trim($ctag->GetInnerText());?>" class="thumbnail-md"></div> | ||||
@@ -87,9 +87,9 @@ | |||||
<div class="form-group row"> | <div class="form-group row"> | ||||
<label for="iptEmail" class="col-sm-3 col-form-label">性别:</label> | <label for="iptEmail" class="col-sm-3 col-form-label">性别:</label> | ||||
<div class="col-sm-9 input-text"> | <div class="col-sm-9 input-text"> | ||||
<label><input type="radio" name="sex" value="男" <?php if ($row['sex']=='男') echo " checked='checked' " ;?>> 男</label> | |||||
<label><input type="radio" name="sex" value="女" <?php if ($row['sex']=='女') echo " checked='checked' " ;?>> 女</label> | |||||
<label><input type="radio" name="sex" value="保密" <?php if ($row['sex']=='保密') echo " checked='checked' " ;?>> 保密</label> | |||||
<label><input type="radio" name="sex" value="男" <?php if ($row['sex']=='男') echo "checked='checked'" ;?>> 男</label> | |||||
<label><input type="radio" name="sex" value="女" <?php if ($row['sex']=='女') echo "checked='checked'" ;?>> 女</label> | |||||
<label><input type="radio" name="sex" value="保密" <?php if ($row['sex']=='保密') echo "checked='checked'" ;?>> 保密</label> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="text-center"><button type="submit" class="btn btn-success btn-sm">保存</button></div> | <div class="text-center"><button type="submit" class="btn btn-success btn-sm">保存</button></div> | ||||