@@ -1,7 +1,7 @@ | |||
# 更新记录 | |||
通过访问 https://www.dedebiz.com/git 获取完整更新记录 | |||
## v6.0.0 | |||
## v6.0.4 | |||
- 调整DedeCMS目录结构,将原有include中外部访问的内容迁移出去; | |||
- 修正已知存在的安全问题; | |||
- 升级内置编辑器ckeditor4为最新版本; | |||
@@ -4,23 +4,20 @@ | |||
* | |||
* @version $Id: catalog_add.php 1 14:31 2010年7月12日Z tianya $ | |||
* @package DedeBIZ.Administrator | |||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||
* @license https://www.dedebiz.com/license | |||
* @link https://www.dedebiz.com | |||
*/ | |||
require_once(dirname(__FILE__)."/config.php"); | |||
require_once(DEDEINC."/typelink.class.php"); | |||
if (empty($listtype)) $listtype = ''; | |||
if (empty($dopost)) $dopost = ''; | |||
if (empty($upinyin)) $upinyin = 0; | |||
if (empty($channelid)) $channelid = 1; | |||
if (isset($channeltype)) $channelid = $channeltype; | |||
$id = empty($id) ? 0 : intval($id); | |||
$reid = empty($reid) ? 0 : intval($reid); | |||
$nid = 'article'; | |||
if ($id == 0 && $reid == 0) { | |||
CheckPurview('t_New'); | |||
} else { | |||
@@ -28,9 +25,7 @@ if ($id == 0 && $reid == 0) { | |||
CheckPurview('t_AccNew'); | |||
CheckCatalog($checkID, '您无权在本栏目下创建子类'); | |||
} | |||
if (empty($myrow)) $myrow = array(); | |||
$dsql->SetQuery("SELECT id,typename,nid FROM `#@__channeltype` WHERE id<>-1 AND isshow=1 ORDER BY id"); | |||
$dsql->Execute(); | |||
while ($row = $dsql->GetObject()) { | |||
@@ -48,17 +43,15 @@ if ($dopost == 'quick') { | |||
} | |||
/*--------------------- | |||
function action_savequick(){ } | |||
---------------------*/ else if ($dopost == 'savequick') { | |||
---------------------*/ | |||
else if ($dopost == 'savequick') { | |||
if (!isset($savetype)) $savetype = ''; | |||
$isdefault = isset($isdefault) ? $isdefault : 0; | |||
$tempindex = "{style}/index_{$nid}.htm"; | |||
$templist = "{style}/list_{$nid}.htm"; | |||
$temparticle = "{style}/article_{$nid}.htm"; | |||
$queryTemplate = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,typedir,isdefault,defaultname,issend,channeltype, | |||
tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) | |||
VALUES('~reid~','~topid~','~rank~','~typename~','~typedir~','$isdefault','$defaultname','$issend','$channeltype', | |||
'$tempindex','$templist','$temparticle','default','$namerule','$namerule2','0','0','','','~typename~','0','','','0','0','0','','')"; | |||
$queryTemplate = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,namegk,enname,ennamegk,litpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) | |||
VALUES('~reid~','~topid~','~rank~','~typename~','~namegk~','~enname~','~ennamegk~','~litpic~','~litimg~','~typedir~','$isdefault','$defaultname','$issend','$channeltype','$tempindex','$templist','$temparticle','default','$namerule','$namerule2','0','0','','','~typename~','0','','','0','0','0','','')"; | |||
if (empty($savetype)) { | |||
foreach ($_POST as $k => $v) { | |||
if (preg_match("#^posttype#", $k)) { | |||
@@ -99,8 +92,6 @@ function action_savequick(){ } | |||
} | |||
} | |||
} else { | |||
$row = $dsql->GetOne("SELECT `typedir` FROM `#@__arctype` WHERE `id`={$reid}"); | |||
foreach ($_POST as $k => $v) { | |||
if (preg_match("#^posttype#", $k)) { | |||
@@ -122,7 +113,6 @@ function action_savequick(){ } | |||
$toptypedir = '/'.$toptypedir; | |||
break; | |||
} | |||
if (empty($toptypename)) { | |||
continue; | |||
} | |||
@@ -140,18 +130,16 @@ function action_savequick(){ } | |||
} | |||
/*--------------------- | |||
function action_save(){ } | |||
---------------------*/ else if ($dopost == 'save') { | |||
---------------------*/ | |||
else if ($dopost == 'save') { | |||
$smalltypes = ''; | |||
if (empty($smalltype)) $smalltype = ''; | |||
if (is_array($smalltype)) $smalltypes = join(',', $smalltype); | |||
if (!isset($sitepath)) $sitepath = ''; | |||
if ($topid == 0 && $reid > 0) $topid = $reid; | |||
if ($ispart != 0) $cross = 0; | |||
$description = Html2Text($description, 1); | |||
$keywords = Html2Text($keywords, 1); | |||
if ($ispart != 2) { | |||
//栏目的参照目录 | |||
if ($referpath == 'cmspath') $nextdir = '{cmspath}'; | |||
@@ -163,11 +151,9 @@ function action_save(){ } | |||
$typedir = $nextdir.'/'.$typedir; | |||
$typedir = preg_replace("#\/{1,}#", "/", $typedir); | |||
} | |||
//开启多站点时的设置(仅针对顶级栏目) | |||
if ($reid == 0 && $moresite == 1) { | |||
$sitepath = $typedir; | |||
//检测二级网址 | |||
if ($siteurl != '') { | |||
$siteurl = preg_replace("#\/$#", "", $siteurl); | |||
@@ -181,7 +167,6 @@ function action_save(){ } | |||
} | |||
} | |||
} | |||
//创建目录 | |||
if ($ispart != 2) { | |||
$true_typedir = str_replace("{cmspath}", $cfg_cmspath, $typedir); | |||
@@ -191,14 +176,8 @@ function action_save(){ } | |||
exit(); | |||
} | |||
} | |||
$in_query = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,typedir,isdefault,defaultname,issend,channeltype, | |||
tempindex,templist,temparticle,modname,namerule,namerule2, | |||
ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) | |||
VALUES('$reid','$topid','$sortrank','$typename','$typedir','$isdefault','$defaultname','$issend','$channeltype', | |||
'$tempindex','$templist','$temparticle','default','$namerule','$namerule2', | |||
'$ispart','$corank','$description','$keywords','$seotitle','$moresite','$siteurl','$sitepath','$ishidden','$cross','$crossid','$content','$smalltypes')"; | |||
$in_query = "INSERT INTO `#@__arctype`(reid,topid,sortrank,typename,namegk,enname,ennamegk,litpic,litimg,typedir,isdefault,defaultname,issend,channeltype,tempindex,templist,temparticle,modname,namerule,namerule2,ispart,corank,description,keywords,seotitle,moresite,siteurl,sitepath,ishidden,`cross`,`crossid`,`content`,`smalltypes`) | |||
VALUES('$reid','$topid','$sortrank','$typename','$namegk','$enname','$ennamegk','$litpic','$litimg','$typedir','$isdefault','$defaultname','$issend','$channeltype','$tempindex','$templist','$temparticle','default','$namerule','$namerule2','$ispart','$corank','$description','$keywords','$seotitle','$moresite','$siteurl','$sitepath','$ishidden','$cross','$crossid','$content','$smalltypes')"; | |||
if (!$dsql->ExecuteNoneQuery($in_query)) { | |||
ShowMsg("保存目录数据时失败,请检查您的输入资料是否存在问题", "-1"); | |||
exit(); | |||
@@ -209,8 +188,7 @@ function action_save(){ } | |||
} | |||
ShowMsg("成功创建一个分类", "catalog_main.php"); | |||
exit(); | |||
} //End dopost==save | |||
}//End dopost==save | |||
//获取从父目录继承的默认参数 | |||
if ($dopost == '') { | |||
$channelid = 1; | |||
@@ -228,9 +206,7 @@ if ($dopost == '') { | |||
$topid = $myrow['topid']; | |||
$typedir = $myrow['typedir']; | |||
} | |||
//父栏目是否为二级站点 | |||
$moresite = empty($myrow['moresite']) ? 0 : $myrow['moresite']; | |||
} | |||
include DedeInclude('templets/catalog_add.htm'); | |||
include DedeInclude('templets/catalog_add.htm'); |
@@ -4,7 +4,7 @@ | |||
* | |||
* @version $Id: catalog_edit.php 1 14:31 2010年7月12日Z tianya $ | |||
* @package DedeBIZ.Administrator | |||
* @copyright Copyright (c) 2022, DedeBIZ.COM | |||
* @copyright Copyright (c) 2021, DedeBIZ.COM | |||
* @license https://www.dedebiz.com/license | |||
* @link https://www.dedebiz.com | |||
*/ | |||
@@ -33,6 +33,11 @@ if ($dopost == "save") { | |||
issend='$issend', | |||
sortrank='$sortrank', | |||
typename='$typename', | |||
namegk='$namegk', | |||
enname='$enname', | |||
ennamegk='$ennamegk', | |||
litpic='$litpic', | |||
litimg='$litimg', | |||
typedir='$typedir', | |||
isdefault='$isdefault', | |||
defaultname='$defaultname', | |||
@@ -72,17 +77,17 @@ if ($dopost == "save") { | |||
} | |||
//修改子栏目属性 | |||
if (!empty($upnext)) { | |||
$upquery = "UPDATE `#@__arctype` SET | |||
issend='$issend', | |||
defaultname='$defaultname', | |||
channeltype='$channeltype', | |||
tempindex='$tempindex', | |||
templist='$templist', | |||
temparticle='$temparticle', | |||
namerule='$namerule', | |||
namerule2='$namerule2', | |||
ishidden='$ishidden' | |||
WHERE 1=1 AND $slinks"; | |||
$upquery = "UPDATE `#@__arctype` SET | |||
issend='$issend', | |||
defaultname='$defaultname', | |||
channeltype='$channeltype', | |||
tempindex='$tempindex', | |||
templist='$templist', | |||
temparticle='$temparticle', | |||
namerule='$namerule', | |||
namerule2='$namerule2', | |||
ishidden='$ishidden' | |||
WHERE 1=1 AND $slinks"; | |||
if (!$dsql->ExecuteNoneQuery($upquery)) { | |||
ShowMsg("修改当前栏目成功,但修改下级栏目属性时失败", "-1"); | |||
exit(); | |||
@@ -91,7 +96,7 @@ if ($dopost == "save") { | |||
UpDateCatCache(); | |||
ShowMsg("成功修改一个分类", "catalog_main.php"); | |||
exit(); | |||
} //End Save Action | |||
}//End Save Action | |||
else if ($dopost == "savetime") { | |||
$uptopsql = ''; | |||
$slinks = " id IN (".GetSonIds($id).")"; | |||
@@ -160,76 +165,80 @@ if ($dopost == 'time') { | |||
<input type="hidden" name="moresite" value="<?php echo $myrow['moresite']; ?>"> | |||
<table width="100%" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="150" class='bline' height="26" align="center">是否支持投稿:</td> | |||
<td class='bline'> | |||
<label><input type='radio' name='issend' value='0' class='np' <?php if ($myrow['issend'] == "0") echo " checked='1' "; ?>> 不支持</label> | |||
<label><input type='radio' name='issend' value='1' class='np' <?php if ($myrow['issend'] == "1") echo " checked='1' "; ?>> 支持</label> | |||
<td class="bline" height="26" align="center" colspan="2"> | |||
<a href="catalog_edit.php?id=<?php echo $id; ?>">当前是快捷编辑模式,如果您要修改更详细的参数,请使用高级模式>></a> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" align="center">内容模型:</td> | |||
<td class='bline'> | |||
<td width="150" class="bline" height="26" align="center">是否支持投稿:</td> | |||
<td class="bline"> | |||
<label><input type='radio' name='issend' value='0' class='np' <?php if ($myrow['issend'] == "0") echo " checked='1' "; ?>>不支持</label> | |||
<label><input type='radio' name='issend' value='1' class='np' <?php if ($myrow['issend'] == "1") echo " checked='1' "; ?>>支持</label> | |||
</td> | |||
</tr> | |||
<!--在快速修改修改内容模型后,因为模板没改变,会导致错误,因此去除些选择框--> | |||
<tr> | |||
<td class="bline" height="26" align="center">内容模型:</td> | |||
<td class="bline"> | |||
<?php | |||
foreach ($channelArray as $k => $arr) { | |||
if ($k == $channelid) echo "{$arr['typename']} | {$arr['nid']}"; | |||
} | |||
?> | |||
<a href='catalog_edit.php?id=<?php echo $id; ?>' class='btn btn-success btn-sm'>更多模型</a> | |||
<a href='catalog_edit.php?id=<?php echo $id; ?>'>[修改]</a> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" align="center">栏目名称:</td> | |||
<td class='bline'><input name="typename" type="text" id="typename" value="<?php echo $myrow['typename'] ?>" style="width:260px" class="iptxt"></td> | |||
<td class="bline" height="26" align="center">栏目名称:</td> | |||
<td class="bline"><input name="typename" type="text" id="typename" size="30" value="<?php echo $myrow['typename'] ?>" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" align="center">排列顺序:</td> | |||
<td class='bline'> <input name="sortrank" type="text" value="<?php echo $myrow['sortrank'] ?>" style="width:100" class="iptxt">(由低 -> 高)</td> | |||
<td class="bline" height="26" align="center">排列顺序:</td> | |||
<td class="bline"> <input name="sortrank" size="6" type="text" value="<?php echo $myrow['sortrank'] ?>" class="iptxt">(由低 -> 高)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" align="center">浏览权限:</td> | |||
<td class='bline'> | |||
<select name="corank" id="corank" style="width:100"> | |||
<td class="bline" height="26" align="center">浏览权限:</td> | |||
<td class="bline"><select name="corank" id="corank" style="width:100"> | |||
<?php | |||
$dsql->SetQuery("SELECT * FROM #@__arcrank WHERE rank >= 0"); | |||
$dsql->Execute(); | |||
while ($row = $dsql->GetObject()) { | |||
if ($myrow['corank'] == $row->rank) | |||
echo "<option value='".$row->rank."' selected>".$row->membername."</option>\r\n"; | |||
else | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
echo "<option value='".$row->rank."' selected>".$row->membername."</option>"; | |||
else | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||
} | |||
?> | |||
</select>(仅限制栏目里的文档浏览权限) | |||
</td> | |||
</select>(仅限制栏目里的文档浏览权限)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" align="center">文件保存目录:</td> | |||
<td class='bline'><input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir'] ?>" style="width:260px"class="iptxt"></td> | |||
<td class="bline" height="26" align="center">文件保存目录:</td> | |||
<td class="bline"><input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir'] ?>" style="width:300px" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td height="26" align="center" class='bline'>栏目列表选项:</td> | |||
<td class='bline'> | |||
<label><input type='radio' name='isdefault' value='1' class='np' <?php if ($myrow['isdefault'] == 1) echo " checked='1' "; ?>> 链接到默认页</label> | |||
<label><input type='radio' name='isdefault' value='0' class='np' <?php if ($myrow['isdefault'] == 0) echo " checked='1' "; ?>> 链接到列表第一页</label> | |||
<label><input type='radio' name='isdefault' value='-1' class='np' <?php if ($myrow['isdefault'] == -1) echo " checked='1' "; ?>> 使用动态页</label> | |||
<td height="26" align="center" class="bline">栏目列表选项:</td> | |||
<td class="bline"> | |||
<label><input type='radio' name='isdefault' value='1' class='np' <?php if ($myrow['isdefault'] == 1) echo " checked='1' "; ?>>链接到默认页</label> | |||
<label><input type='radio' name='isdefault' value='0' class='np' <?php if ($myrow['isdefault'] == 0) echo " checked='1' "; ?>>链接到列表第一页</label> | |||
<label><input type='radio' name='isdefault' value='-1' class='np' <?php if ($myrow['isdefault'] == -1) echo " checked='1' "; ?>>使用动态页</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" align="center">默认页的名称:</td> | |||
<td class='bline'><input name="defaultname" type="text" value="<?php echo $myrow['defaultname'] ?>" style="width:260px" class="iptxt"></td> | |||
<td class="bline" height="26" align="center">默认页的名称: </td> | |||
<td class="bline"><input name="defaultname" type="text" value="<?php echo $myrow['defaultname'] ?>" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td height="26" class='bline' align="center">栏目属性:</td> | |||
<td class='bline'> | |||
<label><input name="ispart" type="radio" id="radio" value="0" class='np' <?php if ($myrow['ispart'] == 0) echo " checked='1' "; ?>> 最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> | |||
<label><input name="ispart" type="radio" id="radio2" value="1" class='np' <?php if ($myrow['ispart'] == 1) echo " checked='1' "; ?>> 频道封面(栏目本身不允许发布文档)</label><br> | |||
<label><input name="ispart" type="radio" id="radio3" value="2" class='np' <?php if ($myrow['ispart'] == 2) echo " checked='1' "; ?>> 外部连接(在"文件保存目录"处填写网址)</label> | |||
</td> | |||
<td height="26" class="bline" align="center">栏目属性:</td> | |||
<td class="bline"> | |||
<label><input name="ispart" type="radio" id="radio" value="0" class='np' <?php if ($myrow['ispart'] == 0) echo " checked='1' "; ?>>最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> | |||
<label><input name="ispart" type="radio" id="radio2" value="1" class='np' <?php if ($myrow['ispart'] == 1) echo " checked='1' "; ?>>频道封面(栏目本身不允许发布文档)</label><br> | |||
<label><input name="ispart" type="radio" id="radio3" value="2" class='np' <?php if ($myrow['ispart'] == 2) echo " checked='1' "; ?>>外部连接(在"文件保存目录"处填写网址)</label></td> | |||
</tr> | |||
<tr> | |||
<td align="center" colspan="2" height="50" bgcolor='#FAFEE0'> | |||
<button onclick='getSelCat("<?php echo $targetid; ?>");' class='btn btn-success'>保存</button> | |||
<button type='button' onclick='CloseMsg()' class='btn btn-success'>关闭</button> | |||
<input name="imageField" type="image" src="images/button_ok.gif" width="60" height="22" border="0" class="np"> | |||
| |||
<a title='关闭' onclick='CloseMsg()'><img src="images/button_back.gif" width="60" height="22" border="0"></a> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -63,7 +63,7 @@ | |||
>sys_User>系统用户管理 | |||
>sys_Group>系统组管理 | |||
>sys_MdPwd>更改个人密码 | |||
>sys_MdPwd>修改个人密码 | |||
>sys_DelUpload>删除附件 | |||
>sys_Edit>修改系统参数 | |||
>sys_Log>管理日志 | |||
@@ -86,5 +86,5 @@ | |||
>member_Type>会员类型管理 | |||
>member_List>列出会员 | |||
>member_Edit>更改会员 | |||
>member_Edit>修改会员 | |||
>member_Del>删除会员 |
@@ -65,8 +65,8 @@ table{border-collapse:separate} | |||
<input type="hidden" id="albums" name="albums" value=""> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<tr> | |||
<td width="65%" height="30"><img src="images/book1.gif" width="20" /> <a href="catalog_do.php?cid=<?php echo $cid?>&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="65%" height="30"><img src="images/book1.gif"> <a href="catalog_do.php?cid=<?php echo $cid?>&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> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | |||
@@ -74,8 +74,8 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table width="168" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规内容 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a> </td> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif">常规内容</td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -86,7 +86,7 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table width="168" height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规内容</a> </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规内容</a></td> | |||
<td width="86" align="center" background="images/itemnote1.gif">高级参数</td> | |||
</tr> | |||
</table> | |||
@@ -112,16 +112,17 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> 自定义属性:</td> | |||
<td><?php | |||
$dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> "; | |||
else | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
<td> | |||
<?php | |||
$dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> "; | |||
else | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
@@ -160,29 +161,18 @@ table{border-collapse:separate} | |||
<td> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td height="30"> | |||
<td height="26"> | |||
<input name="picname" type="text" id="picname" style="width:240px" /> | |||
<button type="button" | |||
onClick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>站内选择</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程</label> | |||
<span class="btn btn-success btn-sm fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-sm btn-success delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> | |||
<br /> | |||
<label><input type='checkbox' class='np' name='ddisfirst' value='1' /> 使用图集的第一幅图</label> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程</label> | |||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
<button type="button" name="Submit2" onClick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||
<button id="btnClearAll" type="button" class="btn btn-sm btn-success delete">清空</button> | |||
<label><input type='checkbox' class='np' name='ddisfirst' value='1' /> 使用图集的第一幅图</label> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td width="150" align="center"> | |||
<img id="litPic" src="../static/defaultpic.gif" style="height: 80px"> | |||
</td> | |||
<td width="150" align="center"><img id="litPic" src="../static/defaultpic.gif" style="height:80px"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -191,26 +181,25 @@ table{border-collapse:separate} | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> 图集主栏目:</td> | |||
<td width="90"> 图集主栏目:</td> | |||
<td> | |||
<span id='typeidct'> | |||
<?php | |||
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
echo "<option value='0'>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?></span> | |||
<img src='images/menusearch.gif' style='cursor:pointer;' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
| |||
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
echo "<option value='0'>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
</span> | |||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
<?php | |||
if($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
?> | |||
</td> | |||
if($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -221,16 +210,13 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="90"> 图集副栏目:</td> | |||
<td> | |||
<span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value='' | |||
style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' /> | |||
<span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value='' style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' /> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td><?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?></td> | |||
</tr> | |||
@@ -238,21 +224,18 @@ table{border-collapse:separate} | |||
<td height="26" bgcolor="#F9FCEF" class="bline2"> <strong>图集选项:</strong></td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline" style="padding-top:6px"> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> <b>表现方式:</b></td> | |||
<td> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle1" onClick="checkMuList()" value="1" | |||
<?php if($cfg_album_style==1) echo " checked='checked'"; ?> /> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle1" onClick="checkMuList()" value="1" <?php if($cfg_album_style==1) echo " checked='checked'"; ?> /> | |||
<img src='images/alb2.jpg' alt='单页多图样式' title='单页多图样式' /></label> | |||
| |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle2" onClick="checkMuList()" value="2" | |||
<?php if($cfg_album_style==2) echo " checked='checked'"; ?> /> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle2" onClick="checkMuList()" value="2" <?php if($cfg_album_style==2) echo " checked='checked'"; ?> /> | |||
<img src='images/alb1.jpg' alt='幻灯片样式' title='幻灯片样式' /></label> | |||
| |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle3" onClick="checkMuList()" value="3" | |||
<?php if($cfg_album_style==3) echo " checked='checked'"; ?> /> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle3" onClick="checkMuList()" value="3" <?php if($cfg_album_style==3) echo " checked='checked'"; ?> /> | |||
<img src='images/alb3.jpg' alt='多缩略图样式' title='多缩略图样式' /></label> | |||
</td> | |||
</tr> | |||
@@ -264,17 +247,15 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td height="26"> 多列式参数:</td> | |||
<td>行 | |||
<input name="row" type="text" id="row" value="<?php echo $cfg_album_row; ?>" size="6"> | |||
列 | |||
<input name="col" type="text" id="col" value="<?php echo $cfg_album_col; ?>" size="6"> | |||
缩略图宽度限制: | |||
<input name="ddmaxwidth" type="text" id="ddmaxwidth" value="<?php echo $cfg_album_ddwidth; ?>" size="6"> | |||
像素</td> | |||
<td> | |||
行 <input name="row" type="text" id="row" value="<?php echo $cfg_album_row; ?>" size="6"> | |||
列 <input name="col" type="text" id="col" value="<?php echo $cfg_album_col; ?>" size="6"> | |||
缩略图宽度限制:<input name="ddmaxwidth" type="text" id="ddmaxwidth" value="<?php echo $cfg_album_ddwidth; ?>" size="6"> 像素 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="86" height="26"> </td> | |||
<td><strong>(系统仅是每页输出"行x列"张图片,实现需自行控制样式表)</strong></td> | |||
<td><strong>(系统仅是每页输出"行x列"张图片,实现需自行控制样式表)</strong></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -284,11 +265,7 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="95"> 每页图片数:</td> | |||
<td> | |||
<input name='pagepicnum' type='text' id='pagpicnum' size='10' | |||
value='<?php echo $cfg_album_pagesize; ?>' /> | |||
单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图。 | |||
</td> | |||
<td><input name='pagepicnum' type='text' id='pagpicnum' size='10' value='<?php echo $cfg_album_pagesize; ?>' /> 单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图。</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -302,8 +279,7 @@ table{border-collapse:separate} | |||
<input name="isrm" class="np" type="hidden" id="isrm" value="1" /> | |||
<label><input name="byhand" class="np" type="checkbox" id="byhand" value="1" disabled="ture" checked /> | |||
手工上传</label> | |||
<label><input name="formzip" class="np" type="checkbox" id="formzip" value="1" | |||
onClick="showZipField(this,'zipff','htmlfield');" /> | |||
<label><input name="formzip" class="np" type="checkbox" id="formzip" value="1" onClick="showZipField(this,'zipff','htmlfield');" /> | |||
从ZIP压缩包中解压图片</label> | |||
</td> | |||
</tr> | |||
@@ -316,10 +292,9 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="100"> 压缩包文件:</td> | |||
<td><input type='text' name='zipfile' id='zipfile' style='width:300px'> | |||
<button name='addon_bt' type='button' | |||
onClick="SelectSoft('form1.zipfile')" class="btn btn-success btn-sm">浏览...</button> | |||
<button name='addon_bt' type='button' onClick="SelectSoft('form1.zipfile')" class="btn btn-success btn-sm">浏览...</button> | |||
<label><input name="delzip" type="checkbox" id="delzip" value="1" checked="checked" /> | |||
处理后删除压缩文件</label> </td> | |||
处理后删除压缩文件</label></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -329,15 +304,11 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 网上复制:</td> | |||
<td> 复制的源网址: | |||
<input name='copysource' type='text' value='http://' style='width:250px' /> | |||
(防盗链网站需填写您复制图片的其中一个网页网址) <br /> | |||
<td>复制的源网址:<input name='copysource' type='text' value='http://' style='width:250px' />(防盗链网站需填写您复制图片的其中一个网页网址)<br> | |||
把图片从别的网页复制,在这里用Ctrl+V粘贴,提交后程序可直接获取这个区域的所有图片 | |||
<input type="button" name="button" id="button" value="预览" onClick="LoadTestDiv()"> | |||
<br /> | |||
<div id='copyhtml' | |||
style='margin-top:6px;margin-bottom:6px;border:solid 1px #CCCCCC;width:96%;padding:6px;height:250px;width:100%' | |||
contenteditable="true">粘贴到这里...</div> | |||
<br> | |||
<div id='copyhtml' style='margin-top:6px;margin-bottom:6px;border:solid 1px #CCCCCC;width:96%;padding:6px;height:250px;width:100%' contenteditable="true">粘贴到这里...</div> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -348,13 +319,7 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="40"> <b>手工上传:</b></td> | |||
<td> | |||
<span class="btn btn-success btn-sm fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择本地图片(支持多选) | |||
<input type="file" name="files[]" id="iptAlbumImages" multiple> | |||
</span> | |||
</td> | |||
<td><span class="btn btn-success btn-sm fileinput-button"><i class="glyphicon glyphicon-plus"></i>选择本地图片(支持多选)<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -382,7 +347,7 @@ table{border-collapse:separate} | |||
</td> | |||
</tr> | |||
</table> | |||
<!-- //高级参数 --> | |||
<!--高级参数--> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" | |||
style="border:1px solid #cfcfcf;background:#ffffff;display:none"> | |||
<tr> | |||
@@ -392,7 +357,7 @@ table{border-collapse:separate} | |||
<td width="90"> 图集来源:</td> | |||
<td width="240"><input name="source" type="text" id="source" style="width:160px" value="" size="16"> | |||
<button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button></td> | |||
<td width="90">作 者:</td> | |||
<td width="90">作者:</td> | |||
<td> | |||
<input name="writer" type="text" id="writer" style="width:120px" value=""> | |||
<button name="selwriter" type="button" id="selwriter" class="btn btn-success btn-sm">选择</button> | |||
@@ -407,17 +372,13 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="90" height="22" width="240"> 评论选项:</td> | |||
<td width="240"> | |||
<label><input type='radio' name='notpost' class='np' value='0' | |||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论</label> | |||
<label><input type='radio' name='notpost' class='np' value='0' <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论</label> | |||
| |||
<label><input type='radio' name='notpost' class='np' value='1' | |||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论</label> | |||
<label><input type='radio' name='notpost' class='np' value='1' <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论</label> | |||
</td> | |||
<td width="90">浏览次数:</td> | |||
<td> | |||
<input type='text' name='click' | |||
value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' | |||
style='width:100px;' /> | |||
<input type='text' name='click' value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' style='width:100px;' /> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -439,7 +400,8 @@ table{border-collapse:separate} | |||
<td width="90">标题颜色:</td> | |||
<td> | |||
<input name="color" type="text" id="color" style="width:120px"> | |||
<button class="btn btn-success btn-sm" name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)">选取</button></td> | |||
<button class="btn btn-success btn-sm" name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)">选取</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -450,16 +412,17 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="90"> 阅读权限:</td> | |||
<td width="240"> <select name="arcrank" id="arcrank" style="width:150px"> | |||
<?php | |||
<?php | |||
$urank = $cuserLogin->getUserRank(); | |||
$dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetObject()) | |||
{ | |||
echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
} | |||
?> | |||
</select> </td> | |||
?> | |||
</select> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
<label><input name="ishtml" type="radio" class="np" value="1" checked> | |||
@@ -471,19 +434,19 @@ table{border-collapse:separate} | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 发布时间:</td> | |||
<td width="241"><?php | |||
$nowtime = GetDateTimeMk(time()); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>"; | |||
?> | |||
<td width="240"> | |||
<?php | |||
$nowtime = GetDateTimeMk(time()); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>"; | |||
?> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="379"><input name="money" type="text" id="money" value="0" size="10"> </td> | |||
<td width="380"><input name="money" type="text" id="money" value="0" size="10"> </td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -493,9 +456,7 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 关键字:</td> | |||
<td colspan="2"><input type='text' name="keywords" id="keywords" style="width:290px;" value="" /> <button | |||
type="button" name="Submit" | |||
onClick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">浏览...</button></td> | |||
<td colspan="2"><input type='text' name="keywords" id="keywords" style="width:290px;" value="" /> <button type="button" name="Submit" onClick="SelectKeywords('form1.keywords');" class="btn btn-success btn-sm">浏览...</button></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -505,8 +466,8 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> 图集内容摘要:</td> | |||
<td width="449"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | |||
<td width="261"> </td> | |||
<td width="450"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | |||
<td width="260"> </td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -516,39 +477,22 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> 自定义文件名:</td> | |||
<td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | |||
<td width="261"> </td> | |||
<td width="450"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | |||
<td width="260"> </td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td width="17%"> </td> | |||
<td width="83%"> | |||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115" class="py-3"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
</td> | |||
<td width="99" class="py-3"> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr height="36"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
<script language='javascript'>InitPage();</script> | |||
</body> | |||
</html> |
@@ -64,28 +64,32 @@ table{border-collapse:separate} | |||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<tr> | |||
<td width="65%" height="30"><img src="images/book1.gif"> <a href="catalog_do.php?cid=<?php echo $arcRow["typeid"]?>&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="65%" height="30"><img src="images/book1.gif"> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&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> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | |||
<tr> | |||
<td colspan="2"><table width="168" border="0" cellpadding="0" cellspacing="0"> | |||
<td colspan="2"> | |||
<table width="168" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规内容 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">图集图片</a> </td> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif">常规内容</td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">图集图片</a></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head2" style="display:none"> | |||
<tr> | |||
<td colspan="2"><table width="168" height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<td colspan="2"> | |||
<table width="168" height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规内容</a> </td> | |||
<td width="86" align="center" background="images/itemnote1.gif">图集图片 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规内容</a></td> | |||
<td width="86" align="center" background="images/itemnote1.gif">图集图片</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;"> | |||
@@ -103,56 +107,57 @@ table{border-collapse:separate} | |||
<td width="400%" height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> 自定义属性:</td> | |||
<td><?php | |||
<td> | |||
<?php | |||
$dsql->SetQuery("SELECT * FROM `#@__arcatt` ORDER BY sortid ASC"); | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
else $jumpclick = ''; | |||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
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 | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?></td> | |||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
else $jumpclick = ''; | |||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
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 | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?></td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" colspan="4" class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 跳转网址:</td> | |||
<td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $addRow["redirecturl"]?>" /></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="400%" height="26" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td width="400%" height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> Tag标签:</td> | |||
<td><input name="tags" type="text" id="tags" value="<?php echo $tags; ?>" style="width:300px" />(','号分开,单个标签小于12字节)</td> | |||
<td width="50">权重:</td> | |||
<td><input name="weight" type="text" id="weight" style="width:50px" value="<?php echo $arcRow['weight'];?>" />(越小越靠前)</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="pictable"> | |||
<td height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="80"> 缩略图:<br/></td> | |||
<td><input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $arcRow["litpic"]?>"> <button type="button" name="Submit" class="btn btn-success btn-sm" onClick="SelectImage('form1.picname','');">浏览...</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> | |||
远程</label> | |||
<span class="btn btn-success btn-sm fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> </td> | |||
<td width="90" height="80"> 缩略图:</td> | |||
<td> | |||
<input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $arcRow['litpic']?>"> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> 远程</label> | |||
<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 id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button> | |||
</td> | |||
<td align="center"><img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/defaultpic.gif'; ?>" style="height:80px"></td> | |||
</tr> | |||
</table></td> | |||
@@ -165,23 +170,25 @@ table{border-collapse:separate} | |||
<td width="90">作者:</td> | |||
<td><input name="writer" type="text" id="writer" style="width:120" value="<?php echo $arcRow["writer"]?>"></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> 图集主栏目:</td> | |||
<td width="90"> 图集主栏目:</td> | |||
<td><?php | |||
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
if($arcRow['typeid']=='0') echo "<option value='0' selected>请选择主分类...</option>\r\n"; | |||
echo $typeOptions; | |||
echo '</select>'; | |||
?> | |||
<img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' /> | |||
</td> | |||
?> | |||
<img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' /> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<?php | |||
if($cfg_need_typeid2=='Y') { | |||
@@ -189,12 +196,14 @@ if($cfg_need_typeid2=='Y') { | |||
<tr> | |||
<td height="26" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> 图集副栏目:</td> | |||
<td width="90"> 图集副栏目:</td> | |||
<td><span id='typeid2ct'></span> | |||
<input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" alt='选择副栏目' title='选择副栏目' /></td> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" alt='选择副栏目' title='选择副栏目' /> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<?php } ?> | |||
<tr> | |||
@@ -208,7 +217,8 @@ if($cfg_need_typeid2=='Y') { | |||
<td width="90"> 图集内容:</td> | |||
<td><?php GetEditor("body",$body,450,"Diy"); ?></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" bgcolor="#F9FCEF" class="bline2"> <strong>高级属性:</strong></td> | |||
@@ -217,11 +227,8 @@ if($cfg_need_typeid2=='Y') { | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="22" width="240"> | |||
评论选项: | |||
</td> | |||
<td width="250"> | |||
<td width="90" height="22" width="240"> 评论选项:</td> | |||
<td width="250"> | |||
<label><input type='radio' name='notpost' class='np' value='0'<?php if($arcRow['notpost']==0) echo " checked='1' "; ?>/> | |||
允许评论</label> | |||
| |||
@@ -249,18 +256,21 @@ if($cfg_need_typeid2=='Y') { | |||
<option value="360">置顶一年</option> | |||
</select></td> | |||
<td width="90">标题颜色:</td> | |||
<td><input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>"> | |||
<button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button></td> | |||
<td> | |||
<input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>"> | |||
<button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 阅读权限:</td> | |||
<td width="250"><select name="arcrank" id="arcrank" style="width:150"> | |||
<option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option> | |||
<?php | |||
<option value='<?php echo $arcRow["arcrank"]?>'> <?php echo $arcRow["rankname"]?> </option> | |||
<?php | |||
$urank = $cuserLogin->getUserRank(); | |||
$dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'"); | |||
@@ -276,106 +286,120 @@ if($cfg_need_typeid2=='Y') { | |||
<label><input type="radio" name="ishtml" class="np" value="0"<?php if($arcRow["ismake"]==-1) echo " checked";?>> | |||
仅动态浏览</label></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="75" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="70" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 发布时间:</td> | |||
<td width="250"><?php | |||
$nowtime = GetDateTimeMk(time()); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>"; | |||
?> | |||
</td> | |||
<td width="92">消费金币:</td> | |||
$nowtime = GetDateTimeMk(time()); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>"; | |||
?> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="368"><input name="money" type="text" id="money" value="<?php echo $arcRow["money"]?>" size="10"></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="51"> 关键字:</td> | |||
<td width="90" height="50"> 关键字:</td> | |||
<td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>" /></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120" height="51"> 图集内容摘要:</td> | |||
<td width="90" height="50"> 内容摘要:</td> | |||
<td><textarea name="description" rows="3" id="description" style="width:60%"><?php echo $arcRow["description"]?></textarea></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" colspan="4"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> 自定义文件名:</td> | |||
<td width="449"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" /> | |||
(不包括后缀名如.html等)</td> | |||
<td width="261"> </td> | |||
<td width="450"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td> | |||
<td width="260"></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<!-- //高级参数 --> | |||
<!--高级参数--> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #cfcfcf;background:#ffffff;display:none"> | |||
<tr> | |||
<td height="26" bgcolor="#F9FCEF" class="bline2"> <strong>图集选项:</strong></td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 表现方式:</td> | |||
<td> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle1" onClick="checkMuList()" value="1"<?php if($pagestyle==1) echo " checked='checked'"; ?> /> | |||
<img src='images/alb2.jpg' alt='单页多图样式' title='单页多图样式' /></label> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle2" onClick="checkMuList()" value="2"<?php if($pagestyle==2) echo " checked='checked'"; ?> /> | |||
<img src='images/alb1.jpg' alt='幻灯片样式' title='幻灯片样式' /></label> | |||
<img src='images/alb1.jpg' alt='幻灯片样式' title='幻灯片样式' /></label> | |||
<label><input name="pagestyle" class="np" type="radio" id="pagestyle3" onClick="checkMuList()" value="3"<?php if($pagestyle==3) echo " checked='checked'"; ?>/> | |||
<img src='images/alb3.jpg' alt='多缩略图样式' title='多缩略图样式' /></label></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id='cfgmulist' style='<?php if($pagestyle!=3) echo 'display:none'; ?>'> | |||
<td height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> 多列式参数:</td> | |||
<td>行 | |||
<input name="row" type="text" id="row" value="<?php echo $irow; ?>" size="6"> | |||
列 | |||
<input name="col" type="text" id="col" value="<?php echo $icol; ?>" size="6"> | |||
缩略图宽度限制: | |||
<input name="ddmaxwidth" type="text" id="ddmaxwidth" value="<?php echo $ddmaxwidth; ?>" size="6"> | |||
像素</td> | |||
<td> | |||
行 <input name="row" type="text" id="row" value="<?php echo $irow; ?>" size="6"> | |||
列 <input name="col" type="text" id="col" value="<?php echo $icol; ?>" size="6"> | |||
缩略图宽度限制:<input name="ddmaxwidth" type="text" id="ddmaxwidth" value="<?php echo $ddmaxwidth; ?>" size="6"> 像素 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="86" height="26"> </td> | |||
<td><strong>(系统仅是每页输出"行x列"张图片,实现需自行控制样式表)</strong></td> | |||
<td><strong>(系统仅是每页输出"行x列"张图片,实现需自行控制样式表)</strong></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id='spagelist' style='<?php if($pagestyle!=1) echo 'display:none'; ?>'> | |||
<td height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="95"> 每页图片数:</td> | |||
<td><input name='pagepicnum' id='pagpicnum' size='10' value='<?php echo $pagepicnum; ?>' /> | |||
单页多图显示需要设置此参数,这种模式下系统不会为每张图单独生成缩略图。 </td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr style='display:none'> | |||
<td height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 限制宽度:</td> | |||
<td><input name="maxwidth" type="text" id="maxwidth" size="10" value="<?php echo $maxwidth?>"> | |||
(防止图片太宽在模板页中溢出) </td> | |||
<td><input name="maxwidth" type="text" id="maxwidth" size="10" value="<?php echo $maxwidth?>">(防止图片太宽在模板页中溢出)</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 上传方式:</td> | |||
<td><input name="isrm" class="np" type="hidden" id="isrm" value="1" /> | |||
@@ -384,7 +408,8 @@ if($cfg_need_typeid2=='Y') { | |||
<label><input name="formzip" class="np" type="checkbox" id="formzip" value="1" onClick="showZipField(this,'zipff','htmlfield');" /> | |||
从ZIP压缩包中解压图片</label> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="zipff" style="display:none"> | |||
<td height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0" height="100"> | |||
@@ -393,23 +418,26 @@ if($cfg_need_typeid2=='Y') { | |||
<td><input type='text' name='zipfile' id='zipfile' style='width:300px'> | |||
<button name='addon_bt' type='button' class='btn btn-success btn-sm' onClick="SelectSoft('form1.zipfile')">浏览...</button> | |||
<label><input name="delzip" type="checkbox" id="delzip" value="1" checked="checked" /> | |||
处理后删除压缩文件</label> </td> | |||
处理后删除压缩文件</label> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="htmlfield" style="display:none"> | |||
<td height="26" colspan="4" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 网上复制:</td> | |||
<td> 复制的源网址: | |||
<input name='copysource' type='text' value='http://' style='width:250px'/> | |||
(防盗链网站需填写您复制图片的其中一个网页网址) <br /> | |||
把图片从别的网页复制,在这里用Ctrl+V粘贴,提交后程序可直接获取这个区域的所有图片 | |||
<td>复制的源网址: | |||
<input name='copysource' type='text' value='http://' style='width:250px'/>(防盗链网站需填写您复制图片的其中一个网页网址) | |||
<br>把图片从别的网页复制,在这里用Ctrl+V粘贴,提交后程序可直接获取这个区域的所有图片 | |||
<input type="button" name="button" id="button" value="预览" onClick="LoadTestDiv()"> | |||
<br /> | |||
<div id='copyhtml' style='margin-top:6px;margin-bottom:6px;border:solid 1px #CCCCCC;width:96%;padding:6px;height:250px;width:100%' contenteditable="true">粘贴到这里...</div></td> | |||
<br> | |||
<div id='copyhtml' style='margin-top:6px;margin-bottom:6px;border:solid 1px #CCCCCC;width:96%;padding:6px;height:250px;width:100%' contenteditable="true">粘贴到这里...</div> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" bgcolor="#F9FCEF" class="bline2"> <b>原有图片:</b></td> | |||
@@ -417,7 +445,8 @@ if($cfg_need_typeid2=='Y') { | |||
<tr> | |||
<td height="26" colspan="4" class="bline"><table width='100%'> | |||
<tr> | |||
<td><div id="thumbnailsEdit"> | |||
<td> | |||
<div id="thumbnailsEdit"> | |||
<?php | |||
$j = 1; | |||
if($imgurls!=""){ | |||
@@ -441,10 +470,10 @@ if($cfg_need_typeid2=='Y') { | |||
$fhtml = ''; | |||
$fhtml .= "<div class='albCt albEdit' id='albold{$j}'>\r\n"; | |||
$fhtml .= " <input type='hidden' name='imgurl{$j}' value='{$bigimg}' />\r\n"; | |||
$fhtml .= " <input type='hidden' name='imgddurl{$j}' value='{$litimg}' />\r\n"; | |||
$fhtml .= " <img src='{$litimg}' width='120' /><a href=\"javascript:delAlbPicOld('$bigimg', $j)\">[删除]</a>\r\n"; | |||
$fhtml .= " <div style='margin-top:10px'>注释:<input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."' style='width:190px;' /></div>\r\n"; | |||
$fhtml .= "<input type='hidden' name='imgurl{$j}' value='{$bigimg}' />\r\n"; | |||
$fhtml .= "<input type='hidden' name='imgddurl{$j}' value='{$litimg}' />\r\n"; | |||
$fhtml .= "<img src='{$litimg}' width='120' /><a href=\"javascript:delAlbPicOld('$bigimg', $j)\" class=\"btn btn-success btn-sm\">删除</a>\r\n"; | |||
$fhtml .= "<div style='margin-top:10px'>注释:<input type='text' name='imgmsg{$j}' value='".$ctag->GetAtt('text')."' style='width:190px;' /></div>\r\n"; | |||
$fhtml .= " <div style='margin-top:10px'>更换:<input type='file' name='imgfile{$j}' size='18' style='width:190px' /></div>\r\n"; | |||
$fhtml .= "</div>\r\n"; | |||
echo $fhtml; | |||
@@ -455,47 +484,40 @@ if($cfg_need_typeid2=='Y') { | |||
$dtp->Clear(); | |||
} | |||
?> | |||
</div></td> | |||
</div> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline" style="background:#F9FCEF;"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> <b>增加新图片:</b></td> | |||
<td> | |||
<span class="btn btn-success btn-sm fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择本地图片(支持多选) | |||
<input type="file" name="files[]" id="iptAlbumImages" multiple> | |||
</span> | |||
</td> | |||
<td><span class="btn btn-success btn-sm fileinput-button"><i class="glyphicon glyphicon-plus"></i>选择本地图片(支持多选)<input type="file" name="files[]" id="iptAlbumImages" multiple></span></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td colspan="4" style="background:#fff url(images/albviewbg.jpg) 0 20px no-repeat;"><table width='100%' height='160' style="margin:0 0 20px 0"> | |||
<td colspan="4" style="background:#fff url(images/albviewbg.jpg) 0 20px no-repeat;"> | |||
<table width='100%' height='160' style="margin:0 0 20px 0"> | |||
<tr> | |||
<td><div id="divFileProgressContainer" style="height:75px;"></div> | |||
<div id="thumbnails"></div></td> | |||
<td> | |||
<div id="divFileProgressContainer" style="height:70px;"></div> | |||
<div id="thumbnails"></div> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"><table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td width="10%"> </td> | |||
<td><table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115" class="py-3"><button type="submit" class="btn btn-success">保存</button></td> | |||
<td width="99" class="py-3"><button type="button" onClick="location.reload();" class="btn btn-success">重置</button></td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
</table></td> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr height="36"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
@@ -2,7 +2,7 @@ | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>发布文档</title> | |||
<title>增加商品</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
@@ -33,13 +33,14 @@ body{background:#fff} | |||
img{vertical-align:baseline} | |||
table{border-collapse:separate} | |||
.btn+.btn{margin-left:10px} | |||
.form-control{display:inline-block;margin-right:10px;width:160px} | |||
</style> | |||
</head> | |||
<body topmargin="8"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<tr> | |||
<td width="65%" height="30"><img src="images/book1.gif"> <a href="catalog_do.php?cid=<?php echo $cid?>&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="65%" height="30"><img src="images/book1.gif"> <a href="catalog_do.php?cid=<?php echo $cid?>&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> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | |||
@@ -47,9 +48,8 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table width="800" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规信息 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem2()">高级参数</a></td> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif">常规信息</td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||
<td> </td> | |||
</tr> | |||
</table> | |||
@@ -61,22 +61,19 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem1()">常规信息</a> </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||
<td width="86" align="center" background="images/itemnote1.gif">高级参数</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<form name="form1" action="archives_add.php" enctype="multipart/form-data" method="post" | |||
onSubmit="return checkSubmit()"> | |||
<form name="form1" action="archives_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | |||
<input type="hidden" name="channelid" value="<?php echo $channelid?>" /> | |||
<input type="hidden" name="cid" value="<?php echo $cid?>" /> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" | |||
style="border:1px solid #cfcfcf;background:#ffffff;"> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;"> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
@@ -116,9 +113,7 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 跳转网址:</td> | |||
<td> | |||
<input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="" /> | |||
</td> | |||
<td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="" /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -145,26 +140,15 @@ table{border-collapse:separate} | |||
<tr> | |||
<td height="30"> | |||
<input name="picname" type="text" id="picname" style="width:240px" /> | |||
<button type="button" name="Submit2" class="btn btn-success" | |||
onClick="SelectImage('form1.picname','small');" class='np coolbg'>站内选择</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程 </label> | |||
<span class="btn btn-success fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-success delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程</label> | |||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
<button type="button" name="Submit2" onClick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>选择图片</button> | |||
<button id="btnClearAll" type="button" class="btn btn-success delete">清空</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td align="center"> | |||
<!-- <div id='divpicview' class='divpre'></div> --> | |||
<img id="litPic" src="../static/defaultpic.gif" style="height: 80px"> | |||
</td> | |||
<td align="center"><img id="litPic" src="../static/defaultpic.gif" style="height:80px"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -173,33 +157,30 @@ table{border-collapse:separate} | |||
{ | |||
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n"; | |||
echo "<input type='hidden' name='typeid2' value='0' />\r\n"; | |||
} | |||
else | |||
{ | |||
} else { | |||
?> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> 文档主栏目:</td> | |||
<td width="90"> 文档主栏目:</td> | |||
<td> | |||
<span id='typeidct'> | |||
<?php | |||
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
echo "<option value='0'>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?></span> | |||
<img src='images/menusearch.gif' style='cursor:pointer;' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
| |||
<?php | |||
if($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
?> | |||
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
echo "<option value='0'>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
</span> | |||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
<?php | |||
if($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -211,10 +192,8 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="100"> 文档副栏目:</td> | |||
<td> | |||
<span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value='' | |||
style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' /> | |||
<span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value='' style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' /> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -248,7 +227,7 @@ table{border-collapse:separate} | |||
</td> | |||
</tr> | |||
</table> | |||
<!-- //高级参数 --> | |||
<!--高级参数--> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" | |||
style="border:1px solid #cfcfcf;background:#ffffff;display:none"> | |||
<tr> | |||
@@ -257,17 +236,13 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="90" height="22" width="240"> 评论选项:</td> | |||
<td width="250"> | |||
<label><input type='radio' name='notpost' class='np' value='0' | |||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论</label> | |||
<label><input type='radio' name='notpost' class='np' value='0' <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论</label> | |||
| |||
<label><input type='radio' name='notpost' class='np' value='1' | |||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论</label> | |||
<label><input type='radio' name='notpost' class='np' value='1' <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论</label> | |||
</td> | |||
<td width="90">浏览次数:</td> | |||
<td> | |||
<input type='text' name='click' | |||
value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' | |||
style='width:100px;' /> | |||
<input type='text' name='click' value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' style='width:100px;' /> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -280,9 +255,9 @@ table{border-collapse:separate} | |||
<td width="90"> 文档来源:</td> | |||
<td width="240"><input name="source" type="text" id="source" style="width:160px" value="" size="16"> | |||
<button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button></td> | |||
<td width="90">作 者:</td> | |||
<td> <input name="writer" type="text" id="writer" style="width:120px" value=""> | |||
<button name="selwriter" type="button" id="selwriter" class="btn btn-success btn-sm">选择</button> </td> | |||
<td width="90">作者:</td> | |||
<td><input name="writer" type="text" id="writer" style="width:120px" value=""> | |||
<button name="selwriter" type="button" id="selwriter" class="btn btn-success btn-sm">选择</button></td> | |||
</tr> | |||
</table> | |||
<script language='javascript'>InitPage();</script> | |||
@@ -304,7 +279,8 @@ table{border-collapse:separate} | |||
<td width="90">标题颜色:</td> | |||
<td> | |||
<input name="color" type="text" id="color" style="width:120px"> | |||
<button name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)" class="btn btn-success btn-sm">选取</button> </td> | |||
<button name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)" class="btn btn-success btn-sm">选取</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -314,39 +290,38 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 阅读权限:</td> | |||
<td width="240"> <select name="arcrank" id="arcrank" style="width:150px"> | |||
<?php | |||
<td width="240"><select name="arcrank" id="arcrank" style="width:150px"> | |||
<?php | |||
$urank = $cuserLogin->getUserRank(); | |||
$dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetObject()) | |||
{ | |||
echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
} | |||
?> | |||
</select> </td> | |||
?></select></td> | |||
<td width="90">发布选项:</td> | |||
<td> | |||
<label><input name="ishtml" type="radio" class="np" value="1" checked> | |||
生成HTML</label> | |||
<label><input type="radio" name="ishtml" class="np" value="0"> | |||
仅动态浏览</label> </td> | |||
仅动态浏览</label> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 发布时间:</td> | |||
<td width="241"><?php | |||
<td width="240"><?php | |||
$nowtime = GetDateTimeMk(time()); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>"; | |||
?> </td> | |||
<td width="90">消费金币:</td> | |||
<td width="379"><input name="money" type="text" id="money" value="0" size="10"> </td> | |||
<td width="380"><input name="money" type="text" id="money" value="0" size="10"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -356,13 +331,11 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 关键字:</td> | |||
<td width="448"><input type='text' name="keywords" id="keywords" style="width:80%" value="" /></td> | |||
<td width="262"><label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" | |||
id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>> | |||
<td width="450"><input type='text' name="keywords" id="keywords" style="width:80%" value="" /></td> | |||
<td width="260"><label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>> | |||
自动获取,手动填写用","分开</label><br /> | |||
<button type="button" name="Submit" value="" class="btn btn-success btn-sm" | |||
onClick="SelectKeywords('form1.keywords');">浏览...</button> | |||
</td> | |||
<button type="button" name="Submit" value="" class="btn btn-success btn-sm" onClick="SelectKeywords('form1.keywords');">浏览...</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -372,8 +345,8 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 内容摘要:</td> | |||
<td width="449"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | |||
<td width="261"> </td> | |||
<td width="450"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | |||
<td width="260"> </td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -383,39 +356,21 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> 自定义文件名:</td> | |||
<td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | |||
<td width="261"> </td> | |||
<td width="450"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | |||
<td width="260"> </td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="98%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td width="17%"> </td> | |||
<td width="83%"> | |||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115" class="py-3"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
</td> | |||
<td width="99" class="py-3"> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr height="36"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
</body> | |||
</html> |
@@ -2,7 +2,7 @@ | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>修改文档</title> | |||
<title>修改商品</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
@@ -30,13 +30,14 @@ body{background:#fff} | |||
img{vertical-align:baseline} | |||
table{border-collapse:separate} | |||
.btn+.btn{margin-left:10px} | |||
.form-control{display:inline-block;margin-right:10px;width:160px} | |||
</style> | |||
</head> | |||
<body topmargin="8"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="65%" height="30"><img src="images/book1.gif"> <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="30%" align='right'><?php echo $backurl; ?><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | |||
@@ -44,7 +45,7 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规信息 </td> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif">常规信息</td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||
</tr> | |||
</table> | |||
@@ -56,22 +57,19 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem1()">常规信息</a> </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||
<td width="86" align="center" background="images/itemnote1.gif">高级参数</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<form name="form1" action="archives_edit.php" enctype="multipart/form-data" method="post" | |||
onSubmit="return checkSubmit();"> | |||
<form name="form1" action="archives_edit.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit();"> | |||
<input type="hidden" name="channelid" value="<?php echo $channelid?>" /> | |||
<input type="hidden" name="id" value="<?php echo $aid?>" /> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" | |||
style="border:1px solid #cfcfcf;background:#ffffff;"> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;"> | |||
<tr> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
@@ -95,14 +93,14 @@ table{border-collapse:separate} | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
else $jumpclick = ''; | |||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
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 | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
else $jumpclick = ''; | |||
if(preg_match("#".$trow->att."#", $arcRow['flag'])) | |||
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 | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?> | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -114,10 +112,7 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 跳转网址:</td> | |||
<td> | |||
<input name="redirecturl" type="text" id="redirecturl" style="width:300px" | |||
value="<?php echo $addRow['redirecturl']; ?>" /> | |||
</td> | |||
<td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $addRow['redirecturl']; ?>" /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -138,24 +133,13 @@ table{border-collapse:separate} | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="81"> | |||
缩略图:<br /> | |||
</td> | |||
<td width="90" height="80"> 缩略图:</td> | |||
<td width="600"> | |||
<input name="picname" type="text" id="picname" style="width:300px" | |||
value="<?php echo $arcRow["litpic"]?>"> <button class="btn btn-success" type="button" name="Submit" | |||
style="width:70px" onClick="SelectImage('form1.picname','');">浏览...</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> | |||
远程</label> | |||
<span class="btn btn-success fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-success delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> | |||
<input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $arcRow['litpic']?>"> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> 远程</label> | |||
<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 id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button> | |||
</td> | |||
<td align="center"> | |||
<img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/defaultpic.gif'; ?>" style="height:80px"> | |||
@@ -179,22 +163,21 @@ table{border-collapse:separate} | |||
<td width="100"> 文档主栏目:</td> | |||
<td> | |||
<?php | |||
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
<img src='images/menusearch.gif' style='cursor:pointer' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
$typeOptions = GetOptionList($arcRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
<img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<?php | |||
if($cfg_need_typeid2=='Y') { | |||
?> | |||
if($cfg_need_typeid2=='Y') { | |||
?> | |||
<tr> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
@@ -202,22 +185,19 @@ if($cfg_need_typeid2=='Y') { | |||
<td width="100"> 文档副栏目:</td> | |||
<td> | |||
<span id='typeid2ct'></span> | |||
<input type='text' name='typeid2' id='typeid2' | |||
value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" | |||
alt='选择副栏目' title='选择副栏目' /> | |||
<input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" alt='选择副栏目' title='选择副栏目' /> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<?php }} ?> | |||
<?php }} ?> | |||
<tr> | |||
<td> | |||
<?php | |||
<?php | |||
PrintAutoFieldsEdit($cInfos['fieldset'],$addRow); | |||
?> | |||
?> | |||
</td> | |||
</tr> | |||
<tr> | |||
@@ -229,31 +209,27 @@ if($cfg_need_typeid2=='Y') { | |||
<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> | |||
提取第一个图片为缩略图</label> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<!-- //高级参数 --> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" | |||
style="border:1px solid #cfcfcf;background:#ffffff;display:none"> | |||
<!--高级参数--> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="border:1px solid #cfcfcf;background:#ffffff;display:none"> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="22" width="240"> 评论选项:</td> | |||
<td width="250"> | |||
<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='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> | |||
<label><input type='radio' name='notpost' class='np' value='1' <?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> 禁止评论</label> | |||
</td> | |||
<td width="90">浏览次数:</td> | |||
<td> | |||
<input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /> | |||
</td> | |||
<td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -263,14 +239,10 @@ if($cfg_need_typeid2=='Y') { | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 文档来源:</td> | |||
<td width="250"> | |||
<input name="source" type="text" id="source" style="width:160" value="<?php echo $arcRow["source"]?>" | |||
size="16"> <button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button> </td> | |||
<td width="90">作 者:</td> | |||
<td width="250"><input name="source" type="text" id="source" style="width:160" value="<?php echo $arcRow['source']?>" size="16"> <button name="selsource" type="button" id="selsource" class="btn btn-success btn-sm">选择</button></td> | |||
<td width="90">作者:</td> | |||
<td> | |||
<input name="writer" type="text" id="writer" style="width:120px" | |||
value="<?php echo $arcRow["writer"]?>"> <button class="btn btn-success btn-sm" name="selwriter" type="button" id="selwriter" | |||
>选择</button> </td> | |||
<input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $arcRow["writer"]?>"> <button class="btn btn-success btn-sm" name="selwriter" type="button" id="selwriter">选择</button></td> | |||
</tr> | |||
</table> | |||
<script language='javascript'>InitPage();</script> | |||
@@ -281,8 +253,8 @@ if($cfg_need_typeid2=='Y') { | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 文档排序:</td> | |||
<td width="250"> <select name="sortup" id="sortup" style="width:150"> | |||
<?php | |||
<td width="250"><select name="sortup" id="sortup" style="width:150"> | |||
<?php | |||
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]); | |||
echo "<option value='0'>正常排序</option>\r\n"; | |||
if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n"; | |||
@@ -292,12 +264,13 @@ if($cfg_need_typeid2=='Y') { | |||
<option value="90">置顶三个月</option> | |||
<option value="180">置顶半年</option> | |||
<option value="360">置顶一年</option> | |||
</select> </td> | |||
</select> | |||
</td> | |||
<td width="90">标题颜色:</td> | |||
<td><input name="color" type="text" id="color" style="width:120" | |||
value="<?php echo $arcRow["color"]?>"> | |||
<button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" | |||
onClick="ShowColor(event,this)">选取</button></td> | |||
<td> | |||
<input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>"> | |||
<button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -307,55 +280,50 @@ if($cfg_need_typeid2=='Y') { | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 阅读权限:</td> | |||
<td width="250"> <select name="arcrank" id="arcrank" style="width:150"> | |||
<option value='<?php echo $arcRow["arcrank"]?>'> | |||
<?php echo $arcRow["rankname"]?> </option> | |||
<?php | |||
$urank = $cuserLogin->getUserRank(); | |||
$dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'"); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetObject()){ | |||
echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
} | |||
?> | |||
</select> </td> | |||
<td width="250"><select name="arcrank" id="arcrank" style="width:150"> | |||
<option value='<?php echo $arcRow["arcrank"]?>'><?php echo $arcRow["rankname"]?></option> | |||
<?php | |||
$urank = $cuserLogin->getUserRank(); | |||
$dsql->SetQuery("Select * from #@__arcrank where adminrank<='$urank'"); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetObject()){ | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
} | |||
?> | |||
</select> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> <label><input name="ishtml" type="radio" class="np" value="1" | |||
<?php if($arcRow["ismake"]!=-1) echo " checked";?>> | |||
<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> | |||
<label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked";?>> | |||
仅动态浏览</label> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="75" class="bline"> | |||
<td height="70" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 更新时间:</td> | |||
<td width="250"><?php | |||
$nowtime = GetDateTimeMk(time()); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>"; | |||
?> | |||
$nowtime = GetDateTimeMk(time()); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker'>"; | |||
?> | |||
</td> | |||
<td width="92">消费金币:</td> | |||
<td width="368"><input name="money" type="text" id="money" value="<?php echo $arcRow["money"]?>" | |||
size="10"></td> | |||
<td width="90">消费金币:</td> | |||
<td width="368"><input name="money" type="text" id="money" value="<?php echo $arcRow['money']?>" size="10"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="51"> 关键字:</td> | |||
<td><input type="text" name="keywords" id="keywords" style="width:60%" | |||
value="<?php echo $arcRow["keywords"]?>" /></td> | |||
<td width="90" height="50"> 关键字:</td> | |||
<td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>" /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -364,9 +332,8 @@ if($cfg_need_typeid2=='Y') { | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="51"> 文档摘要:</td> | |||
<td><textarea name="description" rows="3" id="description" | |||
style="width:60%"><?php echo $arcRow["description"]?></textarea></td> | |||
<td width="90" height="50"> 文档摘要:</td> | |||
<td><textarea name="description" rows="3" id="description" style="width:60%"><?php echo $arcRow['description']?></textarea></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -376,38 +343,21 @@ if($cfg_need_typeid2=='Y') { | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> 自定义文件名:</td> | |||
<td width="449"><input type="text" name="filename" id="filename" | |||
value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td> | |||
<td width="261"> </td> | |||
<td width="450"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td> | |||
<td width="260"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td width="17%"> </td> | |||
<td width="83%"> | |||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115" class="py-3"><button type="submit" class="btn btn-success">保存</button></td> | |||
<td width="99" class="py-3"> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr height="36"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
</body> | |||
</html> | |||
</html> |
@@ -2,10 +2,7 @@ | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>发布文档</title> | |||
<style type="text/css"> | |||
body { background-image: url(images/allbg.gif); } | |||
</style> | |||
<title>增加分类</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
@@ -33,40 +30,33 @@ function checkSubmit() | |||
} | |||
</script> | |||
<style> | |||
img { | |||
vertical-align: baseline; | |||
} | |||
input, | |||
select { | |||
height: auto !important; | |||
} | |||
body{background:#fff} | |||
img{vertical-align:baseline} | |||
table{border-collapse:separate} | |||
.btn+.btn{margin-left:10px} | |||
.form-control{display:inline-block;margin-right:6px;width:160px} | |||
</style> | |||
</head> | |||
<body topmargin="8"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<tr> | |||
<td width="65%" height="30"><img src="images/book1.gif"> | |||
<a href="content_sg_list.php?cid=<?php echo $cid?>&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="1%"> </td> | |||
<td width="65%" height="30"><img src="images/book1.gif"> <a href="content_sg_list.php?cid=<?php echo $cid?>&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> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | |||
<tr> | |||
<td colspan="2"> | |||
<table width="800" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规信息 </td> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif">常规信息</td> | |||
<td width="86"></td> | |||
<td> </td> | |||
<td></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<form name="form1" action="archives_sg_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | |||
<input type="hidden" name="channelid" value="<?php echo $channelid?>" /> | |||
<input type="hidden" name="cid" value="<?php echo $cid?>" /> | |||
@@ -78,12 +68,11 @@ function checkSubmit() | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> <?php echo $cInfos['titlename']; ?>:</td> | |||
<td> | |||
<input name="title" type="text" id="title" value="" style="width:388px"> </td> | |||
<td><input name="title" type="text" id="title" value="" style="width:380px"></td> | |||
</tr> | |||
</table> </td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
@@ -95,7 +84,7 @@ function checkSubmit() | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?> | |||
</td> | |||
@@ -103,37 +92,28 @@ function checkSubmit() | |||
</table> | |||
</td> | |||
</tr> | |||
<tr id="pictable" style='<?php if($cInfos['needpic']==0) echo 'display:none'; ?>'> | |||
<tr id="pictable" style="<?php if($cInfos['needpic']==0) echo 'display:none'; ?>"> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 缩略图:</td> | |||
<td width="90"> 缩略图:</td> | |||
<td> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td height="30"> | |||
<input name="picname" type="text" id="picname" style="width:240px" /> | |||
<button type="button" name="Submit2" | |||
onClick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>站内选择</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程 </label> | |||
<span class="btn btn-success btn-sm fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> | |||
<td height="26"> | |||
<input name="picname" type="text" id="picname" style="width:260px" /> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程</label> | |||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
<button type="button" name="Submit2" onclick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td width="150" align="center"> | |||
<img id="litPic" src="../static/defaultpic.gif" style="height: 80px"> | |||
</td> | |||
<td width="150" align="center"><img id="litPic" src="../static/defaultpic.gif" style="height:80px"></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"> | |||
@@ -141,14 +121,14 @@ function checkSubmit() | |||
<tr> | |||
<td width="90"> 浏览权限:</td> | |||
<td> | |||
<select name="arcrank" id="arcrank" style="width:150px"> | |||
<?php | |||
<select name="arcrank" id="arcrank" style="width:160px"> | |||
<?php | |||
$urank = $cuserLogin->getUserRank(); | |||
$dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank'"); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetObject()) | |||
{ | |||
echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
} | |||
?> | |||
</select> | |||
@@ -160,59 +140,45 @@ function checkSubmit() | |||
</td> | |||
</tr> | |||
<?php if($cInfos['dfcid']>0) | |||
{ | |||
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n"; | |||
} | |||
else | |||
{ | |||
?> | |||
{ | |||
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n"; | |||
} else { | |||
?> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> 文档主栏目:</td> | |||
<td width="90"> 文档主栏目:</td> | |||
<td> | |||
<span id='typeidct'> | |||
<?php | |||
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
echo "<option value='0'>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?></span> | |||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
<a href='catalog_main.php' class='btn btn-success btn-sm'>栏目管理</a> | |||
<a href='catalog_add.php?listtype=all' class='btn btn-success btn-sm'>增加大栏目</a> | |||
</td> | |||
<?php | |||
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
echo "<option value='0'>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?></span> | |||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
<a href='catalog_main.php' class='btn btn-success btn-sm'>栏目管理</a> | |||
<a href='catalog_add.php?listtype=all' class='btn btn-success btn-sm'>增加大栏目</a> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<?php } ?> | |||
<tr> | |||
<td><?php PrintAutoFieldsAdd($cInfos['fieldset'],'autofield'); ?></td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="98%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td width="17%"> </td> | |||
<td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115" class="py-3"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
</td> | |||
<td width="99" class="py-3"> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr height="36"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
</body> | |||
</html> |
@@ -2,10 +2,7 @@ | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>修改文档</title> | |||
<style type="text/css"> | |||
body { background-image: url(images/allbg.gif); } | |||
</style> | |||
<title>修改分类</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
@@ -30,31 +27,26 @@ function checkSubmit() | |||
} | |||
</script> | |||
<style> | |||
img { | |||
vertical-align: baseline; | |||
} | |||
input, | |||
select { | |||
height: auto !important; | |||
} | |||
body{background:#fff} | |||
img{vertical-align:baseline} | |||
table{border-collapse:separate} | |||
.btn+.btn{margin-left:10px} | |||
.form-control{display:inline-block;margin-right:6px;width:160px} | |||
</style> | |||
</head> | |||
<body topmargin="8"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<tr> | |||
<td width="65%" height="30"><img src="images/book1.gif" width='20' /> | |||
<a href="content_sg_list.php?cid=<?php echo $addRow['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="65%" height="30"><img src="images/book1.gif"> <a href="content_sg_list.php?cid=<?php echo $addRow['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> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | |||
<tr> | |||
<td colspan="2"> | |||
<table border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规信息 </td> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif">常规信息</td> | |||
<td width="86" align="center"></td> | |||
</tr> | |||
</table> | |||
@@ -69,14 +61,15 @@ function checkSubmit() | |||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;"> | |||
<tr> | |||
<td height="26" class="bline"><table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> <?php echo $cInfos['titlename']; ?>:</td> | |||
<td><input name="title" type="text" id="title" value="<?php echo $addRow['title']; ?>" style="width:388px"> </td> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> <?php echo $cInfos['titlename']; ?>:</td> | |||
<td><input name="title" type="text" id="title" value="<?php echo $addRow['title']; ?>" style="width:380px"></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="400%" height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
@@ -84,15 +77,15 @@ function checkSubmit() | |||
<td width="100"> 自定义属性:</td> | |||
<td> | |||
<?php | |||
$dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' AND att<>'p' ORDER BY sortid ASC"); | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if(preg_match("#".$trow->att."#", $addRow['flag'])) | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' /> {$trow->attname}[{$trow->att}]</label> "; | |||
else | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' /> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
$dsql->SetQuery("SELECT * FROM `#@__arcatt` WHERE att<>'j' AND att<>'p' ORDER BY sortid ASC"); | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if(preg_match("#".$trow->att."#", $addRow['flag'])) | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' checked='checked' /> {$trow->attname}[{$trow->att}]</label> "; | |||
else | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' /> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
@@ -105,13 +98,13 @@ function checkSubmit() | |||
<td width="90"> 浏览权限:</td> | |||
<td> | |||
<select name="arcrank" id="arcrank" style="width:150px"> | |||
<option value='<?php echo $addRow["arcrank"]; ?>'><?php echo $addRow["rankname"]; ?></option> | |||
<?php | |||
<option value='<?php echo $addRow["arcrank"]; ?>'><?php echo $addRow["rankname"]; ?></option> | |||
<?php | |||
$urank = $cuserLogin->getUserRank(); | |||
$dsql->SetQuery("Select * from `#@__arcrank` where adminrank<='$urank' And rank<>'{$addRow["arcrank"]}' "); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetObject()) { | |||
echo " <option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
} | |||
?> | |||
</select> </td> | |||
@@ -125,44 +118,28 @@ function checkSubmit() | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="81"> | |||
缩略图:<br/> | |||
</td> | |||
<td width="90" height="80"> 缩略图:</td> | |||
<td width="560"> | |||
<input name="picname" type="text" id="picname" style="width:300px" | |||
value="<?php echo $addRow["litpic"]?>"><button class="btn btn-success btn-sm" type="button" name="Submit" | |||
style="width:70px" onClick="SelectImage('form1.picname','');">浏览...</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> | |||
远程</label> | |||
<span class="btn btn-success btn-sm fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> | |||
</td> | |||
<td align="center"> | |||
<img id="litPic" | |||
src="<?php if($addRow["litpic"]!="") echo $addRow["litpic"]; else echo "../static/defaultpic.gif";?>" | |||
style="height: 80px"> | |||
<input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $addRow['litpic']?>"> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> 远程</label> | |||
<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 id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button> | |||
</td> | |||
<td align="center"><img id="litPic" src="<?php if($addRow['litpic']!='') echo $addRow['litpic']; else echo '../static/defaultpic.gif'; ?>" style="height:80px"></td> | |||
</tr> | |||
</table></td> | |||
</table> | |||
</td> | |||
</tr> | |||
<?php if($cInfos['dfcid']>0) | |||
{ | |||
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n"; | |||
} | |||
else | |||
{ | |||
?> | |||
{ | |||
echo "<input type='hidden' name='typeid' value='{$cInfos['dfcid']}' />\r\n"; | |||
} else { | |||
?> | |||
<tr> | |||
<td height="26" class="bline"> <table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> 文档主栏目:</td> | |||
<td width="90"> 文档主栏目:</td> | |||
<td> | |||
<?php | |||
$typeOptions = GetOptionList($addRow['typeid'],$cuserLogin->getUserChannel(),$channelid); | |||
@@ -177,7 +154,6 @@ function checkSubmit() | |||
</table></td> | |||
</tr> | |||
<?php } ?> | |||
<tr> | |||
<td> | |||
<?php | |||
@@ -186,25 +162,14 @@ function checkSubmit() | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td width="17%"> </td> | |||
<td width="83%"><table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115" class="py-3"><button type="submit" class="btn btn-success">保存</button></td> | |||
<td width="99" class="py-3"> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
</table></td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr height="36"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
</body> | |||
</html> |
@@ -150,17 +150,10 @@ table{border-collapse:separate} | |||
<tr> | |||
<td height="30"> | |||
<input name="picname" type="text" id="picname" style="width:240px"> | |||
<button type="button" name="Submit2" style="margin-left:8px" onClick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>站内选择</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote'> 远程</label> | |||
<span class="btn btn-success btn-sm fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> | |||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
<button type="button" name="Submit2" onClick="SelectImage('form1.picname','small');" class="btn btn-success btn-sm">选择图片</button> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -147,15 +147,9 @@ table{border-collapse:separate} | |||
<td> | |||
<input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $arcRow['litpic']?>"> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> 远程</label> | |||
<span class="btn btn-success btn-sm fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> | |||
<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 id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button> | |||
</td> | |||
<td align="center"> | |||
<img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/defaultpic.gif'; ?>" style="height:80px"> | |||
@@ -321,7 +315,7 @@ table{border-collapse:separate} | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="75" class="bline"> | |||
<td height="70" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="110"> 更新时间:</td> | |||
@@ -1,152 +1,132 @@ | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>栏目管理</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
<style> | |||
.table { | |||
margin-bottom: 0; | |||
} | |||
textarea { | |||
min-height: 32px; | |||
} | |||
</style> | |||
<script language="javascript"> | |||
var channelArray = new Array(); | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>栏目管理</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="css/base.css"> | |||
<script src="../static/js/jquery.js"></script> | |||
<script src="js/main.js"></script> | |||
<style> | |||
textarea{min-height:30px} | |||
.table{margin-bottom:0} | |||
.btn+.btn{margin-left:10px} | |||
</style> | |||
<script> | |||
var channelArray = new Array(); | |||
<?php | |||
$i = 0; | |||
foreach($channelArray as $k=> $arr) | |||
{ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";\r\n"; | |||
} | |||
foreach($channelArray as $k=> $arr) | |||
{ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";"; | |||
} | |||
?> | |||
function Nav() { | |||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||
else return "OT"; | |||
} | |||
function SelectTemplets(fname) { | |||
if (document.all) { | |||
var posLeft = window.event.clientY - 100; | |||
var posTop = window.event.clientX - 400; | |||
} | |||
else { | |||
var posLeft = 100; | |||
var posTop = 100; | |||
} | |||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=680,height=400,left=" + posLeft + ", top=" + posTop); | |||
} | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
else { | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
} | |||
} | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
obj.style.display = "none"; | |||
} | |||
function ShowItem1() { | |||
ShowObj('head1'); ShowObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem2() { | |||
ShowObj('head2'); ShowObj('adset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem3() { | |||
ShowObj('head3'); ShowObj('ctset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
} | |||
function CheckTypeDir() { | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
var tobj = document.getElementById('smclass'); | |||
var tempindex = document.getElementsByName('tempindex'); | |||
var templist = document.getElementsByName('templist'); | |||
var temparticle = document.getElementsByName('temparticle'); | |||
var dfstyle = document.getElementsByName('dfstyle'); | |||
var dfstyleValue = dfstyle[0].value; | |||
tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||
templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
} | |||
else { | |||
tobj.style.display = "none"; | |||
} | |||
} | |||
function checkSubmit() { | |||
if (document.form1.typename.value == "") { | |||
alert("栏目名称不能为空"); | |||
document.form1.typename.focus(); | |||
return false; | |||
} | |||
return true; | |||
} | |||
function CheckPathSet() { | |||
var surl = document.getElementById("siteurl"); | |||
var sreid = document.getElementById("reid"); | |||
var mysel = document.getElementById("truepath3"); | |||
if (surl.value != "") { | |||
if (sreid.value == "0" || sreid.value == "") { | |||
mysel.checked = true; | |||
} | |||
} | |||
} | |||
function CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
function Nav() { | |||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||
else return "OT"; | |||
} | |||
function SelectTemplets(fname) { | |||
if (document.all) { | |||
var posLeft = window.event.clientY - 100; | |||
var posTop = window.event.clientX - 400; | |||
} else { | |||
var posLeft = 100; | |||
var posTop = 100; | |||
} | |||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=680,height=400,left=" + posLeft + ", top=" + posTop); | |||
} | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
else { | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
} | |||
} | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
obj.style.display = "none"; | |||
} | |||
function ShowItem1() { | |||
ShowObj('head1'); ShowObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem2() { | |||
ShowObj('head2'); ShowObj('adset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem3() { | |||
ShowObj('head3'); ShowObj('ctset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
} | |||
function CheckTypeDir() { | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
var tobj = document.getElementById('smclass'); | |||
var tempindex = document.getElementsByName('tempindex'); | |||
var templist = document.getElementsByName('templist'); | |||
var temparticle = document.getElementsByName('temparticle'); | |||
var dfstyle = document.getElementsByName('dfstyle'); | |||
var dfstyleValue = dfstyle[0].value; | |||
tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||
templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
} else { | |||
tobj.style.display = "none"; | |||
} | |||
} | |||
function checkSubmit() { | |||
if (document.form1.typename.value == "") { | |||
alert("栏目名称不能为空"); | |||
document.form1.typename.focus(); | |||
return false; | |||
} | |||
return true; | |||
} | |||
function CheckPathSet() { | |||
var surl = document.getElementById("siteurl"); | |||
var sreid = document.getElementById("reid"); | |||
var mysel = document.getElementById("truepath3"); | |||
if (surl.value != "") { | |||
if (sreid.value == "0" || sreid.value == "") { | |||
mysel.checked = true; | |||
} | |||
</script> | |||
} | |||
} | |||
function CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
} | |||
</script> | |||
</head> | |||
<body leftmargin='15' topmargin='10' bgcolor="#FFFFFF"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#111111" | |||
style="BORDER-COLLAPSE: collapse" class="mt-3"> | |||
<body leftmargin="15" topmargin="10" bgcolor="#fff"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" class="mt-3"> | |||
<tr> | |||
<td width="100%" height="20" valign="top"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td height="30"><img src="images/book1.gif"> <a | |||
href="catalog_main.php">栏目管理</a> >> 增加栏目</td> | |||
<td height="30"><img src="images/book1.gif"><a href="catalog_main.php">栏目管理</a>>>增加栏目</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -157,424 +137,376 @@ $i = 0; | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td height="10"></td> | |||
</tr> | |||
<tr> | |||
<form name="form1" action="catalog_add.php" method="post" onSubmit="return checkSubmit();"> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<input type="hidden" name="reid" id="reid" value="<?php echo $id; ?>" /> | |||
<input type='hidden' name='topid' id='topid' value='<?php echo $topid; ?>' /> | |||
<form name="form1" action="catalog_add.php" method="post" onSubmit="return checkSubmit()"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="reid" id="reid" value="<?php echo $id; ?>"> | |||
<input type='hidden' name='topid' id='topid' value='<?php echo $topid; ?>'> | |||
<?php | |||
if($id>0) | |||
{ | |||
echo " <input type='hidden' name='moresite' value='{$myrow['moresite']}' />\r\n"; | |||
echo " <input type='hidden' name='siteurl' value='{$myrow['siteurl']}' />\r\n"; | |||
echo " <input type='hidden' name='sitepath' value='{$myrow['sitepath']}' />\r\n"; | |||
} | |||
?> | |||
<td height="95" align="center" bgcolor="#FFFFFF"> | |||
if($id>0) | |||
{ | |||
echo " <input type='hidden' name='moresite' value='{$myrow['moresite']}'>"; | |||
echo " <input type='hidden' name='siteurl' value='{$myrow['siteurl']}'>"; | |||
echo " <input type='hidden' name='sitepath' value='{$myrow['sitepath']}'>"; | |||
} | |||
?> | |||
<td height="95" align="center" bgcolor="#fff"> | |||
<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF" align="left"> | |||
<td colspan="2" bgcolor="#fff" align="left"> | |||
<table border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规选项 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem2()">高级选项</a> </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem3()">栏目内容</a> </td> | |||
<td width="84" height="26" align="center" background="images/itemnote1.gif">常规选项</td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()">高级选项</a></td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem3()">栏目内容</a></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||
<td colspan="2" bgcolor="#fff" style="text-align:left"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" | |||
onClick="ShowItem1()">常规选项</a> </td> | |||
<td width="86" align="center" background="images/itemnote1.gif">高级选项 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem3()">栏目内容</a> </td> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()">常规选项</a></td> | |||
<td width="84" align="center" background="images/itemnote1.gif">高级选项</td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem3()">栏目内容</a></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||
<td colspan="2" bgcolor="#fff" style="text-align:left"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" | |||
onClick="ShowItem1()">常规选项</a> </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem2()">高级选项 </td> | |||
<td width="86" align="center" background="images/itemnote1.gif">栏目内容 </td> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()">常规选项</a></td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()">高级选项</td> | |||
<td width="84" align="center" background="images/itemnote1.gif">栏目内容</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" | |||
style="text-align:left;border:1px solid #cfcfcf;background:#ffffff;" class="table"> | |||
<tr> | |||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否支持投稿:</td> | |||
<td class='bline'> | |||
<label><input type='radio' name='issend' value='0' class='np' | |||
<?php if($issend==0) echo " checked='checked' ";?> /> | |||
不支持 </label> | |||
<label><input type='radio' name='issend' value='1' class='np' | |||
<?php if($issend==1) echo " checked='checked' ";?> /> | |||
支持</label> | |||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="text-align:left;border:1px solid #cfcfcf;background:#fff" class="table"> | |||
<tr> | |||
<td width="150" class="bline" height="26" style="padding-left:10px">是否支持投稿:</td> | |||
<td class="bline"> | |||
<label><input type='radio' name='issend' value='0' class='np' <?php if($issend==0) echo " checked='checked' "; ?>> 不支持 </label> | |||
<label><input type='radio' name='issend' value='1' class='np' <?php if($issend==1) echo " checked='checked' "; ?>> 支持</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否隐藏栏目:</td> | |||
<td class='bline'> | |||
<label><input type='radio' name='ishidden' value='0' class='np' checked="checked" /> | |||
显示 </label> | |||
<label><input type='radio' name='ishidden' value='1' class='np' /> | |||
隐藏</label> | |||
<td width="150" class="bline" height="26" style="padding-left:10px">是否隐藏栏目:</td> | |||
<td class="bline"> | |||
<label><input type='radio' name='ishidden' value='0' class='np' checked="checked"> 显示 </label> | |||
<label><input type='radio' name='ishidden' value='1' class='np'> 隐藏</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;"> | |||
<span style='color:#e74d58'>内容模型:</span> | |||
</td> | |||
<td class='bline'> | |||
<td class="bline" height="26" style="padding-left:10px">内容模型:</td> | |||
<td class="bline"> | |||
<select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)"> | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) { | |||
$nid = $arr['nid']; | |||
echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | |||
} | |||
else | |||
{ | |||
echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | |||
} | |||
} | |||
?> | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) { | |||
$nid = $arr['nid']; | |||
echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>"; | |||
} else { | |||
echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>"; | |||
} | |||
} | |||
?> | |||
</select> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;"> | |||
<span style='color:#e74d58'>栏目名称:</span> | |||
<td class="bline" height="26" style="padding-left:10px">中文名称:</td> | |||
<td class="bline"><input name="typename" type="text" size="40" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">中文概况:</td> | |||
<td class="bline"><input name="namegk" type="text" size="40" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">英文名称:</td> | |||
<td class="bline"><input name="enname" type="text" size="40" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">英文概况:</td> | |||
<td class="bline"><input name="ennamegk" type="text" size="40" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">栏目大图:</td> | |||
<td> | |||
<input name="litpic" type="text" class="alltxt" size="40"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览..." onClick="SelectImage('form1.litpic');"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">栏目小图:</td> | |||
<td> | |||
<input name="litimg" type="text" class="alltxt" size="40"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览..." onClick="SelectImage('form1.litimg');"> | |||
</td> | |||
<td class='bline'><input name="typename" type="text" id="typename" size="30" class="iptxt" /></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;"> 排列顺序: </td> | |||
<td class='bline'><input name="sortrank" size="6" type="text" value="50" class="pubinputs" | |||
style="width:60px" /> | |||
(由低 -> 高) </td> | |||
<td class="bline" height="26" style="padding-left:10px">排列顺序:</td> | |||
<td class="bline"><input name="sortrank" type="text" value="50" class="pubinputs" style="width:100px">(由低 -> 高)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">浏览权限:</td> | |||
<td class='bline'> | |||
<td class="bline" height="26" style="padding-left:10px">浏览权限:</td> | |||
<td class="bline"> | |||
<select name="corank" id="corank" style="width:100px"> | |||
<?php | |||
$dsql->SetQuery("Select * from `#@__arcrank` where rank >= 0"); | |||
$dsql->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')) | |||
{ | |||
if($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>\r\n"; | |||
else | |||
{ | |||
//如果上级目录的corank>0,下级必须继承 | |||
if($corank==0) | |||
{ echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; } | |||
} | |||
} | |||
?> | |||
</select> | |||
(仅限制栏目里的文档浏览权限) </td> | |||
$dsql->SetQuery("Select * from `#@__arcrank` where rank >= 0"); | |||
$dsql->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')){ | |||
if($corank==$row->rank) echo "<option value='".$row->rank."' selected>".$row->membername."</option>"; | |||
else { | |||
if($corank==0){ | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>"; | |||
} | |||
} | |||
} | |||
?> | |||
</select>(仅限制栏目里的文档浏览权限)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">上级目录:</td> | |||
<td class='bline'> | |||
<td class="bline" height="26" style="padding-left:10px">上级目录:</td> | |||
<td class="bline"> | |||
<?php | |||
$pardir = '{cmspath}'.$cfg_arcdir; | |||
if(!empty($typedir)) $pardir = $typedir.'/'; | |||
$pardir = preg_replace("#\/{1,}#", '/', $pardir); | |||
echo $pardir; | |||
$pardir = '{cmspath}'.$cfg_arcdir; | |||
if(!empty($typedir)) $pardir = $typedir.'/'; | |||
$pardir = preg_replace("#\/{1,}#", '/', $pardir); | |||
echo $pardir; | |||
?> | |||
<input name="nextdir" type="hidden" id="nextdir" value="<?php echo $pardir?>" /> | |||
<input name="nextdir" type="hidden" id="nextdir" value="<?php echo $pardir?>"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">文件保存目录:</td> | |||
<td> | |||
<td height="26" style="padding-left:10px">文件保存目录:</td> | |||
<td style="padding:0"> | |||
<table border="0" cellspacing="1" cellpadding="1" class="table-borderless"> | |||
<tr> | |||
<td> | |||
<input name="typedir" type="text" id="typedir" class="pubinputs" style="width:300px"> | |||
</td> | |||
<td> | |||
<input name="upinyin" type="checkbox" id="upinyin" class="np" value="1" | |||
onClick="CheckTypeDir()" /> | |||
<label for="upinyin">拼音</label> | |||
</td> | |||
<tr > | |||
<td><input name="typedir" type="text" id="typedir" size="40" class="pubinputs"></td> | |||
<td><input name="upinyin" type="checkbox" id="upinyin" class="np" value="1" onClick="CheckTypeDir()"><label for="upinyin"> 拼音</label></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">目录相对位置:</td> | |||
<td class='bline'> | |||
<input name="referpath" type="radio" id="truepath1" class="np" value="parent" checked="chekced" /> | |||
<td class="bline" height="26" style="padding-left:10px">目录相对位置:</td> | |||
<td class="bline"> | |||
<input name="referpath" type="radio" id="truepath1" class="np" value="parent" checked="chekced"> | |||
<label for="truepath1">上级目录</label> | |||
<?php | |||
if($moresite==0){ | |||
?> | |||
<input name="referpath" type="radio" id="truepath2" class="np" value="cmspath" /> | |||
if($moresite==0){ | |||
?> | |||
<input name="referpath" type="radio" id="truepath2" class="np" value="cmspath"> | |||
<label for="truepath2">CMS根目录</label> | |||
<input name="referpath" type="radio" id="truepath3" class="np" value="basepath" /> | |||
<input name="referpath" type="radio" id="truepath3" class="np" value="basepath"> | |||
<label for="truepath3">站点根目录</label> | |||
<?php } ?> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">栏目列表选项:</td> | |||
<td height="26" style="padding-left:10px">栏目列表选项:</td> | |||
<td> | |||
<input type='radio' name='isdefault' id="isdefault1" value='1' class='np' checked="checked" /> | |||
<input type='radio' name='isdefault' id="isdefault1" value='1' class='np' checked="checked"> | |||
<label for="isdefault1">链接到默认页</label> | |||
<input type='radio' name='isdefault' id="isdefault0" value='0' class='np' /> | |||
<input type='radio' name='isdefault' id="isdefault0" value='0' class='np'> | |||
<label for="isdefault0">链接到列表第一页</label> | |||
<input type='radio' name='isdefault' id="isdefault-1" value='-1' class='np' /> | |||
<input type='radio' name='isdefault' id="isdefault-1" value='-1' class='np'> | |||
<label for="isdefault-1">使用动态页</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" class='bline' style="padding-left:10px;">默认页的名称: </td> | |||
<td class='bline'> | |||
<input name="defaultname" type="text" value="index.html" class="iptxt" /> | |||
</td> | |||
<td height="26" class="bline" style="padding-left:10px">默认页的名称:</td> | |||
<td class="bline"><input name="defaultname" type="text" value="index.html" class="iptxt" style="width:100px"></td> | |||
</tr> | |||
<tr> | |||
<td height="26" class='bline' style="padding-left:10px;">栏目属性:</td> | |||
<td class='bline'> | |||
<input name="ispart" type="radio" id="ispart0" value="0" class='np' checked="checked" /> | |||
<td height="26" class="bline" style="padding-left:10px">栏目属性:</td> | |||
<td class="bline"> | |||
<input name="ispart" type="radio" id="ispart0" value="0" class='np' checked="checked"> | |||
<label for="ispart0">最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label> <br> | |||
<input name="ispart" type="radio" id="ispart1" value="1" class='np' /> | |||
<input name="ispart" type="radio" id="ispart1" value="1" class='np'> | |||
<label for="ispart1">频道封面(栏目本身不允许发布文档)</label> <br> | |||
<input name="ispart" type="radio" id="ispart2" value="2" class='np' /> | |||
<input name="ispart" type="radio" id="ispart2" value="2" class='np'> | |||
<label for="ispart2">外部连接(在"文件保存目录"处填写网址)</label> | |||
</td> | |||
</tr> | |||
<tr id='helpvarco' style='display:none'> | |||
<td height="80" bgcolor="#F3F7EA" style="padding-left:10px;">栏目交叉说明: </td> | |||
<td bgcolor="#F3F7EA"> | |||
交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好。<br />例如: | |||
网站上有大栏目——智能手机、音乐手机,另外又有栏目——诺基亚->智能手机、诺基亚->音乐手机,这样顶级的大栏目就和另一个大栏目的子栏目形成了交叉,这样只需要在大栏目中指定交叉的栏目即可。 | |||
<br />注:会自动索引交叉栏目的内容,但不会索引交叉栏目下级栏目的内容,这种应用也适用于按地区划分资讯的站点。 | |||
<td height="80" bgcolor="#F3F7EA" style="padding-left:10px">栏目交叉说明:</td> | |||
<td bgcolor="#F3F7EA">交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好。<br>例如:网站上有大栏目——智能手机、音乐手机,另外又有栏目——诺基亚->智能手机、诺基亚->音乐手机,这样顶级的大栏目就和另一个大栏目的子栏目形成了交叉,这样只需要在大栏目中指定交叉的栏目即可。<br>注:会自动索引交叉栏目的内容,但不会索引交叉栏目下级栏目的内容,这种应用也适用于按地区划分资讯的站点。 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td style="padding-left:10px;">栏目交叉: <img src="images/help.gif" alt="帮助" border="0" | |||
style="cursor:pointer" onClick="ShowHide('helpvarco')" /> <br />仅适用[最终列表栏目]</td> | |||
<td style="padding:3px 0px 3px 0px"> | |||
<input name="cross" type="radio" id="cross0" value="0" class='np' onClick="CheckCross()" checked='1' /> | |||
<td style="padding-left:10px">栏目交叉:<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvarco')"> <br>仅适用[最终列表栏目]</td> | |||
<td> | |||
<input name="cross" type="radio" id="cross0" value="0" class='np' onClick="CheckCross()" checked='1'> | |||
<label for="cross0">不交叉</label> | |||
<input name="cross" type="radio" id="cross1" value="1" class='np' onClick="CheckCross()" /> | |||
<input name="cross" type="radio" id="cross1" value="1" class='np' onClick="CheckCross()"> | |||
<label for="cross1">自动获取同名栏目内容</label> | |||
<input name="cross" type="radio" id="cross2" value="2" class='np' onClick="CheckCross()" /> | |||
<input name="cross" type="radio" id="cross2" value="2" class='np' onClick="CheckCross()"> | |||
<label for="cross2">手工指定交叉栏目ID(用逗号分开)</label> | |||
<br /> | |||
<br> | |||
<textarea name="crossid" cols="50" rows="3" id="crossid" style="display:none" class="alltxt"></textarea> | |||
</td> | |||
</tr> | |||
<tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'> | |||
<td class='bline' style="padding-left:10px;">绑定小分类: <br />仅适用[分类信息模型]</td> | |||
<td class='bline' style="padding:3px 0px 3px 0px"> | |||
<td class="bline" style="padding-left:10px">绑定小分类: <br>仅适用[分类信息模型]</td> | |||
<td class="bline"> | |||
<select name='smalltype[]' size='5' style='width:120px' multiple='yes'> | |||
<?php | |||
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
$sql = "SELECT * FROM `#@__sys_enum` WHERE egroup LIKE 'infotype' ORDER BY disorder ASC, id DESC "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
if($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'>{$arr['ename']}</option>\r\n"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
echo "<option value='{$arr['evalue']}'> └───{$arr['ename']}</option>\r\n"; | |||
} | |||
else { | |||
echo "<option value='{$arr['evalue']}'> └─{$arr['ename']}</option>\r\n"; | |||
} | |||
echo "<option value='{$arr['evalue']}'>└───{$arr['ename']}</option>"; | |||
} else { | |||
echo "<option value='{$arr['evalue']}'>└─{$arr['ename']}</option>"; | |||
} | |||
?> | |||
</select> | |||
按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</a>中管理 | |||
} | |||
?> | |||
</select>按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</a>中管理 | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" | |||
style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="adset" class="table"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;display:none;text-align:left" id="adset" class="table"> | |||
<?php | |||
if($id==0) | |||
{ | |||
?> | |||
<tr> | |||
<td class='bline' width="150" height="26" style="padding-left:10px;">多站点支持:</td> | |||
<td class='bline'> | |||
<label><input name="moresite" type="radio" class="np" value="0" checked="checked" /> | |||
不启用</label> | |||
<label><input type="radio" name="moresite" class="np" value="1" /> | |||
启用</label> | |||
if($id==0) | |||
{ | |||
?> | |||
<tr> | |||
<td class="bline" width="150" height="26" style="padding-left:10px">多站点支持:</td> | |||
<td class="bline"> | |||
<label><input name="moresite" type="radio" class="np" value="0" checked="checked"> 不启用 </label> | |||
<label><input type="radio" name="moresite" class="np" value="1"> 启用</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px;">说明:</td> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px">说明:</td> | |||
<td bgcolor="#F3F7EA">如果需要绑定二级域名,必须在“系统参数”中设定“支持多站点”。</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">绑定域名:</td> | |||
<td class='bline'> | |||
<input name="siteurl" type="text" id="siteurl" size="35" onChange="CheckPathSet();" class="pubinputs" /> | |||
(需加 http://,一级或二级域名的根网址) | |||
</td> | |||
<td class="bline" height="26" style="padding-left:10px">绑定域名:</td> | |||
<td class="bline"><input name="siteurl" type="text" id="siteurl" size="40" class="alltxt" onChange="CheckPathSet();">(需加 http://,一级或二级域名的根网址)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">站点根目录:</td> | |||
<td class='bline'> | |||
为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。 | |||
</td> | |||
<td class="bline" height="26" style="padding-left:10px">站点根目录:</td> | |||
<td class="bline">为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。</td> | |||
</tr> | |||
<?php | |||
} | |||
?> | |||
} | |||
?> | |||
<tr id='helpvar1' style='display:none'> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td> | |||
<td bgcolor="#F3F7EA"> {tid}表示栏目ID,<br> | |||
{cid}表示频道模型的'名字ID' <span>( | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
echo "{$arr['typename']}({$arr['nid']})、"; | |||
} | |||
?> | |||
) </span> <br /> | |||
模板文件的默认位置是放在模板目录 "cms安装目录 | |||
<?php echo $cfg_templets_dir ?> | |||
" 内。 | |||
<input type='hidden' value='{style}' name='dfstyle' class="pubinputs" /> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px">支持变量:</td> | |||
<td bgcolor="#F3F7EA"> | |||
{tid}表示栏目ID,<br> | |||
{cid}表示频道模型的'名字ID'( | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
echo "{$arr['typename']}({$arr['nid']})、"; | |||
} | |||
?>)<br> | |||
模板文件的默认位置是放在模板目录 "cms安装目录<?php echo $cfg_templets_dir ?>" 内。 | |||
<input type='hidden' value='{style}' name='dfstyle' class="pubinputs"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px;">规则选项:</td> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px">规则选项:</td> | |||
<td bgcolor="#F3F7EA">按不同的内容类型设定相关模板及命名规则。</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">封面模板:</td> | |||
<td> <input name="tempindex" type="text" value="{style}/index_<?php echo $nid?>.htm" class="pubinputs" | |||
style="width:300px" /> | |||
<button type="button" name="set1" class="btn btn-success btn-sm" | |||
onClick="SelectTemplets('form1.tempindex');">浏览...</button> | |||
<img src="images/help.gif" alt="帮助" border="0" style="cursor:pointer" | |||
onClick="ShowHide('helpvar1')" /> | |||
<td height="26" style="padding-left:10px">封面模板:</td> | |||
<td> | |||
<input name="tempindex" type="text" value="{style}/index_<?php echo $nid?>.htm" size="40" class="alltxt"> | |||
<button type="button" name="set1" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.tempindex')">浏览...</button> | |||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar1')"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">列表模板:</td> | |||
<td> <input name="templist" type="text" value="{style}/list_<?php echo $nid?>.htm" class="pubinputs" | |||
style="width:300px" /> | |||
<button type="button" name="set3" class="btn btn-success btn-sm" | |||
onClick="SelectTemplets('form1.templist');">浏览...</button> | |||
<td height="26" style="padding-left:10px">列表模板:</td> | |||
<td> | |||
<input name="templist" type="text" value="{style}/list_<?php echo $nid?>.htm" size="40" class="alltxt"> | |||
<button type="button" name="set3" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.templist')">浏览...</button> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">文章模板:</td> | |||
<td><input name="temparticle" type="text" value="{style}/article_<?php echo $nid?>.htm" class="pubinputs" | |||
style="width:300px" /> | |||
<button type="button" name="set4" class="btn btn-success btn-sm" style="width:60px" | |||
onClick="SelectTemplets('form1.temparticle');">浏览...</button> | |||
<td height="26" style="padding-left:10px">文章模板:</td> | |||
<td> | |||
<input name="temparticle" type="text" value="{style}/article_<?php echo $nid?>.htm" size="40" class="alltxt"> | |||
<button type="button" name="set4" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.temparticle')">浏览...</button> | |||
</td> | |||
</tr> | |||
<tr id='helpvar2' style='display:none'> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td> | |||
<td height="26" bgcolor="#F3F7EA"> {Y}、{M}、{D} 年月日<br /> | |||
{timestamp} INT类型的UNIX时间戳<br /> | |||
{aid} 文章ID<br /> | |||
{pinyin} 拼音+文章ID<br /> | |||
{py} 拼音部首+文章ID<br /> | |||
{typedir} 栏目目录 <br /> | |||
{cc} 日期+ID混编后用转换为适合的字母 <br /> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px">支持变量:</td> | |||
<td height="26" bgcolor="#F3F7EA"> | |||
{Y}、{M}、{D} 年月日<br> | |||
{timestamp} INT类型的UNIX时间戳<br> | |||
{aid} 文章ID<br> | |||
{pinyin} 拼音+文章ID<br> | |||
{py} 拼音部首+文章ID<br> | |||
{typedir} 栏目目录 <br> | |||
{cc} 日期+ID混编后用转换为适合的字母 <br> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">文章命名规则:</td> | |||
<td> <input name="namerule" type="text" id="namerule" value="<?php echo $cfg_df_namerule;?>" | |||
class="pubinputs" style="width:250px" /> | |||
<img src="images/help.gif" alt="帮助" border="0" style="cursor:pointer" | |||
onClick="ShowHide('helpvar2')" /> | |||
<td height="26" style="padding-left:10px">文章命名规则:</td> | |||
<td> | |||
<input name="namerule" type="text" id="namerule" value="<?php echo $cfg_df_namerule;?>" size="40" class="alltxt"> | |||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar2')"> | |||
</td> | |||
</tr> | |||
<tr id='helpvar3' style='display:none'> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px;">支持变量: </td> | |||
<td height="26" bgcolor="#F3F7EA" style="padding-left:10px">支持变量:</td> | |||
<td bgcolor="#F3F7EA">{page} 列表的页码</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">列表命名规则:</td> | |||
<td height="26" style="padding-left:10px">列表命名规则:</td> | |||
<td> | |||
<input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" | |||
class="pubinputs" style="width:250px" /> | |||
<img src="images/help.gif" alt="帮助" border="0" style="cursor:pointer" | |||
onClick="ShowHide('helpvar3')" /></td> | |||
<input name="namerule2" type="text" id="namerule2" value="{typedir}/list_{tid}_{page}.html" size="40" class="alltxt"> | |||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="65" style="padding-left:10px;">SEO标题:</td> | |||
<td> | |||
<input name="seotitle" type="text" style="width:250px" id="seotitle" class="alltxt" value="" /> | |||
(栏目模板里用{dede:field.seotitle /}调用) | |||
</td> | |||
<td height="60" style="padding-left:10px">SEO标题:</td> | |||
<td><input name="seotitle" type="text" id="seotitle" size="40" class="alltxt">(栏目模板里用{dede:field.seotitle /}调用)</td> | |||
</tr> | |||
<tr> | |||
<td height="65" style="padding-left:10px;">关键字:</td> | |||
<td> | |||
<textarea name="keywords" cols="70" rows="4" id="keywords" class="alltxt"></textarea> | |||
</td> | |||
<td height="60" style="padding-left:10px">关键字:</td> | |||
<td><textarea name="keywords" cols="70" rows="4" id="keywords" class="alltxt"></textarea></td> | |||
</tr> | |||
<tr> | |||
<td height="65" style="padding-left:10px;">栏目描述:</td> | |||
<td height="65"> <textarea name="description" cols="70" style="height:50px" rows="4" id="description" | |||
class="alltxt"></textarea></td> | |||
<td height="60" style="padding-left:10px">栏目描述:</td> | |||
<td height="60"><textarea name="description" cols="70" rows="4" id="description" class="alltxt"></textarea></td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" | |||
style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="ctset" class="table"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;display:none;text-align:left" id="ctset" class="table"> | |||
<tr> | |||
<td height="26" style="padding-left:10px;"> | |||
说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||
<td height="26" style="padding-left:10px">说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||
</tr> | |||
<tr> | |||
<td style="padding:10px;"> | |||
<td style="padding:10px"> | |||
<?php | |||
GetEditor("content","","450","Default","print","false"); | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr> | |||
<td width="1%" height="35"></td> | |||
<td width="99%" valign="bottom" class="py-3"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">确定</button> | |||
| |||
<a href="catalog_main.php" class="btn btn-success">返回</a> | |||
</td> | |||
</tr> | |||
@@ -584,5 +516,4 @@ $i = 0; | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -1,135 +1,117 @@ | |||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>栏目管理</title> | |||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
<style> | |||
.table { | |||
margin-bottom: 0; | |||
} | |||
textarea { | |||
min-height: 32px; | |||
} | |||
</style> | |||
<script language="javascript"> | |||
var channelArray = new Array(); | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>栏目管理</title> | |||
<meta name="viewport" content="width=device-width,initial-scale=1,shrink-to-fit=no"> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link rel="stylesheet" href="../static/font-awesome/css/font-awesome.min.css"> | |||
<link rel="stylesheet" href="css/base.css"> | |||
<script src="../static/js/jquery.js"></script> | |||
<script src="js/main.js"></script> | |||
<style> | |||
textarea{min-height:30px} | |||
.table{margin-bottom:0} | |||
.btn+.btn{margin-left:10px} | |||
</style> | |||
<script> | |||
var channelArray = new Array(); | |||
<?php | |||
$i = 0; | |||
foreach($channelArray as $k=> $arr){ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";\r\n"; | |||
} | |||
foreach($channelArray as $k=> $arr){ | |||
echo "channelArray[$k] = \"{$arr['nid']}\";\r\n"; | |||
} | |||
?> | |||
function Nav() { | |||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||
else return "OT"; | |||
} | |||
function SelectTemplets(fname) { | |||
var posLeft = 200; | |||
var posTop = 300; | |||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=680,height=400,left=" + posLeft + ", top=" + posTop); | |||
} | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
else { | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
} | |||
} | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
obj.style.display = "none"; | |||
} | |||
function ShowItem1() { | |||
ShowObj('head1'); ShowObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem2() { | |||
ShowObj('head2'); ShowObj('adset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem3() { | |||
ShowObj('head3'); ShowObj('ctset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
} | |||
function CheckTypeDir() { | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
var tobj = document.getElementById('smclass'); | |||
var tempindex = document.getElementsByName('tempindex'); | |||
var templist = document.getElementsByName('templist'); | |||
var temparticle = document.getElementsByName('temparticle'); | |||
var dfstyle = document.getElementsByName('dfstyle'); | |||
var dfstyleValue = dfstyle[0].value; | |||
tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||
templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
} | |||
else { | |||
tobj.style.display = "none"; | |||
} | |||
} | |||
function checkSubmit() { | |||
if (document.form1.typename.value == "") { | |||
alert("栏目名称不能为空"); | |||
document.form1.typename.focus(); | |||
return false; | |||
} | |||
return true; | |||
} | |||
function CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
} | |||
</script> | |||
function Nav() { | |||
if (window.navigator.userAgent.indexOf("MSIE") >= 1) return 'IE'; | |||
else if (window.navigator.userAgent.indexOf("Firefox") >= 1) return 'FF'; | |||
else return "OT"; | |||
} | |||
function SelectTemplets(fname) { | |||
var posLeft = 200; | |||
var posTop = 300; | |||
window.open("./dialog/select_templets.php?f=" + fname, "poptempWin", "scrollbars=yes,resizable=yes,statebar=no,width=680,height=400,left=" + posLeft + ", top=" + posTop); | |||
} | |||
function ShowHide(objname) { | |||
var obj = document.getElementById(objname); | |||
if (obj.style.display != "none") | |||
obj.style.display = "none"; | |||
else { | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table-row"; | |||
} | |||
} | |||
function ShowObj(objname) { | |||
var obj = document.getElementById(objname); | |||
if (Nav() == 'IE') obj.style.display = "block"; | |||
else obj.style.display = "table"; | |||
} | |||
function HideObj(objname) { | |||
var obj = document.getElementById(objname); | |||
obj.style.display = "none"; | |||
} | |||
function ShowItem1() { | |||
ShowObj('head1'); ShowObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem2() { | |||
ShowObj('head2'); ShowObj('adset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head3'); HideObj('ctset'); | |||
} | |||
function ShowItem3() { | |||
ShowObj('head3'); ShowObj('ctset'); | |||
HideObj('head1'); HideObj('needset'); | |||
HideObj('head2'); HideObj('adset'); | |||
} | |||
function CheckTypeDir() { | |||
var upinyin = document.getElementById('upinyin'); | |||
var tpobj = document.getElementById('typedir'); | |||
if (upinyin.checked) tpobj.style.display = "none"; | |||
else tpobj.style.display = "block"; | |||
} | |||
function ParTemplet(obj) { | |||
var sevvalue = channelArray[obj.value]; | |||
var tobj = document.getElementById('smclass'); | |||
var tempindex = document.getElementsByName('tempindex'); | |||
var templist = document.getElementsByName('templist'); | |||
var temparticle = document.getElementsByName('temparticle'); | |||
var dfstyle = document.getElementsByName('dfstyle'); | |||
var dfstyleValue = dfstyle[0].value; | |||
tempindex[0].value = dfstyleValue + "/index_" + sevvalue + ".htm"; | |||
templist[0].value = dfstyleValue + "/list_" + sevvalue + ".htm"; | |||
temparticle[0].value = dfstyleValue + "/article_" + sevvalue + ".htm"; | |||
if (obj.value < 0) { | |||
if (Nav() == 'IE') tobj.style.display = "block"; | |||
else tobj.style.display = "table-row"; | |||
} else { | |||
tobj.style.display = "none"; | |||
} | |||
} | |||
function checkSubmit() { | |||
if (document.form1.typename.value == "") { | |||
alert("栏目名称不能为空"); | |||
document.form1.typename.focus(); | |||
return false; | |||
} | |||
return true; | |||
} | |||
function CheckCross() { | |||
var cross2 = document.getElementById('cross2'); | |||
var crossid = document.getElementById('crossid'); | |||
if (cross2.checked) crossid.style.display = 'block'; | |||
else crossid.style.display = 'none'; | |||
} | |||
</script> | |||
</head> | |||
<body leftmargin='15' topmargin='10' bgcolor="#FFFFFF"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" | |||
style="BORDER-COLLAPSE: collapse" class="mt-3"> | |||
<body leftmargin="15" topmargin="10" bgcolor="#fff"> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#cfcfcf" class="mt-3"> | |||
<tr> | |||
<td width="100%" height="20" valign="top"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td height="30"><img src="images/book1.gif"> <a | |||
href="catalog_main.php">栏目管理</a>>> 修改栏目</td> | |||
<td height="30"><img src="images/book1.gif"><a href="catalog_main.php">栏目管理</a>>>修改栏目</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -140,372 +122,321 @@ $i = 0; | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td height="10"></td> | |||
</tr> | |||
<tr> | |||
<form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit();"> | |||
<input type="hidden" name="dopost" value="save" /> | |||
<input type="hidden" name="id" value="<?php echo $id; ?>" /> | |||
<input type="hidden" name="topid" value="<?php echo $myrow['topid']; ?>" /> | |||
<td height="95" align="center" bgcolor="#FFFFFF"> | |||
<form name="form1" action="catalog_edit.php" method="post" onSubmit="return checkSubmit()"> | |||
<input type="hidden" name="dopost" value="save"> | |||
<input type="hidden" name="id" value="<?php echo $id; ?>"> | |||
<input type="hidden" name="topid" value="<?php echo $myrow['topid']; ?>"> | |||
<td height="95" align="center" bgcolor="#fff"> | |||
<table width="100%" border="0" cellspacing="0" id="head1" cellpadding="0"> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF" align="left"> | |||
<td colspan="2" bgcolor="#fff" align="left"> | |||
<table border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规选项 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem2()">高级选项</a> </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem3()">栏目内容</a> </td> | |||
<td width="84" height="26" align="center" background="images/itemnote1.gif">常规选项</td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()">高级选项</a></td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem3()">栏目内容</a></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" id="head2" cellpadding="0" style="display:none"> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||
<td colspan="2" bgcolor="#fff" style="text-align:left"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" | |||
onClick="ShowItem1()">常规选项</a> </td> | |||
<td width="86" align="center" background="images/itemnote1.gif">高级选项 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem3()">栏目内容</a> </td> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()">常规选项</a></td> | |||
<td width="84" align="center" background="images/itemnote1.gif">高级选项</td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem3()">栏目内容</a></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" id="head3" cellpadding="0" style="display:none"> | |||
<tr> | |||
<td colspan="2" bgcolor="#FFFFFF" style="text-align:left;"> | |||
<td colspan="2" bgcolor="#fff" style="text-align:left"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="javascript:;" | |||
onClick="ShowItem1()">常规选项</a> </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" | |||
onClick="ShowItem2()">高级选项 </td> | |||
<td width="86" align="center" background="images/itemnote1.gif">栏目内容 </td> | |||
<td width="84" align="center" background="images/itemnote2.gif" bgcolor="#F2F7DF"><a href="#" onClick="ShowItem1()">常规选项</a></td> | |||
<td width="84" align="center" background="images/itemnote2.gif"><a href="#" onClick="ShowItem2()">高级选项</td> | |||
<td width="84" align="center" background="images/itemnote1.gif">栏目内容</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" | |||
style="border:1px solid #cfcfcf;background:#ffffff;text-align:left;" class="table"> | |||
<table width="100%" border="0" id="needset" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;text-align:left;" class="table"> | |||
<tr> | |||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否支持投稿:</td> | |||
<td class='bline'> <label><input type='radio' name='issend' value='0' class='np' | |||
<?php if($myrow['issend']=="0") echo " checked='1' ";?> /> | |||
不支持 </label> <label><input type='radio' name='issend' value='1' class='np' | |||
<?php if($myrow['issend']=="1") echo " checked='1' ";?> /> | |||
支持</label> </td> | |||
<td width="150" class="bline" height="26" style="padding-left:10px">是否支持投稿:</td> | |||
<td class="bline"> | |||
<label><input type='radio' name='issend' value='0' class='np' <?php if($myrow['issend']=="0") echo " checked='1' "; ?>> 不支持 </label> | |||
<label><input type='radio' name='issend' value='1' class='np' <?php if($myrow['issend']=="1") echo " checked='1' "; ?>> 支持</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td width="150" class='bline' height="26" style="padding-left:10px;">是否隐藏栏目:</td> | |||
<td class='bline'> <label><input type='radio' name='ishidden' value='0' class='np' | |||
<?php if($myrow['ishidden']=="0") echo " checked='1' ";?> /> | |||
显示 </label> <label><input type='radio' name='ishidden' value='1' class='np' | |||
<?php if($myrow['ishidden']=="1") echo " checked='1' ";?> /> | |||
隐藏</label> </td> | |||
<td width="150" class="bline" height="26" style="padding-left:10px">是否隐藏栏目:</td> | |||
<td class="bline"> | |||
<label><input type='radio' name='ishidden' value='0' class='np' <?php if($myrow['ishidden']=="0") echo " checked='1' "; ?>> 显示 </label> | |||
<label><input type='radio' name='ishidden' value='1' class='np' <?php if($myrow['ishidden']=="1") echo " checked='1' "; ?>> 隐藏</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;"> | |||
<span style='color:#e74d58'>内容模型:</span> | |||
<td class="bline" height="26" style="padding-left:10px">内容模型:</td> | |||
<td class="bline"> | |||
<select name="channeltype" id="channeltype" style="width:200px" onChange="ParTemplet(this)"> | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | |||
else echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | |||
} | |||
?> | |||
</select> | |||
</td> | |||
<td class='bline'> <select name="channeltype" id="channeltype" style="width:200px" | |||
onChange="ParTemplet(this)"> | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
if($k==$channelid) echo " <option value='{$k}' selected>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | |||
else echo " <option value='{$k}'>{$arr['typename']}|{$arr['nid']}</option>\r\n"; | |||
} | |||
?> | |||
</select> </td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;"> | |||
<span style='color:#e74d58'>栏目名称:</span> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">中文名称:</td> | |||
<td class="bline"><input name="typename" type="text" size="40" value="<?php echo $myrow['typename']?>" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">中文概况:</td> | |||
<td class="bline"><input name="namegk" type="text" size="40" value="<?php echo $myrow['namegk']?>" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">英文名称:</td> | |||
<td class="bline"><input name="enname" type="text" size="40" value="<?php echo $myrow['enname']?>" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">英文概况:</td> | |||
<td class="bline"><input name="ennamegk" type="text" size="40" value="<?php echo $myrow['ennamegk']?>" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">栏目大图:</td> | |||
<td> | |||
<input name="litpic" type="text" class="alltxt" size="40" value="<?php echo $myrow['litpic']?>"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览..." onClick="SelectImage('form1.litpic');"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">栏目小图:</td> | |||
<td> | |||
<input name="litimg" type="text" class="alltxt" size="40" value="<?php echo $myrow['litimg']?>"> | |||
<input type="button" class="btn btn-success btn-sm" value="浏览..." onClick="SelectImage('form1.litimg');"> | |||
</td> | |||
<td class='bline'><input name="typename" type="text" id="typename" size="30" | |||
value="<?php echo $myrow['typename']?>" class="iptxt" /></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;"> 排列顺序: </td> | |||
<td class='bline'> <input name="sortrank" size="6" type="text" value="<?php echo $myrow['sortrank']?>" | |||
class="iptxt" /> | |||
(由低 -> 高) </td> | |||
<td class="bline" height="26" style="padding-left:10px">排列顺序:</td> | |||
<td class="bline"> <input name="sortrank" type="text" value="<?php echo $myrow['sortrank']?>" class="iptxt" style="width:100px">(由低 -> 高)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">浏览权限:</td> | |||
<td class='bline'> <select name="corank" id="corank" style="width:100"> | |||
<?php | |||
$dsql->SetQuery("Select * from #@__arcrank where rank >= 0"); | |||
$dsql->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')) | |||
{ | |||
<td class="bline" height="26" style="padding-left:10px">浏览权限:</td> | |||
<td class="bline"> <select name="corank" id="corank" style="width:100px"> | |||
<?php | |||
$dsql->SetQuery("Select * from #@__arcrank where rank >= 0"); | |||
$dsql->Execute('cc'); | |||
while($row = $dsql->GetObject('cc')) | |||
{ | |||
if($myrow['corank']==$row->rank) | |||
echo "<option value='".$row->rank."' selected>".$row->membername."</option>\r\n"; | |||
else | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
} | |||
?> | |||
</select> | |||
(仅限制栏目里的文档浏览权限) </td> | |||
echo "<option value='".$row->rank."' selected>".$row->membername."</option>\r\n"; | |||
else | |||
echo "<option value='".$row->rank."'>".$row->membername."</option>\r\n"; | |||
} | |||
?> | |||
</select>(仅限制栏目里的文档浏览权限) | |||
</td> | |||
</tr> | |||
<tr> | |||
<td class="bline" height="26" style="padding-left:10px">文件保存目录:</td> | |||
<td class="bline"><input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir']?>" size="40" class="iptxt"></td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">文件保存目录:</td> | |||
<td class='bline'> <input name="typedir" type="text" id="typedir" value="<?php echo $myrow['typedir']?>" | |||
style="width:300px" class="iptxt" /> | |||
<td height="26" style="padding-left:10px">栏目列表选项:</td> | |||
<td> | |||
<label><input type='radio' name='isdefault' value='1' class='np' <?php if($myrow['isdefault']==1) echo " checked='1' "; ?>> 链接到默认页</label> | |||
<label><input type='radio' name='isdefault' value='0' class='np' <?php if($myrow['isdefault']==0) echo " checked='1' "; ?>> 链接到列表第一页</label> | |||
<label><input type='radio' name='isdefault' value='-1' class='np' <?php if($myrow['isdefault']==-1) echo " checked='1' "; ?>> 使用动态页</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">栏目列表选项:</td> | |||
<td> <label><input type='radio' name='isdefault' value='1' class='np' | |||
<?php if($myrow['isdefault']==1) echo " checked='1' ";?> /> | |||
链接到默认页</label> | |||
<label><input type='radio' name='isdefault' value='0' class='np' | |||
<?php if($myrow['isdefault']==0) echo " checked='1' ";?> /> | |||
链接到列表第一页</label> | |||
<label><input type='radio' name='isdefault' value='-1' class='np' | |||
<?php if($myrow['isdefault']==-1) echo " checked='1' ";?> /> | |||
使用动态页</label> </td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">默认页的名称: </td> | |||
<td class='bline'><input name="defaultname" type="text" value="<?php echo $myrow['defaultname']?>" | |||
class="iptxt" /></td> | |||
</tr> | |||
<tr> | |||
<td height="26" class='bline' style="padding-left:10px;">栏目属性:</td> | |||
<td class='bline'> | |||
<label><input name="ispart" type="radio" id="radio" value="0" class='np' | |||
<?php if($myrow['ispart']==0) echo " checked='1' ";?> /> | |||
最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> | |||
<label><input name="ispart" type="radio" id="radio2" value="1" class='np' | |||
<?php if($myrow['ispart']==1) echo " checked='1' ";?> /> | |||
频道封面(栏目本身不允许发布文档)</label><br> | |||
<label><input name="ispart" type="radio" id="radio3" value="2" class='np' | |||
<?php if($myrow['ispart']==2) echo " checked='1' ";?> /> | |||
外部连接(在"文件保存目录"处填写网址)</label> | |||
<td class="bline" height="26" style="padding-left:10px">默认页的名称:</td> | |||
<td class="bline"><input name="defaultname" type="text" value="<?php echo $myrow['defaultname']?>" class="iptxt" style="width:100px"></td> | |||
</tr> | |||
<tr> | |||
<td height="26" class="bline" style="padding-left:10px">栏目属性:</td> | |||
<td class="bline"> | |||
<label><input name="ispart" type="radio" id="radio" value="0" class='np' <?php if($myrow['ispart']==0) echo " checked='1' "; ?>> 最终列表栏目(允许在本栏目发布文档,并生成文档列表)</label><br> | |||
<label><input name="ispart" type="radio" id="radio2" value="1" class='np' <?php if($myrow['ispart']==1) echo " checked='1' "; ?>> 频道封面(栏目本身不允许发布文档)</label><br> | |||
<label><input name="ispart" type="radio" id="radio3" value="2" class='np' <?php if($myrow['ispart']==2) echo " checked='1' "; ?>> 外部连接(在"文件保存目录"处填写网址)</label> | |||
</td> | |||
</tr> | |||
<tr id='helpvarco' style='display:none'> | |||
<td height="80" bgcolor="#F3F7EA" style="padding-left:10px;">栏目交叉说明: </td> | |||
<td bgcolor="#F3F7EA"> | |||
交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好。<br />例如: | |||
网站上有大栏目——智能手机、音乐手机,另外又有栏目——诺基亚->智能手机、诺基亚->音乐手机,这样顶级的大栏目就和另一个大栏目的子栏目形成了交叉,这样只需要在大栏目中指定交叉的栏目即可。 | |||
<br />注:会自动索引交叉栏目的内容,但不会索引交叉栏目下级栏目的内容,这种应用也适用于按地区划分资讯的站点。 | |||
<td height="80" bgcolor="#F3F7EA" style="padding-left:10px">栏目交叉说明:</td> | |||
<td bgcolor="#F3F7EA">交叉栏目是指一个大栏目与另一个非下级的子栏目出现交叉的情况,相当于系统原来的副栏目功能,不过现在改在栏目里预先设置好。<br>例如:网站上有大栏目——智能手机、音乐手机,另外又有栏目——诺基亚->智能手机、诺基亚->音乐手机,这样顶级的大栏目就和另一个大栏目的子栏目形成了交叉,这样只需要在大栏目中指定交叉的栏目即可。<br>注:会自动索引交叉栏目的内容,但不会索引交叉栏目下级栏目的内容,这种应用也适用于按地区划分资讯的站点。 | |||
</td> | |||
</tr> | |||
<tr> | |||
<td style="padding-left:10px;">栏目交叉:<img src="images/help.gif" alt="帮助" border="0" | |||
style="cursor:pointer" onClick="ShowHide('helpvarco')" /><br />仅适用[最终列表栏目]</td> | |||
<td class='bline' style="padding:3px 0px 3px 0px"> | |||
<label><input name="cross" type="radio" id="cross0" onClick="CheckCross()" value="0" class='np' | |||
<?php if($myrow['cross']==0) echo " checked='1' ";?> /> | |||
不交叉</label> | |||
<label><input name="cross" type="radio" id="cross1" onClick="CheckCross()" value="1" class='np' | |||
<?php if($myrow['cross']==1) echo " checked='1' ";?> /> | |||
自动获取同名栏目内容</label> | |||
<label><input name="cross" type="radio" id="cross2" onClick="CheckCross()" value="2" class='np' | |||
<?php if($myrow['cross']==2) echo " checked='1' ";?> /> | |||
手工指定交叉栏目ID(用逗号分开)</label> | |||
<br /> | |||
<textarea name="crossid" cols="50" rows="3" id="crossid" | |||
style="<?php if($myrow['cross']!=2) echo "display:none";?>" | |||
class="alltxt"><?php echo $myrow['crossid']; ?></textarea> | |||
<td style="padding-left:10px">栏目交叉:<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvarco')"><br>仅适用[最终列表栏目]</td> | |||
<td class="bline" style="padding:3px 0px 3px 0px"> | |||
<label><input name="cross" type="radio" id="cross0" onClick="CheckCross()" value="0" class='np' <?php if($myrow['cross']==0) echo " checked='1' "; ?>> 不交叉</label> | |||
<label><input name="cross" type="radio" id="cross1" onClick="CheckCross()" value="1" class='np' <?php if($myrow['cross']==1) echo " checked='1' "; ?>> 自动获取同名栏目内容</label> | |||
<label><input name="cross" type="radio" id="cross2" onClick="CheckCross()" value="2" class='np' <?php if($myrow['cross']==2) echo " checked='1' "; ?>> 手工指定交叉栏目ID(用逗号分开)</label> | |||
<br> | |||
<textarea name="crossid" cols="50" rows="3" id="crossid" style="<?php if($myrow['cross']!=2) echo'display:none'; ?>" class="alltxt"><?php echo $myrow['crossid']; ?></textarea> | |||
</td> | |||
</tr> | |||
<tr id='smclass' style='<?php echo ($channelid<0 ? '' : 'display:none'); ?>'> | |||
<td class='bline' style="padding-left:10px;">绑定小分类: <br />仅适用[分类信息模型]</td> | |||
<td class='bline' style="padding:3px 0px 3px 0px"> | |||
<td class="bline" style="padding-left:10px">绑定小分类: <br>仅适用[分类信息模型]</td> | |||
<td class="bline"> | |||
<select name='smalltype[]' size='5' style='width:120px;height: auto;' multiple='yes'> | |||
<?php | |||
$smtypes = explode(',',trim($myrow['smalltypes'])); | |||
$sql = "Select * From `#@__sys_enum` where egroup like 'infotype' order by disorder asc, id desc "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
$smtypes = explode(',',trim($myrow['smalltypes'])); | |||
$sql = "Select * From `#@__sys_enum` where egroup like 'infotype' order by disorder asc, id desc "; | |||
$dsql->Execute('s',$sql); | |||
while($arr = $dsql->GetArray('s')) | |||
{ | |||
if(in_array($arr['evalue'],$smtypes)) { | |||
$selstr = " selected='1' "; | |||
} else { | |||
$selstr = ''; | |||
} | |||
if($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>\r\n"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
if(in_array($arr['evalue'],$smtypes)) { | |||
$selstr = " selected='1' "; | |||
} | |||
else { | |||
$selstr = ''; | |||
} | |||
if($arr['evalue']%500==0) { | |||
echo "<option value='{$arr['evalue']}'{$selstr}>{$arr['ename']}</option>\r\n"; | |||
} | |||
else if(preg_match("#\.#", $arr['evalue'])) | |||
{ | |||
echo "<option value='{$arr['evalue']}'{$selstr}> └───{$arr['ename']}</option>\r\n"; | |||
} | |||
else { | |||
echo "<option value='{$arr['evalue']}'{$selstr}> └─{$arr['ename']}</option>\r\n"; | |||
} | |||
echo "<option value='{$arr['evalue']}'{$selstr}> └───{$arr['ename']}</option>\r\n"; | |||
} else { | |||
echo "<option value='{$arr['evalue']}'{$selstr}> └─{$arr['ename']}</option>\r\n"; | |||
} | |||
?> | |||
</select> | |||
按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</a>中管理 | |||
} | |||
?> | |||
</select>按 Ctrl 多选,不选系统将调用全部分类,在<a href='stepselect_main.php'>“联动类别管理”</a>中管理 | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" | |||
style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="adset" class="table"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;display:none;text-align:left" id="adset" class="table"> | |||
<tr> | |||
<td class='bline' width="150" height="26" style="padding-left:10px;">多站点支持:</td> | |||
<td class='bline'> <label><input name="moresite" type="radio" class="np" value="0" | |||
<?php if($myrow['moresite']==0) echo " checked='1' ";?> /> | |||
不启用</label> | |||
<label><input type="radio" name="moresite" class="np" value="1" | |||
<?php if($myrow['moresite']==1) echo " checked='1' ";?> /> | |||
启用</label> </td> | |||
<td class="bline" width="150" height="26" style="padding-left:10px">多站点支持:</td> | |||
<td class="bline"> | |||
<label><input name="moresite" type="radio" class="np" value="0" <?php if($myrow['moresite']==0) echo " checked='1' "; ?>> 不启用 </label> | |||
<label><input type="radio" name="moresite" class="np" value="1" <?php if($myrow['moresite']==1) echo " checked='1' "; ?>> 启用</label> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" bgcolor="#F9FCEF" style="padding-left:10px;">说明:</td> | |||
<td height="26" bgcolor="#F9FCEF" style="padding-left:10px">说明:</td> | |||
<td bgcolor="#F9FCEF">绑名绑定仅需要在顶级栏目设定,子级栏目修改无效。</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">绑定域名:</td> | |||
<td class='bline'> <input name="siteurl" type="text" id="siteurl" size="35" | |||
value="<?php echo $myrow['siteurl']?>" class="iptxt" /> | |||
(需加 http://,一级或二级域名的根网址) </td> | |||
<td class="bline" height="26" style="padding-left:10px">绑定域名:</td> | |||
<td class="bline"> <input name="siteurl" type="text" id="siteurl" size="40" value="<?php echo $myrow['siteurl']?>" class="iptxt">(需加 http://,一级或二级域名的根网址)</td> | |||
</tr> | |||
<tr> | |||
<td class='bline' height="26" style="padding-left:10px;">站点根目录:</td> | |||
<td class='bline'> | |||
为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。 | |||
</td> | |||
<td class="bline" height="26" style="padding-left:10px">站点根目录:</td> | |||
<td class="bline">为简化操作,站点根目录与当前栏目目录一致,请注意当前栏目文件保存目录的设置,域名需自行手工绑定到这个目录。</td> | |||
</tr> | |||
<tr id='helpvar1' style='display:none'> | |||
<td height="26" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||
<td bgcolor="#F9FCEF"> {tid}表示栏目ID,<br> | |||
{cid}表示频道模型的'名字ID' <span>( | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
echo "{$arr['typename']}({$arr['nid']})、"; | |||
} | |||
?> | |||
) </span> <br /> | |||
模板文件的默认位置是放在模板目录 "cms安装目录 | |||
<?php echo $cfg_templets_dir ?> | |||
" 内。 | |||
<input type='hidden' value='{style}' name='dfstyle' /> </td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">封面模板:</td> | |||
<td> <input name="tempindex" type="text" value="<?php echo $myrow['tempindex']?>" style="width:300px" | |||
class="iptxt" /> | |||
<button type="button" name="set1" class="btn btn-success btn-sm" | |||
onClick="SelectTemplets('form1.tempindex');">浏览...</button> | |||
<img src="images/help.gif" alt="帮助" border="0" style="cursor:pointer" | |||
onClick="ShowHide('helpvar1')" /> | |||
<td height="26" bgcolor="#F9FCEF" style="padding-left:10px">支持变量:</td> | |||
<td bgcolor="#F9FCEF"> | |||
{tid}表示栏目ID,<br> | |||
{cid}表示频道模型的'名字ID'( | |||
<?php | |||
foreach($channelArray as $k=>$arr) | |||
{ | |||
echo "{$arr['typename']}({$arr['nid']})、"; | |||
} | |||
?>)<br> | |||
模板文件的默认位置是放在模板目录 "cms安装目录<?php echo $cfg_templets_dir ?>" 内。 | |||
<input type='hidden' value='{style}' name='dfstyle'> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">列表模板:</td> | |||
<td> <input name="templist" type="text" value="<?php echo $myrow['templist']?>" style="width:300px" | |||
class="iptxt" /> | |||
<button type="button" name="set3" class="btn btn-success btn-sm" | |||
onClick="SelectTemplets('form1.templist');">浏览...</button> | |||
<td height="26" style="padding-left:10px">封面模板:</td> | |||
<td> | |||
<input name="tempindex" type="text" value="<?php echo $myrow['tempindex']?>" size="40" class="iptxt"> | |||
<button type="button" name="set1" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.tempindex')">浏览...</button> | |||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar1')"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px">列表模板:</td> | |||
<td> | |||
<input name="templist" type="text" value="<?php echo $myrow['templist']?>" size="40" class="iptxt"> | |||
<button type="button" name="set3" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.templist')">浏览...</button> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">文章模板:</td> | |||
<td><input name="temparticle" type="text" value="<?php echo $myrow['temparticle']?>" style="width:300px" | |||
class="iptxt" /> | |||
<button type="button" name="set4" class="btn btn-success btn-sm" | |||
onClick="SelectTemplets('form1.temparticle');">浏览...</button> | |||
<td height="26" style="padding-left:10px">文章模板:</td> | |||
<td> | |||
<input name="temparticle" type="text" value="<?php echo $myrow['temparticle']?>" size="40" class="iptxt"> | |||
<button type="button" name="set4" class="btn btn-success btn-sm" onClick="SelectTemplets('form1.temparticle')">浏览...</button> | |||
</td> | |||
</tr> | |||
<tr id='helpvar2' style='display:none'> | |||
<td height="26" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||
<td height="26" bgcolor="#F9FCEF"> {Y}、{M}、{D} 年月日<br /> | |||
{timestamp} INT类型的UNIX时间戳<br /> | |||
{aid} 文章ID<br /> | |||
{pinyin} 拼音+文章ID<br /> | |||
{py} 拼音部首+文章ID<br /> | |||
{typedir} 栏目目录 <br /> | |||
{cc} 日期+ID混编后用转换为适合的字母 <br /> | |||
<td height="26" bgcolor="#F9FCEF" style="padding-left:10px">支持变量:</td> | |||
<td height="26" bgcolor="#F9FCEF"> | |||
{Y}、{M}、{D} 年月日<br> | |||
{timestamp} INT类型的UNIX时间戳<br> | |||
{aid} 文章ID<br> | |||
{pinyin} 拼音+文章ID<br> | |||
{py} 拼音部首+文章ID<br> | |||
{typedir} 栏目目录 <br> | |||
{cc} 日期+ID混编后用转换为适合的字母 <br> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">文章命名规则:</td> | |||
<td> <input name="namerule" type="text" id="namerule" value="<?php echo $myrow['namerule']?>" size="40" | |||
class="iptxt" /> | |||
<img src="images/help.gif" alt="帮助" border="0" style="cursor:pointer" | |||
onClick="ShowHide('helpvar2')" /> | |||
<td height="26" style="padding-left:10px">文章命名规则:</td> | |||
<td> | |||
<input name="namerule" type="text" id="namerule" value="<?php echo $myrow['namerule']?>" size="40" class="iptxt"> | |||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar2')"> | |||
</td> | |||
</tr> | |||
<tr id='helpvar3' style='display:none'> | |||
<td height="26" bgcolor="#F9FCEF" style="padding-left:10px;">支持变量: </td> | |||
<td height="26" bgcolor="#F9FCEF" style="padding-left:10px">支持变量:</td> | |||
<td bgcolor="#F9FCEF">{page} 列表的页码</td> | |||
</tr> | |||
<tr> | |||
<td height="26" style="padding-left:10px;">列表命名规则:</td> | |||
<td> <input name="namerule2" type="text" id="namerule2" value="<?php echo $myrow['namerule2']?>" size="40" | |||
class="iptxt" /> | |||
<img src="images/help.gif" alt="帮助" border="0" style="cursor:pointer" | |||
onClick="ShowHide('helpvar3')" /></td> | |||
</tr> | |||
<tr> | |||
<td height="65" style="padding-left:10px;">SEO标题:</td> | |||
<td height="26" style="padding-left:10px">列表命名规则:</td> | |||
<td> | |||
<input name="seotitle" type="text" style="width:250px" id="seotitle" class="alltxt" | |||
value="<?php echo $myrow['seotitle']?>" /> | |||
(栏目模板里用{dede:field.seotitle /}调用) | |||
<input name="namerule2" type="text" id="namerule2" value="<?php echo $myrow['namerule2']?>" size="40" class="iptxt"> | |||
<img src="images/help.gif" alt="帮助" width="16" height="16" border="0" style="cursor:pointer" onClick="ShowHide('helpvar3')"> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="65" style="padding-left:10px;">关键字:</td> | |||
<td> <textarea name="keywords" cols="70" rows="4" id="keywords" | |||
class="alltxt"><?php echo $myrow['keywords']?></textarea> | |||
</td> | |||
<td height="60" style="padding-left:10px">SEO标题:</td> | |||
<td><input name="seotitle" type="text" id="seotitle" value="<?php echo $myrow['seotitle']?>" size="40" class="alltxt">(栏目模板里用{dede:field.seotitle /}调用)</td> | |||
</tr> | |||
<tr> | |||
<td height="60" style="padding-left:10px">关键字:</td> | |||
<td><textarea name="keywords" cols="70" rows="4" id="keywords" class="alltxt"><?php echo $myrow['keywords']?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td height="65" style="padding-left:10px;">栏目描述:</td> | |||
<td height="65"><textarea name="description" cols="70" style="height:50px" rows="4" id="description" | |||
class="alltxt"><?php echo $myrow['description']?></textarea></td> | |||
<td height="60" style="padding-left:10px">栏目描述:</td> | |||
<td height="60"><textarea name="description" cols="70" rows="4" id="description" class="alltxt"><?php echo $myrow['description']?></textarea></td> | |||
</tr> | |||
<tr> | |||
<td height="45" style="padding-left:10px;">继承选项:</td> | |||
<td height="45" style="padding-left:10px">继承选项:</td> | |||
<td> | |||
<label><input name="upnext" type="checkbox" id="upnext" value="1" class="np" /> | |||
同时修改下级栏目的浏览权限、内容类型、模板风格、命名规则等通用属性</label> | |||
<label><input name="upnext" type="checkbox" id="upnext" value="1" class="np">同时修改下级栏目的浏览权限、内容类型、模板风格、命名规则等通用属性</label> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" | |||
style="border:1px solid #cfcfcf;background:#ffffff;display:none;text-align:left;" id="ctset" class="table"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #cfcfcf;background:#fff;display:none;text-align:left" id="ctset" class="table"> | |||
<tr> | |||
<td height="26"> 说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||
<td height="26">说明:栏目内容是替代原来栏目单独页的更灵活的一种方式,可在栏目模板中用{dede:field.content/}调用,通常用于企业简介之类的用途。</td> | |||
</tr> | |||
<tr> | |||
<td style="padding:10px;"> | |||
<td style="padding:10px"> | |||
<?php | |||
GetEditor("content",$myrow['content'],"450","Default","print","false"); | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr> | |||
<td width="1%" height="36"></td> | |||
<td width="99%" valign="bottom" class="py-3"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">确定</button> | |||
| |||
<a href="catalog_main.php" class="btn btn-success">返回</a> | |||
</td> | |||
</tr> | |||
@@ -515,5 +446,4 @@ $i = 0; | |||
</tr> | |||
</table> | |||
</body> | |||
</html> |
@@ -103,7 +103,7 @@ function CheckSubmit() | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="51"> </td> | |||
<td height="50"> </td> | |||
<td> | |||
<button type="submit" name="Submit" class="btn btn-success"> 提 交 </button> | |||
<button type="reset" name="Submit" class="btn btn-success"> 重 置 </button> | |||
@@ -89,7 +89,7 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="51"> </td> | |||
<td height="50"> </td> | |||
<td> | |||
<button type="submit" name="Submit" class="btn btn-success"> 提 交 </button> | |||
<button type="reset" name="Submit" onClick="location.href='<?php echo $ENV_GOBACK_URL?>';" | |||
@@ -59,9 +59,8 @@ table{border-collapse:separate} | |||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<tr> | |||
<td width="64%" height="30"><img src="images/book1.gif"> <a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">软件列表</a> >> 发布新软件 | |||
</td> | |||
<td align="right"> <a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a> <a href="soft_config.php" class="btn btn-success btn-sm">下载频道参数设定</a></td> | |||
<td width="64%" height="30"><img src="images/book1.gif"> <a href="catalog_do.php?cid=<?php echo $cid?>&channelid=<?php echo $channelid?>&dopost=listArchives">软件列表</a> >> 发布软件</td> | |||
<td align="right"><a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a><a href="soft_config.php" class="btn btn-success btn-sm">下载频道参数设定</a></td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | |||
@@ -69,7 +68,7 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规信息 </td> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif">常规信息</td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||
</tr> | |||
</table> | |||
@@ -81,15 +80,14 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a> </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规信息</a></td> | |||
<td width="86" align="center" background="images/itemnote1.gif">高级参数</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" | |||
style="border:1px solid #cfcfcf;background:#ffffff;"> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="needset" style="border:1px solid #cfcfcf;background:#ffffff;"> | |||
<tr> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
@@ -108,16 +106,16 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="100"> 自定义属性:</td> | |||
<td><?php | |||
$dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> "; | |||
else | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?> </td> | |||
$dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}' onclick='ShowUrlTr()'> {$trow->attname}[{$trow->att}]</label> "; | |||
else | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -127,8 +125,7 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 跳转网址:</td> | |||
<td> | |||
<input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="" /> </td> | |||
<td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="" /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -155,40 +152,28 @@ table{border-collapse:separate} | |||
<tr> | |||
<td height="30"> | |||
<input name="picname" type="text" id="picname" style="width:240px" /> | |||
<button type="button" name="Submit2" | |||
onClick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>站内选择</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程 </label> | |||
<span class="btn btn-success fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-success delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1' id='ddisremote' /> 远程</label> | |||
<span class="btn btn-success btn-sm fileinput-button">上传图片<input type="file" name="files[]" id="iptAddImages"></span> | |||
<button type="button" name="Submit2" onClick="SelectImage('form1.picname','small');" class='btn btn-success btn-sm'>选择图片</button> | |||
<button id="btnClearAll" type="button" class="btn btn-success delete">清空</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
<td width="150" align="center"> | |||
<img id="litPic" src="../static/defaultpic.gif" style="height: 80px"> | |||
</td> | |||
<td width="150" align="center"><img id="litPic" src="../static/defaultpic.gif" style="height:80px"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 软件来源:</td> | |||
<td width="240"> | |||
<input name="source" type="text" id="source" style="width:200px"> </td> | |||
<td width="240"><input name="source" type="text" id="source" style="width:200px"></td> | |||
<td width="90">软件作者:</td> | |||
<td width="159"><input name="writer" type="text" id="writer" style="width:120px"></td> | |||
<td> </td> | |||
<td width="160"><input name="writer" type="text" id="writer" style="width:120px"></td> | |||
<td></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -197,25 +182,24 @@ table{border-collapse:separate} | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="100"> 软件主栏目:</td> | |||
<td width="90"> 软件主栏目:</td> | |||
<td> | |||
<span id='typeidct'> | |||
<?php | |||
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
echo "<option value='0'>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?></span> | |||
<img src='images/menusearch.gif' style='cursor:pointer;' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
| |||
<?php | |||
if($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
?> | |||
$typeOptions = GetOptionList($cid,$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
echo "<option value='0'>请选择栏目...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
</span> | |||
<img src='images/menusearch.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid')" alt='快捷选择' title='快捷选择' /> | |||
<?php | |||
if($cfg_need_typeid2=='Y') | |||
{ | |||
echo "<a href='javascript:AddTypeid2();' class='btn btn-success btn-sm'>选择副栏目</a>"; | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -227,10 +211,8 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="90"> 软件副栏目:</td> | |||
<td> | |||
<span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value='' | |||
style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' /> | |||
<span id='typeid2ct'></span><input type='text' name='typeid2' id='typeid2' value='' style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2')" alt='选择副栏目' title='选择副栏目' /> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -249,7 +231,8 @@ table{border-collapse:separate} | |||
<option value=".iso">.iso</option> | |||
<option value=".gz">.gz</option> | |||
<option value="其它">其它</option> | |||
</select> </td> | |||
</select> | |||
</td> | |||
<td width="90">软件等级:</td> | |||
<td><select name="softrank" id="softrank" style="width:100px"> | |||
<option value="1">一星</option> | |||
@@ -257,7 +240,8 @@ table{border-collapse:separate} | |||
<option value="3" selected>三星 </option> | |||
<option value="4">四星</option> | |||
<option value="5">五星</option> | |||
</select></td> | |||
</select> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -272,7 +256,8 @@ table{border-collapse:separate} | |||
<option value="国产软件" selected>国产软件</option> | |||
<option value="国外软件">国外软件</option> | |||
<option value="汉化补丁">汉化补丁</option> | |||
</select></td> | |||
</select> | |||
</td> | |||
<td width="72">界面语言: </td> | |||
<td width="131"><select name="language" id="language" style="width:100"> | |||
<option value="简体中文" selected>简体中文</option> | |||
@@ -289,7 +274,8 @@ table{border-collapse:separate} | |||
<option value="商业软件">商业软件</option> | |||
<option value="破解软件">破解软件</option> | |||
<option value="游戏外挂">游戏外挂</option> | |||
</select></td> | |||
</select> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -299,9 +285,7 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 运行环境:</td> | |||
<td> | |||
<input type='text' name='os' value='Win2003,WinXP,Win2000,Win9X' style='width:300px' /> | |||
</td> | |||
<td><input type='text' name='os' value='Win2003,WinXP,Win2000,Win9X' style='width:300px' /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -311,11 +295,9 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 官方网址:</td> | |||
<td width="240"> | |||
<input name="officialUrl" type="text" id="officialUrl" value="http://" style="width:200px" /> </td> | |||
<td width="240"><input name="officialUrl" type="text" id="officialUrl" value="http://" style="width:200px" /></td> | |||
<td width="90">演示地址:</td> | |||
<td> | |||
<input name="officialDemo" type="text" id="officialDemo" value="http://" style="width:200px" /> </td> | |||
<td><input name="officialDemo" type="text" id="officialDemo" value="http://" style="width:200px" /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -325,14 +307,15 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 软件大小:</td> | |||
<td><input name="softsize" type="text" id="softsize" style="width:100px"> | |||
<td> | |||
<input name="softsize" type="text" id="softsize" style="width:100px"> | |||
<select name="unit" id="unit"> | |||
<option value="MB" selected>MB</option> | |||
<option value="KB">KB</option> | |||
<option value="GB">GB</option> | |||
</select> | |||
<label><input name="autosize" type="checkbox" class="np" id="autosize" value="1" checked> | |||
自动获得 (必须包含一个本地软件)</label> </td> | |||
<label><input name="autosize" type="checkbox" class="np" id="autosize" value="1" checked>自动获得(必须包含一个本地软件)</label> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -350,26 +333,23 @@ table{border-collapse:separate} | |||
<td width="100" height="30"> 需会员权限:</td> | |||
<td width="179" align="left"> | |||
<select name="daccess" id="daccess" style="width:90px"> | |||
<?php | |||
<?php | |||
$dsql->SetQuery("Select * from `#@__arcrank` where rank>=0 "); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetArray()) | |||
{ | |||
if($row['rank']==0) $row['membername'] = "不限会员"; | |||
if($row['rank'] == $softconfig['dfrank']) echo " <option value='{$row['rank']}' selected>{$row['membername']}</option>\r\n"; | |||
else echo " <option value='{$row['rank']}'>{$row['membername']}</option>\r\n"; | |||
if($row['rank'] == $softconfig['dfrank']) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>\r\n"; | |||
else echo "<option value='{$row['rank']}'>{$row['membername']}</option>\r\n"; | |||
} | |||
?> | |||
</select> </td> | |||
?> | |||
</select> | |||
</td> | |||
<td width="120" align="center">需消费金币:</td> | |||
<td width="411"> | |||
<input name="needmoney" type="text" id="needmoney" value="<?php echo $softconfig['dfywboy']; ?>" | |||
size="8" />个 </td> | |||
<td width="411"><input name="needmoney" type="text" id="needmoney" value="<?php echo $softconfig['dfywboy']; ?>" size="8" /> 个</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" style="border-top:1px dashed #8EAF61" class="py-3"> <span | |||
class="STYLE1">(如果设定了下载限制,<a class='btn btn-success btn-sm' href="soft_config.php" | |||
target="_blank">软件频道设置</a>中“附件下载方式:”必须选择“链接到跳转页面”) </span></td> | |||
<td height="26" colspan="4" style="border-top:1px dashed #8EAF61" class="py-3"><span class="STYLE1">(如果设定了下载限制,<a href="soft_config.php" class="btn btn-success btn-sm">软件频道设置</a> 中“附件下载方式:”必须选择“链接到跳转页面”)</span></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -393,59 +373,55 @@ table{border-collapse:separate} | |||
</td> | |||
</tr> | |||
<?php | |||
if($softconfig['moresitedo'] == 0 && trim($softconfig['sites']) != '') | |||
{ | |||
?> | |||
if($softconfig['moresitedo'] == 0 && trim($softconfig['sites']) != '') | |||
{ | |||
?> | |||
<tr> | |||
<td height="26" bgcolor="#F9FCEF" class="bline2"><b> 预设的镜像服务器:</b></td> | |||
</tr> | |||
<tr class="bline"> | |||
<td style="padding-left:10px;"> | |||
(服务器地址 + 软件地址 = 软件真实地址 [<a href="soft_config.php" target="_blank">软件频道设置</a>])<br /> | |||
<?php | |||
$sites = explode("\n", $softconfig['sites']); | |||
$startNum = 2; | |||
foreach($sites as $site) | |||
{ | |||
<td style="padding-left:10px;">(服务器地址 + 软件地址 = 软件真实地址)</a><br> | |||
<?php | |||
$sites = explode("\n", $softconfig['sites']); | |||
$startNum = 2; | |||
foreach($sites as $site) | |||
{ | |||
$site = trim($site); | |||
if(empty($site)) continue; | |||
list($siteurl, $sitename) = explode('|', $site); | |||
$siteurl = trim($siteurl); | |||
$sitename = trim($sitename); | |||
?> | |||
?> | |||
<?php echo $sitename; ?>: | |||
<input type='hidden' name='forconfig<?php echo $startNum; ?>' value='1' /> | |||
<input type='text' name='softurlfirst<?php echo $startNum; ?>' style='width:200px' | |||
value='<?php echo $siteurl; ?>' /> + | |||
<input type='text' name='softurlfirst<?php echo $startNum; ?>' style='width:200px' value='<?php echo $siteurl; ?>' /> + | |||
<input type='text' name='softurl<?php echo $startNum; ?>' style='width:120px' value='' /> | |||
<input type='text' name='servermsg<?php echo $startNum; ?>' style='width:150px' | |||
value='<?php echo $sitename; ?>' /> | |||
<input type='text' name='servermsg<?php echo $startNum; ?>' style='width:150px' value='<?php echo $sitename; ?>' /> | |||
<label><input type='checkbox' name='need<?php echo $startNum; ?>' class='np' value='1' checked /> 启用 </label> | |||
<br /> | |||
<br> | |||
<?php | |||
$startNum++; | |||
}//foreach | |||
echo "<script language='javascript'>startNum = $startNum;</script>\r\n"; | |||
?> | |||
$startNum++; | |||
} | |||
echo "<script language='javascript'>startNum = $startNum;</script>\r\n"; | |||
?> | |||
</td> | |||
</tr> | |||
<?php | |||
}//需要预设镜像 | |||
?> | |||
} | |||
?> | |||
<tr> | |||
<td height="26" bgcolor="#F9FCEF" class="bline2"><b> 手动指定地址:</b></td> | |||
</tr> | |||
<tr> | |||
<td height="26" class="bline" style="padding-left:8px"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0" style="margin-bottom:5px;" class="bline"> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0" class="bline"> | |||
<tr> | |||
<td width="90">其它地址:</td> | |||
<td width="90"> 其它地址:</td> | |||
<td> | |||
<input name="picnum" type="text" id="picnum" size="8" value="5" /> | |||
<button name='kkkup' class='btn btn-success btn-sm' type='button' id='kkkup2' onClick="MakeUpload();">增加地址</button> | |||
| |||
<button type="button" class='btn btn-success btn-sm' name="Submit3" id="btsh3" onClick="ShowHideAddr();">隐藏地址</button> | |||
(最多为30个链接) | |||
<button type="button" class='btn btn-success btn-sm' name="Submit3" id="btsh3" onClick="ShowHideAddr();">隐藏地址</button>(最多为30个链接) | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -463,7 +439,6 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="90"> 附加选项:</td> | |||
<td> | |||
<label><input name="remote" type="checkbox" class="np" id="remote" value="1" | |||
<?php if($cfg_rm_remote=='Y') echo ' checked'; ?>> | |||
下载远程图片和资源</label> | |||
@@ -479,13 +454,13 @@ table{border-collapse:separate} | |||
</tr> | |||
<tr> | |||
<td height="100"> | |||
<?php | |||
<?php | |||
GetEditor('body', '', 250, 'Small'); | |||
?> | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
<!-- //高级参数 --> | |||
<!--高级参数--> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" | |||
style="display:none;border:1px solid #cfcfcf;background:#ffffff;"> | |||
<tr> | |||
@@ -494,17 +469,13 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="90" height="22" width="240"> 评论选项:</td> | |||
<td width="240"> | |||
<label><input type='radio' name='notpost' class='np' value='0' | |||
<?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论 </label> | |||
<label><input type='radio' name='notpost' class='np' value='0' <?php if($cfg_feedback_forbid=='N') echo "checked='1' "; ?> /> 允许评论</label> | |||
| |||
<label><input type='radio' name='notpost' class='np' value='1' | |||
<?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论 </label> | |||
<label><input type='radio' name='notpost' class='np' value='1' <?php if($cfg_feedback_forbid=='Y') echo "checked='1' "; ?> /> 禁止评论</label> | |||
</td> | |||
<td width="90">浏览次数:</td> | |||
<td> | |||
<input type='text' name='click' | |||
value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' | |||
style='width:100px;' /> | |||
<input type='text' name='click' value='<?php echo ($cfg_arc_click=='-1' ? mt_rand(50, 200) : $cfg_arc_click); ?>' style='width:100px;' /> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -526,7 +497,8 @@ table{border-collapse:separate} | |||
<td width="90">标题颜色:</td> | |||
<td> | |||
<input name="color" type="text" id="color" style="width:120px"> | |||
<button name="modcolor" type="button" id="modcolor" class='btn btn-success btn-sm' onClick="ShowColor(event,this)">选取</button> </td> | |||
<button name="modcolor" type="button" id="modcolor" class='btn btn-success btn-sm' onClick="ShowColor(event,this)">选取</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -558,16 +530,14 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 发布时间:</td> | |||
<td width="241"> | |||
<?php | |||
$nowtime = GetDateTimeMk(time()); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker' style=\"width:200;\" >"; | |||
?> | |||
<td width="240"> | |||
<?php | |||
$nowtime = GetDateTimeMk(time()); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" class='datepicker' style=\"width:200;\" >"; | |||
?> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td width="379"> | |||
<input name="money" type="hidden" id="money" value="0" />(此项已经独立分离) | |||
</td> | |||
<td width="380"><input name="money" type="hidden" id="money" value="0" />(此项已经独立分离)</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -578,10 +548,7 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="90"> 关键字:</td> | |||
<td colspan="2"><input type='text' name="keywords" id="keywords" style="width:290px;" value="" /> | |||
<button type="button" name="Submit" class='btn btn-success btn-sm' | |||
onClick="SelectKeywords('form1.keywords');">浏览...</button> <label><input | |||
name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" | |||
<?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>> 自动获取,手动填写用","分开</label></td> | |||
<button type="button" name="Submit" class='btn btn-success btn-sm' onClick="SelectKeywords('form1.keywords');">浏览...</button> <label><input name="autokey" type="checkbox" onClick="ShowHide('keywords');" ; class="np" id="autokey" value="1" <?php if($cfg_arc_autokeyword=='Y') echo ' checked'; ?>> 自动获取,手动填写用","分开</label></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -591,8 +558,8 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> 内容摘要:</td> | |||
<td width="449"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | |||
<td width="261"> </td> | |||
<td width="450"><textarea name="description" rows="3" id="description" style="width:80%"></textarea></td> | |||
<td width="260"> </td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -602,36 +569,22 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> 自定义文件名:</td> | |||
<td width="449"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | |||
<td width="261"> </td> | |||
<td width="450"><input type="text" name="filename" id="filename" />(不包括后缀名如.html等)</td> | |||
<td width="260"> </td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td width="17%"> </td> | |||
<td width="83%"> | |||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115" class="py-3"><button type="submit" class="btn btn-success">保存</button></td> | |||
<td width="99" class="py-3"><button type="button" onClick="location.reload();" class="btn btn-success">重置</button></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr height="36"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
<script language='javascript'>InitPage();</script> | |||
</body> | |||
</html> |
@@ -2,7 +2,7 @@ | |||
<html xmlns="http://www.w3.org/1999/xhtml"> | |||
<head> | |||
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>"> | |||
<title>编辑软件</title> | |||
<title>修改软件</title> | |||
<link rel="stylesheet" href="../static/css/bootstrap.min.css"> | |||
<link href="../static/font-awesome/css/font-awesome.min.css" rel="stylesheet"> | |||
<link href="css/base.css" rel="stylesheet" type="text/css"> | |||
@@ -54,9 +54,8 @@ table{border-collapse:separate} | |||
<input type="hidden" id="litpic_b64" name="litpic_b64" value=""> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" class="mt-3"> | |||
<tr> | |||
<td width="85%" height="30"><img src="images/book1.gif"> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&dopost=listArchives"></a><a href="catalog_do.php?cid=<?php echo $arcRow["typeid"]?>&dopost=listArchives">软件列表</a> >> 修改软件 | |||
</td> | |||
<td align="right"> <a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a> </td> | |||
<td width="85%" height="30"><img src="images/book1.gif"> <a href="catalog_do.php?cid=<?php echo $arcRow['typeid']?>&dopost=listArchives"></a><a href="catalog_do.php?cid=<?php echo $arcRow["typeid"]?>&dopost=listArchives">软件列表</a> >> 修改软件</td> | |||
<td align="right"> <a href="catalog_main.php" class="btn btn-success btn-sm">栏目管理</a></td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" id="head1"> | |||
@@ -64,8 +63,8 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table width="168" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif"> 常规参数 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a> </td> | |||
<td width="86" height="26" align="center" background="images/itemnote1.gif">常规参数</td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem2()">高级参数</a></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -76,8 +75,8 @@ table{border-collapse:separate} | |||
<td colspan="2"> | |||
<table width="168" height="26" border="0" cellpadding="0" cellspacing="0"> | |||
<tr> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规参数</a> </td> | |||
<td width="86" align="center" background="images/itemnote1.gif">高级参数 </td> | |||
<td width="86" align="center" background="images/itemnote2.gif"><a href="javascript:;" onClick="ShowItem1()">常规参数</a></td> | |||
<td width="86" align="center" background="images/itemnote1.gif">高级参数</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -102,31 +101,30 @@ table{border-collapse:separate} | |||
<tr> | |||
<td width="100"> 自定义属性:</td> | |||
<td> | |||
<?php | |||
$dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
else $jumpclick = ''; | |||
if(preg_match("#".$trow->att."#",$arcRow['flag'])) | |||
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 | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?> </td> | |||
<?php | |||
$dsql->SetQuery("Select * From `#@__arcatt` order by sortid asc"); | |||
$dsql->Execute(); | |||
while($trow = $dsql->GetObject()) | |||
{ | |||
if($trow->att=='j') $jumpclick = " onclick='ShowUrlTr()'"; | |||
else $jumpclick = ''; | |||
if(preg_match("#".$trow->att."#",$arcRow['flag'])) | |||
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 | |||
echo "<label><input class='np' type='checkbox' name='flags[]' id='flags{$trow->att}' value='{$trow->att}'{$jumpclick} /> {$trow->attname}[{$trow->att}]</label> "; | |||
} | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline" id="redirecturltr" | |||
style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>"> | |||
<td height="26" colspan="4" class="bline" id="redirecturltr" style="display:<?php echo (empty($addRow['redirecturl']) ? 'none' : 'block');?>"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 跳转网址:</td> | |||
<td> | |||
<input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $addRow["redirecturl"]?>" /> </td> | |||
<td><input name="redirecturl" type="text" id="redirecturl" style="width:300px" value="<?php echo $addRow['redirecturl']?>" /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -147,24 +145,13 @@ table{border-collapse:separate} | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="81"> | |||
缩略图: | |||
</td> | |||
<td width="90" height="80"> 缩略图:</td> | |||
<td width="560"> | |||
<input name="picname" type="text" id="picname" style="width:300px" | |||
value="<?php echo $arcRow["litpic"]?>"> <button type="button" name="Submit" class="btn btn-success btn-sm" | |||
onClick="SelectImage('form1.picname','');">浏览...</button> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> | |||
远程 </label> | |||
<span class="btn btn-success btn-sm fileinput-button"> | |||
<i class="glyphicon glyphicon-plus"></i> | |||
选择图片 | |||
<input type="file" name="files[]" id="iptAddImages"> | |||
</span> | |||
<button id="btnClearAll" type="button" class="btn btn-success btn-sm delete"> | |||
<i class="fa fa-trash-o"></i> | |||
<span>清空</span> | |||
</button> | |||
<input name="picname" type="text" id="picname" style="width:300px" value="<?php echo $arcRow['litpic']?>"> | |||
<label><input type='checkbox' class='np' name='ddisremote' value='1'> 远程</label> | |||
<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 id="btnClearAll" type="button" class="btn btn-success btn-sm delete">清空</button> | |||
</td> | |||
<td align="center"> | |||
<img id="litPic" src="<?php if($arcRow['litpic']!='') echo $arcRow['litpic']; else echo '../static/defaultpic.gif'; ?>" style="height:80px"> | |||
@@ -178,12 +165,10 @@ table{border-collapse:separate} | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 软件来源:</td> | |||
<td width="240"> <input name="source" type="text" id="source" style="width:200px" | |||
value="<?php echo $arcRow["source"]?>"> </td> | |||
<td width="240"> <input name="source" type="text" id="source" style="width:200px" value="<?php echo $arcRow['source']?>"></td> | |||
<td width="90">软件作者:</td> | |||
<td width="159"><input name="writer" type="text" id="writer" style="width:120px" | |||
value="<?php echo $arcRow["writer"]?>"> </td> | |||
<td> </td> | |||
<td width="160"><input name="writer" type="text" id="writer" style="width:120px" value="<?php echo $arcRow['writer']?>"></td> | |||
<td></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -195,23 +180,21 @@ table{border-collapse:separate} | |||
<td width="100"> 文章主栏目:</td> | |||
<td> | |||
<?php | |||
$typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择主分类...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
<img src='images/menusearch.gif' style='cursor:pointer' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" | |||
alt='快捷选择' title='快捷选择' /> | |||
$typeOptions = GetOptionList($arcRow["typeid"],$cuserLogin->getUserChannel(),$channelid); | |||
echo "<select name='typeid' id='typeid' style='width:240px'>\r\n"; | |||
if($arcRow["typeid"]=="0") echo "<option value='0' selected>请选择主分类...</option>\r\n"; | |||
echo $typeOptions; | |||
echo "</select>"; | |||
?> | |||
<img src='images/menusearch.gif' style='cursor:pointer' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid', '<?php echo $arcRow['typeid']; ?>')" alt='快捷选择' title='快捷选择' /> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<?php | |||
if($cfg_need_typeid2=='Y') { | |||
?> | |||
if($cfg_need_typeid2=='Y') { | |||
?> | |||
<tr> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
@@ -219,11 +202,8 @@ if($cfg_need_typeid2=='Y') { | |||
<td width="100"> 软件副栏目:</td> | |||
<td> | |||
<span id='typeid2ct'></span> | |||
<input type='text' name='typeid2' id='typeid2' | |||
value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' | |||
onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" | |||
alt='选择副栏目' title='选择副栏目' /> </td> | |||
<input type='text' name='typeid2' id='typeid2' value='<?php echo ($arcRow['typeid2']=='0' ? '' : $arcRow['typeid2']); ?>' style='width:200px;' /> | |||
<img src='images/menusearch2.gif' style='cursor:pointer;' onClick="ShowCatMap(event, this, <?php echo $channelid; ?>, 'typeid2', '<?php echo $arcRow['typeid2']; ?>')" alt='选择副栏目' title='选择副栏目' /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -237,26 +217,27 @@ if($cfg_need_typeid2=='Y') { | |||
<td width="240"> | |||
<select name="filetype" id="filetype" style="width:100"> | |||
<?php | |||
if($addRow["filetype"]!="") echo "<option value=\"".$addRow["filetype"]."\">".$addRow["filetype"]."</option>\r\n"; | |||
?> | |||
if($addRow["filetype"]!="") echo "<option value=\"".$addRow["filetype"]."\">".$addRow["filetype"]."</option>\r\n"; | |||
?> | |||
<option value=".exe">.exe</option> | |||
<option value=".zip">.zip</option> | |||
<option value=".rar">.rar</option> | |||
<option value=".iso">.iso</option> | |||
<option value=".gz">.gz</option> | |||
<option value="其它">其它</option> | |||
</select> </td> | |||
<td width="90">软件等级: </td> | |||
</select></td> | |||
<td width="90">软件等级:</td> | |||
<td><select name="softrank" id="softrank" style="width:100"> | |||
<?php | |||
if($addRow["softrank"]!="") echo "<option value=\"".$addRow["softrank"]."\">".$addRow["softrank"]."星</option>\r\n"; | |||
?> | |||
if($addRow["softrank"]!="") echo "<option value=\"".$addRow["softrank"]."\">".$addRow["softrank"]."星</option>\r\n"; | |||
?> | |||
<option value="1">一星</option> | |||
<option value="2">二星</option> | |||
<option value="3">三星 </option> | |||
<option value="4">四星</option> | |||
<option value="5">五星</option> | |||
</select></td> | |||
</select> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -269,17 +250,18 @@ if($cfg_need_typeid2=='Y') { | |||
<td width="130"> | |||
<select name="softtype" id="softtype" style="width:100"> | |||
<?php | |||
if($addRow["softtype"]!="") echo "<option value=\"".$addRow["softtype"]."\">".$addRow["softtype"]."</option>\r\n"; | |||
?> | |||
if($addRow["softtype"]!="") echo "<option value=\"".$addRow["softtype"]."\">".$addRow["softtype"]."</option>\r\n"; | |||
?> | |||
<option value="国产软件">国产软件</option> | |||
<option value="国外软件">国外软件</option> | |||
<option value="汉化补丁">汉化补丁</option> | |||
</select></td> | |||
</select> | |||
</td> | |||
<td width="89">界面语言: </td> | |||
<td width="130"><select name="language" id="language" style="width:100"> | |||
<?php | |||
if($addRow["language"]!="") echo "<option value=\"".$addRow["language"]."\">".$addRow["language"]."</option>\r\n"; | |||
?> | |||
if($addRow["language"]!="") echo "<option value=\"".$addRow["language"]."\">".$addRow["language"]."</option>\r\n"; | |||
?> | |||
<option value="简体中文">简体中文</option> | |||
<option value="英文软件">英文软件</option> | |||
<option value="繁体中文">繁体中文</option> | |||
@@ -289,15 +271,16 @@ if($cfg_need_typeid2=='Y') { | |||
<td> | |||
<select name="accredit" id="accredit" style="width:100"> | |||
<?php | |||
if($addRow["accredit"]!="") echo "<option value=\"".$addRow["accredit"]."\">".$addRow["accredit"]."</option>\r\n"; | |||
?> | |||
if($addRow["accredit"]!="") echo "<option value=\"".$addRow["accredit"]."\">".$addRow["accredit"]."</option>\r\n"; | |||
?> | |||
<option value="共享软件">共享软件</option> | |||
<option value="免费软件">免费软件</option> | |||
<option value="开源软件">开源软件</option> | |||
<option value="商业软件">商业软件</option> | |||
<option value="破解软件">破解软件</option> | |||
<option value="游戏外挂">游戏外挂</option> | |||
</select> </td> | |||
</select> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -307,14 +290,9 @@ if($cfg_need_typeid2=='Y') { | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 运行环境:</td> | |||
<td width="240"> | |||
<input type='text' name='os' value='<?php echo $addRow["os"]?>' style='width:200px' /> | |||
</td> | |||
<td width="240"><input type='text' name='os' value='<?php echo $addRow["os"]?>' style='width:200px' /></td> | |||
<td width="90"> 软件大小:</td> | |||
<td> | |||
<input name="softsize" type="text" id="softsize" style="width:100" | |||
value="<?php echo $addRow["softsize"]?>" /> | |||
</td> | |||
<td><input name="softsize" type="text" id="softsize" style="width:100" value="<?php echo $addRow["softsize"]?>" /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -324,15 +302,9 @@ if($cfg_need_typeid2=='Y') { | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 官方网址:</td> | |||
<td width="240"> | |||
<input name="officialUrl" type="text" id="officialUrl" value="<?php echo $addRow["officialUrl"]?>" | |||
style='width:200px' /> | |||
</td> | |||
<td width="240"><input name="officialUrl" type="text" id="officialUrl" value="<?php echo $addRow['officialUrl']?>" style='width:200px' /></td> | |||
<td width="90">程序演示:</td> | |||
<td> | |||
<input name="officialDemo" type="text" id="officialDemo" value="<?php echo $addRow["officialDemo"]?>" | |||
style='width:200px' /> | |||
</td> | |||
<td><input name="officialDemo" type="text" id="officialDemo" value="<?php echo $addRow['officialDemo']?>" style='width:200px' /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -350,27 +322,23 @@ if($cfg_need_typeid2=='Y') { | |||
<td width="100" height="30"> 需会员权限:</td> | |||
<td width="179" align="center"> | |||
<select name="daccess" id="daccess" style="width:100px"> | |||
<?php | |||
<?php | |||
$dsql->SetQuery("Select * from `#@__arcrank` where rank>=0 "); | |||
$dsql->Execute(); | |||
while($row = $dsql->GetArray()) | |||
{ | |||
if($row['rank']==0) $row['membername'] = "不限会员"; | |||
if($row['rank'] == $daccess) echo " <option value='{$row['rank']}' selected>{$row['membername']}</option>\r\n"; | |||
else echo " <option value='{$row['rank']}'>{$row['membername']}</option>\r\n"; | |||
if($row['rank'] == $daccess) echo "<option value='{$row['rank']}' selected>{$row['membername']}</option>\r\n"; | |||
else echo "<option value='{$row['rank']}'>{$row['membername']}</option>\r\n"; | |||
} | |||
?> | |||
?> | |||
</select> | |||
</td> | |||
<td width="120" align="center">需消费金币:</td> | |||
<td width="411"> | |||
<input name="needmoney" type="text" id="needmoney" value="<?php echo $needmoney; ?>" size="8" />个 | |||
</td> | |||
<td width="411"><input name="needmoney" type="text" id="needmoney" value="<?php echo $needmoney; ?>" size="8" /> 个</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" style="border-top:1px dashed #8EAF61"> <span | |||
class="STYLE1 py-3">(如果设定了下载限制,<a href="soft_config.php" | |||
target="_blank">软件频道设置</a>中“附件下载方式:”必须选择“链接到跳转页面”) </span></td> | |||
<td height="26" colspan="4" style="border-top:1px dashed #8EAF61"><span class="STYLE1 py-3">(如果设定了下载限制,<a href="soft_config.php" target="_blank">软件频道设置</a> 中“附件下载方式:”必须选择“链接到跳转页面”)</span></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -387,18 +355,17 @@ if($cfg_need_typeid2=='Y') { | |||
<input name="picnum" type="text" id="picnum" size="8" value="5" /> | |||
<button class='btn btn-success btn-sm' name='kkkup' type='button' id='kkkup2' onClick="MakeUpload();">增加数量</button> | |||
| |||
<button class='btn btn-success btn-sm' type="button" name="Submit3" id="btsh3" onClick="ShowHideAddr();">隐藏地址</button> | |||
(最多为30个链接) | |||
<button class='btn btn-success btn-sm' type="button" name="Submit3" id="btsh3" onClick="ShowHideAddr();">隐藏地址</button>(最多为30个链接) | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" colspan="4" class="bline" style="padding-left:8px"> | |||
<td height="26" colspan="4" class="bline"> | |||
<?php | |||
echo $nForm; | |||
?> | |||
echo $nForm; | |||
?> | |||
<div id='morelink' style='display:block'> | |||
<div id='uploadfield' style='width:800px'></div> | |||
</div> | |||
@@ -423,31 +390,26 @@ if($cfg_need_typeid2=='Y') { | |||
</tr> | |||
<tr> | |||
<td height="100" colspan="4"> | |||
<?php | |||
<?php | |||
GetEditor("body",$addRow["introduce"],250,"Small"); | |||
?> </td> | |||
?> | |||
</td> | |||
</tr> | |||
</table> | |||
<!-- //高级参数 --> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" | |||
style="display:none;border:1px solid #cfcfcf;background:#ffffff;"> | |||
<!--高级参数--> | |||
<table width="98%" border="0" align="center" cellpadding="2" cellspacing="2" id="adset" style="display:none;border:1px solid #cfcfcf;background:#ffffff;"> | |||
<tr> | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="22" width="240"> 评论选项:</td> | |||
<td width="250"> | |||
<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='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> | |||
<label><input type='radio' name='notpost' class='np' value='1' <?php if($arcRow['notpost']==1) echo " checked='1' "; ?> /> 禁止评论 </label> | |||
</td> | |||
<td width="90">浏览次数:</td> | |||
<td> | |||
<input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /> | |||
</td> | |||
<td><input type='text' name='click' value='<?php echo $arcRow['click']; ?>' style='width:100px;' /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -458,7 +420,7 @@ if($cfg_need_typeid2=='Y') { | |||
<tr> | |||
<td width="90"> 文章排序:</td> | |||
<td width="250"> <select name="sortup" id="sortup" style="width:150"> | |||
<?php | |||
<?php | |||
$subday = SubDay($arcRow["sortrank"],$arcRow["pubdate"]); | |||
echo "<option value='0'>正常排序</option>\r\n"; | |||
if($subday>0) echo "<option value='$subday' selected>置顶 $subday 天</option>\r\n"; | |||
@@ -470,9 +432,7 @@ if($cfg_need_typeid2=='Y') { | |||
<option value="360">置顶一年</option> | |||
</select> </td> | |||
<td width="90">标题颜色:</td> | |||
<td><input name="color" type="text" id="color" style="width:120" | |||
value="<?php echo $arcRow["color"]?>"> <button class='btn btn-success btn-sm' name="modcolor" type="button" id="modcolor" | |||
onClick="ShowColor(event,this)">选取</button></td> | |||
<td><input name="color" type="text" id="color" style="width:120" value="<?php echo $arcRow["color"]?>"> <button class='btn btn-success btn-sm' name="modcolor" type="button" id="modcolor" onClick="ShowColor(event,this)">选取</button></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -484,50 +444,44 @@ if($cfg_need_typeid2=='Y') { | |||
<td width="90"> 阅读权限:</td> | |||
<td width="250"> | |||
<select name="arcrank" id="arcrank" style="width:150px"> | |||
<option value='<?php echo $arcRow["arcrank"]; ?>'> | |||
<?php echo ($arcRow["arcrank"]==0 ? '已审核状态' : $arcRow["rankname"]); ?></option> | |||
<option value='<?php echo $arcRow["arcrank"]; ?>'><?php echo ($arcRow["arcrank"]==0 ? '已审核状态' : $arcRow["rankname"]); ?></option> | |||
<option value='0'>已审核状态</option> | |||
<option value='-1'>未审核状态</option> | |||
</select> | |||
</td> | |||
<td width="90">发布选项:</td> | |||
<td> <label><input name="ishtml" type="radio" class="np" value="1" | |||
<?php if($arcRow["ismake"]!=-1) echo " checked";?>> | |||
<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> | |||
<label><input type="radio" name="ishtml" class="np" value="0" <?php if($arcRow["ismake"]==-1) echo " checked";?>> | |||
仅动态浏览</label> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="75" class="bline"> | |||
<td height="70" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<td width="90"> 更新时间:</td> | |||
<td width="241"> | |||
<tr> | |||
<td width="90"> 更新时间:</td> | |||
<td width="250"> | |||
<?php | |||
$nowtime = GetDateTimeMk($arcRow["pubdate"]); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200;\" class='datepicker' >"; | |||
?> | |||
</td> | |||
<td width="92">消费金币:</td> | |||
<td width="368"> | |||
<input name="money" type="hidden" id="money" value="<?php echo $arcRow["money"]?>" />(此项已经独立分离) | |||
</td> | |||
$nowtime = GetDateTimeMk($arcRow["pubdate"]); | |||
echo "<input name=\"pubdate\" value=\"$nowtime\" type=\"text\" id=\"pubdate\" style=\"width:200;\" class='datepicker' >"; | |||
?> | |||
</td> | |||
<td width="90">消费金币:</td> | |||
<td><input name="money" type="hidden" id="money" value="<?php echo $arcRow['money']?>" />(此项已经独立分离)</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="51"> 关键字:</td> | |||
<td> | |||
<input type="text" name="keywords" id="keywords" style="width:60%" | |||
value="<?php echo $arcRow["keywords"]?>" /> | |||
</td> | |||
<td width="90" height="50"> 关键字:</td> | |||
<td><input type="text" name="keywords" id="keywords" style="width:60%" value="<?php echo $arcRow["keywords"]?>" /></td> | |||
</tr> | |||
</table> | |||
</td> | |||
@@ -536,10 +490,9 @@ if($cfg_need_typeid2=='Y') { | |||
<td height="26" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="51"> 简要说明:</td> | |||
<td width="90" height="50"> 简要说明:</td> | |||
<td> | |||
<textarea name="description" rows="3" id="description" | |||
style="width:60%"><?php echo $arcRow["description"]?></textarea> | |||
<textarea name="description" rows="3" id="description" style="width:60%"><?php echo $arcRow["description"]?></textarea> | |||
</td> | |||
</tr> | |||
</table> | |||
@@ -550,40 +503,22 @@ if($cfg_need_typeid2=='Y') { | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="120"> 自定义文件名:</td> | |||
<td width="449"><input type="text" name="filename" id="filename" | |||
value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td> | |||
<td width="261"> </td> | |||
<td width="450"><input type="text" name="filename" id="filename" value="<?php echo $arcRow["filename"]?>" />(不包括后缀名如.html等)</td> | |||
<td width="260"></td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#F9FCEF" | |||
style="border:1px solid #cfcfcf;border-top:none;" class="mb-3"> | |||
<tr> | |||
<td height="35"> | |||
<table width="100%" border="0" cellspacing="1" cellpadding="1"> | |||
<tr> | |||
<td width="17%"> </td> | |||
<td width="83%"> | |||
<table width="214" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="115" class="py-3"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
</td> | |||
<td width="99" class="py-3"> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
</table> | |||
</td> | |||
</tr> | |||
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#f8f8f8" style="border:1px solid #cfcfcf;border-top:none" class="mb-3"> | |||
<tr height="36"> | |||
<td style="padding:.6rem"> | |||
<button type="submit" class="btn btn-success">保存</button> | |||
<button type="button" onClick="location.reload();" class="btn btn-success">重置</button> | |||
</td> | |||
</tr> | |||
</table> | |||
</form> | |||
<script language='javascript'>InitPage();</script> | |||
</body> | |||
</html> | |||
</html> |
@@ -125,7 +125,7 @@ | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90"> 专题名称:</td> | |||
<td width='408'><input name="title" type="text" id="title" value="" style="width:388px" /></td> | |||
<td width='408'><input name="title" type="text" id="title" value="" style="width:380px" /></td> | |||
<td width="90"> 简略标题:</td> | |||
<td><input name="shorttitle" type="text" id="shorttitle" style="width:150px" /></td> | |||
</tr> | |||
@@ -212,7 +212,7 @@ | |||
<option value="360">置顶一年</option> | |||
</select></td> | |||
<td width="90">标题颜色:</td> | |||
<td width="159"><input name="color" type="text" id="color" style="width:120px" /></td> | |||
<td width="160"><input name="color" type="text" id="color" style="width:120px" /></td> | |||
<td><button name="modcolor" type="button" id="modcolor" class="btn btn-success btn-sm" onClick="ShowColor(event,this)">选取</button></td> | |||
</tr> | |||
</table> | |||
@@ -400,7 +400,7 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="51" rowspan="2" valign="top">节点布局: </td> | |||
<td height="50" rowspan="2" valign="top">节点布局: </td> | |||
<td colspan="2"> 列数: | |||
<input name="col<?php echo $i?>" type="text" id="col<?php echo $i?>" value="1" size="3"> | |||
图片宽: | |||
@@ -134,7 +134,7 @@ | |||
<td width="90"> 专题名称:</td> | |||
<td width='408'> | |||
<input name="title" type="text" id="title" value="<?php echo $arcRow['title']; ?>" | |||
style="width:388px" /> | |||
style="width:380px" /> | |||
</td> | |||
<td width="90"> 简略标题:</td> | |||
<td> | |||
@@ -289,7 +289,7 @@ | |||
<td height="26" colspan="4" class="bline"> | |||
<table width="800" border="0" cellspacing="0" cellpadding="0"> | |||
<tr> | |||
<td width="90" height="51"> 关键字:</td> | |||
<td width="90" height="50"> 关键字:</td> | |||
<td> <input type="text" name="keywords" rows="3" id="keywords" style="width:350px" | |||
value="<?php echo $arcRow["keywords"]?>" /> | |||
</td> | |||
@@ -463,7 +463,7 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="51" rowspan="2" valign="top">节点布局:<br /> </td> | |||
<td height="50" rowspan="2" valign="top">节点布局:<br /> </td> | |||
<td colspan="2">列数: <input name="col<?php echo $i?>" type="text" id="col<?php echo $i?>" | |||
value="<?php echo $col?>" size="3"> | |||
图片宽: <input name="imgwidth<?php echo $i?>" type="text" id="imgwidth<?php echo $i?>" | |||
@@ -533,7 +533,7 @@ | |||
</td> | |||
</tr> | |||
<tr> | |||
<td height="51" rowspan="2" valign="top">节点布局:<br /> </td> | |||
<td height="50" rowspan="2" valign="top">节点布局:<br /> </td> | |||
<td colspan="2">列数: <input name="col<?php echo $i?>" type="text" id="col<?php echo $i?>" value="1" | |||
size="3"> | |||
图片高: <input name="imgheight<?php echo $i?>" type="text" id="imgheight<?php echo $i?>" value="90" | |||
@@ -3,7 +3,7 @@ $lang_pre_page = '上页'; | |||
$lang_next_page = '下页'; | |||
$lang_index_page = '首页'; | |||
$lang_end_page = '末页'; | |||
$lang_record_number = '条记录'; | |||
$lang_record_number = '篇'; | |||
$lang_page = '页'; | |||
$lang_total = '共'; | |||
?> |
@@ -3,7 +3,7 @@ $lang_pre_page = '上页'; | |||
$lang_next_page = '下页'; | |||
$lang_index_page = '首页'; | |||
$lang_end_page = '末页'; | |||
$lang_record_number = '条记录'; | |||
$lang_record_number = '篇'; | |||
$lang_page = '页'; | |||
$lang_total = '共'; | |||
?> |
@@ -254,6 +254,11 @@ CREATE TABLE `#@__arctype` ( | |||
`topid` smallint(5) unsigned NOT NULL default '0', | |||
`sortrank` smallint(5) unsigned NOT NULL default '50', | |||
`typename` char(30) NOT NULL default '', | |||
`namegk` char(200) NOT NULL default '', | |||
`enname` char(200) NOT NULL default '', | |||
`ennamegk` char(200) NOT NULL default '', | |||
`litpic` char(255) NOT NULL default '', | |||
`litimg` char(255) NOT NULL default '', | |||
`typedir` char(60) NOT NULL default '', | |||
`isdefault` smallint(6) NOT NULL default '0', | |||
`defaultname` char(15) NOT NULL default 'index.html', | |||
@@ -1,37 +1 @@ | |||
@charset "UTF-8"; | |||
/* | |||
* jQuery File Upload Plugin CSS | |||
* https://github.com/blueimp/jQuery-File-Upload | |||
* | |||
* Copyright 2013, Sebastian Tschan | |||
* https://blueimp.net | |||
* | |||
* Licensed under the MIT license: | |||
* https://opensource.org/licenses/MIT | |||
*/ | |||
.fileinput-button { | |||
position: relative; | |||
overflow: hidden; | |||
display: inline-block; | |||
} | |||
.fileinput-button input { | |||
position: absolute; | |||
top: 0; | |||
right: 0; | |||
margin: 0; | |||
opacity: 0; | |||
-ms-filter: 'alpha(opacity=0)'; | |||
font-size: 200px !important; | |||
direction: ltr; | |||
cursor: pointer; | |||
} | |||
/* Fixes for IE < 8 */ | |||
@media screen\9 { | |||
.fileinput-button input { | |||
filter: alpha(opacity=0); | |||
font-size: 100%; | |||
height: 100%; | |||
} | |||
} | |||
.fileinput-button{position:relative;overflow:hidden;display:inline-block}.fileinput-button input{position:absolute;top:0;right:0;margin:0;opacity:0;direction:ltr;cursor:pointer}@media screen\9{.fileinput-button input{filter:alpha(opacity=0);font-size:100%;height:100%}} |
@@ -60,7 +60,7 @@ function ChangeSon() | |||
var oj = document.createElement('select'); | |||
oj.name = emname + '_sec'; | |||
oj.id = emname + '_sec'; | |||
oj.className = "form-control mt-2"; | |||
oj.className = "form-control"; | |||
oj.onchange = ChangeSec; | |||
} | |||
var v = this.options[this.selectedIndex].value; | |||
@@ -130,7 +130,7 @@ function selNextSon() | |||
var oj = document.createElement('select'); | |||
oj.name = emname + '_son'; | |||
oj.id = emname + '_son'; | |||
oj.className = "form-control mt-2"; | |||
oj.className = "form-control"; | |||
oj.onchange = ChangeSon; | |||
} | |||
var v = this.options[this.selectedIndex].value; | |||
@@ -177,7 +177,7 @@ function MakeTopSelect(emname, selvalue) | |||
var selObj = document.createElement("select"); | |||
selObj.name = emname + '_top'; | |||
selObj.id = emname + '_top'; | |||
selObj.className = "form-control mt-2"; | |||
selObj.className = "form-control"; | |||
selObj.onchange = selNextSon; | |||
var selarr = eval('em_'+emname+'s'); | |||
// alert(selarr[1002.2]); | |||
@@ -233,7 +233,7 @@ function MakeTopSelect(emname, selvalue) | |||
selObj = document.createElement("select"); | |||
selObj.name = emname + '_son'; | |||
selObj.id = emname + '_son'; | |||
selObj.className = "form-control mt-2"; | |||
selObj.className = "form-control"; | |||
selObj.onchange = ChangeSon; | |||
aOption = document.createElement('OPTION'); | |||
aOption.text = '请选择..'; | |||
@@ -275,7 +275,7 @@ function MakeTopSelect(emname, selvalue) | |||
selObj.onchange = ChangeSec; | |||
aOption = document.createElement('OPTION'); | |||
aOption.text = '请选择..'; | |||
selObj.className = "form-control mt-2"; | |||
selObj.className = "form-control"; | |||
aOption.value = 0; | |||
selObj.options.add(aOption); | |||