@@ -19,14 +19,14 @@ if ($dopost != 'save') { | |||||
ClearMyAddon(); | ClearMyAddon(); | ||||
$channelid = empty($channelid) ? 0 : intval($channelid); | $channelid = empty($channelid) ? 0 : intval($channelid); | ||||
$cid = empty($cid) ? 0 : intval($cid); | $cid = empty($cid) ? 0 : intval($cid); | ||||
//获得频道模型id | |||||
//获得栏目模型id | |||||
if ($cid > 0 && $channelid == 0) { | if ($cid > 0 && $channelid == 0) { | ||||
$row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | $row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | ||||
$channelid = $row['channeltype']; | $channelid = $row['channeltype']; | ||||
} else { | } else { | ||||
if ($channelid == 0) $channelid = 2; | if ($channelid == 0) $channelid = 2; | ||||
} | } | ||||
//获得频道模型信息 | |||||
//获得栏目模型信息 | |||||
$cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | ||||
$channelid = $cInfos['id']; | $channelid = $cInfos['id']; | ||||
//获取文档最大id+1以确定当前权重 | //获取文档最大id+1以确定当前权重 | ||||
@@ -28,7 +28,7 @@ if ($dopost != 'save') { | |||||
$query = "SELECT * FROM `#@__channeltype` WHERE id='".$arcRow['channel']."'"; | $query = "SELECT * FROM `#@__channeltype` WHERE id='".$arcRow['channel']."'"; | ||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
if (!is_array($cInfos)) { | if (!is_array($cInfos)) { | ||||
ShowMsg("读取频道配置信息出错", "javascript:;"); | |||||
ShowMsg("读取栏目配置信息出错", "javascript:;"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$addtable = $cInfos['addtable']; | $addtable = $cInfos['addtable']; | ||||
@@ -19,7 +19,7 @@ if ($dopost != 'save') { | |||||
ClearMyAddon(); | ClearMyAddon(); | ||||
$channelid = empty($channelid) ? 0 : intval($channelid); | $channelid = empty($channelid) ? 0 : intval($channelid); | ||||
$cid = empty($cid) ? 0 : intval($cid); | $cid = empty($cid) ? 0 : intval($cid); | ||||
//获得频道模型id | |||||
//获得栏目模型id | |||||
if ($cid > 0 && $channelid == 0) { | if ($cid > 0 && $channelid == 0) { | ||||
$row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | $row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | ||||
$channelid = $row['channeltype']; | $channelid = $row['channeltype']; | ||||
@@ -29,7 +29,7 @@ if ($dopost != 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//获得频道模型信息 | |||||
//获得栏目模型信息 | |||||
$cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | ||||
$channelid = $cInfos['id']; | $channelid = $cInfos['id']; | ||||
//获取文档最大id+1以确定当前权重 | //获取文档最大id+1以确定当前权重 | ||||
@@ -289,7 +289,7 @@ else if ($dopost == 'moveArchives') { | |||||
<td width="90" class="biz-td">文档id:</td> | <td width="90" class="biz-td">文档id:</td> | ||||
<td class="biz-td"> | <td class="biz-td"> | ||||
<input type="text" name="tmpids" class="biz-input-md" value="<?php echo $qstr;?>"><br> | <input type="text" name="tmpids" class="biz-input-md" value="<?php echo $qstr;?>"><br> | ||||
移动到目标栏目必须和选定文档频道类型一致,否则程序会自动勿略不符合文档 | |||||
移动到目标栏目必须和选定文档栏目类型一致,否则程序会自动勿略不符合文档 | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -28,7 +28,7 @@ if ($dopost != 'save') { | |||||
$query = "SELECT * FROM `#@__channeltype` WHERE id='".$arcRow['channel']."'"; | $query = "SELECT * FROM `#@__channeltype` WHERE id='".$arcRow['channel']."'"; | ||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
if (!is_array($cInfos)) { | if (!is_array($cInfos)) { | ||||
ShowMsg("读取频道配置信息出错", "javascript:;"); | |||||
ShowMsg("读取栏目配置信息出错", "javascript:;"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$addtable = $cInfos['addtable']; | $addtable = $cInfos['addtable']; | ||||
@@ -19,7 +19,7 @@ if ($dopost != 'save') { | |||||
ClearMyAddon(); | ClearMyAddon(); | ||||
$channelid = empty($channelid) ? 0 : intval($channelid); | $channelid = empty($channelid) ? 0 : intval($channelid); | ||||
$cid = empty($cid) ? 0 : intval($cid); | $cid = empty($cid) ? 0 : intval($cid); | ||||
//获得频道模型id | |||||
//获得栏目模型id | |||||
if ($cid > 0 && $channelid == 0) { | if ($cid > 0 && $channelid == 0) { | ||||
$row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | $row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | ||||
$channelid = $row['channeltype']; | $channelid = $row['channeltype']; | ||||
@@ -29,7 +29,7 @@ if ($dopost != 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//获得频道模型信息 | |||||
//获得栏目模型信息 | |||||
$cInfos = $dsql->GetOne(" SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | $cInfos = $dsql->GetOne(" SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | ||||
$channelid = $cInfos['id']; | $channelid = $cInfos['id']; | ||||
include DedeInclude("templets/archives_sg_add.htm"); | include DedeInclude("templets/archives_sg_add.htm"); | ||||
@@ -22,7 +22,7 @@ if ($dopost != 'save') { | |||||
$arcQuery = "SELECT ch.*,arc.* FROM `#@__arctiny` arc LEFT JOIN `#@__channeltype` ch on ch.id=arc.channel WHERE arc.id='$aid' "; | $arcQuery = "SELECT ch.*,arc.* FROM `#@__arctiny` arc LEFT JOIN `#@__channeltype` ch on ch.id=arc.channel WHERE arc.id='$aid' "; | ||||
$cInfos = $dsql->GetOne($arcQuery); | $cInfos = $dsql->GetOne($arcQuery); | ||||
if (!is_array($cInfos)) { | if (!is_array($cInfos)) { | ||||
ShowMsg("读频道模型信息出错", "-1"); | |||||
ShowMsg("读栏目模型信息出错", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$addtable = $cInfos['addtable']; | $addtable = $cInfos['addtable']; | ||||
@@ -30,7 +30,7 @@ if ($dopost != 'save') { | |||||
$redatas = CoOnePage($geturl); | $redatas = CoOnePage($geturl); | ||||
extract((array)$redatas); | extract((array)$redatas); | ||||
} | } | ||||
//获得频道模型id | |||||
//获得栏目模型id | |||||
if ($cid > 0 && $channelid == 0) { | if ($cid > 0 && $channelid == 0) { | ||||
$row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | $row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | ||||
$channelid = $row['channeltype']; | $channelid = $row['channeltype']; | ||||
@@ -39,7 +39,7 @@ if ($dopost != 'save') { | |||||
$channelid = 1; | $channelid = 1; | ||||
} | } | ||||
} | } | ||||
//获得频道模型信息 | |||||
//获得栏目模型信息 | |||||
$cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | ||||
//获取文档最大id+1以确定当前权重 | //获取文档最大id+1以确定当前权重 | ||||
$maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | $maxWright = $dsql->GetOne("SELECT id+1 AS cc FROM `#@__archives` ORDER BY id DESC LIMIT 1"); | ||||
@@ -1,116 +0,0 @@ | |||||
<?php | |||||
/** | |||||
* 文档规则采集 | |||||
* | |||||
* @version $id:article_coonepage_rule.php 14:12 2010年7月12日 tianya $ | |||||
* @package DedeBIZ.Administrator | |||||
* @copyright Copyright (c) 2022 DedeBIZ.COM | |||||
* @license https://www.dedebiz.com/license | |||||
* @link https://www.dedebiz.com | |||||
*/ | |||||
require_once(dirname(__FILE__)."/config.php"); | |||||
require_once(DEDEINC."/datalistcp.class.php"); | |||||
setcookie("ENV_GOBACK_URL", $dedeNowurl, time() + 3600, "/"); | |||||
if (empty($action)) $action = ''; | |||||
/*------ | |||||
function _AddNote(){ } | |||||
-------*/ | |||||
if ($action == 'add') { | |||||
$row = $dsql->GetOne("SELECT * FROM `#@__co_onepage` WHERE url LIKE '$url' "); | |||||
if (is_array($row)) { | |||||
echo "系统已经存在这个网址的条目"; | |||||
} else { | |||||
$query = " INSERT INTO `#@__co_onepage` (`url`,`title`,`issource`,`lang`,`rule`) VALUES ('$url','$title','$issource','$lang','$rule'); "; | |||||
$dsql->ExecuteNonequery($query); | |||||
echo $dsql->GetError(); | |||||
} | |||||
} | |||||
/*------ | |||||
function _DelNote(){ } | |||||
-------*/ | |||||
else if ($action == 'del') { | |||||
if (!preg_match("#,#", $ids)) { | |||||
$query = "DELETE FROM `#@__co_onepage` WHERE id='$ids' "; | |||||
} else { | |||||
$query = "DELETE FROM `#@__co_onepage` WHERE id IN($ids) "; | |||||
} | |||||
$dsql->ExecuteNonequery($query); | |||||
} | |||||
/*------ | |||||
function _EditNote(){ } | |||||
-------*/ | |||||
else if ($action == 'editsave') { | |||||
$query = "UPDATE `#@__co_onepage` SET `url`='$url',`title`='$title',`issource`='$issource',`lang`='$lang',`rule`='$rule' WHERE id='$id' "; | |||||
$dsql->ExecuteNonequery($query); | |||||
echo $dsql->GetError(); | |||||
} | |||||
/*------ | |||||
function _EditNoteLoad(){ } | |||||
-------*/ | |||||
else if ($action == 'editload') { | |||||
$row = $dsql->GetOne("SELECT * FROM `#@__co_onepage` WHERE id='$id' "); | |||||
AjaxHead(); | |||||
?> | |||||
<form name="addform" action="article_coonepage_rule.php" method="post"> | |||||
<input type="hidden" name="id" value="<?php echo $id;?>"> | |||||
<input type="hidden" name="action" value="editsave"> | |||||
<table width="430" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90">网站名称:</td> | |||||
<td width="270"><input type="text" name="title" id="title" class="biz-input-md" value="<?php echo $row['title'];?>"></td> | |||||
</tr> | |||||
<tr> | |||||
<td>原内容编码:</td> | |||||
<td colspan="2"> | |||||
<label><input type="radio" name="lang" value="utf-8" <?php echo ($row['lang'] == 'utf-8' ? 'checked="checked"' : '');?>> UTF-8</label> | |||||
<label><input type="radio" name="lang" value="gb2312" <?php echo ($row['lang'] == 'gb2312' ? 'checked="checked"' : '');?>> GB2312/GBK</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>用作文档来源:</td> | |||||
<td colspan="2"> | |||||
<label><input type="radio" name="issource" value="0" <?php echo ($row['issource'] == 0 ? 'checked="checked"' : '');?>> 否</label> | |||||
<label><input type="radio" name="issource" value="1" <?php echo ($row['issource'] == 1 ? 'checked="checked"' : '');?>> 是</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>网站网址:</td> | |||||
<td colspan="2"><input type="text" name="url" id="url" value="<?php echo $row['url'];?>" class="biz-input-md"></td> | |||||
</tr> | |||||
<tr> | |||||
<td></td> | |||||
<td colspan="2"> | |||||
使用不带http及任何附加目录的网址<br> | |||||
如:news.dedebiz.com | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>采集规则:</td> | |||||
<td colspan="2">仅针对文档内容,格式:前面HTML{@body}后面HMTL</td> | |||||
</tr> | |||||
<tr> | |||||
<td></td> | |||||
<td colspan="2"><textarea name="rule" class="biz-textarea-xl"><?php echo $row['rule'];?></textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td></td> | |||||
<td colspan="2"> | |||||
<button class="btn btn-success btn-sm" type="submit" name="Submit">保存</button> | |||||
<button class="btn btn-success btn-sm" type="button" name="Submit2" onclick="javascript:CloseEditNode();">关闭</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
<?php | |||||
exit(); | |||||
} //loadedit | |||||
/*--------------- | |||||
function _ShowLoad(){ } | |||||
-------------*/ | |||||
$sql = ""; | |||||
$sql = "SELECT id,url,title,lang,issource FROM `#@__co_onepage` ORDER BY id DESC"; | |||||
$dlist = new DataListCP(); | |||||
$dlist->SetTemplate(DEDEADMIN."/templets/article_coonepage_rule.htm"); | |||||
$dlist->SetSource($sql); | |||||
$dlist->Display(); | |||||
?> |
@@ -31,7 +31,7 @@ if ($dopost != 'save') { | |||||
$query = "SELECT * FROM `#@__channeltype` WHERE id='".$arcRow['channel']."'"; | $query = "SELECT * FROM `#@__channeltype` WHERE id='".$arcRow['channel']."'"; | ||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
if (!is_array($cInfos)) { | if (!is_array($cInfos)) { | ||||
ShowMsg("读取频道配置信息出错", "javascript:;"); | |||||
ShowMsg("读取栏目配置信息出错", "javascript:;"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$addtable = $cInfos['addtable']; | $addtable = $cInfos['addtable']; | ||||
@@ -17,7 +17,7 @@ if ($dopost == 'analyse') { | |||||
if (is_array($arr)) { | if (is_array($arr)) { | ||||
$maintable = $arr['maintable']; | $maintable = $arr['maintable']; | ||||
} else { | } else { | ||||
showmsg('频道id不正确,无法处理', 'javascript:;'); | |||||
showmsg('栏目id不正确,无法处理', 'javascript:;'); | |||||
exit(); | exit(); | ||||
} | } | ||||
$dsql->SetQuery("SELECT COUNT(title) AS dd,title FROM `$maintable` WHERE channel='$channelid' GROUP BY title ORDER BY dd DESC LIMIT 0, $pagesize"); | $dsql->SetQuery("SELECT COUNT(title) AS dd,title FROM `$maintable` WHERE channel='$channelid' GROUP BY title ORDER BY dd DESC LIMIT 0, $pagesize"); | ||||
@@ -31,7 +31,7 @@ if ($dopost == "save") { | |||||
if ($ispart != 0) $cross = 0; | if ($ispart != 0) $cross = 0; | ||||
$upquery = "UPDATE `#@__arctype` SET issend='$issend',sortrank='$sortrank',typename='$typename',cnoverview='$cnoverview',enname='$enname',enoverview='$enoverview',bigpic='$bigpic',litimg='$litimg',typedir='$typedir',isdefault='$isdefault',defaultname='$defaultname',issend='$issend',ishidden='$ishidden',channeltype='$channeltype',tempindex='$tempindex',templist='$templist',temparticle='$temparticle',namerule='$namerule',namerule2='$namerule2',ispart='$ispart',corank='$corank',description='$description',keywords='$keywords',seotitle='$seotitle',moresite='$moresite',`cross`='$cross',`content`='$content',`crossid`='$crossid',`smalltypes`='$smalltypes'$uptopsql WHERE id='$id' "; | $upquery = "UPDATE `#@__arctype` SET issend='$issend',sortrank='$sortrank',typename='$typename',cnoverview='$cnoverview',enname='$enname',enoverview='$enoverview',bigpic='$bigpic',litimg='$litimg',typedir='$typedir',isdefault='$isdefault',defaultname='$defaultname',issend='$issend',ishidden='$ishidden',channeltype='$channeltype',tempindex='$tempindex',templist='$templist',temparticle='$temparticle',namerule='$namerule',namerule2='$namerule2',ispart='$ispart',corank='$corank',description='$description',keywords='$keywords',seotitle='$seotitle',moresite='$moresite',`cross`='$cross',`content`='$content',`crossid`='$crossid',`smalltypes`='$smalltypes'$uptopsql WHERE id='$id' "; | ||||
if (!$dsql->ExecuteNoneQuery($upquery)) { | if (!$dsql->ExecuteNoneQuery($upquery)) { | ||||
ShowMsg("保存当前栏目修改时失败,请检查您的输入资料是否存在问题", "-1"); | |||||
ShowMsg("保存栏目失败,请您检查栏目字段是否存在问题", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
//如果选择子栏目可投稿,更新顶级栏目为可投稿 | //如果选择子栏目可投稿,更新顶级栏目为可投稿 | ||||
@@ -48,12 +48,12 @@ if ($dopost == "save") { | |||||
if (!empty($upnext)) { | if (!empty($upnext)) { | ||||
$upquery = "UPDATE `#@__arctype` SETissend='$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` SETissend='$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)) { | if (!$dsql->ExecuteNoneQuery($upquery)) { | ||||
ShowMsg("修改当前栏目成功,但修改下级栏目属性时失败", "-1"); | |||||
ShowMsg("修改栏目成功,但修改下级栏目属性时失败", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
UpDateCatCache(); | UpDateCatCache(); | ||||
ShowMsg("成功修改一个分类", "catalog_main.php"); | |||||
ShowMsg("成功修改一个栏目", "catalog_main.php"); | |||||
exit(); | exit(); | ||||
} //End Save Action | } //End Save Action | ||||
else if ($dopost == "savetime") { | else if ($dopost == "savetime") { | ||||
@@ -74,11 +74,11 @@ else if ($dopost == "savetime") { | |||||
} | } | ||||
$upquery = "UPDATE `#@__arctype` SET issend='$issend',sortrank='$sortrank',typedir='$typedir',typename='$typename',isdefault='$isdefault',defaultname='$defaultname',ispart='$ispart',corank='$corank' $uptopsql WHERE id='$id' "; | $upquery = "UPDATE `#@__arctype` SET issend='$issend',sortrank='$sortrank',typedir='$typedir',typename='$typename',isdefault='$isdefault',defaultname='$defaultname',ispart='$ispart',corank='$corank' $uptopsql WHERE id='$id' "; | ||||
if (!$dsql->ExecuteNoneQuery($upquery)) { | if (!$dsql->ExecuteNoneQuery($upquery)) { | ||||
ShowMsg("保存当前栏目修改时失败,请检查您的输入资料是否存在问题", "-1"); | |||||
ShowMsg("保存栏目失败,请您检查栏目字段是否存在输入问题", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
UpDateCatCache(); | UpDateCatCache(); | ||||
ShowMsg("成功修改一个分类", "catalog_main.php"); | |||||
ShowMsg("成功修改一个栏目", "catalog_main.php"); | |||||
exit(); | exit(); | ||||
} | } | ||||
//读取栏目信息 | //读取栏目信息 | ||||
@@ -94,7 +94,7 @@ if ($topid > 0) { | |||||
} | } | ||||
} | } | ||||
$myrow['content'] = empty($myrow['content']) ? " " : $myrow['content']; | $myrow['content'] = empty($myrow['content']) ? " " : $myrow['content']; | ||||
//读取频道模型信息 | |||||
//读取栏目模型信息 | |||||
$channelid = $myrow['channeltype']; | $channelid = $myrow['channeltype']; | ||||
$dsql->SetQuery("SELECT id,typename,nid FROM `#@__channeltype` WHERE id<>-1 AND isshow=1 ORDER BY id"); | $dsql->SetQuery("SELECT id,typename,nid FROM `#@__channeltype` WHERE id<>-1 AND isshow=1 ORDER BY id"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
@@ -84,7 +84,7 @@ if ($cfg_dede_log == 'Y') { | |||||
if (file_exists(DEDEDATA."/downmix.data.php")) { | if (file_exists(DEDEDATA."/downmix.data.php")) { | ||||
rename(DEDEDATA."/downmix.data.php",DEDEDATA."/downmix.data.inc"); | rename(DEDEDATA."/downmix.data.php",DEDEDATA."/downmix.data.inc"); | ||||
} | } | ||||
//管理缓存管理员频道缓存 | |||||
//管理缓存管理员栏目缓存 | |||||
$cache1 = DEDEDATA.'/cache/inc_catalog_base.inc'; | $cache1 = DEDEDATA.'/cache/inc_catalog_base.inc'; | ||||
if (!file_exists($cache1)) UpDateCatCache(); | if (!file_exists($cache1)) UpDateCatCache(); | ||||
$cacheFile = DEDEDATA.'/cache/admincat_'.$cuserLogin->userID.'.inc'; | $cacheFile = DEDEDATA.'/cache/admincat_'.$cuserLogin->userID.'.inc'; | ||||
@@ -56,7 +56,7 @@ else if ($dopost == "delete") { | |||||
} | } | ||||
//删除表 | //删除表 | ||||
$dsql->ExecuteNoneQuery("DROP TABLE IF EXISTS `{$row['table']}`;"); | $dsql->ExecuteNoneQuery("DROP TABLE IF EXISTS `{$row['table']}`;"); | ||||
//删除频道配置信息 | |||||
//删除栏目配置信息 | |||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__diyforms` WHERE diyid='$diyid'"); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__diyforms` WHERE diyid='$diyid'"); | ||||
ShowMsg("成功删除一个自定义表单", "diy_main.php"); | ShowMsg("成功删除一个自定义表单", "diy_main.php"); | ||||
exit(); | exit(); | ||||
@@ -21,7 +21,7 @@ if (empty($dopost)) { | |||||
$ntype = ''; | $ntype = ''; | ||||
$edtime = time(); | $edtime = time(); | ||||
if (empty($channel)) { | if (empty($channel)) { | ||||
showmsg('频道类型不能为空', '-1'); | |||||
showmsg('栏目类型不能为空', '-1'); | |||||
exit(); | exit(); | ||||
} | } | ||||
if (is_array($types)) { | if (is_array($types)) { | ||||
@@ -2,12 +2,12 @@ | |||||
>admin_AllowAll>可以进行任意操作 | >admin_AllowAll>可以进行任意操作 | ||||
>>频道管理 | |||||
>>栏目管理 | |||||
>c_List>列出频道 | |||||
>c_New>新建频道 | |||||
>c_Edit>修改频道 | |||||
>c_Del>删除频道 | |||||
>c_List>列出栏目 | |||||
>c_New>新建栏目 | |||||
>c_Edit>修改栏目 | |||||
>c_Del>删除栏目 | |||||
>c_Stepselect>联动类别管理 | >c_Stepselect>联动类别管理 | ||||
>>栏目管理 | >>栏目管理 | ||||
@@ -73,7 +73,7 @@ | |||||
>sys_ArcTj>文档信息统计 | >sys_ArcTj>文档信息统计 | ||||
>sys_Source>新闻来源 | >sys_Source>新闻来源 | ||||
>sys_Writer>作者管理 | >sys_Writer>作者管理 | ||||
>sys_SoftConfig>软件频道参数 | |||||
>sys_SoftConfig>软件栏目参数 | |||||
>sys_Keyword>关键词管理 | >sys_Keyword>关键词管理 | ||||
>sys_MakeHtml>更新网页 | >sys_MakeHtml>更新网页 | ||||
>sys_Feedback>评论管理 | >sys_Feedback>评论管理 | ||||
@@ -84,7 +84,7 @@ $actionSearch[2] = array( | |||||
) | ) | ||||
); | ); | ||||
$actionSearch[3] = array( | $actionSearch[3] = array( | ||||
'title' => '频道模型', | |||||
'title' => '栏目模型', | |||||
'description' => '所有上传的附件管理', | 'description' => '所有上传的附件管理', | ||||
'soniterm' => array( | 'soniterm' => array( | ||||
0 => array( | 0 => array( | ||||
@@ -358,7 +358,7 @@ $actionSearch[9] = array( | |||||
'linkurl' => 'content_att.php' | 'linkurl' => 'content_att.php' | ||||
), | ), | ||||
7 => array( | 7 => array( | ||||
'title' => '软件频道设置', | |||||
'title' => '软件栏目设置', | |||||
'description' => '可以对软件下载时的连接显示方式,下载方式,镜像服务器等等进行配置', | 'description' => '可以对软件下载时的连接显示方式,下载方式,镜像服务器等等进行配置', | ||||
'purview' => 'sys_SoftConfig', | 'purview' => 'sys_SoftConfig', | ||||
'linkurl' => 'soft_config.php' | 'linkurl' => 'soft_config.php' | ||||
@@ -219,11 +219,11 @@ function GetRemoteImage($url, $uid = 0) | |||||
return ($ok ? $revalues : ''); | return ($ok ? $revalues : ''); | ||||
} | } | ||||
/** | /** | ||||
* 检测频道id | |||||
* 检测栏目id | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $typeid 栏目id | * @param int $typeid 栏目id | ||||
* @param int $channelid 频道id | |||||
* @param int $channelid 栏目id | |||||
* @return bool | * @return bool | ||||
*/ | */ | ||||
function CheckChannel($typeid, $channelid) | function CheckChannel($typeid, $channelid) | ||||
@@ -14,7 +14,7 @@ | |||||
* @access public | * @access public | ||||
* @param string $selid 选择id | * @param string $selid 选择id | ||||
* @param string $userCatalog 用户类目 | * @param string $userCatalog 用户类目 | ||||
* @param string $channeltype 频道类型 | |||||
* @param string $channeltype 栏目类型 | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0) | function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0) | ||||
@@ -28,7 +28,7 @@ function GetOptionList($selid = 0, $userCatalog = 0, $channeltype = 0) | |||||
//当前选中的栏目 | //当前选中的栏目 | ||||
if ($selid > 0) { | if ($selid > 0) { | ||||
$row = $dsql->GetOne("SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE id='$selid'"); | $row = $dsql->GetOne("SELECT id,typename,ispart,channeltype FROM `#@__arctype` WHERE id='$selid'"); | ||||
if ($row['ispart'] == 1) $OptionArrayList .= "<option value='".$row['id']."' class='option1' selected='selected'>".$row['typename']."(封面频道)</option>"; | |||||
if ($row['ispart'] == 1) $OptionArrayList .= "<option value='".$row['id']."' class='option1' selected='selected'>".$row['typename']."(封面栏目)</option>"; | |||||
else $OptionArrayList .= "<option value='".$row['id']."' selected='selected'>".$row['typename']."</option>"; | else $OptionArrayList .= "<option value='".$row['id']."' selected='selected'>".$row['typename']."</option>"; | ||||
} | } | ||||
//是否限定用户管理的栏目 | //是否限定用户管理的栏目 | ||||
@@ -10,7 +10,7 @@ | |||||
*/ | */ | ||||
require_once(dirname(__FILE__)."/../config.php"); | require_once(dirname(__FILE__)."/../config.php"); | ||||
require_once(dirname(__FILE__)."/inc_menu_module.php"); | require_once(dirname(__FILE__)."/inc_menu_module.php"); | ||||
//载入可发布频道 | |||||
//载入可发布栏目 | |||||
$addset = ''; | $addset = ''; | ||||
//检测可用的内容模型 | //检测可用的内容模型 | ||||
if ($cfg_admin_channel = 'array' && count($admin_catalogs) > 0) { | if ($cfg_admin_channel = 'array' && count($admin_catalogs) > 0) { | ||||
@@ -42,7 +42,7 @@ if ($cuserLogin->getUserType() >= 10) { | |||||
<m:item name='智能标记向导' link='mytag_tag_guide.php' rank='temp_Other' target='main' /> | <m:item name='智能标记向导' link='mytag_tag_guide.php' rank='temp_Other' target='main' /> | ||||
<m:item name='全局标记测试' link='tag_test.php' rank='temp_Test' target='main' /> | <m:item name='全局标记测试' link='tag_test.php' rank='temp_Test' target='main' /> | ||||
</m:top>")." | </m:top>")." | ||||
<m:top item='1_7_' name='频道模型' rank='t_List,t_AccList,c_List,temp_One' icon='fa-area-chart'> | |||||
<m:top item='1_7_' name='栏目模型' rank='t_List,t_AccList,c_List,temp_One' icon='fa-area-chart'> | |||||
<m:item name='内容模型管理' link='mychannel_main.php' rank='c_List' target='main' /> | <m:item name='内容模型管理' link='mychannel_main.php' rank='c_List' target='main' /> | ||||
<m:item name='单页文档管理' link='templets_one.php' rank='temp_One' target='main' /> | <m:item name='单页文档管理' link='templets_one.php' rank='temp_One' target='main' /> | ||||
<m:item name='联动类别管理' link='stepselect_main.php' rank='c_Stepseclect' target='main' /> | <m:item name='联动类别管理' link='stepselect_main.php' rank='c_Stepseclect' target='main' /> | ||||
@@ -63,7 +63,7 @@ if ($cuserLogin->getUserType() >= 10) { | |||||
<m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | <m:item name='系统日志管理' link='log_list.php' rank='sys_Log' target='main' /> | ||||
<m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' /> | <m:item name='图片水印设置' link='sys_info_mark.php' rank='sys_Edit' target='main' /> | ||||
<m:item name='自定义文档属性' link='content_att.php' rank='sys_Att' target='main' /> | <m:item name='自定义文档属性' link='content_att.php' rank='sys_Att' target='main' /> | ||||
<m:item name='软件频道设置' link='soft_config.php' rank='sys_SoftConfig' target='main' /> | |||||
<m:item name='软件栏目设置' link='soft_config.php' rank='sys_SoftConfig' target='main' /> | |||||
<m:item name='防采集串混淆' link='article_string_mix.php' rank='sys_StringMix' target='main' /> | <m:item name='防采集串混淆' link='article_string_mix.php' rank='sys_StringMix' target='main' /> | ||||
<m:item name='随机模板设置' link='article_template_rand.php' rank='sys_StringMix' target='main' /> | <m:item name='随机模板设置' link='article_template_rand.php' rank='sys_StringMix' target='main' /> | ||||
".(DEDEBIZ_SAFE_MODE? "" : "<m:item name='数据备份还原' link='sys_data.php' rank='sys_Data' target='main' />")." | ".(DEDEBIZ_SAFE_MODE? "" : "<m:item name='数据备份还原' link='sys_data.php' rank='sys_Data' target='main' />")." | ||||
@@ -1,6 +1,6 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 自定义频道 | |||||
* 自定义栏目 | |||||
* | * | ||||
* @version $id:mychannel_add.php 14:46 2010年7月20日 tianya $ | * @version $id:mychannel_add.php 14:46 2010年7月20日 tianya $ | ||||
* @package DedeBIZ.Administrator | * @package DedeBIZ.Administrator | ||||
@@ -17,11 +17,11 @@ if (empty($action)) $action = ''; | |||||
if ($action == 'add') { | if ($action == 'add') { | ||||
//检查输入 | //检查输入 | ||||
if (empty($id) || preg_match("#[^0-9-]#", $id)) { | if (empty($id) || preg_match("#[^0-9-]#", $id)) { | ||||
ShowMsg("<span class='text-danger'>'频道id'</span>必须为数字", "-1"); | |||||
ShowMsg("<span class='text-danger'>'栏目id'</span>必须为数字", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
if (preg_match("#[^a-z0-9]#i", $nid) || $nid == "") { | if (preg_match("#[^a-z0-9]#i", $nid) || $nid == "") { | ||||
ShowMsg("<span class='text-danger'>'频道名字标识'</span>必须为英文字母或与数字混合字符串", "-1"); | |||||
ShowMsg("<span class='text-danger'>'栏目名字标识'</span>必须为英文字母或与数字混合字符串", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($addtable == "") { | if ($addtable == "") { | ||||
@@ -33,7 +33,7 @@ if ($action == 'add') { | |||||
//检查id是否重复 | //检查id是否重复 | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$id' OR nid LIKE '$nid' OR addtable LIKE '$addtable'"); | $row = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$id' OR nid LIKE '$nid' OR addtable LIKE '$addtable'"); | ||||
if (is_array($row)) { | if (is_array($row)) { | ||||
ShowMsg("可能‘频道id’、‘频道名称标识’、‘附加表名称’在数据库已存在,不能重复使用", "-1"); | |||||
ShowMsg("可能‘栏目id’、‘栏目名称标识’、‘附加表名称’在数据库已存在,不能重复使用", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$mysql_version = $dsql->GetVersion(); | $mysql_version = $dsql->GetVersion(); | ||||
@@ -84,7 +84,7 @@ if ($action == 'add') { | |||||
} | } | ||||
$listfields = $fieldset = ''; | $listfields = $fieldset = ''; | ||||
if ($issystem == -1) { | if ($issystem == -1) { | ||||
$fieldset = "<field:channel itemname=\"频道id\" autofield=\"0\" notsend=\"0\" type=\"int\" isnull=\"true\" islist=\"1\" default=\"0\" maxlength=\"10\" page=\"\"></field:channel> | |||||
$fieldset = "<field:channel itemname=\"栏目id\" autofield=\"0\" notsend=\"0\" type=\"int\" isnull=\"true\" islist=\"1\" default=\"0\" maxlength=\"10\" page=\"\"></field:channel> | |||||
<field:arcrank itemname=\"浏览权限\" autofield=\"0\" notsend=\"0\" type=\"int\" isnull=\"true\" islist=\"1\" default=\"0\" maxlength=\"5\" page=\"\"></field:arcrank> | <field:arcrank itemname=\"浏览权限\" autofield=\"0\" notsend=\"0\" type=\"int\" isnull=\"true\" islist=\"1\" default=\"0\" maxlength=\"5\" page=\"\"></field:arcrank> | ||||
<field:mid itemname=\"会员id\" autofield=\"0\" notsend=\"0\" type=\"int\" isnull=\"true\" islist=\"1\" default=\"0\" maxlength=\"8\" page=\"\"></field:mid> | <field:mid itemname=\"会员id\" autofield=\"0\" notsend=\"0\" type=\"int\" isnull=\"true\" islist=\"1\" default=\"0\" maxlength=\"8\" page=\"\"></field:mid> | ||||
<field:click itemname=\"点击\" autofield=\"0\" notsend=\"0\" type=\"int\" isnull=\"true\" islist=\"1\" default=\"0\" maxlength=\"10\" page=\"\"></field:click> | <field:click itemname=\"点击\" autofield=\"0\" notsend=\"0\" type=\"int\" isnull=\"true\" islist=\"1\" default=\"0\" maxlength=\"10\" page=\"\"></field:click> | ||||
@@ -101,7 +101,7 @@ if ($action == 'add') { | |||||
} | } | ||||
$inQuery = "INSERT INTO `#@__channeltype` (id,nid,typename,addtable,addcon,mancon,editcon,useraddcon,usermancon,usereditcon,fieldset,listfields,issystem,issend,arcsta,usertype,sendrank,needdes,needpic,titlename,onlyone,dfcid) VALUES ('$id','$nid','$typename','$addtable','$addcon','$mancon','$editcon','$useraddcon','$usermancon','$usereditcon','$fieldset','$listfields','$issystem','$issend','$arcsta','$usertype','$sendrank','$needdes','$needpic','$titlename','$onlyone','$dfcid');"; | $inQuery = "INSERT INTO `#@__channeltype` (id,nid,typename,addtable,addcon,mancon,editcon,useraddcon,usermancon,usereditcon,fieldset,listfields,issystem,issend,arcsta,usertype,sendrank,needdes,needpic,titlename,onlyone,dfcid) VALUES ('$id','$nid','$typename','$addtable','$addcon','$mancon','$editcon','$useraddcon','$usermancon','$usereditcon','$fieldset','$listfields','$issystem','$issend','$arcsta','$usertype','$sendrank','$needdes','$needpic','$titlename','$onlyone','$dfcid');"; | ||||
$dsql->ExecuteNoneQuery($inQuery); | $dsql->ExecuteNoneQuery($inQuery); | ||||
ShowMsg("成功增加一个频道模型", "mychannel_edit.php?id=".$id); | |||||
ShowMsg("成功增加一个栏目模型", "mychannel_edit.php?id=".$id); | |||||
exit(); | exit(); | ||||
} | } | ||||
$row = $dsql->GetOne("SELECT id FROM `#@__channeltype` ORDER BY id DESC LIMIT 0,1 "); | $row = $dsql->GetOne("SELECT id FROM `#@__channeltype` ORDER BY id DESC LIMIT 0,1 "); | ||||
@@ -51,26 +51,26 @@ else if ($dopost == "copystart") { | |||||
$idname = 'w'.($newid * -1); | $idname = 'w'.($newid * -1); | ||||
} | } | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$id'"); | $row = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$id'"); | ||||
$wintitle = "频道管理-模型复制"; | |||||
$wecome_info = "<a href='mychannel_main.php'>频道管理</a>::模型复制"; | |||||
$wintitle = "栏目管理-模型复制"; | |||||
$wecome_info = "<a href='mychannel_main.php'>栏目管理</a>::模型复制"; | |||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->Init("mychannel_edit.php", "js/blank.js", "post"); | $win->Init("mychannel_edit.php", "js/blank.js", "post"); | ||||
$win->AddTitle("被复制频道:[<span class='text-danger'>".$row['typename']."</span>]"); | |||||
$win->AddTitle("被复制栏目:[<span class='text-danger'>".$row['typename']."</span>]"); | |||||
$win->AddHidden("cid", $id); | $win->AddHidden("cid", $id); | ||||
$win->AddHidden("id", $id); | $win->AddHidden("id", $id); | ||||
$win->AddHidden("dopost", 'copysave'); | $win->AddHidden("dopost", 'copysave'); | ||||
$msg = " | $msg = " | ||||
<table width='460' cellspacing='0' cellpadding='0'> | <table width='460' cellspacing='0' cellpadding='0'> | ||||
<tr> | <tr> | ||||
<td width='170' align='center'>新频道id:</td> | |||||
<td width='170' align='center'>新栏目id:</td> | |||||
<td width='230'><input name='newid' type='text' id='newid' size='6' value='{$newid}' /></td> | <td width='230'><input name='newid' type='text' id='newid' size='6' value='{$newid}' /></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td align='center'>新频道名称:</td> | |||||
<td align='center'>新栏目名称:</td> | |||||
<td><input name='newtypename' type='text' id='newtypename' value='{$row['typename']}{$idname}' class='biz-input-md' /></td> | <td><input name='newtypename' type='text' id='newtypename' value='{$row['typename']}{$idname}' class='biz-input-md' /></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td align='center'>新频道标识:</td> | |||||
<td align='center'>新栏目标识:</td> | |||||
<td><input name='newnid' type='text' id='newnid' value='{$row['nid']}{$idname}' class='biz-input-md' /></td> | <td><input name='newnid' type='text' id='newnid' value='{$row['nid']}{$idname}' class='biz-input-md' /></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -305,11 +305,11 @@ function __GetTemplate() | |||||
else if ($dopost == "gettemplets") { | else if ($dopost == "gettemplets") { | ||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
$row = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$id'"); | $row = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$id'"); | ||||
$wintitle = "频道管理-查看模板"; | |||||
$wecome_info = "<a href='mychannel_main.php'>频道管理</a>::查看模板"; | |||||
$wintitle = "栏目管理-查看模板"; | |||||
$wecome_info = "<a href='mychannel_main.php'>栏目管理</a>::查看模板"; | |||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->Init("", "js/blank.js", ""); | $win->Init("", "js/blank.js", ""); | ||||
$win->AddTitle("频道[".$row['typename']."]默认模板文件说明:"); | |||||
$win->AddTitle("栏目[".$row['typename']."]默认模板文件说明:"); | |||||
$defaulttemplate = $cfg_templets_dir.'/'.$cfg_df_style; | $defaulttemplate = $cfg_templets_dir.'/'.$cfg_df_style; | ||||
$msg = " | $msg = " | ||||
文档模板:{$defaulttemplate}/article_{$row['nid']}.htm | 文档模板:{$defaulttemplate}/article_{$row['nid']}.htm | ||||
@@ -339,14 +339,14 @@ else if ($dopost == "delete") { | |||||
if ($job == "") //确认提示 | if ($job == "") //确认提示 | ||||
{ | { | ||||
require_once(DEDEINC."/libraries/oxwindow.class.php"); | require_once(DEDEINC."/libraries/oxwindow.class.php"); | ||||
$wintitle = "频道管理-删除模型"; | |||||
$wecome_info = "<a href='mychannel_main.php'>频道管理</a>::删除模型"; | |||||
$wintitle = "栏目管理-删除模型"; | |||||
$wecome_info = "<a href='mychannel_main.php'>栏目管理</a>::删除模型"; | |||||
$win = new OxWindow(); | $win = new OxWindow(); | ||||
$win->Init("mychannel_edit.php", "js/blank.js", "POST"); | $win->Init("mychannel_edit.php", "js/blank.js", "POST"); | ||||
$win->AddHidden("job", "yes"); | $win->AddHidden("job", "yes"); | ||||
$win->AddHidden("dopost", $dopost); | $win->AddHidden("dopost", $dopost); | ||||
$win->AddHidden("id", $id); | $win->AddHidden("id", $id); | ||||
$win->AddTitle("您确定要删除 (".$row['typename'].") 这个频道"); | |||||
$win->AddTitle("您确定要删除 (".$row['typename'].") 这个栏目"); | |||||
$winform = $win->GetWindow("ok"); | $winform = $win->GetWindow("ok"); | ||||
$win->Display(); | $win->Display(); | ||||
exit(); | exit(); | ||||
@@ -355,14 +355,14 @@ else if ($dopost == "delete") { | |||||
require_once(DEDEINC."/typelink/typeunit.class.admin.php"); | require_once(DEDEINC."/typelink/typeunit.class.admin.php"); | ||||
$myrow = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='$id'", MYSQL_ASSOC); | $myrow = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='$id'", MYSQL_ASSOC); | ||||
if (!is_array($myrow)) { | if (!is_array($myrow)) { | ||||
ShowMsg('您所指定的频道信息不存在!', '-1'); | |||||
ShowMsg('您所指定的栏目信息不存在!', '-1'); | |||||
exit(); | exit(); | ||||
} | } | ||||
//检查频道的表是否独占数据表 | |||||
//检查栏目的表是否独占数据表 | |||||
$addtable = str_replace($cfg_dbprefix, '', str_replace('#@__', $cfg_dbprefix, $myrow['addtable'])); | $addtable = str_replace($cfg_dbprefix, '', str_replace('#@__', $cfg_dbprefix, $myrow['addtable'])); | ||||
$row = $dsql->GetOne("SELECT COUNT(id) AS dd FROM `#@__channeltype` WHERE addtable like '{$cfg_dbprefix}{$addtable}' OR addtable LIKE CONCAT('#','@','__','$addtable') ; "); | $row = $dsql->GetOne("SELECT COUNT(id) AS dd FROM `#@__channeltype` WHERE addtable like '{$cfg_dbprefix}{$addtable}' OR addtable LIKE CONCAT('#','@','__','$addtable') ; "); | ||||
$isExclusive2 = ($row['dd'] > 1 ? 0 : 1); | $isExclusive2 = ($row['dd'] > 1 ? 0 : 1); | ||||
//获取与频道关连的所有栏目id | |||||
//获取与栏目关连的所有栏目id | |||||
$tids = ''; | $tids = ''; | ||||
$dsql->Execute('qm', "SELECT id FROM `#@__arctype` WHERE channeltype='$id'"); | $dsql->Execute('qm', "SELECT id FROM `#@__arctype` WHERE channeltype='$id'"); | ||||
while ($row = $dsql->GetArray('qm')) { | while ($row = $dsql->GetArray('qm')) { | ||||
@@ -384,7 +384,7 @@ else if ($dopost == "delete") { | |||||
$dsql->ExecuteNoneQuery("DELETE FROM `{$myrow['addtable']}` WHERE typeid IN ($tids); "); | $dsql->ExecuteNoneQuery("DELETE FROM `{$myrow['addtable']}` WHERE typeid IN ($tids); "); | ||||
} | } | ||||
} | } | ||||
//删除频道配置信息 | |||||
//删除栏目配置信息 | |||||
$dsql->ExecuteNoneQuery("DELETE FROM `#@__channeltype` WHERE id='$id' "); | $dsql->ExecuteNoneQuery("DELETE FROM `#@__channeltype` WHERE id='$id' "); | ||||
//更新栏目缓存 | //更新栏目缓存 | ||||
UpDateCatCache($dsql); | UpDateCatCache($dsql); | ||||
@@ -116,7 +116,7 @@ $f = ''; | |||||
foreach ($fields as $k => $v) { | foreach ($fields as $k => $v) { | ||||
$f .= ($f == '' ? $k : ' '.$k); | $f .= ($f == '' ? $k : ' '.$k); | ||||
} | } | ||||
//获取频道模型 | |||||
//获取栏目模型 | |||||
$dsql->SetQuery("SELECT id,typename,nid FROM `#@__channeltype` WHERE id<>-1 AND isshow=1 ORDER BY id"); | $dsql->SetQuery("SELECT id,typename,nid FROM `#@__channeltype` WHERE id<>-1 AND isshow=1 ORDER BY id"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while ($row = $dsql->GetObject()) { | while ($row = $dsql->GetObject()) { | ||||
@@ -31,7 +31,7 @@ foreach ($ds as $d) { | |||||
$dds = explode(',', trim($d)); | $dds = explode(',', trim($d)); | ||||
$fieldtypes[$dds[0]] = $dds[1]; | $fieldtypes[$dds[0]] = $dds[1]; | ||||
} | } | ||||
//获取频道模型 | |||||
//获取栏目模型 | |||||
$dsql->SetQuery("SELECT id,typename,nid FROM `#@__channeltype` WHERE id<>-1 AND isshow=1 ORDER BY id"); | $dsql->SetQuery("SELECT id,typename,nid FROM `#@__channeltype` WHERE id<>-1 AND isshow=1 ORDER BY id"); | ||||
$dsql->Execute(); | $dsql->Execute(); | ||||
while ($crow = $dsql->GetObject()) { | while ($crow = $dsql->GetObject()) { | ||||
@@ -19,7 +19,7 @@ if ($dopost != 'save') { | |||||
ClearMyAddon(); | ClearMyAddon(); | ||||
$channelid = empty($channelid) ? 0 : intval($channelid); | $channelid = empty($channelid) ? 0 : intval($channelid); | ||||
$cid = empty($cid) ? 0 : intval($cid); | $cid = empty($cid) ? 0 : intval($cid); | ||||
//获得频道模型id | |||||
//获得栏目模型id | |||||
if ($cid > 0 && $channelid == 0) { | if ($cid > 0 && $channelid == 0) { | ||||
$row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | $row = $dsql->GetOne("SELECT channeltype FROM `#@__arctype` WHERE id='$cid'; "); | ||||
$channelid = $row['channeltype']; | $channelid = $row['channeltype']; | ||||
@@ -27,7 +27,7 @@ if ($dopost != 'save') { | |||||
if ($channelid == 0) $channelid = 1; | if ($channelid == 0) $channelid = 1; | ||||
} | } | ||||
$softconfig = $dsql->GetOne("SELECT * FROM `#@__softconfig` "); | $softconfig = $dsql->GetOne("SELECT * FROM `#@__softconfig` "); | ||||
//获得频道模型信息 | |||||
//获得栏目模型信息 | |||||
$cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | ||||
$channelid = $cInfos['id']; | $channelid = $cInfos['id']; | ||||
//获取文档最大id+1以确定当前权重 | //获取文档最大id+1以确定当前权重 | ||||
@@ -30,7 +30,7 @@ if ($dopost != 'save') { | |||||
$query = "SELECT * FROM `#@__channeltype` WHERE id='".$arcRow['channel']."'"; | $query = "SELECT * FROM `#@__channeltype` WHERE id='".$arcRow['channel']."'"; | ||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
if (!is_array($cInfos)) { | if (!is_array($cInfos)) { | ||||
ShowMsg("读取频道配置信息出错", "javascript:;"); | |||||
ShowMsg("读取栏目配置信息出错", "javascript:;"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$addtable = $cInfos['addtable']; | $addtable = $cInfos['addtable']; | ||||
@@ -19,7 +19,7 @@ if ($dopost != 'save') { | |||||
ClearMyAddon(); | ClearMyAddon(); | ||||
$channelid = -1; | $channelid = -1; | ||||
$cid = isset($cid) && is_numeric($cid) ? $cid : 0; | $cid = isset($cid) && is_numeric($cid) ? $cid : 0; | ||||
//获得频道模型信息 | |||||
//获得栏目模型信息 | |||||
$cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | $cInfos = $dsql->GetOne("SELECT * FROM `#@__channeltype` WHERE id='$channelid' "); | ||||
include DedeInclude("templets/spec_add.htm"); | include DedeInclude("templets/spec_add.htm"); | ||||
exit(); | exit(); | ||||
@@ -29,7 +29,7 @@ if ($dopost != 'save') { | |||||
$query = "SELECT * FROM `#@__channeltype` WHERE id='-1'"; | $query = "SELECT * FROM `#@__channeltype` WHERE id='-1'"; | ||||
$cInfos = $dsql->GetOne($query); | $cInfos = $dsql->GetOne($query); | ||||
if (!is_array($cInfos)) { | if (!is_array($cInfos)) { | ||||
ShowMsg("读取频道配置信息出错", "javascript:;"); | |||||
ShowMsg("读取栏目配置信息出错", "javascript:;"); | |||||
exit(); | exit(); | ||||
} | } | ||||
$addRow = $dsql->GetOne("SELECT * FROM `#@__addonspec` WHERE aid='$aid'"); | $addRow = $dsql->GetOne("SELECT * FROM `#@__addonspec` WHERE aid='$aid'"); | ||||
@@ -32,7 +32,7 @@ function GetUserType($trank) | |||||
} | } | ||||
function GetChannel($c) | function GetChannel($c) | ||||
{ | { | ||||
if ($c == "" || $c == 0) return "所有频道"; | |||||
if ($c == "" || $c == 0) return "所有栏目"; | |||||
else return $c; | else return $c; | ||||
} | } | ||||
?> | ?> |
@@ -13,31 +13,6 @@ require_once(DEDEINC.'/datalistcp.class.php'); | |||||
CheckPurview('sys_Data'); | CheckPurview('sys_Data'); | ||||
$dopost = (empty($dopost)) ? '' : $dopost; | $dopost = (empty($dopost)) ? '' : $dopost; | ||||
$pid = (empty($pid)) ? 0 : intval($pid); | $pid = (empty($pid)) ? 0 : intval($pid); | ||||
//一个简单的[数组<->表单]解析类 | |||||
/*数组结构应该为: | |||||
array( | |||||
[name]=>array( | |||||
[title]=>'当前表单项的名称', | |||||
[type]=>'text|select', | |||||
[description]=>'表单内容的介绍说明' | |||||
[iterm]=>'1:使用标准双接口,使用担保交易接口', //如果含有":",则前面为value值,后面为显示内容 | |||||
[value]=>'使用担保交易接口', | |||||
), | |||||
) | |||||
使用方法: | |||||
将上述的格式传入到数组中去,然后进行解析: | |||||
1.声明类,并创建数组 | |||||
$af = new Array2form($config); | |||||
2.设置一个表单模板(可选,如果不设置载入默认) | |||||
$af->SetDefaultTpl($templets); $templets:为一个底册模板文件 | |||||
表单模板格式为: | |||||
<p>~title~:~form~<small>~description~</small></p> | |||||
3.获取特定项目表单 | |||||
$af->GetIterm('alipay', 1) //1.表示获取一个默认模板下的完整表单,2.仅获取一个表单项 | |||||
4.获取所有表单内容 | |||||
$af->GetAll() //获取表单所有解析后的内容 | |||||
*/ | |||||
class Array2form | class Array2form | ||||
{ | { | ||||
var $FormArray = array(); | var $FormArray = array(); | ||||
@@ -82,13 +57,13 @@ class Array2form | |||||
case 'text': | case 'text': | ||||
//生成文本编辑框 | //生成文本编辑框 | ||||
$valstr = (empty($formarry['value'])) ? "value=''" : "value='{$formarry['value']}'"; | $valstr = (empty($formarry['value'])) ? "value=''" : "value='{$formarry['value']}'"; | ||||
$reval_form = "<input type='text' name='{$key}' id='{$key}' class='biz-input-md' class='text'{$valstr}>"; | |||||
$reval_form = "<input type='text' name='{$key}' id='{$key}' class='biz-input-md' {$valstr}>"; | |||||
break; | break; | ||||
case 'select': | case 'select': | ||||
//生成选择框 | //生成选择框 | ||||
$reval_title = $formarry['title']; | $reval_title = $formarry['title']; | ||||
$items = explode(',', $formarry['iterm']); | $items = explode(',', $formarry['iterm']); | ||||
$reval_form = "<select name='{$key}' class='text'>"; | |||||
$reval_form = "<select name='{$key}' class='biz-input-xs'>"; | |||||
if (is_array($items)) { | if (is_array($items)) { | ||||
foreach ($items as $v) { | foreach ($items as $v) { | ||||
$v = trim($v); | $v = trim($v); | ||||
@@ -41,32 +41,11 @@ | |||||
<table cellpadding="0" cellspacing="0"> | <table cellpadding="0" cellspacing="0"> | ||||
<tr> | <tr> | ||||
<td width="80" height="28" align="center" class="biz-itemnote1">常规内容</td> | <td width="80" height="28" align="center" class="biz-itemnote1">常规内容</td> | ||||
<td><a href="javascript:;" class="btn btn-success btn-sm" onClick="ShowHide('getone')">单页采集</a></td> | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
<form name="getonepage" action="article_add.php" method="get"> | |||||
<table width="98%" align="center" cellpadding="0" cellspacing="0" id="getone" class="table table-borderless" style="<?php if (empty($geturl)) echo 'display:none';?>"> | |||||
<input type="hidden" name="channelid" value="<?php echo $channelid;?>"> | |||||
<input type="hidden" name="cid" value="<?php echo $cid;?>"> | |||||
<tr> | |||||
<td> | |||||
<table cellpadding="0" cellspacing="0"> | |||||
<tr> | |||||
<td width="90">采集单页:</td> | |||||
<td width="270" align="center"><input type="text" name="geturl" id="geturl" value="<?php echo $geturl;?>" class="biz-input-md"></td> | |||||
<td> | |||||
<button type="submit" class="btn btn-success btn-sm" name="Submit3">抓取</button> | |||||
<button type="button" class="btn btn-success btn-sm" name="setrule" onClick="OpenMyWinCoOne('article_coonepage_rule.php')">规则管理</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
<form name="form1" action="article_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | <form name="form1" action="article_add.php" enctype="multipart/form-data" method="post" onSubmit="return checkSubmit()"> | ||||
<input type="hidden" name="channelid" value="<?php echo $channelid?>"> | <input type="hidden" name="channelid" value="<?php echo $channelid?>"> | ||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
@@ -1,169 +0,0 @@ | |||||
<!DOCTYPE html> | |||||
<html> | |||||
<head> | |||||
<meta charset="<?php echo $cfg_soft_lang;?>"> | |||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | |||||
<title>单页采集规则管理</title> | |||||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | |||||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | |||||
<link rel="stylesheet" href="../static/web/css/admin.css"> | |||||
<script src="../static/web/js/jquery.min.js"></script> | |||||
<script src="../static/web/js/bootstrap.bundle.min.js"></script> | |||||
<script src="js/main.js"></script> | |||||
<script src="../static/web/js/webajax.js"></script> | |||||
<style>#addNode{position:absolute;left:20px;top:20px;padding:6px;width:430px;z-index:2;background:#fff;border:1px solid #dee2e6;display:none}#editNode{position:absolute;left:20px;top:20px;width:430px;padding:6px;z-index:1;background:#fff;border:1px solid #dee2e6;display:none}</style> | |||||
<script> | |||||
function ShowAddNode() { | |||||
$DE('addNode').style.display = 'block'; | |||||
} | |||||
function CloseAddNode() { | |||||
$DE('addNode').style.display = 'none'; | |||||
} | |||||
function CloseEditNode() { | |||||
$DE('editNode').style.display = 'none'; | |||||
$DE('addNode').style.display = 'none'; | |||||
} | |||||
//编辑 | |||||
function EditNode(nid) { | |||||
$DE('editNode').style.display = 'block'; | |||||
fetch('article_coonepage_rule.php?action=editload&id=' + nid).then(resp=>resp.text()).then((d)=>{ | |||||
$DE('editNodeBody').innerHTML = d; | |||||
}); | |||||
} | |||||
//获得选中文件的文件名 | |||||
function getCheckboxItem() { | |||||
var allSel = ""; | |||||
if (document.form2.ids.value) return document.form2.ids.value; | |||||
for (i = 0; i < document.form2.ids.length; i++) { | |||||
if (document.form2.ids[i].checked) { | |||||
allSel = (allSel == '' ? document.form2.ids[i].value : allSel + "," + document.form2.ids[i].value); | |||||
} | |||||
} | |||||
return allSel; | |||||
} | |||||
function selAll() { | |||||
for (i = 0; i < document.form2.ids.length; i++) { | |||||
if (!document.form2.ids[i].checked) { | |||||
document.form2.ids[i].checked = true; | |||||
} | |||||
} | |||||
} | |||||
function noSelAll() { | |||||
for (i = 0; i < document.form2.ids.length; i++) { | |||||
if (document.form2.ids[i].checked) { | |||||
document.form2.ids[i].checked = false; | |||||
} | |||||
} | |||||
} | |||||
//删除节点 | |||||
function DelNode(selid) { | |||||
if (selid == 0) selid = getCheckboxItem(); | |||||
if (selid != '') { | |||||
if (window.confirm("您确定要删除这些条目吗")) location = "article_coonepage_rule.php?ids=" + selid + "&action=del"; | |||||
} else { | |||||
ShowMsg("您没选择任何条目"); | |||||
} | |||||
} | |||||
</script> | |||||
</head> | |||||
<body> | |||||
<table width="100%" cellpadding="2" align="center" cellspacing="1" class="table maintable my-3"> | |||||
<tr> | |||||
<td colspan="6" bgcolor="#f5f5f5"> | |||||
<table width="98%" cellpadding="0" cellspacing="0" class="table table-borderless"> | |||||
<tr> | |||||
<td width="30%">单页采集规则管理</td> | |||||
<td width="70%" align="right"><a href="javascript:ShowAddNode();" class="btn btn-success btn-sm">增加新网址</a></td> | |||||
</tr> | |||||
</table> | |||||
</td> | |||||
</tr> | |||||
<form name="form2"> | |||||
<tr bgcolor="#fbfce2" align="center"> | |||||
<td width="6%">id</td> | |||||
<td width="6%">选择</td> | |||||
<td width="20%">网址</td> | |||||
<td width="12%">编码</td> | |||||
<td width="20%">网站名称</td> | |||||
<td>操作</td> | |||||
</tr> | |||||
{dede:datalist empty='<tr><td colspan="6"><center>暂无内容</center></td></tr>'} | |||||
<tr align="center" onMouseOut="javascript:this.bgColor='#ffffff';"> | |||||
<td><?php echo $fields['id']?></td> | |||||
<td><input type="checkbox" name="ids" id="ids" value="<?php echo $fields['id']?>"></td> | |||||
<td align="left"><?php echo $fields['url'];?></td> | |||||
<td><?php echo $fields['lang'];?></td> | |||||
<td><?php echo $fields['title'];?></td> | |||||
<td> | |||||
<a href="javascript:EditNode(<?php echo $fields['id']?>)" class="btn btn-success btn-sm">编辑</a> | |||||
<a href="javascript:DelNode(<?php echo $fields['id']?>)" class="btn btn-danger btn-sm">删除</a> | |||||
</td> | |||||
</tr> | |||||
{/dede:datalist} | |||||
<tr> | |||||
<td colspan="6"> | |||||
<a href="javascript:selAll()" class="btn btn-success btn-sm">全选</a> | |||||
<a href="javascript:noSelAll()" class="btn btn-success btn-sm">取消</a> | |||||
<a href="javascript:DelNode(0)" class="btn btn-danger btn-sm">删除</a> | |||||
</td> | |||||
</tr> | |||||
</form> | |||||
<tr> | |||||
<td colspan="6" bgcolor="#f5f5f5" align="center" class="py-2">{dede:pagelist listsize='6'/}</td> | |||||
</tr> | |||||
</table> | |||||
<!--下面是隐藏的栏目增加修改表单--> | |||||
<div id="editNode"> | |||||
<span id="editNodeBody">正在加载</span> | |||||
</div> | |||||
<div id="addNode"> | |||||
<form name="addform" action="article_coonepage_rule.php" method="post"> | |||||
<input type="hidden" name="action" value="add"> | |||||
<table width="430" cellspacing="0" cellpadding="0"> | |||||
<tr> | |||||
<td width="90">网站名称:</td> | |||||
<td width="270"><input type="text" name="title" id="title" class="biz-input-md" value="<?php echo $row['title'];?>"></td> | |||||
</tr> | |||||
<tr> | |||||
<td>原内容编码:</td> | |||||
<td colspan="2"> | |||||
<label><input type="radio" name="lang" value="utf-8" checked="checked"> UTF-8</label> | |||||
<label><input type="radio" name="lang" value="gb2312"> GB2312/GBK</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>用作文档来源:</td> | |||||
<td colspan="2"> | |||||
<label><input type="radio" name="issource" value="0"> 否</label> | |||||
<label><input type="radio" name="issource" value="1" checked="checked"> 是</label> | |||||
</td> | |||||
</tr> | |||||
<tr> | |||||
<td>网站网址:</td> | |||||
<td colspan="2"><input type="text" name="url" id="url" class="biz-input-md"></td> | |||||
</tr> | |||||
<tr> | |||||
<td></td> | |||||
<td colspan="2">使用不带http及任何附加目录的网址<br> | |||||
如:news.dedebiz.com</td> | |||||
</tr> | |||||
<tr> | |||||
<td>采集规则:</td> | |||||
<td colspan="2">仅针对文档内容,格式:前面HTML{@body}后面HMTL</td> | |||||
</tr> | |||||
<tr> | |||||
<td></td> | |||||
<td colspan="2"><textarea name="rule" class="biz-textarea-xl">{@body}</textarea></td> | |||||
</tr> | |||||
<tr> | |||||
<td colspan="3" align="center" class="py-2"> | |||||
<button class="btn btn-success btn-sm" type="submit" name="Submit">保存</button> | |||||
<button class="btn btn-success btn-sm" type="button" name="Submit2" onclick="javascript:CloseEditNode();">关闭</button> | |||||
</td> | |||||
</tr> | |||||
</table> | |||||
</form> | |||||
</div> | |||||
</body> | |||||
</html> |
@@ -18,7 +18,7 @@ | |||||
<td colspan="2"><div class="alert alert-info mb-0">用于自动更新您系统没有填写摘要的文档的摘要信息或更新没分页的文档的自动分页标识(文档使用了自动分页后会降低网页生成速度,并且在没人工干扰的情况下可能导致分页内容的网页错误,请小心使用此功能)</div></td> | <td colspan="2"><div class="alert alert-info mb-0">用于自动更新您系统没有填写摘要的文档的摘要信息或更新没分页的文档的自动分页标识(文档使用了自动分页后会降低网页生成速度,并且在没人工干扰的情况下可能导致分页内容的网页错误,请小心使用此功能)</div></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="360">频道id:<input type="text" name="channel" id="channel" value="1" class="biz-input-xs">(可在“<a href="mychannel_main.php">频道模型管理</a>”处获得)</td> | |||||
<td width="360">栏目id:<input type="text" name="channel" id="channel" value="1" class="biz-input-xs">(可在“<a href="mychannel_main.php">栏目模型管理</a>”处获得)</td> | |||||
<td>摘要大小:<input type="text" name="dsize" id="dsize" value="<?php echo $cfg_auot_description?>" class="biz-input-xs">(最大250字节)</td> | <td>摘要大小:<input type="text" name="dsize" id="dsize" value="<?php echo $cfg_auot_description?>" class="biz-input-xs">(最大250字节)</td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -20,7 +20,7 @@ | |||||
<table width="98%" align="center" cellpadding="0" cellspacing="0" | <table width="98%" align="center" cellpadding="0" cellspacing="0" | ||||
class="table table-borderless"> | class="table table-borderless"> | ||||
<tr> | <tr> | ||||
<td width="20%" align="left">频道类型:</td> | |||||
<td width="20%" align="left">栏目类型:</td> | |||||
<td align="left"> | <td align="left"> | ||||
<select name="channelid" class="biz-input-sm"> | <select name="channelid" class="biz-input-sm"> | ||||
<?php | <?php | ||||
@@ -373,7 +373,7 @@ | |||||
<td bgcolor="#f5f5f5">支持变量:</td> | <td bgcolor="#f5f5f5">支持变量:</td> | ||||
<td bgcolor="#f5f5f5"> | <td bgcolor="#f5f5f5"> | ||||
{tid}表示栏目id,<br> | {tid}表示栏目id,<br> | ||||
{cid}表示频道模型的名字id( | |||||
{cid}表示栏目模型的名字id( | |||||
<?php | <?php | ||||
foreach($channelArray as $k=>$arr) | foreach($channelArray as $k=>$arr) | ||||
{ | { | ||||
@@ -322,7 +322,7 @@ | |||||
<td bgcolor="#f5f5f5">支持变量:</td> | <td bgcolor="#f5f5f5">支持变量:</td> | ||||
<td bgcolor="#f5f5f5"> | <td bgcolor="#f5f5f5"> | ||||
{tid}表示栏目id,<br> | {tid}表示栏目id,<br> | ||||
{cid}表示频道模型的名字id( | |||||
{cid}表示栏目模型的名字id( | |||||
<?php | <?php | ||||
foreach($channelArray as $k=>$arr) | foreach($channelArray as $k=>$arr) | ||||
{ | { | ||||
@@ -90,7 +90,7 @@ | |||||
<td> | <td> | ||||
<button type="button" class="btn btn-success btn-sm" onClick="location='spec_add.php';">添加专题</button> | <button type="button" class="btn btn-success btn-sm" onClick="location='spec_add.php';">添加专题</button> | ||||
<?php echo $CheckUserSend?> | <?php echo $CheckUserSend?> | ||||
<button type="button" class="btn btn-success btn-sm" onClick="location='catalog_main.php';">频道管理</button> | |||||
<button type="button" class="btn btn-success btn-sm" onClick="location='catalog_main.php';">栏目管理</button> | |||||
<button type="button" class="btn btn-success btn-sm" onClick="location='makehtml_spec.php';">更新专题</button> | <button type="button" class="btn btn-success btn-sm" onClick="location='makehtml_spec.php';">更新专题</button> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -34,11 +34,11 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="16%">频道信息统计:</td> | |||||
<td width="16%">栏目信息统计:</td> | |||||
<td width="84%"> | <td width="84%"> | ||||
<table width="300" cellpadding="1" cellspacing="1"> | <table width="300" cellpadding="1" cellspacing="1"> | ||||
<tr align="center"> | <tr align="center"> | ||||
<td width="140">频道名称</td> | |||||
<td width="140">栏目名称</td> | |||||
<td>文档总数</td> | <td>文档总数</td> | ||||
</tr> | </tr> | ||||
<?php | <?php | ||||
@@ -170,7 +170,7 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>限定频道: | |||||
<td>限定栏目: | |||||
<?php | <?php | ||||
echo "<select name='channel' class='biz-input-sm'>"; | echo "<select name='channel' class='biz-input-sm'>"; | ||||
echo "<option value='0' selected>不限</option>"; | echo "<option value='0' selected>不限</option>"; | ||||
@@ -181,7 +181,7 @@ | |||||
echo "<option value='{$row->ID}'>{$row->typename}</option>"; | echo "<option value='{$row->ID}'>{$row->typename}</option>"; | ||||
} | } | ||||
echo "</select>"; | echo "</select>"; | ||||
?>(如果限定了频道内容模型,则允许使用附加表指定的列表字段作为底层变量) | |||||
?>(如果限定了栏目内容模型,则允许使用附加表指定的列表字段作为底层变量) | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -105,7 +105,7 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>限定频道: | |||||
<td>限定栏目: | |||||
<?php | <?php | ||||
$channel = $ctag->GetAtt('channel'); | $channel = $ctag->GetAtt('channel'); | ||||
echo "<select name='channel' class='biz-input-sm'><option value='0'>不限</option>"; | echo "<select name='channel' class='biz-input-sm'><option value='0'>不限</option>"; | ||||
@@ -117,7 +117,7 @@ | |||||
else echo "<option value='{$nrow->id}'>{$nrow->typename}</option>"; | else echo "<option value='{$nrow->id}'>{$nrow->typename}</option>"; | ||||
} | } | ||||
echo "</select>"; | echo "</select>"; | ||||
?>(如果限定了频道内容模型,则允许使用附加表指定的列表字段作为底层变量) | |||||
?>(如果限定了栏目内容模型,则允许使用附加表指定的列表字段作为底层变量) | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -50,7 +50,7 @@ | |||||
</div> | </div> | ||||
<div class="top-admin"> | <div class="top-admin"> | ||||
<ul class="mb-0"> | <ul class="mb-0"> | ||||
<li><a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="../static/web/img/avatar.png" title="<?php echo $cuserLogin->getUserName();?>"><?php echo $cuserLogin->getUserName();?><?php if ($cuserLogin->getUserType()==10){echo "管理员";} else if ($cuserLogin->getUserType()==5) {echo "频道员";} else {echo "信息员";}?></a></li> | |||||
<li><a href="sys_admin_user_edit.php?id=<?php echo $cuserLogin->getUserID();?>&dopost=edit" target="main"><img src="../static/web/img/avatar.png" title="<?php echo $cuserLogin->getUserName();?>"><?php echo $cuserLogin->getUserName();?><?php if ($cuserLogin->getUserType()==10){echo "管理员";} else if ($cuserLogin->getUserType()==5) {echo "栏目员";} else {echo "文档员";}?></a></li> | |||||
<li><a href="exit.php" title="退出系统">退了</a></li> | <li><a href="exit.php" title="退出系统">退了</a></li> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
@@ -64,32 +64,32 @@ | |||||
<tr bgcolor="#fbfce2" align="center"> | <tr bgcolor="#fbfce2" align="center"> | ||||
<td width="6%">选择</td> | <td width="6%">选择</td> | ||||
<td width="6%">mid</td> | <td width="6%">mid</td> | ||||
<td width="16%">登录名</td> | |||||
<td width="18%">邮箱</td> | |||||
<td width="16%">用户</td> | |||||
<td width="18%">名称邮箱</td> | |||||
<td width="6%">性别</td> | <td width="6%">性别</td> | ||||
<td width="6%">会员等级</td> | <td width="6%">会员等级</td> | ||||
<td width="14%">会员属性</td> | <td width="14%">会员属性</td> | ||||
<td width="14%">最后登录</td> | |||||
<td width="14%">地址时间</td> | |||||
<td>操作</td> | <td>操作</td> | ||||
</tr> | </tr> | ||||
{dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="9"><center>暂无内容</center></td></tr>'} | ||||
<tr align="center" onmousemove="javascript:this.bgColor='#fbfce2';" onmouseout="javascript:this.bgColor='#ffffff';"> | <tr align="center" onmousemove="javascript:this.bgColor='#fbfce2';" onmouseout="javascript:this.bgColor='#ffffff';"> | ||||
<td><input type="checkbox" name="mid" id="mid" value="{dede:field.mid/}"></td> | <td><input type="checkbox" name="mid" id="mid" value="{dede:field.mid/}"></td> | ||||
<td>{dede:field.mid/}</td> | <td>{dede:field.mid/}</td> | ||||
<td> | |||||
<td align="left"> | |||||
<?php | <?php | ||||
if (!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img'>";}; | if (!empty($fields['face'])) {echo "<img src='{$fields['face']}' class='user-img'>";}; | ||||
echo ''.$fields['userid'].''; | echo ''.$fields['userid'].''; | ||||
if ($fields['spacesta']==-2) echo "<span class='text-danger'>[禁言]</span>"; | |||||
if ($fields['spacesta']==-1) echo "<span class='text-danger'>[未审核]</span>"; | |||||
if ($fields['spacesta']==-2) echo " <span class='text-danger'>[禁言]</span>"; | |||||
if ($fields['spacesta']==-1) echo " <span class='text-danger'>[未审核]</span>"; | |||||
?> | ?> | ||||
{dede:field.matt function="GetMAtt(@me)"/} | {dede:field.matt function="GetMAtt(@me)"/} | ||||
</td> | </td> | ||||
<td>邮箱:{dede:field.email/} 昵称:{dede:field.uname/}</td> | |||||
<td>{dede:field.uname/}丨{dede:field.email/}</td> | |||||
<td>{dede:field.sex/}</td> | <td>{dede:field.sex/}</td> | ||||
<td><a href="member_main.php?rank={dede:field.rank/}">{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</a></td> | <td><a href="member_main.php?rank={dede:field.rank/}">{dede:field.rank function="GetMemberName(@me,'限制会员')"/}</a></td> | ||||
<td>{dede:field.mtype/}用户 金币:{dede:field.money/} 积分:{dede:field.scores/}</td> | |||||
<td>{dede:field.logintime function="MyDate('y-m-d H:i',@me)"/} {dede:field.loginip/}</td> | |||||
<td>{dede:field.mtype/}用户丨金币{dede:field.money/}丨积分{dede:field.scores/}</td> | |||||
<td>{dede:field.loginip/}丨{dede:field.logintime function="MyDate('y-m-d H:i',@me)"/}</td> | |||||
<td align="center"> | <td align="center"> | ||||
<a href="member_view.php?id={dede:field.mid/}" class="btn btn-success btn-sm">修改</a> | <a href="member_view.php?id={dede:field.mid/}" class="btn btn-success btn-sm">修改</a> | ||||
<a href="member_do.php?id={dede:field.mid/}&dopost=delmember" class="btn btn-danger btn-sm">删除</a> | <a href="member_do.php?id={dede:field.mid/}&dopost=delmember" class="btn btn-danger btn-sm">删除</a> | ||||
@@ -79,10 +79,10 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="biz-td">负责频道:</td> | |||||
<td class="biz-td">负责栏目:</td> | |||||
<td class="biz-td"> | <td class="biz-td"> | ||||
<select name="typeids[]" id="typeid" multiple="true" class="biz-input-md" style="height:200px"> | <select name="typeids[]" id="typeid" multiple="true" class="biz-input-md" style="height:200px"> | ||||
<option value="0" class='alltype'>所有频道</option> | |||||
<option value="0" class='alltype'>所有栏目</option> | |||||
<?php echo $typeOptions?> | <?php echo $typeOptions?> | ||||
</select>(按Ctrl可以进行多选) | </select>(按Ctrl可以进行多选) | ||||
</td> | </td> | ||||
@@ -43,23 +43,23 @@ | |||||
<td bgcolor="#f5f5f5" colspan="2"><a href="mychannel_main.php">内容模型管理</a> > 新增内容模型</td> | <td bgcolor="#f5f5f5" colspan="2"><a href="mychannel_main.php">内容模型管理</a> > 新增内容模型</td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="30%">频道id<br> | |||||
<td width="30%">栏目id<br> | |||||
<span id='help1'>数字,创建后不可修改,并具有唯一性</span></td> | <span id='help1'>数字,创建后不可修改,并具有唯一性</span></td> | ||||
<td width="70%"><input type="text" name="id" id="id" size="10" value="<?php echo $newid;?>"> *</td> | <td width="70%"><input type="text" name="id" id="id" size="10" value="<?php echo $newid;?>"> *</td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>名字标识<br> | <td>名字标识<br> | ||||
<span id="help2">与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,频道默认文档模板是“default/article_名字标识.htm”,列表模板、封面模板类推 </span></td> | |||||
<span id="help2">与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,栏目默认文档模板是“default/article_名字标识.htm”,列表模板、封面模板类推 </span></td> | |||||
<td><input type="text" name="nid" id="nid" value="ch<?php echo $newid;?>"> *</td> | <td><input type="text" name="nid" id="nid" value="ch<?php echo $newid;?>"> *</td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>频道名称<br> | |||||
<span id="help3">频道的中文名称,在后台管理,前台发布等均使用此名字</span></td> | |||||
<td><input type="text" name="typename" id="typename" value="频道<?php echo $newid;?>"> *</td> | |||||
<td>栏目名称<br> | |||||
<span id="help3">栏目的中文名称,在后台管理,前台发布等均使用此名字</span></td> | |||||
<td><input type="text" name="typename" id="typename" value="栏目<?php echo $newid;?>"> *</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>附加表<br> | <td>附加表<br> | ||||
<span id="help4">频道除主表以外其它自定义类型数据存放数据的表,如果您不使用主表关连的各种特性(推荐、会员权限等),也可以使用完全以附加表作为存储数据</span></td> | |||||
<span id="help4">栏目除主表以外其它自定义类型数据存放数据的表,如果您不使用主表关连的各种特性(推荐、会员权限等),也可以使用完全以附加表作为存储数据</span></td> | |||||
<td> | <td> | ||||
<input type="text" name="addtable" id="addtable" value="<?php echo $cfg_dbprefix,'addon',$newid;?>"> 必须由英文、数字、下划线组成 * | <input type="text" name="addtable" id="addtable" value="<?php echo $cfg_dbprefix,'addon',$newid;?>"> 必须由英文、数字、下划线组成 * | ||||
<label><input type="checkbox" name="isdel" id="isdel" value="1"> 删除已有表</label> | <label><input type="checkbox" name="isdel" id="isdel" value="1"> 删除已有表</label> | ||||
@@ -46,7 +46,7 @@ | |||||
<table width="98%" id='needset' cellpadding="3" cellspacing="1" align="center" class="table maintable"> | <table width="98%" id='needset' cellpadding="3" cellspacing="1" align="center" class="table maintable"> | ||||
<?php if ($row['issystem'] == 1){?> | <?php if ($row['issystem'] == 1){?> | ||||
<tr> | <tr> | ||||
<td colspan="2" class="border-top-0"><div class="alert alert-danger mb-0">您目前所展开的是系统模型,系统模型一般对发布程序和管理程序已经固化,如果您胡乱修改系统模型将会导致使用这种内容类型的频道可能崩溃</div></td> | |||||
<td colspan="2" class="border-top-0"><div class="alert alert-danger mb-0">您目前所展开的是系统模型,系统模型一般对发布程序和管理程序已经固化,如果您胡乱修改系统模型将会导致使用这种内容类型的栏目可能崩溃</div></td> | |||||
</tr> | </tr> | ||||
<?php }?> | <?php }?> | ||||
<tr> | <tr> | ||||
@@ -62,22 +62,22 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="30%">频道id<br> | |||||
<td width="30%">栏目id<br> | |||||
<span class="style2" id='help1'>数字,创建后不可修改,并具有唯一性</span></td> | <span class="style2" id='help1'>数字,创建后不可修改,并具有唯一性</span></td> | ||||
<td width="70%"><?php echo $row['id'];?></td> | <td width="70%"><?php echo $row['id'];?></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>名字标识<br> | <td>名字标识<br> | ||||
<span class="style2" id="help2">与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,频道默认文档模板是“default/article_名字标识.htm”,列表模板、封面模板类推 </span></td> | |||||
<span class="style2" id="help2">与文档的模板相关连,建议由英文、数字或下划线组成,因为部份Unix系统无法识别中文文件,栏目默认文档模板是“default/article_名字标识.htm”,列表模板、封面模板类推 </span></td> | |||||
<td><?php echo $row['nid'];?></td> | <td><?php echo $row['nid'];?></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>频道名称<br><span class="style2" id="help3">频道的中文名称,在后台管理,前台发布等均使用此名字</span></td> | |||||
<td>栏目名称<br><span class="style2" id="help3">栏目的中文名称,在后台管理,前台发布等均使用此名字</span></td> | |||||
<td><input type="text" name="typename" id="typename" value="<?php echo $row['typename'];?>"></td> | <td><input type="text" name="typename" id="typename" value="<?php echo $row['typename'];?>"></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>附加表<br> | <td>附加表<br> | ||||
<span class="style2" id="help4">频道除主表以外其它自定义类型数据存放数据的表,如果您不使用主表关连的各种特性(推荐、会员权限等),也可以使用完全以附加表作为存储数据</span></td> | |||||
<span class="style2" id="help4">栏目除主表以外其它自定义类型数据存放数据的表,如果您不使用主表关连的各种特性(推荐、会员权限等),也可以使用完全以附加表作为存储数据</span></td> | |||||
<td><input type="text" name="addtable" id="addtable" value="<?php echo $row['addtable'];?>">(#@__ 是表示数据表前缀)</td> | <td><input type="text" name="addtable" id="addtable" value="<?php echo $row['addtable'];?>">(#@__ 是表示数据表前缀)</td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -27,7 +27,7 @@ | |||||
</tr> | </tr> | ||||
<tr bgcolor="#fbfce2" align="center"> | <tr bgcolor="#fbfce2" align="center"> | ||||
<td width="6%">id</td> | <td width="6%">id</td> | ||||
<td width="16%">频道名称</td> | |||||
<td width="16%">栏目名称</td> | |||||
<td width="12%">识别id</td> | <td width="12%">识别id</td> | ||||
<td width="20%">附加表</td> | <td width="20%">附加表</td> | ||||
<td width="12%">状态</td> | <td width="12%">状态</td> | ||||
@@ -25,11 +25,11 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="260">频道id:</td> | |||||
<td width="260">栏目id:</td> | |||||
<td><?php echo $mid;?></td> | <td><?php echo $mid;?></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>频道名称:<br></td> | |||||
<td>栏目名称:<br></td> | |||||
<td><?php echo $channel['typename']?></td> | <td><?php echo $channel['typename']?></td> | ||||
</tr> | </tr> | ||||
<?php | <?php | ||||
@@ -86,10 +86,10 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>限定频道: | |||||
<td>限定栏目: | |||||
<?php | <?php | ||||
echo "<select name='channel' class='biz-input-sm'>"; | echo "<select name='channel' class='biz-input-sm'>"; | ||||
echo "<option value='0' selected>不限频道</option>"; | |||||
echo "<option value='0' selected>不限栏目</option>"; | |||||
$tl->dsql->SetQuery("Select id,typename From `#@__channeltype` where id>0"); | $tl->dsql->SetQuery("Select id,typename From `#@__channeltype` where id>0"); | ||||
$tl->dsql->Execute(); | $tl->dsql->Execute(); | ||||
while($row = $tl->dsql->GetObject()) | while($row = $tl->dsql->GetObject()) | ||||
@@ -329,7 +329,7 @@ | |||||
} | } | ||||
?> | ?> | ||||
</select> | </select> | ||||
<a href="soft_config.php" class="btn btn-success btn-sm">软件频道设置</a> | |||||
<a href="soft_config.php" class="btn btn-success btn-sm">软件栏目设置</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -3,7 +3,7 @@ | |||||
<head> | <head> | ||||
<meta charset="<?php echo $cfg_soft_lang;?>"> | <meta charset="<?php echo $cfg_soft_lang;?>"> | ||||
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"> | ||||
<title>软件频道设置</title> | |||||
<title>软件栏目设置</title> | |||||
<link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | <link rel="stylesheet" href="../static/web/font/css/font-awesome.min.css"> | ||||
<link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | <link rel="stylesheet" href="../static/web/css/bootstrap.min.css"> | ||||
<link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
@@ -24,7 +24,7 @@ | |||||
<form name="form1" action="soft_config.php" method="post"> | <form name="form1" action="soft_config.php" method="post"> | ||||
<input type="hidden" name="dopost" value="save"> | <input type="hidden" name="dopost" value="save"> | ||||
<tr> | <tr> | ||||
<td bgcolor="#f5f5f5" colspan="2">软件频道设置</td> | |||||
<td bgcolor="#f5f5f5" colspan="2">软件栏目设置</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="260">链接显示方式:</td> | <td width="260">链接显示方式:</td> | ||||
@@ -321,7 +321,7 @@ | |||||
} | } | ||||
?> | ?> | ||||
</select> | </select> | ||||
<a href="soft_config.php" class="btn btn-success btn-sm">软件频道设置</a> | |||||
<a href="soft_config.php" class="btn btn-success btn-sm">软件栏目设置</a> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
</table> | </table> | ||||
@@ -31,15 +31,15 @@ | |||||
<tr bgcolor="#fbfce2"> | <tr bgcolor="#fbfce2"> | ||||
<td width="6%" align="center">id</td> | <td width="6%" align="center">id</td> | ||||
<td width="20%" align="center">名称</td> | <td width="20%" align="center">名称</td> | ||||
<td width="30%" align="center">时间</td> | |||||
<td width="20%" align="center">频道</td> | |||||
<td width="30%" align="center">地址时间</td> | |||||
<td width="20%" align="center">栏目</td> | |||||
<td align="center">管理项</td> | <td align="center">管理项</td> | ||||
</tr> | </tr> | ||||
{dede:datalist empty='<tr><td colspan="5"><center>暂无内容</center></td></tr>'} | {dede:datalist empty='<tr><td colspan="5"><center>暂无内容</center></td></tr>'} | ||||
<tr align="center"> | <tr align="center"> | ||||
<td>{dede:field.userid/}</td> | <td>{dede:field.userid/}</td> | ||||
<td>{dede:field.uname/}{dede:field.usertype function="GetUserType(@me)"/}</td> | <td>{dede:field.uname/}{dede:field.usertype function="GetUserType(@me)"/}</td> | ||||
<td>登录时间:{dede:field.logintime function="GetDateTimeMk(@me)"/} 登录ip:{dede:field.loginip/}</td> | |||||
<td>{dede:field.loginip/}丨{dede:field.logintime function="GetDateTimeMk(@me)"/}</td> | |||||
<td>{dede:field.typename function="GetChannel(@me)"/}</td> | <td>{dede:field.typename function="GetChannel(@me)"/}</td> | ||||
<td> | <td> | ||||
<a href="sys_admin_user_edit.php?id={dede:field.id/}&dopost=edit" class="btn btn-success btn-sm">修改</a> | <a href="sys_admin_user_edit.php?id={dede:field.id/}&dopost=edit" class="btn btn-success btn-sm">修改</a> | ||||
@@ -81,7 +81,7 @@ | |||||
<td class="biz-td">授权栏目:</td> | <td class="biz-td">授权栏目:</td> | ||||
<td class="biz-td"> | <td class="biz-td"> | ||||
<select name="typeids[]" id="typeid" multiple="true" class="biz-input-md" style="height:200px"> | <select name="typeids[]" id="typeid" multiple="true" class="biz-input-md" style="height:200px"> | ||||
<option value="0" class="alltype" selected>所有频道</option> | |||||
<option value="0" class="alltype" selected>所有栏目</option> | |||||
<?php echo $typeOptions?> | <?php echo $typeOptions?> | ||||
</select>(按Ctrl可以进行多选) | </select>(按Ctrl可以进行多选) | ||||
</td> | </td> | ||||
@@ -56,10 +56,10 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td class="biz-td">负责频道:</td> | |||||
<td class="biz-td">负责栏目:</td> | |||||
<td class="biz-td"> | <td class="biz-td"> | ||||
<select name="typeids[]" id="typeid" multiple="true" class="biz-input-md" style="height:200px"> | <select name="typeids[]" id="typeid" multiple="true" class="biz-input-md" style="height:200px"> | ||||
<option value="0" class="alltype">所有频道</option> | |||||
<option value="0" class="alltype">所有栏目</option> | |||||
<?php echo $typeOptions?> | <?php echo $typeOptions?> | ||||
</select>(按Ctrl可以进行多选) | </select>(按Ctrl可以进行多选) | ||||
</td> | </td> | ||||
@@ -21,7 +21,7 @@ $format = isset($format) ? $format : ""; | |||||
$maintable = '#@__archives'; | $maintable = '#@__archives'; | ||||
$idtype = 'id'; | $idtype = 'id'; | ||||
if ($aid == 0) exit(); | if ($aid == 0) exit(); | ||||
//获得频道模型id | |||||
//获得栏目模型id | |||||
if ($cid < 0) { | if ($cid < 0) { | ||||
$row = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='$cid' AND issystem='-1';"); | $row = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='$cid' AND issystem='-1';"); | ||||
$maintable = empty($row['addtable']) ? '' : $row['addtable']; | $maintable = empty($row['addtable']) ? '' : $row['addtable']; | ||||
@@ -19,7 +19,7 @@ if ($id < 1) { | |||||
} | } | ||||
$idtype = 'id'; | $idtype = 'id'; | ||||
$maintable = '#@__archives'; | $maintable = '#@__archives'; | ||||
//获得频道模型id | |||||
//获得栏目模型id | |||||
if ($cid < 0) { | if ($cid < 0) { | ||||
$row = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='$cid' AND issystem='-1';"); | $row = $dsql->GetOne("SELECT addtable FROM `#@__channeltype` WHERE id='$cid' AND issystem='-1';"); | ||||
$maintable = empty($row['addtable']) ? '' : $row['addtable']; | $maintable = empty($row['addtable']) ? '' : $row['addtable']; | ||||
@@ -1,6 +1,6 @@ | |||||
<?php | <?php | ||||
/** | /** | ||||
* 栏目列表和频道动态页 | |||||
* 栏目列表和栏目动态页 | |||||
* | * | ||||
* @version $id:list.php$ | * @version $id:list.php$ | ||||
* @package DedeBIZ.Site | * @package DedeBIZ.Site | ||||
@@ -14,7 +14,7 @@ $tid = (isset($tid) && is_numeric($tid) ? $tid : 0); | |||||
$channelid = (isset($channelid) && is_numeric($channelid) ? $channelid : 0); | $channelid = (isset($channelid) && is_numeric($channelid) ? $channelid : 0); | ||||
if ($tid == 0 && $channelid == 0) die("dedebiz"); | if ($tid == 0 && $channelid == 0) die("dedebiz"); | ||||
if (isset($TotalResult)) $TotalResult = intval(preg_replace("/[^\d]/", '', $TotalResult)); | if (isset($TotalResult)) $TotalResult = intval(preg_replace("/[^\d]/", '', $TotalResult)); | ||||
//如果指定了内容模型id但没有指定栏目id,那么自动获得为这个内容模型的第一个顶级栏目作为频道默认栏目 | |||||
//如果指定了内容模型id但没有指定栏目id,那么自动获得为这个内容模型的第一个顶级栏目作为栏目默认栏目 | |||||
if (!empty($channelid) && empty($tid)) { | if (!empty($channelid) && empty($tid)) { | ||||
$tinfos = $dsql->GetOne("SELECT tp.id,ch.issystem FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.channeltype='$channelid' And tp.reid=0 order by sortrank asc"); | $tinfos = $dsql->GetOne("SELECT tp.id,ch.issystem FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch ON ch.id=tp.channeltype WHERE tp.channeltype='$channelid' And tp.reid=0 order by sortrank asc"); | ||||
if (!is_array($tinfos)) die(" No catalogs in the channel! "); | if (!is_array($tinfos)) die(" No catalogs in the channel! "); | ||||
@@ -1,5 +1,5 @@ | |||||
INSERT INTO `#@__admintype` VALUES ('1','信息发布员','1','t_AccList a_AccNew a_AccList a_MyList a_MyEdit a_MyDel sys_MdPwd sys_Feedback sys_MyUpload plus_留言簿模块 '), | INSERT INTO `#@__admintype` VALUES ('1','信息发布员','1','t_AccList a_AccNew a_AccList a_MyList a_MyEdit a_MyDel sys_MdPwd sys_Feedback sys_MyUpload plus_留言簿模块 '), | ||||
('5','频道管理员','1','t_AccList t_AccNew t_AccEdit t_AccDel a_AccNew a_AccList a_AccEdit a_AccDel a_AccCheck a_MyList a_MyEdit a_MyDel a_MyCheck spec_New spec_List spec_Edit sys_MdPwd sys_Log sys_ArcTj sys_Source sys_Writer sys_Keyword sys_MakeHtml sys_Feedback sys_Upload sys_MyUpload member_List member_Edit plus_站内新闻发布 plus_友情链接模块 plus_留言簿模块 plus_投票模块 plus_广告管理 '), | |||||
('5','栏目管理员','1','t_AccList t_AccNew t_AccEdit t_AccDel a_AccNew a_AccList a_AccEdit a_AccDel a_AccCheck a_MyList a_MyEdit a_MyDel a_MyCheck spec_New spec_List spec_Edit sys_MdPwd sys_Log sys_ArcTj sys_Source sys_Writer sys_Keyword sys_MakeHtml sys_Feedback sys_Upload sys_MyUpload member_List member_Edit plus_站内新闻发布 plus_友情链接模块 plus_留言簿模块 plus_投票模块 plus_广告管理 '), | |||||
('10','超级管理员','1','admin_AllowAll '); | ('10','超级管理员','1','admin_AllowAll '); | ||||
INSERT INTO `#@__arcatt` VALUES ('1','h','头条'), | INSERT INTO `#@__arcatt` VALUES ('1','h','头条'), | ||||
@@ -506,7 +506,7 @@ INSERT INTO `#@__channeltype` VALUES ('1','article','文档模型','#@__archives | |||||
('2','image','图片模型','#@__archives','#@__addonimages','album_add.php','content_i_list.php','album_edit.php','album_add.php','content_list.php','album_edit.php','<field:pagestyle itemname="页面风格" type="number" isnull="true" default="2" rename="" notsend="1" />\t\n<field:imgurls itemname="图片集合" type="img" isnull="true" rename="" page="split" />\t\n<field:body itemname="图集内容" autofield="0" notsend="0" type="htmltext" isnull="true" islist="0" maxlength="250" page=""></field:body>','','','1','1','1','-1','','10','0','1','1','标题','0','0'), | ('2','image','图片模型','#@__archives','#@__addonimages','album_add.php','content_i_list.php','album_edit.php','album_add.php','content_list.php','album_edit.php','<field:pagestyle itemname="页面风格" type="number" isnull="true" default="2" rename="" notsend="1" />\t\n<field:imgurls itemname="图片集合" type="img" isnull="true" rename="" page="split" />\t\n<field:body itemname="图集内容" autofield="0" notsend="0" type="htmltext" isnull="true" islist="0" maxlength="250" page=""></field:body>','','','1','1','1','-1','','10','0','1','1','标题','0','0'), | ||||
('3','soft','软件模型','#@__archives','#@__addonsoft','soft_add.php','content_i_list.php','soft_edit.php','','','','<field:filetype islist="1" itemname="文件类型" type="text" isnull="true" rename="" />\t\n<field:language islist="1" itemname="语言" type="text" isnull="true" rename="" />\t\n<field:softtype islist="1" itemname="软件类型" type="text" isnull="true" rename="" />\t\n<field:accredit islist="1" itemname="授权方式" type="text" isnull="true" rename="" />\t\n<field:os islist="1" itemname="操作系统" type="text" isnull="true" rename="" />\t\n<field:softrank islist="1" itemname="软件等级" type="int" isnull="true" default="3" rename="" function="GetRankStar(@me)" notsend="1" />\t\n<field:officialUrl itemname="官方网址" type="text" isnull="true" rename="" />\t\n<field:officialDemo itemname="演示网址" type="text" isnull="true" rename="" />\t\n<field:softsize itemname="软件大小" type="text" isnull="true" rename="" />\t\n<field:softlinks itemname="软件地址" type="softlinks" isnull="true" rename="" />\t\n<field:introduce itemname="详细介绍" type="htmltext" isnull="trnue" rename="" />\t\n<field:daccess islist="1" itemname="下载级别" type="int" isnull="true" default="0" rename="" function="" notsend="1" />\t\n<field:needmoney islist="1" itemname="需要金币" type="int" isnull="true" default="0" rename="" function="" notsend="1" />','filetype,language,softtype,os,accredit,softrank','','1','1','1','-1','','10','0','1','1','标题','0','0'), | ('3','soft','软件模型','#@__archives','#@__addonsoft','soft_add.php','content_i_list.php','soft_edit.php','','','','<field:filetype islist="1" itemname="文件类型" type="text" isnull="true" rename="" />\t\n<field:language islist="1" itemname="语言" type="text" isnull="true" rename="" />\t\n<field:softtype islist="1" itemname="软件类型" type="text" isnull="true" rename="" />\t\n<field:accredit islist="1" itemname="授权方式" type="text" isnull="true" rename="" />\t\n<field:os islist="1" itemname="操作系统" type="text" isnull="true" rename="" />\t\n<field:softrank islist="1" itemname="软件等级" type="int" isnull="true" default="3" rename="" function="GetRankStar(@me)" notsend="1" />\t\n<field:officialUrl itemname="官方网址" type="text" isnull="true" rename="" />\t\n<field:officialDemo itemname="演示网址" type="text" isnull="true" rename="" />\t\n<field:softsize itemname="软件大小" type="text" isnull="true" rename="" />\t\n<field:softlinks itemname="软件地址" type="softlinks" isnull="true" rename="" />\t\n<field:introduce itemname="详细介绍" type="htmltext" isnull="trnue" rename="" />\t\n<field:daccess islist="1" itemname="下载级别" type="int" isnull="true" default="0" rename="" function="" notsend="1" />\t\n<field:needmoney islist="1" itemname="需要金币" type="int" isnull="true" default="0" rename="" function="" notsend="1" />','filetype,language,softtype,os,accredit,softrank','','1','1','1','-1','','10','0','1','1','标题','0','0'), | ||||
('-1','spec','专题模型','#@__archives','#@__addonspec','spec_add.php','content_s_list.php','spec_edit.php','','','','<field:note type="specialtopic" isnull="true" rename="" />','','','1','1','0','-1','','10','0','1','1','标题','0','0'), | ('-1','spec','专题模型','#@__archives','#@__addonspec','spec_add.php','content_s_list.php','spec_edit.php','','','','<field:note type="specialtopic" isnull="true" rename="" />','','','1','1','0','-1','','10','0','1','1','标题','0','0'), | ||||
('-8','infos','分类模型','#@__archives','#@__addoninfos','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','<field:channel itemname="频道id" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:channel>\t\n<field:arcrank itemname="浏览权限" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="5" page=""></field:arcrank>\t\n<field:mid itemname="会员id" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:mid>\t\n<field:click itemname="点击" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:click>\t\n<field:title itemname="标题" autofield="0" notsend="0" type="text" isnull="true" islist="1" default="0" maxlength="60" page=""></field:title>\t\n<field:senddate itemname="发布时间" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:senddate>\t\n<field:flag itemname="推荐属性" autofield="0" notsend="0" type="checkbox" isnull="true" islist="1" default="0" maxlength="10" page=""></field:flag>\t\n<field:litpic itemname="缩略图" autofield="0" notsend="0" type="text" isnull="true" islist="1" default="0" maxlength="60" page=""></field:litpic>\t\n<field:userip itemname="会员IP" autofield="0" notsend="0" type="text" isnull="true" islist="0" default="0" maxlength="15" page=""></field:userip>\t\n<field:lastpost itemname="最后评论时间" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:lastpost>\t\n<field:scores itemname="评论积分" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:scores>\t\n<field:goodpost itemname="好评数" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:goodpost>\t\n<field:badpost itemname="差评数" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:badpost>\t\n<field:nativeplace itemname="地区" autofield="1" notsend="0" type="stepselect" isnull="true" islist="1" default="0" maxlength="250" page="">\t\n</field:nativeplace>\t\n<field:infotype itemname="信息类型" autofield="1" notsend="0" type="stepselect" isnull="true" islist="1" default="0" maxlength="250" page="">\t\n</field:infotype>\t\n<field:body itemname="信息内容" autofield="1" notsend="0" type="htmltext" isnull="true" islist="0" maxlength="250" page="">\t\n</field:body>\t\n<field:endtime itemname="截止日期" autofield="1" notsend="0" type="datetime" isnull="true" islist="1" maxlength="250" page="">\t\n</field:endtime>\t\n<field:linkman itemname="联系人" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:linkman>\t\n<field:tel itemname="联系电话" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:tel>\t\n<field:email itemname="电子邮箱" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:email>\t\n<field:address itemname="地址" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="100" page="">\t\n</field:address>\t\n','channel,arcrank,mid,click,title,senddate,flag,litpic,lastpost,scores,goodpost,badpost,nativeplace,infotype,endtime','','-1','1','1','-1','','0','0','0','1','信息标题','0','0'); | |||||
('-8','infos','分类模型','#@__archives','#@__addoninfos','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','archives_sg_add.php','content_sg_list.php','archives_sg_edit.php','<field:channel itemname="栏目id" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:channel>\t\n<field:arcrank itemname="浏览权限" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="5" page=""></field:arcrank>\t\n<field:mid itemname="会员id" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:mid>\t\n<field:click itemname="点击" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:click>\t\n<field:title itemname="标题" autofield="0" notsend="0" type="text" isnull="true" islist="1" default="0" maxlength="60" page=""></field:title>\t\n<field:senddate itemname="发布时间" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:senddate>\t\n<field:flag itemname="推荐属性" autofield="0" notsend="0" type="checkbox" isnull="true" islist="1" default="0" maxlength="10" page=""></field:flag>\t\n<field:litpic itemname="缩略图" autofield="0" notsend="0" type="text" isnull="true" islist="1" default="0" maxlength="60" page=""></field:litpic>\t\n<field:userip itemname="会员IP" autofield="0" notsend="0" type="text" isnull="true" islist="0" default="0" maxlength="15" page=""></field:userip>\t\n<field:lastpost itemname="最后评论时间" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="10" page=""></field:lastpost>\t\n<field:scores itemname="评论积分" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:scores>\t\n<field:goodpost itemname="好评数" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:goodpost>\t\n<field:badpost itemname="差评数" autofield="0" notsend="0" type="int" isnull="true" islist="1" default="0" maxlength="8" page=""></field:badpost>\t\n<field:nativeplace itemname="地区" autofield="1" notsend="0" type="stepselect" isnull="true" islist="1" default="0" maxlength="250" page="">\t\n</field:nativeplace>\t\n<field:infotype itemname="信息类型" autofield="1" notsend="0" type="stepselect" isnull="true" islist="1" default="0" maxlength="250" page="">\t\n</field:infotype>\t\n<field:body itemname="信息内容" autofield="1" notsend="0" type="htmltext" isnull="true" islist="0" maxlength="250" page="">\t\n</field:body>\t\n<field:endtime itemname="截止日期" autofield="1" notsend="0" type="datetime" isnull="true" islist="1" maxlength="250" page="">\t\n</field:endtime>\t\n<field:linkman itemname="联系人" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:linkman>\t\n<field:tel itemname="联系电话" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:tel>\t\n<field:email itemname="电子邮箱" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="50" page="">\t\n</field:email>\t\n<field:address itemname="地址" autofield="1" notsend="0" type="text" isnull="true" islist="0" maxlength="100" page="">\t\n</field:address>\t\n','channel,arcrank,mid,click,title,senddate,flag,litpic,lastpost,scores,goodpost,badpost,nativeplace,infotype,endtime','','-1','1','1','-1','','0','0','0','1','信息标题','0','0'); | |||||
INSERT INTO `#@__co_onepage` VALUES ('5','www.dedebiz.com','DedeBIZ','1','gb2312','<div class="content">{@body}<div class="cupage">'), | INSERT INTO `#@__co_onepage` VALUES ('5','www.dedebiz.com','DedeBIZ','1','gb2312','<div class="content">{@body}<div class="cupage">'), | ||||
('4','www.techweb.com.cn','Techweb','1','gb2312','<div class="content_txt">{@body}</div>\t\n'), | ('4','www.techweb.com.cn','Techweb','1','gb2312','<div class="content_txt">{@body}</div>\t\n'), | ||||
@@ -4051,7 +4051,7 @@ INSERT INTO `#@__sysconfig` VALUES ('1','cfg_basehost','站点网址','1','strin | |||||
('115','cfg_addon_domain','附件目录的二级域名','7','string',''), | ('115','cfg_addon_domain','附件目录的二级域名','7','string',''), | ||||
('116','cfg_df_dutyadmin','默认责任编辑名称','7','string','网站管理员'), | ('116','cfg_df_dutyadmin','默认责任编辑名称','7','string','网站管理员'), | ||||
('117','cfg_mb_allowncarc','是否允许用户空间显示未审核文档','4','bool','Y'), | ('117','cfg_mb_allowncarc','是否允许用户空间显示未审核文档','4','bool','Y'), | ||||
('118','cfg_mb_spaceallarc','会员空间中所有文档的频道ID(不限为0)','4','number','0'), | |||||
('118','cfg_mb_spaceallarc','会员空间中所有文档的栏目ID(不限为0)','4','number','0'), | |||||
('119','cfg_face_adds','上传头像增加积分','5','number','10'), | ('119','cfg_face_adds','上传头像增加积分','5','number','10'), | ||||
('120','cfg_moreinfo_adds','填写详细资料增加积分','5','number','20'), | ('120','cfg_moreinfo_adds','填写详细资料增加积分','5','number','20'), | ||||
('121','cfg_money_scores','多少积分可以兑换一个金币','5','number','50'), | ('121','cfg_money_scores','多少积分可以兑换一个金币','5','number','50'), | ||||
@@ -60,7 +60,7 @@ class FreeList | |||||
/* | /* | ||||
if (empty($channelid)) | if (empty($channelid)) | ||||
{ | { | ||||
showmsg('必须指定频道','-1');exit(); | |||||
showmsg('必须指定栏目','-1');exit(); | |||||
} else { | } else { | ||||
$channelid = intval($channelid); | $channelid = intval($channelid); | ||||
$channelinfo = $this->dsql->getone("select maintable from #@__channeltype WHERE id='$channelid'"); | $channelinfo = $this->dsql->getone("select maintable from #@__channeltype WHERE id='$channelid'"); | ||||
@@ -144,7 +144,7 @@ class FreeList | |||||
$flags = explode(',', $att); | $flags = explode(',', $att); | ||||
for ($i = 0; isset($flags[$i]); $i++) $addSql .= " AND FIND_IN_SET('{$flags[$i]}',flag)>0 "; | for ($i = 0; isset($flags[$i]); $i++) $addSql .= " AND FIND_IN_SET('{$flags[$i]}',flag)>0 "; | ||||
} | } | ||||
//文档的频道模型 | |||||
//文档的栏目模型 | |||||
if ($channelid > 0 && !preg_match("#spec#i", $listtype)) { | if ($channelid > 0 && !preg_match("#spec#i", $listtype)) { | ||||
$addSql .= " AND channel = '$channelid' "; | $addSql .= " AND channel = '$channelid' "; | ||||
} | } | ||||
@@ -425,7 +425,7 @@ class FreeList | |||||
$flags = explode(',', $att); | $flags = explode(',', $att); | ||||
for ($i = 0; isset($flags[$i]); $i++) $orwhere .= " AND FIND_IN_SET('{$flags[$i]}',flag)>0 "; | for ($i = 0; isset($flags[$i]); $i++) $orwhere .= " AND FIND_IN_SET('{$flags[$i]}',flag)>0 "; | ||||
} | } | ||||
//文档的频道模型 | |||||
//文档的栏目模型 | |||||
if ($channelid > 0 && !preg_match("#spec#i", $listtype)) { | if ($channelid > 0 && !preg_match("#spec#i", $listtype)) { | ||||
$orwhere .= " AND arc.channel = '$channelid' "; | $orwhere .= " AND arc.channel = '$channelid' "; | ||||
} | } | ||||
@@ -57,7 +57,7 @@ class SearchView | |||||
* @param int $typeid 栏目id | * @param int $typeid 栏目id | ||||
* @param string $keyword 关键词 | * @param string $keyword 关键词 | ||||
* @param string $orderby 排序 | * @param string $orderby 排序 | ||||
* @param string $achanneltype 频道类型 | |||||
* @param string $achanneltype 栏目类型 | |||||
* @param string $searchtype 搜索类型 | * @param string $searchtype 搜索类型 | ||||
* @param string $starttime 开始时间 | * @param string $starttime 开始时间 | ||||
* @param string $upagesize 页数 | * @param string $upagesize 页数 | ||||
@@ -448,7 +448,7 @@ class SearchView | |||||
$this->dtp->Assign($tagid, ""); | $this->dtp->Assign($tagid, ""); | ||||
} | } | ||||
} else if ($tagname == "channel") { | } else if ($tagname == "channel") { | ||||
//下级频道列表 | |||||
//下级栏目列表 | |||||
if ($this->TypeID > 0) { | if ($this->TypeID > 0) { | ||||
$typeid = $this->TypeID; | $typeid = $this->TypeID; | ||||
$reid = $this->TypeLink->TypeInfos['reid']; | $reid = $this->TypeLink->TypeInfos['reid']; | ||||
@@ -611,7 +611,7 @@ class TagList | |||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 获得一个指定的频道的链接 | |||||
* 获得一个指定的栏目的链接 | |||||
* | * | ||||
* @access private | * @access private | ||||
* @param int $typeid 栏目id | * @param int $typeid 栏目id | ||||
@@ -1,7 +1,7 @@ | |||||
<?php | <?php | ||||
if (!defined('DEDEINC')) exit('dedebiz'); | if (!defined('DEDEINC')) exit('dedebiz'); | ||||
/** | /** | ||||
* 频道模型单元类 | |||||
* 栏目模型单元类 | |||||
* @version $id:channelunit.class.php 2 17:32 2010年7月6日 tianya $ | * @version $id:channelunit.class.php 2 17:32 2010年7月6日 tianya $ | ||||
* @package DedeBIZ.Libraries | * @package DedeBIZ.Libraries | ||||
* @copyright Copyright (c) 2022 DedeBIZ.COM | * @copyright Copyright (c) 2022 DedeBIZ.COM | ||||
@@ -35,7 +35,7 @@ class ChannelUnit | |||||
$sql = " SELECT * FROM `#@__channeltype` WHERE id='$cid' "; | $sql = " SELECT * FROM `#@__channeltype` WHERE id='$cid' "; | ||||
$this->ChannelInfos = $this->dsql->GetOne($sql); | $this->ChannelInfos = $this->dsql->GetOne($sql); | ||||
if (!is_array($this->ChannelInfos)) { | if (!is_array($this->ChannelInfos)) { | ||||
echo '读取频道信息失败,无法进行后续操作'; | |||||
echo '读取栏目信息失败,无法进行后续操作'; | |||||
exit(); | exit(); | ||||
} | } | ||||
$dtp = new DedeTagParse(); | $dtp = new DedeTagParse(); | ||||
@@ -99,7 +99,7 @@ function GetFormItem($ctag, $admintype = 'admin') | |||||
$innertext = GetEditor($fieldname, $dfvalue, 360, 'Member', 'string'); | $innertext = GetEditor($fieldname, $dfvalue, 360, 'Member', 'string'); | ||||
} | } | ||||
} else if ($fieldType == "multitext") { | } else if ($fieldType == "multitext") { | ||||
$innertext = "<textarea name='$fieldname' id='$fieldname' style='width:300px;height:50px' class='form-control'></textarea>"; | |||||
$innertext = "<textarea name='$fieldname' id='$fieldname' class='form-control biz-textarea-sm'></textarea>"; | |||||
} else if ($fieldType == "datetime") { | } else if ($fieldType == "datetime") { | ||||
$nowtime = GetDateTimeMk(time()); | $nowtime = GetDateTimeMk(time()); | ||||
$innertext = "<input name=\"$fieldname\" value=\"$nowtime\" type=\"text\" id=\"$fieldname\" style=\"width:260px\" class=\"form-control datepicker\"/>"; | $innertext = "<input name=\"$fieldname\" value=\"$nowtime\" type=\"text\" id=\"$fieldname\" style=\"width:260px\" class=\"form-control datepicker\"/>"; | ||||
@@ -107,30 +107,30 @@ function GetFormItem($ctag, $admintype = 'admin') | |||||
if ($admintype == 'diy') { | if ($admintype == 'diy') { | ||||
$innertext = "<input type='file' name='$fieldname' id='$fieldname' class='biz-input-md' />"; | $innertext = "<input type='file' name='$fieldname' id='$fieldname' class='biz-input-md' />"; | ||||
} else { | } else { | ||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-md' class='text' /> <input name='".$fieldname."_bt' type='button' class='inputbut' value='浏览' onClick=\"SelectImage('form1.$fieldname','big')\" />"; | |||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-md' /> <input name='".$fieldname."_bt' type='button' class='inputbut' value='浏览' onClick=\"SelectImage('form1.$fieldname','big')\" />"; | |||||
} | } | ||||
} else if ($fieldType == 'media') { | } else if ($fieldType == 'media') { | ||||
if ($admintype == 'diy') { | if ($admintype == 'diy') { | ||||
$innertext = "<input type='hidden' name='$fieldname' id='$fieldname' value='' /> 不支持的类型"; | $innertext = "<input type='hidden' name='$fieldname' id='$fieldname' value='' /> 不支持的类型"; | ||||
} else { | } else { | ||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-md' class='text' /> <input name='".$fieldname."_bt' type='button' class='inputbut' value='浏览' onClick=\"SelectMedia('form1.$fieldname')\" />"; | |||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-md' /> <input name='".$fieldname."_bt' type='button' class='inputbut' value='浏览' onClick=\"SelectMedia('form1.$fieldname')\" />"; | |||||
} | } | ||||
} else if ($fieldType == 'addon') { | } else if ($fieldType == 'addon') { | ||||
if ($admintype == 'diy') { | if ($admintype == 'diy') { | ||||
$innertext = "<input type='file' name='$fieldname' id='$fieldname' class='biz-input-md' />"; | $innertext = "<input type='file' name='$fieldname' id='$fieldname' class='biz-input-md' />"; | ||||
} else { | } else { | ||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-md' class='text' /> <input name='".$fieldname."_bt' type='button' class='inputbut' value='浏览' onClick=\"SelectSoft('form1.$fieldname')\" />"; | |||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-md' /> <input name='".$fieldname."_bt' type='button' class='inputbut' value='浏览' onClick=\"SelectSoft('form1.$fieldname')\" />"; | |||||
} | } | ||||
} else if ($fieldType == 'int' || $fieldType == 'float') { | } else if ($fieldType == 'int' || $fieldType == 'float') { | ||||
$dfvalue = ($ctag->GetAtt('default') != '' ? $ctag->GetAtt('default') : '0'); | $dfvalue = ($ctag->GetAtt('default') != '' ? $ctag->GetAtt('default') : '0'); | ||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-xs' class='form-control' value='$dfvalue' />(填写数值)"; | |||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='form-control biz-input-xs' value='$dfvalue' />(填写数值)"; | |||||
} else if ($fieldType == 'relation') { | } else if ($fieldType == 'relation') { | ||||
$dfvalue = ($ctag->GetAtt('default') != '' ? $ctag->GetAtt('default') : ''); | $dfvalue = ($ctag->GetAtt('default') != '' ? $ctag->GetAtt('default') : ''); | ||||
$channel = ($ctag->GetAtt('channel') == "") ? "1" : $ctag->GetAtt('channel'); | $channel = ($ctag->GetAtt('channel') == "") ? "1" : $ctag->GetAtt('channel'); | ||||
$innertext = "<textarea name='$fieldname' id='$fieldname' style='width:300px;height:50px'>$dfvalue</textarea><br> | |||||
$innertext = "<textarea name='$fieldname' id='$fieldname' class='form-control biz-textarea-sm'>$dfvalue</textarea><br> | |||||
<button type='button' class='btn btn-success btn-sm' onclick='SelectArcList(\"form1.$fieldname\", $channel);'>选择关联内容</button>"; | <button type='button' class='btn btn-success btn-sm' onclick='SelectArcList(\"form1.$fieldname\", $channel);'>选择关联内容</button>"; | ||||
if ($ctag->GetAtt('automake') == 1) { | if ($ctag->GetAtt('automake') == 1) { | ||||
$innertext .= "<input type='hidden' name='automake[$fieldname]' value=1>"; | |||||
$innertext .= "<input type='hidden' name='automake[$fieldname]' value='1'>"; | |||||
} | } | ||||
$innertext .= <<<EOT | $innertext .= <<<EOT | ||||
<script> | <script> | ||||
@@ -145,7 +145,7 @@ if (typeof SelectArcList === "undefined") { | |||||
EOT; | EOT; | ||||
} else { | } else { | ||||
$dfvalue = ($ctag->GetAtt('default') != '' ? $ctag->GetAtt('default') : ''); | $dfvalue = ($ctag->GetAtt('default') != '' ? $ctag->GetAtt('default') : ''); | ||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-md' class='form-control' value='$dfvalue' /> | |||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='form-control biz-input-md' value='$dfvalue' /> | |||||
"; | "; | ||||
} | } | ||||
$formitem = str_replace("~name~", $ctag->GetAtt('itemname'), $formitem); | $formitem = str_replace("~name~", $ctag->GetAtt('itemname'), $formitem); | ||||
@@ -370,7 +370,7 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') | |||||
if (in_array($v, $fvalues)) { | if (in_array($v, $fvalues)) { | ||||
$myformItem .= "<div class='form-check form-check-inline'><label class='form-check-label'><input type='checkbox' name='{$fieldname}[]' class='form-check-input' value='$v' checked='checked'> $v</label></div>"; | $myformItem .= "<div class='form-check form-check-inline'><label class='form-check-label'><input type='checkbox' name='{$fieldname}[]' class='form-check-input' value='$v' checked='checked'> $v</label></div>"; | ||||
} else { | } else { | ||||
$myformItem .= "<div class='form-check form-check-inline'> <label class='form-check-label'><input type='checkbox' name='{$fieldname}[]' class='form-check-input' value='$v'> $v</label></div>"; | |||||
$myformItem .= "<div class='form-check form-check-inline'><label class='form-check-label'><input type='checkbox' name='{$fieldname}[]' class='form-check-input' value='$v'> $v</label></div>"; | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -402,10 +402,10 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') | |||||
} | } | ||||
$innertext = $myformItem; | $innertext = $myformItem; | ||||
} else if ($ftype == "multitext") { | } else if ($ftype == "multitext") { | ||||
$innertext = "<textarea name='$fieldname' id='$fieldname' style='width:300px;height:50px' class='form-control'>$fvalue</textarea>"; | |||||
$innertext = "<textarea name='$fieldname' id='$fieldname' class='form-control biz-textarea-sm'>$fvalue</textarea>"; | |||||
} else if ($ftype == "datetime") { | } else if ($ftype == "datetime") { | ||||
$nowtime = GetDateTimeMk($fvalue); | $nowtime = GetDateTimeMk($fvalue); | ||||
$innertext = "<input name=\"$fieldname\" value=\"$nowtime\" type=\"text\" id=\"$fieldname\" style=\"width:260px\" class=\"form-control intxt datepicker\" />"; | |||||
$innertext = "<input name=\"$fieldname\" value=\"$nowtime\" type=\"text\" id=\"$fieldname\" class=\"form-control biz-input-md\" />"; | |||||
} else if ($ftype == "img") { | } else if ($ftype == "img") { | ||||
$ndtp = new DedeTagParse(); | $ndtp = new DedeTagParse(); | ||||
$ndtp->LoadSource($fvalue); | $ndtp->LoadSource($fvalue); | ||||
@@ -416,21 +416,21 @@ function GetFormItemValue($ctag, $fvalue, $admintype = 'admin', $fieldname = '') | |||||
$ntag = $ndtp->GetTag("img"); | $ntag = $ndtp->GetTag("img"); | ||||
$fvalue = trim($ntag->GetInnerText()); | $fvalue = trim($ntag->GetInnerText()); | ||||
} | } | ||||
$innertext = "<input type='text' name='$fieldname' value='$fvalue' id='$fieldname' class='biz-input-md' class='form-control intxt' /> <input name='".$fieldname."_bt' class='inputbut' type='button' value='浏览' onClick=\"SelectImage('form1.$fieldname','big')\" />"; | |||||
$innertext = "<input type='text' name='$fieldname' value='$fvalue' id='$fieldname' class='form-control biz-input-md' /> <input name='".$fieldname."_bt' class='inputbut' type='button' value='浏览' onClick=\"SelectImage('form1.$fieldname','big')\" />"; | |||||
} else if ($ftype == "imgfile") { | } else if ($ftype == "imgfile") { | ||||
$innertext = "<input type='text' name='$fieldname' value='$fvalue' id='$fieldname' class='biz-input-md' class='form-control intxt' /> <input name='".$fieldname."_bt' class='inputbut' type='button' value='浏览' onClick=\"SelectImage('form1.$fieldname','big')\" />"; | |||||
$innertext = "<input type='text' name='$fieldname' value='$fvalue' id='$fieldname' class='form-control biz-input-md' /> <input name='".$fieldname."_bt' class='inputbut' type='button' value='浏览' onClick=\"SelectImage('form1.$fieldname','big')\" />"; | |||||
} else if ($ftype == "media") { | } else if ($ftype == "media") { | ||||
$innertext = "<input type='text' name='$fieldname' value='$fvalue' id='$fieldname' class='biz-input-md' class='form-control intxt' /> <input name='".$fieldname."_bt' class='inputbut' type='button' value='浏览' onClick=\"SelectMedia('form1.$fieldname')\" />"; | |||||
$innertext = "<input type='text' name='$fieldname' value='$fvalue' id='$fieldname' class='form-control biz-input-md' /> <input name='".$fieldname."_bt' class='inputbut' type='button' value='浏览' onClick=\"SelectMedia('form1.$fieldname')\" />"; | |||||
} else if ($ftype == "addon") { | } else if ($ftype == "addon") { | ||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' value='$fvalue' class='biz-input-md' class='form-control intxt' /> <input name='".$fieldname."_bt' class='inputbut' type='button' value='浏览' onClick=\"SelectSoft('form1.$fieldname')\" />"; | |||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' value='$fvalue' class='form-control biz-input-md' /> <input name='".$fieldname."_bt' class='inputbut' type='button' value='浏览' onClick=\"SelectSoft('form1.$fieldname')\" />"; | |||||
} else if ($ftype == "int" || $ftype == "float") { | } else if ($ftype == "int" || $ftype == "float") { | ||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-xs' class='form-control intxt' value='$fvalue' />(填写数值)"; | |||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='form-control biz-input-xs' value='$fvalue' />(填写数值)"; | |||||
} else if ($ftype == "relation") { | } else if ($ftype == "relation") { | ||||
$channel = ($ctag->GetAtt('channel') == "") ? "1" : $ctag->GetAtt('channel'); | $channel = ($ctag->GetAtt('channel') == "") ? "1" : $ctag->GetAtt('channel'); | ||||
$innertext = "<textarea name='$fieldname' id='$fieldname' style='width:300px;height:50px' style='form-control'>$fvalue</textarea><br> | |||||
$innertext = "<textarea name='$fieldname' id='$fieldname' class='form-control biz-textarea-sm'>$fvalue</textarea><br> | |||||
<button type='button' class='btn btn-success btn-sm' onclick='SelectArcList(\"form1.$fieldname\", $channel);'>选择关联内容</button>"; | <button type='button' class='btn btn-success btn-sm' onclick='SelectArcList(\"form1.$fieldname\", $channel);'>选择关联内容</button>"; | ||||
if ($ctag->GetAtt('automake') == 1) { | if ($ctag->GetAtt('automake') == 1) { | ||||
$innertext .= "<input type='hidden' name='automake[$fieldname]' value=1>"; | |||||
$innertext .= "<input type='hidden' name='automake[$fieldname]' value='1'>"; | |||||
} | } | ||||
$innertext .= <<<EOT | $innertext .= <<<EOT | ||||
<script> | <script> | ||||
@@ -444,7 +444,7 @@ if (typeof SelectArcList === "undefined") { | |||||
</script> | </script> | ||||
EOT; | EOT; | ||||
} else { | } else { | ||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='biz-input-md' class='form-control intxt' value='$fvalue' />"; | |||||
$innertext = "<input type='text' name='$fieldname' id='$fieldname' class='form-control biz-input-md' value='$fvalue' />"; | |||||
} | } | ||||
$formitem = str_replace('~name~', $ctag->GetAtt('itemname'), $formitem); | $formitem = str_replace('~name~', $ctag->GetAtt('itemname'), $formitem); | ||||
$formitem = str_replace('~form~', $innertext, $formitem); | $formitem = str_replace('~form~', $innertext, $formitem); | ||||
@@ -465,7 +465,7 @@ class MemberLogin | |||||
$sta .= " 拥有金币:{$this->M_Money} 个,积分:{$this->M_Scores}分"; | $sta .= " 拥有金币:{$this->M_Money} 个,积分:{$this->M_Scores}分"; | ||||
return $sta; | return $sta; | ||||
} | } | ||||
//获取能够发布内容的频道 | |||||
//获取能够发布内容的栏目 | |||||
public static function GetEnabledChannels() { | public static function GetEnabledChannels() { | ||||
global $dsql; | global $dsql; | ||||
$result = array(); | $result = array(); | ||||
@@ -95,7 +95,7 @@ function lib_arclist(&$ctag, &$refObj) | |||||
* @param string $innertext 底层模板 | * @param string $innertext 底层模板 | ||||
* @param int $arcid 文档id | * @param int $arcid 文档id | ||||
* @param string $idlist ID列表 | * @param string $idlist ID列表 | ||||
* @param int $channelid 频道id | |||||
* @param int $channelid 栏目id | |||||
* @param string $limit 限制 | * @param string $limit 限制 | ||||
* @param string $att 属性 | * @param string $att 属性 | ||||
* @param string $order 排序类型 | * @param string $order 排序类型 | ||||
@@ -212,7 +212,7 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele | |||||
else $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).','.$CrossID.')'; | else $orwheres[] = ' arc.typeid IN ('.GetSonIds($typeid).','.$CrossID.')'; | ||||
} | } | ||||
} | } | ||||
//频道id | |||||
//栏目id | |||||
if (preg_match('#spec#i', $listtype)) $channelid == -1; | if (preg_match('#spec#i', $listtype)) $channelid == -1; | ||||
if (!empty($channelid)) $orwheres[] = " And arc.channel = '$channelid' "; | if (!empty($channelid)) $orwheres[] = " And arc.channel = '$channelid' "; | ||||
if (!empty($noflag)) { | if (!empty($noflag)) { | ||||
@@ -472,7 +472,7 @@ function GetArclistCache($md5hash) | |||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 获取自动频道id | |||||
* 获取自动栏目id | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $sortid | * @param string $sortid | ||||
@@ -104,7 +104,7 @@ function lib_arclistsg(&$ctag, &$refObj) | |||||
else $orwheres[] = ' typeid IN ('.GetSonIds($typeid).','.$CrossID.')'; | else $orwheres[] = ' typeid IN ('.GetSonIds($typeid).','.$CrossID.')'; | ||||
} | } | ||||
} | } | ||||
//频道id | |||||
//栏目id | |||||
if (!empty($channelid)) $orwheres[] = " AND arc.channel = '$channelid' "; | if (!empty($channelid)) $orwheres[] = " AND arc.channel = '$channelid' "; | ||||
//由于这个条件会导致缓存功能失去意义,因此取消 | //由于这个条件会导致缓存功能失去意义,因此取消 | ||||
//if ($arcid!=0) $orwheres[] = " arc.id<>'$arcid' "; | //if ($arcid!=0) $orwheres[] = " arc.id<>'$arcid' "; | ||||
@@ -1,7 +1,7 @@ | |||||
<?php | <?php | ||||
if (!defined('DEDEINC')) exit('dedebiz'); | if (!defined('DEDEINC')) exit('dedebiz'); | ||||
/** | /** | ||||
* 获取当前频道的下级栏目的内容列表标签 | |||||
* 获取当前栏目的下级栏目的内容列表标签 | |||||
* | * | ||||
* @version $id:channelartlist.lib.php 9:29 2010年7月6日 tianya $ | * @version $id:channelartlist.lib.php 9:29 2010年7月6日 tianya $ | ||||
* @package DedeBIZ.Taglib | * @package DedeBIZ.Taglib | ||||
@@ -1,4 +1,4 @@ | |||||
获得责任编辑名称 | 获得责任编辑名称 | ||||
>>dede>> | >>dede>> | ||||
{dede:adminname/} | {dede:adminname/} | ||||
>>dede>> | |||||
>>dede>> |
@@ -1,33 +1,34 @@ | |||||
文档列表调用标记 | 文档列表调用标记 | ||||
>>dede>> | >>dede>> | ||||
{dede:arclist flag='h' typeid='' row='' col='' titlelen='' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'} | |||||
<a href='[field:arcurl/]'>[field:title/]</a> | |||||
{dede:arclist typeid='' notypeid='' row='' col='' titlelen='' flag='h' infolen='' imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'} | |||||
<a href='[field:arcurl/]'>[field:title/]</a> | |||||
{/dede:arclist} | {/dede:arclist} | ||||
>>dede>> | >>dede>> | ||||
col='' 分多少列显示(默认为单列) | col='' 分多少列显示(默认为单列) | ||||
row='10' 返回文档列表总数 | row='10' 返回文档列表总数 | ||||
typeid='' 栏目id,在列表模板和文档模板中一般不需要指定,在封面模板中允许用英文逗号分开表示多个栏目; | |||||
titlelen='30' 标题长度 等同于titlelength | |||||
infolen='160' 表示内容简介长度 等同于infolength | |||||
typeid='' 调用栏目id,用英文逗号分开表示多个栏目 | |||||
notypeid='' 不调用栏目id,用英文逗号分开表示多个栏目 | |||||
titlelen='30' 标题长度等同于titlelength | |||||
infolen='160' 表示内容简介长度等同于infolength | |||||
imgwidth='120' 缩略图宽度 | imgwidth='120' 缩略图宽度 | ||||
imgheight='90' 缩略图高度 | imgheight='90' 缩略图高度 | ||||
listtype='all' 栏目类型(顶级栏目) | listtype='all' 栏目类型(顶级栏目) | ||||
orderby='sortrank' 文档排序方式 | orderby='sortrank' 文档排序方式 | ||||
§ orderby='hot' 或 orderby='click' 表示按点击数排列 | |||||
§ orderby='sortrank' 或 orderby='pubdate' 按出版时间排列 | |||||
§ orderby='near' | |||||
§ orderby=='lastpost' 按最后评论时间 | |||||
§ orderby=='scores' 按得分排序 | |||||
§ orderby='id' 按文档id排序 | |||||
§ orderby='rand' 随机获得指定条件的文档列表 | |||||
keyword='' 含有指定关键词的文档列表,多个关键词用","分 | |||||
orderby='hot' 或orderby='click'表示按点击数排列 | |||||
orderby='sortrank' 或orderby='pubdate'按出版时间排列 | |||||
orderby='near' | |||||
orderby=='lastpost' 按最后评论时间 | |||||
orderby=='scores' 按得分排序 | |||||
orderby='id' 按文档id排序 | |||||
orderby='rand' 随机获得指定条件的文档列表 | |||||
keyword='' 含有指定关键词的文档列表,多个关键词用英文逗号分开 | |||||
innertext='' 单条记录样式 | innertext='' 单条记录样式 | ||||
aid='' 指定文档id | aid='' 指定文档id | ||||
idlist='' 提取特定文档(文档id) | idlist='' 提取特定文档(文档id) | ||||
isweight='n' 开启按照权重排序,默认为n/N,如果设为y/Y,则内容会按照weight字段排序,数值越小越靠前 | |||||
channelid 频道id | |||||
isweight='n' 开启按照权重排序,默认为n/N,如果设为y/Y,则内容会按照weight字段排序,数值越小越靠前 | |||||
channelid 栏目id | |||||
limit='' 起始,结束 表示限定的记录范围(如:limit='1,2') | limit='' 起始,结束 表示限定的记录范围(如:limit='1,2') | ||||
flag='h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b] | flag='h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b] | ||||
noflag='' 同flag,但这里是表示不包含这些属性 | noflag='' 同flag,但这里是表示不包含这些属性 | ||||
orderway='desc' 值为 desc 或 asc,指定排序方式是降序还是顺向排序,默认为降序 | |||||
subday='天数' 表示在多少天以内的文档 | |||||
orderway='desc' 值为desc或asc,指定排序方式是降序还是顺向排序,默认为降序 | |||||
subday='天数' 表示在多少天以内的文档 |
@@ -1,19 +1,19 @@ | |||||
单表模型的文档列表调用标记 | 单表模型的文档列表调用标记 | ||||
>>dede>> | >>dede>> | ||||
{dede:arclistsg flag='h' typeid='' row='' col='' titlelen='' orderway='' keyword='' limit='0,1'} | |||||
<a href='[field:arcurl/]'>[field:title/]</a> | |||||
{dede:arclistsg typeid='' row='' flag='h' col='' titlelen='' orderway='' keyword='' limit='0,1'} | |||||
<a href='[field:arcurl/]'>[field:title/]</a> | |||||
{/dede:arclistsg} | {/dede:arclistsg} | ||||
>>dede>> | >>dede>> | ||||
col='' 分多少列显示(默认为单列),5.3版中本属性无效,要多列显示的可用div+css实现 | |||||
col='' 分多少列显示(默认为单列) | |||||
row='10' 返回文档列表总数 | row='10' 返回文档列表总数 | ||||
typeid='' 栏目id,在列表模板和文档模板中一般不需要指定,在封面模板中允许用英文逗号分开表示多个栏目; | |||||
titlelen='30' 标题长度 等同于titlelength | |||||
orderwey='desc'或'asc' 排序方向 | |||||
keyword= 含有指定关键词的文档列表,多个关键词用","分 | |||||
typeid='' 调用栏目id,用英文逗号分开表示多个栏目 | |||||
titlelen='30' 标题长度等同于titlelength | |||||
orderwey='desc'或'asc'排序方向 | |||||
keyword= 含有指定关键词的文档列表,多个关键词用英文逗号分开 | |||||
innertext="<a href='[field:arcurl/]'>[field:title/]</a>" 单条记录样式(innertext是放在标签之间的代码) | innertext="<a href='[field:arcurl/]'>[field:title/]</a>" 单条记录样式(innertext是放在标签之间的代码) | ||||
arcid='' 指定文档id | arcid='' 指定文档id | ||||
idlist='' 提取特定文档(文档id) | idlist='' 提取特定文档(文档id) | ||||
channelid='' 频道id | |||||
limit='' 起始,结束 表示限定的记录范围(如:limit='1,2') | |||||
channelid='' 栏目id | |||||
limit='' 起始结束表示限定的记录范围(如:limit='1,2') | |||||
flag='h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b] | flag='h' 自定义属性值:头条[h]推荐[c]图片[p]幻灯[f]滚动[s]跳转[j]图文[a]加粗[b] | ||||
subday='天数' 表示在多少天以内的文档 | |||||
subday='天数' 表示在多少天以内的文档 |
@@ -7,7 +7,7 @@ | |||||
</dd> | </dd> | ||||
{/dede:ask} | {/dede:ask} | ||||
>>dede>> | >>dede>> | ||||
row='6' 调用条数 | |||||
qtype='new' 排序类型 commend 推荐、ok 表示已解决问题、high 高分问题 、new 最新问题 | |||||
tid='0' 栏目id,默认是全部 | |||||
titlelen='24' 标题长度 | |||||
row='6' 调用条数 | |||||
qtype='new' 排序类型commend推荐、ok表示已解决问题、high高分问题 、new最新问题 | |||||
tid='0' 栏目id,默认是全部 | |||||
titlelen='24' 标题长度 |
@@ -2,18 +2,17 @@ | |||||
>>dede>> | >>dede>> | ||||
{dede:bookcontentlist row='12' booktype='-1' orderby='lastpost' author='' keyword=''} | {dede:bookcontentlist row='12' booktype='-1' orderby='lastpost' author='' keyword=''} | ||||
<table width="100%" cellspacing="2" cellpadding="2"> | <table width="100%" cellspacing="2" cellpadding="2"> | ||||
<tr> | |||||
<td width='40%'> | |||||
[[field:cataloglink/]] [field:booklink/]</td> | |||||
<td width='40%'>[field:contentlink/]</td> | |||||
<td width='20%'>[field:lastpost function="GetDateMk(@me)"/]</td> | |||||
</tr> | |||||
<tr> | |||||
<td width='40%'>[[field:cataloglink/]] [field:booklink/]</td> | |||||
<td width='40%'>[field:contentlink/]</td> | |||||
<td width='20%'>[field:lastpost function="GetDateMk(@me)"/]</td> | |||||
</tr> | |||||
</table> | </table> | ||||
{/dede:bookcontentlist} | {/dede:bookcontentlist} | ||||
>>dede>> | >>dede>> | ||||
这个标签和booklist实际是完全相同的,只是默认底层模板不同 | 这个标签和booklist实际是完全相同的,只是默认底层模板不同 | ||||
row='12' 调用记录条数 | row='12' 调用记录条数 | ||||
booktype='-1' 图书类型,0 图书、1 漫画,默认全部 | |||||
orderby='lastpost' 排序类型,当按排序类型为 commend 表示推荐图书 | |||||
author='' 作者 | |||||
booktype='-1' 图书类型,0图书、1漫画,默认全部 | |||||
orderby='lastpost' 排序类型,当按排序类型为commend表示推荐图书 | |||||
author='' 作者 | |||||
keyword='' 关键词(用英文逗号分开多个关键词) | keyword='' 关键词(用英文逗号分开多个关键词) |
@@ -1,12 +1,12 @@ | |||||
连载图书调用 | 连载图书调用 | ||||
>>dede>> | >>dede>> | ||||
{dede:booklist row='12' booktype='-1' orderby='lastpost' author='' keyword=''} | {dede:booklist row='12' booktype='-1' orderby='lastpost' author='' keyword=''} | ||||
<a href='[field:bookurl/]'>[field:bookname/]</a><br> | |||||
<a href='[field:bookurl/]'>[field:bookname/]</a> | |||||
{/dede:booklist} | {/dede:booklist} | ||||
>>dede>> | >>dede>> | ||||
这个标签和bookcontentlist实际是完全相同的,只是默认底层模板不同 | 这个标签和bookcontentlist实际是完全相同的,只是默认底层模板不同 | ||||
row='12' 调用记录条数 | row='12' 调用记录条数 | ||||
booktype='-1' 图书类型,0 图书、1 漫画,默认全部 | |||||
booktype='-1' 图书类型,0图书、1漫画,默认全部 | |||||
orderby='lastpost' 排序类型,当按排序类型为 commend 表示推荐图书 | orderby='lastpost' 排序类型,当按排序类型为 commend 表示推荐图书 | ||||
author='' 作者 | |||||
author='' 作者 | |||||
keyword='' 关键词(用英文逗号分开多个关键词) | keyword='' 关键词(用英文逗号分开多个关键词) |
@@ -1,18 +1,20 @@ | |||||
获取当前频道的下级栏目的内容列表标签 | |||||
获取当前栏目的下级栏目的内容列表标签 | |||||
>>dede>> | >>dede>> | ||||
{dede:channelartlist row=6} | {dede:channelartlist row=6} | ||||
<dl> | <dl> | ||||
<dt><a href='{dede:field name='typeurl'/}'>{dede:field name='typename'/}</a></dt> | |||||
<dd> | |||||
{dede:arclist titlelen='42' row='10'} <ul class='autod'> | |||||
<li><a href="[field:arcurl/]">[field:title/]</a></li> | |||||
<li>([field:pubdate function="MyDate('m-d',@me)"/])</li> | |||||
</ul> | |||||
{/dede:arclist} | |||||
<dt><a href='{dede:field name='typeurl'/}'>{dede:field name='typename'/}</a></dt> | |||||
<dd> | |||||
{dede:arclist titlelen='42' row='10'} | |||||
<ul class='autod'> | |||||
<li><a href="[field:arcurl/]">[field:title/]</a></li> | |||||
<li>([field:pubdate function="MyDate('m-d',@me)"/])</li> | |||||
</ul> | |||||
{/dede:arclist} | |||||
</dd> | |||||
</dl> | </dl> | ||||
{/dede:channelartlist} | {/dede:channelartlist} | ||||
>>dede>> | >>dede>> | ||||
typeid='0' 频道id,多个请用","分隔 | |||||
typeid='' 调用栏目id,用英文逗号分开表示多个栏目 | |||||
row='20' 获取的栏目返回值 | row='20' 获取的栏目返回值 | ||||
其他说明: | 其他说明: | ||||
除了宏标记外,channelArtlist 是唯一一个可以直接嵌套其它标记的标记,不过仅限于嵌套 | 除了宏标记外,channelArtlist 是唯一一个可以直接嵌套其它标记的标记,不过仅限于嵌套 |
@@ -2,8 +2,8 @@ | |||||
>>dede>> | >>dede>> | ||||
{dede:feedback} | {dede:feedback} | ||||
<ul> | <ul> | ||||
<li class='fbtitle'>[field:username function="(@me=='guest' ? '游客' : @me)"/] 对 [field:title/] 的评论:</li> | |||||
<li class='fbmsg'> <a href="apps/feedback.php?aid=[field:aid/]" class='fbmsg'>[field:msg/]</a></li> | |||||
<li class='fbtitle'>[field:username function="(@me=='guest' ? '游客' : @me)"/]对[field:title/]的评论:</li> | |||||
<li class='fbmsg'><a href="apps/feedback.php?aid=[field:aid/]">[field:msg/]</a></li> | |||||
</ul> | </ul> | ||||
{/dede:feedback} | {/dede:feedback} | ||||
>>dede>> | >>dede>> | ||||
@@ -2,8 +2,8 @@ | |||||
>>dede>> | >>dede>> | ||||
{dede:group row='6' orderby='threads' titlelen='30'} | {dede:group row='6' orderby='threads' titlelen='30'} | ||||
<li> | <li> | ||||
<span><img style="visibility: inherit;" title="[field:groupname/]" src="[field:icon/]" /></span> | |||||
<span><a href="[field:url/]" title="[field:groupname/]" target="_blank">[field:groupname/]</a></span> | |||||
<span><img style="visibility: inherit;" title="[field:groupname/]" src="[field:icon/]" /></span> | |||||
<span><a href="[field:url/]" title="[field:groupname/]" target="_blank">[field:groupname/]</a></span> | |||||
</li> | </li> | ||||
{/dede:group} | {/dede:group} | ||||
>>dede>> | >>dede>> | ||||
@@ -2,13 +2,13 @@ | |||||
>>dede>> | >>dede>> | ||||
{dede:groupthread gid='0' orderby='dateline' orderway='desc' row='12' titlelen='30'} | {dede:groupthread gid='0' orderby='dateline' orderway='desc' row='12' titlelen='30'} | ||||
<li> | <li> | ||||
<a href='[field:groupurl/]' target="_blank">[[field:groupname function="cn_substr(@me,10)"/]]</a> | |||||
<a href="[field:url/]" title="[field:subject/]" target="_blank">[field:subject/]</a>([field:lastpost function="GetDateMk('@me')"/]) | |||||
<a href='[field:groupurl/]' target="_blank">[[field:groupname function="cn_substr(@me,10)"/]]</a> | |||||
<a href="[field:url/]" title="[field:subject/]" target="_blank">[field:subject/]</a>([field:lastpost function="GetDateMk('@me')"/]) | |||||
</li> | </li> | ||||
{/dede:groupthread} | {/dede:groupthread} | ||||
>>dede>> | >>dede>> | ||||
gid='0' 圈子id,默认为全部 | gid='0' 圈子id,默认为全部 | ||||
orderby='dateline' 排序,默认为时间 | |||||
orderway='desc' 排序方向,默认是最新主题在前 | |||||
row='12' 记录数 | |||||
titlelen='30' 主题标题(subject)最大长度 | |||||
orderby='dateline' 排序,默认为时间 | |||||
orderway='desc' 排序方向,默认是最新主题在前 | |||||
row='12' 记录数 | |||||
titlelen='30' 主题标题(subject)最大长度 |
@@ -1,12 +1,12 @@ | |||||
自动关连文档标签 | 自动关连文档标签 | ||||
>>dede>> | >>dede>> | ||||
{dede:likearticle row='' col='' titlelen='' infolen=''} | {dede:likearticle row='' col='' titlelen='' infolen=''} | ||||
<a href='[field:arcurl/]'>[field:title/]</a> | |||||
<a href='[field:arcurl/]'>[field:title/]</a> | |||||
{/dede:likearticle} | {/dede:likearticle} | ||||
>>dede>> | >>dede>> | ||||
col='' 分多少列显示(默认为单列) | col='' 分多少列显示(默认为单列) | ||||
row='10' 返回文档列表总数 | row='10' 返回文档列表总数 | ||||
titlelen='30' 标题长度 等同于titlelength | |||||
titlelen='30' 标题长度等同于titlelength | |||||
infolen='160' 表示内容简介长度 等同于infolength | infolen='160' 表示内容简介长度 等同于infolength | ||||
mytypeid='0' 手工指定要限定的栏目id,用英文逗号表示多个 | mytypeid='0' 手工指定要限定的栏目id,用英文逗号表示多个 | ||||
innertext='' 单条记录样式(指标签中间的内容) | |||||
innertext='' 单条记录样式(指标签中间的内容) |
@@ -1,10 +1,10 @@ | |||||
调用任意表的数据标签 | 调用任意表的数据标签 | ||||
>>dede>> | >>dede>> | ||||
{dede:loop table='dede_archives' sort='' row='4' if=''} | {dede:loop table='dede_archives' sort='' row='4' if=''} | ||||
<a href='[field:arcurl/]'>[field:title/]</a> | |||||
<a href='[field:arcurl/]'>[field:title/]</a> | |||||
{/dede:loop} | {/dede:loop} | ||||
>>dede>> | >>dede>> | ||||
table='' 查询表名 | table='' 查询表名 | ||||
sort='' 用于排序的字段 | sort='' 用于排序的字段 | ||||
row='' 返回结果的条数 | |||||
row='' 返回结果的条数 | |||||
if='' 查询的条件 | if='' 查询的条件 |
@@ -1,7 +1,7 @@ | |||||
会员信息调用标签 | 会员信息调用标签 | ||||
>>dede>> | >>dede>> | ||||
{dede:memberlist orderby='scores' row='20'} | {dede:memberlist orderby='scores' row='20'} | ||||
<a href="../user/index.php?uid={dede:field.userid/}">{dede:field.userid/}</a> | |||||
<a href="../user/index.php?uid={dede:field.userid/}">{dede:field.userid/}</a> | |||||
<span>{dede:field.scores/}</span> | <span>{dede:field.scores/}</span> | ||||
{/dede:memberlist} | {/dede:memberlist} | ||||
>>dede>> | >>dede>> | ||||
@@ -2,6 +2,6 @@ | |||||
>>dede>> | >>dede>> | ||||
{dede:myad name=''/} | {dede:myad name=''/} | ||||
>>dede>> | >>dede>> | ||||
typeid='0' 投放范围,0为全站 | |||||
typeid='0' 投放范围,0为全站 | |||||
name='' 广告标识 | name='' 广告标识 | ||||
@@ -2,5 +2,5 @@ | |||||
>>dede>> | >>dede>> | ||||
{dede:mytag typeid='0' name=''/} | {dede:mytag typeid='0' name=''/} | ||||
>>dede>> | >>dede>> | ||||
typeid='0' 栏目id 0为全站栏目 | |||||
typeid='0' 栏目id,0为全站栏目 | |||||
name='' 标记名 | name='' 标记名 |
@@ -1,7 +1,7 @@ | |||||
子栏目调用标签 | 子栏目调用标签 | ||||
>>dede>> | >>dede>> | ||||
{dede:sonchannel} | {dede:sonchannel} | ||||
<a href='[field:typeurl/]'>[field:typename/]</a> | |||||
<a href='[field:typeurl/]'>[field:typename/]</a> | |||||
{/dede:sonchannel} | {/dede:sonchannel} | ||||
>>dede>> | >>dede>> | ||||
row='100' 返回数目 | row='100' 返回数目 |
@@ -1,7 +1,5 @@ | |||||
SQL标签 | SQL标签 | ||||
>>dede>> | >>dede>> | ||||
{dede:sql sql=''} | |||||
[field:title/] | |||||
{/dede} | |||||
{dede:sql sql=''}[field:title/]{/dede} | |||||
>>dede>> | >>dede>> | ||||
sql='' 完整的SQL语句 | sql='' 完整的SQL语句 |
@@ -1,7 +1,7 @@ | |||||
指定的单个栏目的链接标签 | 指定的单个栏目的链接标签 | ||||
>>dede>> | >>dede>> | ||||
{dede:type} | {dede:type} | ||||
<a href="[field:typelink/]">[field:typename/]</a> | |||||
<a href="[field:typelink/]">[field:typename/]</a> | |||||
{/dede:type} | {/dede:type} | ||||
>>dede>> | >>dede>> | ||||
typeid='' 指定栏目id | typeid='' 指定栏目id |
@@ -168,7 +168,7 @@ class TypeLink | |||||
//获得类别列表 | //获得类别列表 | ||||
//hid是指默认选中类目,0表示“请选择类目”或“不限类目” | //hid是指默认选中类目,0表示“请选择类目”或“不限类目” | ||||
//oper是用户允许管理的类目,0表示所有类目 | //oper是用户允许管理的类目,0表示所有类目 | ||||
//channeltype是指类目的内容类型,0表示不限频道 | |||||
//channeltype是指类目的内容类型,0表示不限栏目 | |||||
function GetOptionArray($hid = 0, $oper = 0, $channeltype = 0, $usersg = 0) | function GetOptionArray($hid = 0, $oper = 0, $channeltype = 0, $usersg = 0) | ||||
{ | { | ||||
return $this->GetOptionList($hid, $oper, $channeltype, $usersg); | return $this->GetOptionList($hid, $oper, $channeltype, $usersg); | ||||
@@ -75,7 +75,7 @@ class TypeUnit | |||||
* 读出所有分类,在类目管理页(list_type)中使用 | * 读出所有分类,在类目管理页(list_type)中使用 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $channel 频道id | |||||
* @param int $channel 栏目id | |||||
* @param int $nowdir 当前操作ID | * @param int $nowdir 当前操作ID | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
@@ -127,7 +127,7 @@ class TypeUnit | |||||
echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | ||||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | ||||
} | } | ||||
//带封面的频道 | |||||
//带封面的栏目 | |||||
else if ($ispart == 1) { | else if ($ispart == 1) { | ||||
echo "<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | echo "<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | ||||
echo "<td class='biz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>"; | echo "<td class='biz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'><i id='img".$id."' onClick=\"LoadSuns('suns".$id."',$id);\" class='fa fa-plus-square-o'></i><input type='checkbox' name='tids[]' value='{$id}' class='mr-3 ml-3'><span class='btn btn-warning btn-xs'>封面</span>{$nss}<a href='catalog_do.php?cid=".$id."&dopost=listArchives'><span class='mr-3 ml-3'>".$typeName."</span></a>[id:".$id."]<a onclick=\"AlertMsg('快捷编辑窗口','$id');\" href=\"javascript:;\"><i class='fa fa-pencil-square-o'></i></a>"; | ||||
@@ -210,7 +210,7 @@ class TypeUnit | |||||
echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | echo "<a href='catalog_del.php?id={$id}&typeoldname=".urlencode($typeName)."' title='删除'><i class='btn btn-sm fa fa-trash'></i></a>"; | ||||
echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | echo "<input type='text' name='sortrank{$id}' value='{$rank}' style='width:30px;text-align:center'></td></tr></table></td></tr>"; | ||||
} | } | ||||
//封面频道 | |||||
//封面栏目 | |||||
else if ($ispart == 1) { | else if ($ispart == 1) { | ||||
echo "<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | echo "<tr onMouseMove=\"javascript:this.bgColor='#fbfce2';\" onMouseOut=\"javascript:this.bgColor='#ffffff';\">"; | ||||
echo "<td class='nbiz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'>"; | echo "<td class='nbiz-td'><table width='98%' cellspacing='0' cellpadding='0'><tr><td width='50%'>"; | ||||
@@ -247,7 +247,7 @@ class TypeUnit | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $id 栏目id | * @param int $id 栏目id | ||||
* @param int $channel 频道id | |||||
* @param int $channel 栏目id | |||||
* @return array | * @return array | ||||
*/ | */ | ||||
function GetSunTypes($id, $channel = 0) | function GetSunTypes($id, $channel = 0) | ||||
@@ -57,7 +57,7 @@ class TypeUnit | |||||
* 读出所有分类,在类目管理页(list_type)中使用 | * 读出所有分类,在类目管理页(list_type)中使用 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $channel 频道id | |||||
* @param int $channel 栏目id | |||||
* @param int $nowdir 当前操作ID | * @param int $nowdir 当前操作ID | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
@@ -94,7 +94,7 @@ class TypeUnit | |||||
//普通栏目 | //普通栏目 | ||||
if ($ispart == 0) { | if ($ispart == 0) { | ||||
} | } | ||||
//封面频道 | |||||
//封面栏目 | |||||
else if ($ispart == 1) { | else if ($ispart == 1) { | ||||
} | } | ||||
//独立页面 | //独立页面 | ||||
@@ -151,7 +151,7 @@ class TypeUnit | |||||
//普通列表 | //普通列表 | ||||
if ($ispart == 0 || empty($ispart)) { | if ($ispart == 0 || empty($ispart)) { | ||||
} | } | ||||
//封面频道 | |||||
//封面栏目 | |||||
else if ($ispart == 1) { | else if ($ispart == 1) { | ||||
} | } | ||||
//独立页面 | //独立页面 | ||||
@@ -36,10 +36,10 @@ class TypeUnitSelector | |||||
{ | { | ||||
} | } | ||||
/** | /** | ||||
* 列出某一频道下的所有栏目 | |||||
* 列出某一栏目下的所有栏目 | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $channel 频道id | |||||
* @param string $channel 栏目id | |||||
* @return void | * @return void | ||||
*/ | */ | ||||
function ListAllType($channel = 0) | function ListAllType($channel = 0) | ||||
@@ -94,7 +94,7 @@ class TypeUnitSelector | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $id 栏目id | * @param int $id 栏目id | ||||
* @param int $channel 频道id | |||||
* @param int $channel 栏目id | |||||
* @param int $soncat 子级分类 | * @param int $soncat 子级分类 | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
@@ -79,7 +79,7 @@ $DedeUserCatalogs = array(); | |||||
* 检测用户是否有权限操作某栏目 | * 检测用户是否有权限操作某栏目 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $cid 频道id | |||||
* @param int $cid 栏目id | |||||
* @param string $msg 返回消息 | * @param string $msg 返回消息 | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
@@ -273,7 +273,7 @@ class userLogin | |||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* 重写用户权限频道 | |||||
* 重写用户权限栏目 | |||||
* | * | ||||
* @access public | * @access public | ||||
* @return void | * @return void | ||||
@@ -282,7 +282,7 @@ class userLogin | |||||
{ | { | ||||
//$this->userChannel | //$this->userChannel | ||||
$cacheFile = DEDEDATA.'/cache/admincat_'.$this->userID.'.inc'; | $cacheFile = DEDEDATA.'/cache/admincat_'.$this->userID.'.inc'; | ||||
//管理员管理的频道列表 | |||||
//管理员管理的栏目列表 | |||||
$typeid = trim($this->userChannel); | $typeid = trim($this->userChannel); | ||||
if (empty($typeid) || $this->getUserType() >= 10) { | if (empty($typeid) || $this->getUserType() >= 10) { | ||||
$firstConfig = "\$cfg_admin_channel = 'all';\r\n\$admin_catalogs = array();\r\n"; | $firstConfig = "\$cfg_admin_channel = 'all';\r\n\$admin_catalogs = array();\r\n"; | ||||
@@ -326,7 +326,7 @@ class userLogin | |||||
$_SESSION = array(); | $_SESSION = array(); | ||||
} | } | ||||
/** | /** | ||||
* 获得用户管理频道的值 | |||||
* 获得用户管理栏目的值 | |||||
* | * | ||||
* @access public | * @access public | ||||
* @return array | * @return array | ||||
@@ -407,7 +407,7 @@ class userLogin | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $id 栏目id | * @param int $id 栏目id | ||||
* @param int $channel 频道id | |||||
* @param int $channel 栏目id | |||||
* @param int $addthis 是否加入当前这个栏目 | * @param int $addthis 是否加入当前这个栏目 | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
@@ -428,7 +428,7 @@ function GetSonIdsUL($id, $channel = 0, $addthis = TRUE) | |||||
* @access public | * @access public | ||||
* @param int $id 栏目id | * @param int $id 栏目id | ||||
* @param array $sArr 缓存数组 | * @param array $sArr 缓存数组 | ||||
* @param int $channel 频道id | |||||
* @param int $channel 栏目id | |||||
* @param int $addthis 是否加入当前这个栏目 | * @param int $addthis 是否加入当前这个栏目 | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
@@ -12,7 +12,7 @@ head.htm,头部模板 | |||||
index.htm,主页模板 | index.htm,主页模板 | ||||
index_article.htm,文档封面模板 | index_article.htm,文档封面模板 | ||||
index_default.htm,封面栏目模板 | index_default.htm,封面栏目模板 | ||||
index_default_sg.htm,频道表单封面模板 | |||||
index_default_sg.htm,栏目表单封面模板 | |||||
index_image.htm,图片封面模板 | index_image.htm,图片封面模板 | ||||
index_infos.htm,分类信息封面模板 | index_infos.htm,分类信息封面模板 | ||||
index_shop.htm,商品封面模板 | index_shop.htm,商品封面模板 | ||||
@@ -46,7 +46,7 @@ | |||||
<nav class="py-3"> | <nav class="py-3"> | ||||
<ul class="pagination justify-content-center">{dede:pagebreak/}</ul> | <ul class="pagination justify-content-center">{dede:pagebreak/}</ul> | ||||
</nav> | </nav> | ||||
<div class="alert alert-warning">您会看到这个提示,那是因为您的系统无法识别某栏目的模型信息,或者您新建模型后,没为这个模型设计单独的模板不同模型的文档浏览页的模板为:article_模型名字标识.htm如“article_article.htm”,更多的信息您可以在频道模型管理的地方查看</div> | |||||
<div class="alert alert-warning">您会看到这个提示,那是因为您的系统无法识别某栏目的模型信息,或者您新建模型后,没为这个模型设计单独的模板不同模型的文档浏览页的模板为:article_模型名字标识.htm如“article_article.htm”,更多的信息您可以在栏目模型管理的地方查看</div> | |||||
{dede:fieldlist} | {dede:fieldlist} | ||||
<table width="100%" cellpadding="1" cellspacing="1" class="table"> | <table width="100%" cellpadding="1" cellspacing="1" class="table"> | ||||
<tr> | <tr> | ||||
@@ -49,7 +49,7 @@ | |||||
<nav class="py-3"> | <nav class="py-3"> | ||||
<ul class="pagination justify-content-center">{dede:pagebreak/}</ul> | <ul class="pagination justify-content-center">{dede:pagebreak/}</ul> | ||||
</nav> | </nav> | ||||
<div class="alert alert-warning mt-3">您会看到这个提示,那是因为您的系统无法识别某栏目的模型信息,或者您新建模型后,没为这个模型设计单独的模板不同模型的文档浏览页的模板为:article_模型名字标识.htm如“article_article.htm”,更多的信息您可以在频道模型管理的地方查看</div> | |||||
<div class="alert alert-warning mt-3">您会看到这个提示,那是因为您的系统无法识别某栏目的模型信息,或者您新建模型后,没为这个模型设计单独的模板不同模型的文档浏览页的模板为:article_模型名字标识.htm如“article_article.htm”,更多的信息您可以在栏目模型管理的地方查看</div> | |||||
{dede:fieldlist} | {dede:fieldlist} | ||||
<table width="100%" cellpadding="1" cellspacing="1" bgcolor="#BED1AB" class="table"> | <table width="100%" cellpadding="1" cellspacing="1" bgcolor="#BED1AB" class="table"> | ||||
<tr> | <tr> | ||||
@@ -41,11 +41,11 @@ if (empty($dopost)) { | |||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/album_add.htm"); | include(DEDEMEMBER."/templets/album_add.htm"); | ||||
@@ -34,11 +34,11 @@ if (empty($dopost)) { | |||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From `#@__arcrank` where `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/archives_add.htm"); | include(DEDEMEMBER."/templets/archives_add.htm"); | ||||
@@ -34,11 +34,11 @@ if (empty($dopost)) { | |||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/archives_sg_add.htm"); | include(DEDEMEMBER."/templets/archives_sg_add.htm"); | ||||
@@ -75,14 +75,14 @@ else if ($dopost == 'save') { | |||||
ShowMsg("您所选择的栏目不支持投稿", "-1"); | ShowMsg("您所选择的栏目不支持投稿", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//检查频道设定的投稿许可权限 | |||||
//检查栏目设定的投稿许可权限 | |||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("Select membername From #@__arcrank where `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("Select membername From #@__arcrank where `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
//文档的默认状态 | //文档的默认状态 | ||||
@@ -28,11 +28,11 @@ if (empty($dopost)) { | |||||
//检查会员等级和类型限制 | //检查会员等级和类型限制 | ||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$cInfos['usertype']."帐号]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
include(DEDEMEMBER."/templets/article_add.htm"); | include(DEDEMEMBER."/templets/article_add.htm"); | ||||
@@ -211,7 +211,7 @@ function CheckRank($rank = 0, $money = 0) | |||||
* 更新文档统计 | * 更新文档统计 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $channelid 频道模型id | |||||
* @param int $channelid 栏目模型id | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
function countArchives($channelid) | function countArchives($channelid) | ||||
@@ -36,14 +36,14 @@ if ($cInfos['issend'] != 1 || $cInfos['ispart'] != 0 || $cInfos['channeltype'] | |||||
ShowMsg("您所选择的栏目不支持投稿", "-1"); | ShowMsg("您所选择的栏目不支持投稿", "-1"); | ||||
exit(); | exit(); | ||||
} | } | ||||
//检查频道设定的投稿许可权限 | |||||
//检查栏目设定的投稿许可权限 | |||||
if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | if ($cInfos['sendrank'] > $cfg_ml->M_Rank) { | ||||
$row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | $row = $dsql->GetOne("SELECT membername FROM `#@__arcrank` WHERE `rank`='".$cInfos['sendrank']."' "); | ||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$row['membername']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | if ($cInfos['usertype'] != '' && $cInfos['usertype'] != $cfg_ml->M_MbType) { | ||||
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个频道发布文档", "-1", "0", 5000); | |||||
ShowMsg("对不起,需要[".$cInfos['usertype']."]才能在这个栏目发布文档", "-1", "0", 5000); | |||||
exit(); | exit(); | ||||
} | } | ||||
//文档的默认状态 | //文档的默认状态 | ||||
@@ -13,7 +13,7 @@ if (!defined('DEDEMEMBER')) exit('dedebiz'); | |||||
* 获取选项列表 | * 获取选项列表 | ||||
* | * | ||||
* @param string $selid 当前选择id | * @param string $selid 当前选择id | ||||
* @param string $channeltype 频道类型 | |||||
* @param string $channeltype 栏目类型 | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
function GetOptionList($selid = 0, $channeltype = 0) | function GetOptionList($selid = 0, $channeltype = 0) | ||||
@@ -82,7 +82,7 @@ function LogicGetOptionArray($id, $step, $channeltype, $selid = 0) | |||||
* | * | ||||
* @param int $mid 会员id | * @param int $mid 会员id | ||||
* @param int $mtypeid 自定义类别id | * @param int $mtypeid 自定义类别id | ||||
* @param int $channelid 频道id | |||||
* @param int $channelid 栏目id | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
function classification($mid, $mtypeid = 0, $channelid = 1) | function classification($mid, $mtypeid = 0, $channelid = 1) | ||||