@@ -1,5 +1,15 @@ | |||||
# 更新记录 | # 更新记录 | ||||
通过访问 https://www.dedebiz.com/git 获取完整更新记录 | 通过访问 https://www.dedebiz.com/git 获取完整更新记录 | ||||
# V6.1.10 | |||||
- 增加“安全”、“开发”模式,安全模式用于生产使用,移除后台开发相关功能; | |||||
- 后台界面样式调整,优化菜单项; | |||||
- 修正外部链接https链接问题和数据优化; | |||||
- 优化验证码功能; | |||||
- 增加DedeAlert函数,提示更方便、美观; | |||||
- 修正富文本选择图片错误; | |||||
- 修正单页采集的错误; | |||||
- 修正采集图片背景黑色问题; | |||||
- 图集文件名格式调整; | |||||
# v6.1.9 | # v6.1.9 | ||||
- 文档标题扩容,支持更多内容; | - 文档标题扩容,支持更多内容; | ||||
@@ -31,6 +31,7 @@ if ($dopost != 'save') { | |||||
$channelid = $cInfos['id']; | $channelid = $cInfos['id']; | ||||
//获取文章最大id+1以确定当前权重 | //获取文章最大id+1以确定当前权重 | ||||
$maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | $maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | ||||
$maxWright = empty($maxWright)? array('cc'=>1) : $maxWright; | |||||
include DedeInclude("templets/album_add.htm"); | include DedeInclude("templets/album_add.htm"); | ||||
exit(); | exit(); | ||||
} | } | ||||
@@ -34,6 +34,7 @@ if ($dopost != 'save') { | |||||
$channelid = $cInfos['id']; | $channelid = $cInfos['id']; | ||||
//获取文章最大id+1以确定当前权重 | //获取文章最大id+1以确定当前权重 | ||||
$maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | $maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | ||||
$maxWright = empty($maxWright)? array('cc'=>1) : $maxWright; | |||||
include DedeInclude('templets/archives_add.htm'); | include DedeInclude('templets/archives_add.htm'); | ||||
exit(); | exit(); | ||||
} | } | ||||
@@ -43,7 +43,7 @@ if ($dopost != 'save') { | |||||
$cInfos = $dsql->GetOne(" Select * From `#@__channeltype` where id='$channelid' "); | $cInfos = $dsql->GetOne(" Select * From `#@__channeltype` where id='$channelid' "); | ||||
//获取文章最大id+1以确定当前权重 | //获取文章最大id+1以确定当前权重 | ||||
$maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | $maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | ||||
$maxWright = empty($maxWright)? array('cc'=>1) : $maxWright; | |||||
include DedeInclude("templets/article_add.htm"); | include DedeInclude("templets/article_add.htm"); | ||||
exit(); | exit(); | ||||
} | } | ||||
@@ -2,7 +2,7 @@ | |||||
/** | /** | ||||
* 图片选择 | * 图片选择 | ||||
* | * | ||||
* @version $Id: select_images.php 1 9:43 2010年7月8日Z tianya $ | |||||
* @version $Id: select_images.php 2022-07-01 tianya $ | |||||
* @package DedeBIZ.Dialog | * @package DedeBIZ.Dialog | ||||
* @copyright Copyright (c) 2022, DedeBIZ.COM | * @copyright Copyright (c) 2022, DedeBIZ.COM | ||||
* @license https://www.dedebiz.com/license | * @license https://www.dedebiz.com/license | ||||
@@ -60,7 +60,7 @@ if (!empty($iseditor)) { | |||||
<link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../../static/web/font/css/font-awesome.min.css"> | ||||
<link rel="stylesheet" href="../../static/web/css/admin.css"> | <link rel="stylesheet" href="../../static/web/css/admin.css"> | ||||
<style> | <style> | ||||
html{background:#f8f8f8} | |||||
html{background:#f6f6f6} | |||||
table{background:#fff} | table{background:#fff} | ||||
a{text-decoration:none!important} | a{text-decoration:none!important} | ||||
.bg{margin:10px;border-radius:.2rem;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)} | .bg{margin:10px;border-radius:.2rem;box-shadow:0 1px 2px 0 rgba(0,0,0,.05)} | ||||
@@ -139,7 +139,7 @@ a{text-decoration:none!important} | |||||
</script> | </script> | ||||
<table width="100%" cellpadding="0" cellspacing="1" align="center" class="table table-borderless"> | <table width="100%" cellpadding="0" cellspacing="1" align="center" class="table table-borderless"> | ||||
<tr> | <tr> | ||||
<td colspan="4"> | |||||
<td colspan="4" height="26"> | |||||
<form action="select_images_post.php" method="POST" enctype="multipart/form-data" name="myform"> | <form action="select_images_post.php" method="POST" enctype="multipart/form-data" name="myform"> | ||||
<?php $noeditor = !empty($noeditor) ? "<input type='hidden' name='noeditor' value='yes'>" : ''; echo $noeditor; ?> | <?php $noeditor = !empty($noeditor) ? "<input type='hidden' name='noeditor' value='yes'>" : ''; echo $noeditor; ?> | ||||
<input type="hidden" name="activepath" value="<?php echo $activepath ?>"> | <input type="hidden" name="activepath" value="<?php echo $activepath ?>"> | ||||
@@ -149,8 +149,8 @@ a{text-decoration:none!important} | |||||
<input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1; ?>"> | <input type="hidden" name="CKEditorFuncNum" value="<?php echo isset($CKEditorFuncNum) ? $CKEditorFuncNum : 1; ?>"> | ||||
<input type="hidden" name="job" value="upload"> | <input type="hidden" name="job" value="upload"> | ||||
上传:<input type="file" name="imgfile" style="width:50%;border:none"> | 上传:<input type="file" name="imgfile" style="width:50%;border:none"> | ||||
<label><input type="checkbox" name="needwatermark" value="1" <?php if ($photo_markup == '1') echo "checked"; ?> /> 水印 </label> | |||||
<label><input type="checkbox" name="resize" value="1"> 缩小 </label> | |||||
<label><input type="checkbox" name="needwatermark" value="1" class="np" <?php if ($photo_markup == '1') echo "checked"; ?> /> 水印 </label> | |||||
<label><input type="checkbox" name="resize" value="1" class="np"> 缩小 </label> | |||||
宽:<input type="text" name="iwidth" value="<?php echo $cfg_ddimg_width ?>" style="width:46px"> | 宽:<input type="text" name="iwidth" value="<?php echo $cfg_ddimg_width ?>" style="width:46px"> | ||||
高:<input type="text" name="iheight" value="<?php echo $cfg_ddimg_height ?>" style="width:46px"> | 高:<input type="text" name="iheight" value="<?php echo $cfg_ddimg_height ?>" style="width:46px"> | ||||
<button type="submit" name="sb1" class="btn btn-success btn-sm">上传</button> | <button type="submit" name="sb1" class="btn btn-success btn-sm">上传</button> | ||||
@@ -177,10 +177,10 @@ a{text-decoration:none!important} | |||||
$filesize = $filesize / 1024; | $filesize = $filesize / 1024; | ||||
if ($filesize != "") | if ($filesize != "") | ||||
if ($filesize < 0.1) { | if ($filesize < 0.1) { | ||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
@list($ty1, $ty2) = explode("\.", $filesize); | |||||
$filesize = $ty1.".".substr($ty2, 0, 2); | $filesize = $ty1.".".substr($ty2, 0, 2); | ||||
} else { | } else { | ||||
@list($ty1, $ty2) = split("\.", $filesize); | |||||
@list($ty1, $ty2) = explode("\.", $filesize); | |||||
$filesize = $ty1.".".substr($ty2, 0, 1); | $filesize = $ty1.".".substr($ty2, 0, 1); | ||||
} | } | ||||
$filetime = filemtime("$inpath/$file"); | $filetime = filemtime("$inpath/$file"); | ||||
@@ -32,6 +32,7 @@ if ($dopost != 'save') { | |||||
$channelid = $cInfos['id']; | $channelid = $cInfos['id']; | ||||
//获取文章最大id+1以确定当前权重 | //获取文章最大id+1以确定当前权重 | ||||
$maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | $maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | ||||
$maxWright = empty($maxWright)? array('cc'=>1) : $maxWright; | |||||
include DedeInclude("templets/soft_add.htm"); | include DedeInclude("templets/soft_add.htm"); | ||||
exit(); | exit(); | ||||
} | } | ||||
@@ -7,21 +7,17 @@ | |||||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
<link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
<link rel="stylesheet" href="../static/web/css/daterangepicker.css"> | |||||
<link rel="stylesheet" href="../static/web/css/jquery.fileupload.css"> | |||||
<link rel="stylesheet" href="../static/web/css/cropper.min.css"> | |||||
<script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut; ?>';</script> | <script>const cfg_uplitpic_cut = '<?php echo $cfg_uplitpic_cut; ?>';</script> | ||||
<script src="../static/web/js/jquery.min.js"></script> | <script src="../static/web/js/jquery.min.js"></script> | ||||
<script src="../static/web/js/webajax.js"></script> | <script src="../static/web/js/webajax.js"></script> | ||||
<script src="../static/web/js/bootstrap.bundle.min.js"></script> | <script src="../static/web/js/bootstrap.bundle.min.js"></script> | ||||
<script src="js/main.js"></script> | <script src="js/main.js"></script> | ||||
<link rel="stylesheet" href="../static/web/css/daterangepicker.css"> | |||||
<script src="../static/web/js/moment.min.js"></script> | <script src="../static/web/js/moment.min.js"></script> | ||||
<script src="../static/web/js/daterangepicker.js"></script> | <script src="../static/web/js/daterangepicker.js"></script> | ||||
<link rel="stylesheet" href="../static/web/css/jquery.fileupload.css"> | |||||
<link rel="stylesheet" href="../static/web/css/cropper.min.css"> | |||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
<style> | |||||
table{border-collapse:separate} | |||||
.form-control{display:inline-block;margin-right:10px;width:160px} | |||||
</style> | |||||
<script> | <script> | ||||
function checkSubmit() { | function checkSubmit() { | ||||
if (document.form1.title.value == "") { | if (document.form1.title.value == "") { | ||||
@@ -31,12 +27,18 @@ | |||||
} | } | ||||
} | } | ||||
</script> | </script> | ||||
<style> | |||||
body{background:#fff} | |||||
img{vertical-align:baseline} | |||||
table{border-collapse:separate} | |||||
.form-control{display:inline-block;margin-right:10px;width:160px} | |||||
</style> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | ||||
<tr> | <tr> | ||||
<td width="70%"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a> > 修改商品</td> | |||||
<td width="30%" align="right"><?php echo $backurl; ?><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td> | |||||
<td width="70%" height="26"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文档列表</a> > 修改商品</td> | |||||
<td width="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<table width="98%" align="center" cellpadding="0" cellspacing="0" id="head1"> | <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head1"> | ||||
@@ -44,8 +46,8 @@ | |||||
<td colspan="2"> | <td colspan="2"> | ||||
<table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
<tr> | <tr> | ||||
<td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td> | |||||
<td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
<td width="86" height="26" align="center" background="../static/web/img/itemnote1.gif">常规信息</td> | |||||
<td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -54,10 +56,10 @@ | |||||
<table width="98%" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none"> | <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none"> | ||||
<tr> | <tr> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<table cellpadding="0" cellspacing="0"> | |||||
<table height="26" cellpadding="0" cellspacing="0"> | |||||
<tr> | <tr> | ||||
<td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
<td width="84" height="28" align="center" bgcolor="#FBFCE2">高级参数</td> | |||||
<td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
<td width="86" align="center" background="../static/web/img/itemnote1.gif">高级参数</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -69,22 +71,22 @@ | |||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #dee2e6"> | <table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #dee2e6"> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> <?php echo $cInfos['titlename']; ?>:</td> | |||||
<td width="400"><input type="text" name="title" id="title" value="<?php echo $arcRow['title']; ?>" style="width:390px"></td> | |||||
<td width="90"> 简略标题:</td> | |||||
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:160px"></td> | |||||
<td width="90"> <?php echo $cInfos['titlename']; ?>:</td> | |||||
<td width="400"><input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" style="width:380px"></td> | |||||
<td width="90"> 简略标题:</td> | |||||
<td><input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:160px"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="100%" class="bline"> | |||||
<td width="400%" height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 自定义属性:</td> | |||||
<td width="90"> 自定义属性:</td> | |||||
<td> | <td> | ||||
<?php | <?php | ||||
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC"); | $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC"); | ||||
@@ -94,9 +96,9 @@ | |||||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | ||||
else $jumpclick = ''; | else $jumpclick = ''; | ||||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | if(preg_match("#".$trow->att."#", $arcRow['flag'])) | ||||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | |||||
echo "<label><input class='np' 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-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label>"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
?> | ?> | ||||
</td> | </td> | ||||
@@ -105,38 +107,39 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block'); ?>"> | |||||
<td height="26" class="bline" id="redirecturltr" | |||||
style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block'); ?>"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 跳转网址:</td> | |||||
<td><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']; ?>" style="width:300px"></td> | |||||
<td width="90"> 跳转网址:</td> | |||||
<td><input name="redirecturl" type="text" id="redirecturl" value="<?php echo $addRow['redirecturl']; ?>" style="width:300px"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="100%" class="bline"> | |||||
<td width="400%" height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> Tag标签:</td> | |||||
<td><input type="text" name="tags" id="tags" value="<?php echo $tags; ?>" style="width:300px">(','号分开,单个标签小于12字节)</td> | |||||
<td width="90"> Tag标签:</td> | |||||
<td><input name="tags" type="text" id="tags" value="<?php echo $tags; ?>" style="width:300px">(','号分开,单个标签小于12字节)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight']; ?>" style="width:60px">(越小越靠前)</td> | |||||
<td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight']; ?>" style="width:60px">(越小越靠前)</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr id="pictable" style="<?php if($cInfos['needpic']==0) echo 'display:none'; ?>"> | |||||
<td class="bline"> | |||||
<tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90" height="80"> 缩略图:</td> | |||||
<td width="90" height="80"> 缩略图:</td> | |||||
<td> | <td> | ||||
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" style="width:300px"> | |||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||||
<input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" style="width:300px"> | |||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="np"> 远程</label> | |||||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | ||||
<button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | ||||
<button type="button"id="btnClearAll" class="btn btn-success btn-sm delete">清空</button> | |||||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button> | |||||
</td> | </td> | ||||
<td align="center"> | <td align="center"> | ||||
<img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg'; ?>" style="max-width:100px;max-height:80px"> | <img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg'; ?>" style="max-width:100px;max-height:80px"> | ||||
@@ -146,18 +149,18 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 来源:</td> | |||||
<td width="90"> 来源:</td> | |||||
<td width="260"> | <td width="260"> | ||||
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" style="width:160px"> | |||||
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button> | |||||
<input name="source" type="text" id="source" value="<?php echo $arcRow['source']?>" style="width:160px"> | |||||
<button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button> | |||||
</td> | </td> | ||||
<td width="60">作者:</td> | <td width="60">作者:</td> | ||||
<td> | <td> | ||||
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" style="width:160px"> | |||||
<button type="button" class="btn btn-success btn-sm" name="selwriter" id="selwriter">选择</button> | |||||
<input name="writer" type="text" id="writer" value="<?php echo $arcRow['writer']?>" style="width:160px"> | |||||
<button class="btn btn-success btn-sm" name="selwriter" type="button" id="selwriter">选择</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -171,10 +174,10 @@ | |||||
} else { | } else { | ||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 发布栏目:</td> | |||||
<td width="90"> 发布栏目:</td> | |||||
<td width="360"> | <td width="360"> | ||||
<?php | <?php | ||||
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | ||||
@@ -183,10 +186,10 @@ | |||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
?> | ?> | ||||
<i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid')" title="快捷选择" style="cursor:pointer"></i> | |||||
<i class='btn btn-sm fa fa-search' onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid')" title='快捷选择' style='cursor:pointer'></i> | |||||
</td> | </td> | ||||
<td width="90">消费金币:</td> | <td width="90">消费金币:</td> | ||||
<td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" style="width:160px"></td> | |||||
<td><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" style="width:160px"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -195,34 +198,34 @@ | |||||
if($cfg_need_typeid2=='Y') { | if($cfg_need_typeid2=='Y') { | ||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 副栏目:</td> | |||||
<td width="90"> 副栏目:</td> | |||||
<td> | <td> | ||||
<span id="typeid2ct"></span> | |||||
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>" style="width:260px"> | |||||
<i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid2','<?php echo $arcRow['typeid2']; ?>')" title="选择副栏目" style="cursor:pointer"></i> | |||||
<span id='typeid2ct'></span> | |||||
<input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:260px;'> | |||||
<i class='btn btn-sm fa fa-search' onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid2','<?php echo $arcRow['typeid2']; ?>')" title='选择副栏目' style='cursor:pointer'></i> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 关键词:</td> | |||||
<td width="90"> 关键词:</td> | |||||
<td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" style="width:360px"></td> | <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" style="width:360px"></td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 描述:</td> | |||||
<td width="90"> 描述:</td> | |||||
<td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $arcRow['description']?></textarea></td> | <td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $arcRow['description']?></textarea></td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -233,47 +236,55 @@ | |||||
} | } | ||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td width="900"> | |||||
<td> | |||||
<?php | |||||
PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow); | |||||
?> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="400%" height="26"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 附加选项:</td> | |||||
<td width="90"> 附加选项:</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 name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?>> | |||||
下载远程图片和资源</label> | |||||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?>> | |||||
提取第一个图片为缩略图</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td><?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow); ?></td> | |||||
</tr> | |||||
</table> | </table> | ||||
<!--高级参数--> | <!--高级参数--> | ||||
<table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;display:none"> | <table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;display:none"> | ||||
<tr> | <tr> | ||||
<td colspan="4" class="bline"> | |||||
<td height="26" colspan="4" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90" width="260"> 评论选项:</td> | |||||
<td width="90" height="26" 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' class='np' value='0' <?php if($arcRow['notpost']==0) echo " checked='1' "; ?> /> 允许评论</label> | |||||
| |||||
<label><input type='radio' name='notpost' class='np' value='1' <?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
<td> | |||||
<label><input type="radio" name="ishtml" value="1" <?php if($arcRow["ismake"]!=-1) echo "checked"; ?>> 生成网页</label> | |||||
<label><input type="radio" name="ishtml" value="0" <?php if($arcRow["ismake"]==-1) echo "checked"; ?>> 仅动态浏览</label> | |||||
<td><label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked"; ?>> | |||||
生成HTML</label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked"; ?>> | |||||
仅动态浏览</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 文档排序:</td> | |||||
<td width="90"> 文档排序:</td> | |||||
<td width="260"><select name="sortup" id="sortup" style="width:160px"> | <td width="260"><select name="sortup" id="sortup" style="width:160px"> | ||||
<?php | <?php | ||||
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]); | $subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]); | ||||
@@ -289,18 +300,18 @@ | |||||
</td> | </td> | ||||
<td width="90">标题颜色:</td> | <td width="90">标题颜色:</td> | ||||
<td> | <td> | ||||
<input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" style="width:160px"> | |||||
<button type="button" name="modcolor" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button> | |||||
<input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" style="width:160px"> | |||||
<button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 阅读权限:</td> | |||||
<td width="90"> 阅读权限:</td> | |||||
<td width="260"><select name="arcrank" id="arcrank" style="width:160px"> | <td width="260"><select name="arcrank" id="arcrank" style="width:160px"> | ||||
<option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option> | <option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option> | ||||
<?php | <?php | ||||
@@ -320,10 +331,10 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="70" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 更新时间:</td> | |||||
<td width="90"> 更新时间:</td> | |||||
<td width="260"><?php | <td width="260"><?php | ||||
$nowtime = GetDateTimeMk(time()); | $nowtime = GetDateTimeMk(time()); | ||||
echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker' style='width:160px'>"; | echo "<input name='pubdate' value='$nowtime' type='text' id='pubdate' class='datepicker' style='width:160px'>"; | ||||
@@ -338,7 +349,7 @@ | |||||
</table> | </table> | ||||
<table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3"> | <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3"> | ||||
<tr> | <tr> | ||||
<td align="center" class="py-2"> | |||||
<td align="center" class="py-3"> | |||||
<button type="submit" class="btn btn-success btn-sm">保存</button> | <button type="submit" class="btn btn-success btn-sm">保存</button> | ||||
<button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button> | <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button> | ||||
</td> | </td> | ||||
@@ -19,12 +19,6 @@ | |||||
<script src="js/handlers.js"></script> | <script src="js/handlers.js"></script> | ||||
<script src="../static/web/js/bootstrap.bundle.min.js"></script> | <script src="../static/web/js/bootstrap.bundle.min.js"></script> | ||||
<script src="../static/web/js/cropper.min.js"></script> | <script src="../static/web/js/cropper.min.js"></script> | ||||
<style> | |||||
table{border-collapse:separate} | |||||
.albCt img{cursor:pointer} | |||||
.multipic{border:1px dashed #FC6} | |||||
.albCt{border-bottom:1px dashed #FC0;margin-bottom:10px;padding-bottom:10px} | |||||
</style> | |||||
<script> | <script> | ||||
var swfu = null; | var swfu = null; | ||||
var arctype = 'article'; | var arctype = 'article'; | ||||
@@ -36,11 +30,19 @@ | |||||
} | } | ||||
} | } | ||||
</script> | </script> | ||||
<style> | |||||
body{background:#fff} | |||||
img{vertical-align:baseline} | |||||
table{border-collapse:separate} | |||||
.albCt img{cursor:pointer} | |||||
.multipic{border:1px dashed #FC6} | |||||
.albCt{border-bottom:1px dashed #FC0;margin-bottom:10px;padding-bottom:10px} | |||||
</style> | |||||
</head> | </head> | ||||
<body> | <body> | ||||
<table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | <table width="98%" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | ||||
<tr> | <tr> | ||||
<td width="60%"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文章列表</a> > 修改文章</td> | |||||
<td width="60%" height="26"><i class="fa fa-book"></i> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&channelid=<?php echo $channelid?>&dopost=listArchives">文章列表</a> > 修改文章</td> | |||||
<td width="30%" align="right"><?php echo $backurl; ?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a></td> | <td width="30%" align="right"><?php echo $backurl; ?><a class="btn btn-success btn-sm" href="catalog_main.php">栏目管理</a></td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -49,8 +51,8 @@ | |||||
<td colspan="2"> | <td colspan="2"> | ||||
<table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
<tr> | <tr> | ||||
<td width="84" height="28" align="center" bgcolor="#FBFCE2">常规信息</td> | |||||
<td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
<td width="86" height="26" align="center" background="../static/web/img/itemnote1.gif">常规信息</td> | |||||
<td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -59,10 +61,10 @@ | |||||
<table width="98%" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none"> | <table width="98%" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none"> | ||||
<tr> | <tr> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
<table cellpadding="0" cellspacing="0"> | |||||
<table height="26" cellpadding="0" cellspacing="0"> | |||||
<tr> | <tr> | ||||
<td width="84" align="center" bgcolor="#f8f8f8"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
<td width="84" height="28" align="center" bgcolor="#FBFCE2">高级参数</td> | |||||
<td width="86" align="center" background="../static/web/img/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||||
<td width="86" align="center" background="../static/web/img/itemnote1.gif">高级参数</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -74,22 +76,22 @@ | |||||
<input type="hidden" name="id" value="<?php echo $aid?>"> | <input type="hidden" name="id" value="<?php echo $aid?>"> | ||||
<table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #dee2e6"> | <table width="98%" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #dee2e6"> | ||||
<tr> | <tr> | ||||
<td colspan="2" class="bline"> | |||||
<td height="26" colspan="2" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 文章标题:</td> | |||||
<td width="400"><input type="text" name="title" id="title" value="<?php echo $arcRow['title']; ?>" style="width:390px"></td> | |||||
<td width="90"> 文章标题:</td> | |||||
<td width="400"><input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" style="width:380px"></td> | |||||
<td width="90">简略标题:</td> | <td width="90">简略标题:</td> | ||||
<td><input type="text" name="shorttitle" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:160px"></td> | |||||
<td><input name="shorttitle" type="text" id="shorttitle" value="<?php echo $arcRow['shorttitle']; ?>" style="width:160px"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="100%" colspan="2" class="bline"> | |||||
<td width="400%" height="26" colspan="2" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 自定义属性:</td> | |||||
<td width="90"> 自定义属性:</td> | |||||
<td> | <td> | ||||
<?php | <?php | ||||
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC"); | $dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC"); | ||||
@@ -104,9 +106,9 @@ | |||||
} | } | ||||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | if(preg_match("#".$trow->att."#", $arcRow['flag'])) | ||||
{ | { | ||||
echo "<label class='mr-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick} checked='checked'> {$trow->attname}[{$trow->att}]</label>"; | |||||
echo "<label><input class='np' 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-1'><input type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label>"; | |||||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' {$jumpclick}> {$trow->attname}[{$trow->att}]</label> "; | |||||
} | } | ||||
} | } | ||||
?> | ?> | ||||
@@ -116,38 +118,38 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="2" class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block'); ?>"> | |||||
<td height="26" colspan="2" class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block'); ?>"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 跳转网址:</td> | |||||
<td><input type="text" name="redirecturl" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" style="width:300px"></td> | |||||
<td width="90"> 跳转网址:</td> | |||||
<td><input name="redirecturl" type="text" id="redirecturl" value="<?php echo $addRow['redirecturl']?>" style="width:300px"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="100%" colspan="2" class="bline"> | |||||
<td width="400%" height="26" colspan="2" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> Tag标签:</td> | |||||
<td><input type="text" name="tags" id="tags" value="<?php echo $tags; ?>" style="width:300px">(','号分开,单个标签小于12字节)</td> | |||||
<td width="90"> Tag标签:</td> | |||||
<td><input name="tags" type="text" id="tags" value="<?php echo $tags; ?>" style="width:300px">(','号分开,单个标签小于12字节)</td> | |||||
<td width="60">权重:</td> | <td width="60">权重:</td> | ||||
<td><input type="text" name="weight" id="weight" value="<?php echo $arcRow['weight']; ?>" style="width:60px">(越小越靠前)</td> | |||||
<td><input name="weight" type="text" id="weight" value="<?php echo $arcRow['weight']; ?>" style="width:60px">(越小越靠前)</td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr id="pictable"> | <tr id="pictable"> | ||||
<td colspan="2" class="bline"> | |||||
<td height="26" colspan="2" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 缩略图:</td> | |||||
<td width="90"> 缩略图:</td> | |||||
<td> | <td> | ||||
<input type="text" name="picname" id="picname" value="<?php echo $arcRow['litpic']?>" style="width:300px"> | |||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote"> 远程</label> | |||||
<input name="picname" type="text" id="picname" value="<?php echo $arcRow['litpic']?>" style="width:300px"> | |||||
<label><input type="checkbox" name="ddisremote" value="1" id="ddisremote" class="np"> 远程</label> | |||||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | <span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | ||||
<button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | <button type="button" name="Submit" onClick="SelectImage('form1.picname','');" class="btn btn-success btn-sm">选择图片</button> | ||||
<button type="button" id="btnClearAll" class="btn btn-success btn-sm delete">清空</button> | |||||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button> | |||||
</td> | </td> | ||||
<td align="center"> | <td align="center"> | ||||
<img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg'; ?>" style="max-width:100px;max-height:80px"> | <img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/web/img/defaultpic.jpg'; ?>" style="max-width:100px;max-height:80px"> | ||||
@@ -157,28 +159,28 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="2" class="bline"> | |||||
<td height="26" colspan="2" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 来源:</td> | |||||
<td width="90"> 来源:</td> | |||||
<td width="260"> | <td width="260"> | ||||
<input type="text" name="source" id="source" value="<?php echo $arcRow['source']?>" style="width:160px"> | |||||
<button type="button" name="selsource" id="selsource" class="btn btn-success btn-sm">选择</button> | |||||
<input name="source" type="text" id="source" value="<?php echo $arcRow['source']?>" style="width:160px"> | |||||
<button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button> | |||||
</td> | </td> | ||||
<td width="60">作者:</td> | <td width="60">作者:</td> | ||||
<td> | <td> | ||||
<input type="text" name="writer" id="writer" value="<?php echo $arcRow['writer']?>" style="width:160px"> | |||||
<button type="button" name="selwriter" id="selwriter" class="btn btn-success btn-sm">选择</button> | |||||
<input name="writer" type="text" id="writer" value="<?php echo $arcRow['writer']?>" style="width:160px"> | |||||
<button name="selwriter" type="button" id="selwriter" class="btn btn-success btn-sm">选择</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="2" class="bline"> | |||||
<td height="26" colspan="2" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 发布栏目:</td> | |||||
<td width="90"> 发布栏目:</td> | |||||
<td width="360"> | <td width="360"> | ||||
<?php | <?php | ||||
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | $typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | ||||
@@ -187,10 +189,10 @@ | |||||
echo $typeOptions; | echo $typeOptions; | ||||
echo "</select>"; | echo "</select>"; | ||||
?> | ?> | ||||
<i class="btn btn-sm fa fa-search" onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid','<?php echo $arcRow['typeid']; ?>')" title="快捷选择" style="cursor:pointer"></i> | |||||
<i class='btn btn-sm fa fa-search' onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid','<?php echo $arcRow['typeid']; ?>')" title="快捷选择" style="cursor:pointer"></i> | |||||
</td> | </td> | ||||
<td width="90">消费金币:</td> | <td width="90">消费金币:</td> | ||||
<td><input type="text" name="money" id="money" value="<?php echo $arcRow['money']?>" style="width:160px"></td> | |||||
<td><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" style="width:160px"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
@@ -199,14 +201,14 @@ | |||||
if($cfg_need_typeid2=='Y') { | if($cfg_need_typeid2=='Y') { | ||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td colspan="2" class="bline"> | |||||
<td height="26" colspan="2" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 副栏目:</td> | |||||
<td width="90"> 副栏目:</td> | |||||
<td> | <td> | ||||
<span id="typeid2ct"></span> | <span id="typeid2ct"></span> | ||||
<input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0'?'':$arcRow['typeid2']); ?>" style="width:160px"> | <input type="text" name="typeid2" id="typeid2" value="<?php echo ($arcRow['typeid2']=='0'?'':$arcRow['typeid2']); ?>" style="width:160px"> | ||||
<i class="btn btn-sm fa fa-search" style="cursor:pointer" onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid2','<?php echo $arcRow['typeid2']; ?>')" title="选择副栏目"></i> | |||||
<i class='btn btn-sm fa fa-search' style="cursor:pointer" onClick="ShowCatMap(event,this,<?php echo $channelid; ?>,'typeid2','<?php echo $arcRow['typeid2']; ?>')" title="选择副栏目"></i> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -216,71 +218,75 @@ | |||||
} | } | ||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 关键词:</td> | |||||
<td width="90"> 关键词:</td> | |||||
<td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" style="width:360px"></td> | <td><input type="text" name="keywords" id="keywords" value="<?php echo $arcRow['keywords']?>" style="width:360px"></td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 描述:</td> | |||||
<td width="90"> 描述:</td> | |||||
<td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $arcRow['description']?></textarea></td> | <td><textarea name="description" id="description" style="width:360px;height:50px"><?php echo $arcRow['description']?></textarea></td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="100%" colspan="2" class="bline"> | |||||
<td colspan="2"> | |||||
<?php | |||||
PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield'); | |||||
?> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td width="400%" height="26" colspan="2" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 附加选项:</td> | |||||
<td width="90"> 附加选项:</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 name="remote" type="checkbox" class="np" id="remote" value="1" <?php if($cfg_rm_remote=='Y') echo ' checked="1" '; ?>> 下载远程图片和资源 </label> | |||||
<label><input name="autolitpic" type="checkbox" class="np" id="autolitpic" value="1" <?php if($cfg_arc_autopic=='Y') echo ' checked="1" '; ?>> 提取第一个图片为缩略图</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | |||||
<td colspan="2"><?php PrintAutoFieldsEdit(stripslashes($cInfos['fieldset']),$addRow,'autofield'); ?></td> | |||||
</tr> | |||||
<tr> | <tr> | ||||
<td width="100%"><?php GetEditor("body",stripcslashes($addRow['body']),450); ?></td> | <td width="100%"><?php GetEditor("body",stripcslashes($addRow['body']),450); ?></td> | ||||
<td width="260" align="center" id="mPic" style="display:none"></td> | |||||
<td width="260" align="center" bgcolor="#FFFFCC" id="mPic" style="display:none"></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<!--高级参数--> | <!--高级参数--> | ||||
<table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;display:none"> | <table width="98%" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #dee2e6;display:none"> | ||||
<tr> | <tr> | ||||
<td colspan="4" class="bline"> | |||||
<td height="26" colspan="4" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 评论选项:</td> | |||||
<td width="90" height="26"> 评论选项:</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" class="np" value="0" <?php if($arcRow['notpost']==0) echo " checked='1' "; ?>> 允许评论 </label> | |||||
<label><input type="radio" name="notpost" class="np" value="1" <?php if($arcRow['notpost']==1) echo " checked='1' "; ?>> 禁止评论</label> | |||||
</td> | </td> | ||||
<td width="90">发布选项:</td> | <td width="90">发布选项:</td> | ||||
<td> | <td> | ||||
<label><input type="radio" name="ishtml" value="1" <?php if($arcRow["ismake"]!=-1) echo "checked"; ?>> 生成网页</label> | |||||
<label><input type="radio" name="ishtml" value="0" <?php if($arcRow["ismake"]==-1) echo "checked"; ?>> 仅动态浏览</label> | |||||
<label><input name="ishtml" type="radio" class="np" value="1" <?php if($arcRow["ismake"]!=-1) echo " checked"; ?>> 生成HTML </label> | |||||
<label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked"; ?>> 仅动态浏览</label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 文章排序:</td> | |||||
<td width="90"> 文章排序:</td> | |||||
<td width="260"> | <td width="260"> | ||||
<select name="sortup" id="sortup" style="width:160px"> | <select name="sortup" id="sortup" style="width:160px"> | ||||
<?php | <?php | ||||
@@ -297,21 +303,21 @@ | |||||
</td> | </td> | ||||
<td width="90">标题颜色:</td> | <td width="90">标题颜色:</td> | ||||
<td> | <td> | ||||
<input type="text" name="color" id="color" value="<?php echo $arcRow['color']?>" style="width:160px"> | |||||
<button type="button" name="modcolor" id="modcolor" onClick="ShowColor(event,this)" class="btn btn-success btn-sm">选取</button> | |||||
<input name="color" type="text" id="color" value="<?php echo $arcRow['color']?>" style="width:160px"> | |||||
<button name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)" class="btn btn-success btn-sm">选取</button> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="bline"> | |||||
<td height="26" class="bline"> | |||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 阅读权限:</td> | |||||
<td width="90"> 阅读权限:</td> | |||||
<td width="260"> | <td width="260"> | ||||
<select name="arcrank" id="arcrank" style="width:160px"> | <select name="arcrank" id="arcrank" style="width:160px"> | ||||
<option value="<?php echo $arcRow['arcrank']?>"><?php echo $arcRow["rankname"]?></option> | |||||
<option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option> | |||||
<?php | <?php | ||||
$urank = $cuserLogin->getUserRank(); | $urank = $cuserLogin->getUserRank(); | ||||
$dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | $dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | ||||
@@ -353,7 +359,7 @@ | |||||
<td height="70" class="bline"> | <td height="70" class="bline"> | ||||
<table width="900" cellspacing="0" cellpadding="0"> | <table width="900" cellspacing="0" cellpadding="0"> | ||||
<tr> | <tr> | ||||
<td width="90"> 更新时间:</td> | |||||
<td width="90"> 更新时间:</td> | |||||
<td width="260"><?php | <td width="260"><?php | ||||
$nowtime = GetDateTimeMk(time()); | $nowtime = GetDateTimeMk(time()); | ||||
echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker' style='width:160px'>"; | echo "<input type='text' name='pubdate' value='$nowtime' id='pubdate' class='datepicker' style='width:160px'>"; | ||||
@@ -368,7 +374,7 @@ | |||||
</table> | </table> | ||||
<table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3"> | <table width="98%" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #dee2e6;border-top:0" class="mb-3"> | ||||
<tr> | <tr> | ||||
<td align="center" class="py-2"> | |||||
<td align="center" class="py-3"> | |||||
<button type="submit" class="btn btn-success btn-sm">保存</button> | <button type="submit" class="btn btn-success btn-sm">保存</button> | ||||
<button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button> | <button type="button" onClick="location.reload();" class="btn btn-success btn-sm">重置</button> | ||||
</td> | </td> | ||||
@@ -30,7 +30,7 @@ | |||||
<?php if(DEDEBIZ_SAFE_MODE){ ?> | <?php if(DEDEBIZ_SAFE_MODE){ ?> | ||||
<a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-primary btn-sm">安全</a> | <a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-primary btn-sm">安全</a> | ||||
<?php } else { ?> | <?php } else { ?> | ||||
<a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-warning btn-sm">非安全</a> | |||||
<a href="index_body.php?dopost=safe_mode" target="main" class="btn btn-warning btn-sm">开发</a> | |||||
<?php }?> | <?php }?> | ||||
</div> | </div> | ||||
<div class="top-item"> | <div class="top-item"> | ||||