@@ -95,7 +95,7 @@ else if ($dopost == 'save') { | |||||
//处理上传的缩略图 | //处理上传的缩略图 | ||||
if (empty($ddisremote)) $ddisremote = 0; | if (empty($ddisremote)) $ddisremote = 0; | ||||
$litpic = GetDDImage('none', $picname, $ddisremote); | $litpic = GetDDImage('none', $picname, $ddisremote); | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
@@ -96,7 +96,7 @@ else if ($dopost == 'save') { | |||||
$ddisremote = 0; | $ddisremote = 0; | ||||
} | } | ||||
$litpic = GetDDImage('none', $picname, $ddisremote); | $litpic = GetDDImage('none', $picname, $ddisremote); | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
@@ -302,7 +302,7 @@ else if ($dopost == 'moveArchives') { | |||||
<td class="bline"><?php echo $typeOptions; ?></td> | <td class="bline"><?php echo $typeOptions; ?></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="90" class="bline"> 文档ID:</td> | |||||
<td width="90" class="bline"> 文档id:</td> | |||||
<td class="bline"> | <td class="bline"> | ||||
<input type="text" name="tmpids" value="<?php echo $qstr; ?>" style="width:320px;overflow:hidden"><br> | <input type="text" name="tmpids" value="<?php echo $qstr; ?>" style="width:320px;overflow:hidden"><br> | ||||
移动到目标栏目必须和选定文档频道类型一致,否则程序会自动勿略不符合文档 | 移动到目标栏目必须和选定文档频道类型一致,否则程序会自动勿略不符合文档 | ||||
@@ -868,7 +868,7 @@ else if ($dopost == 'attsDlg') { | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="90" class="bline"> 文档ID:</td> | |||||
<td width="90" class="bline"> 文档id:</td> | |||||
<td class="bline"><input type="text" name="tmpids" value="<?php echo $qstr; ?>" style="width:320px;overflow:hidden"></td> | <td class="bline"><input type="text" name="tmpids" value="<?php echo $qstr; ?>" style="width:320px;overflow:hidden"></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -70,7 +70,7 @@ else if ($dopost == 'save') { | |||||
$userip = GetIP(); | $userip = GetIP(); | ||||
if (empty($ddisremote)) $ddisremote = 0; | if (empty($ddisremote)) $ddisremote = 0; | ||||
$litpic = GetDDImage('none', $picname, $ddisremote); | $litpic = GetDDImage('none', $picname, $ddisremote); | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $senddate, $channelid, $senddate, $adminid); | $arcID = GetIndexKey($arcrank, $typeid, $senddate, $channelid, $senddate, $adminid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
@@ -104,7 +104,7 @@ else if ($dopost == 'save') { | |||||
$ddisremote = 0; | $ddisremote = 0; | ||||
} | } | ||||
$litpic = GetDDImage('none', $picname, $ddisremote); | $litpic = GetDDImage('none', $picname, $ddisremote); | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
@@ -15,7 +15,7 @@ $mid = isset($mid) ? intval($mid) : 0; | |||||
if (!isset($keyword)) $keyword = ''; | if (!isset($keyword)) $keyword = ''; | ||||
if (!isset($arcrank)) $arcrank = ''; | if (!isset($arcrank)) $arcrank = ''; | ||||
if (empty($cid) && empty($channelid)) { | if (empty($cid) && empty($channelid)) { | ||||
ShowMsg("该页面必须指定栏目ID或内容模型ID才能浏览", "javascript:;"); | |||||
ShowMsg("该页面必须指定栏目id或内容模型ID才能浏览", "javascript:;"); | |||||
exit(); | exit(); | ||||
} | } | ||||
//检查权限许可,总权限 | //检查权限许可,总权限 | ||||
@@ -124,7 +124,7 @@ function GetFormItem($ctag) | |||||
* @access public | * @access public | ||||
* @param string $dvalue 值 | * @param string $dvalue 值 | ||||
* @param string $dtype 类型 | * @param string $dtype 类型 | ||||
* @param int $aid 文档ID | |||||
* @param int $aid 文档id | |||||
* @param string $job 操作类型 | * @param string $job 操作类型 | ||||
* @param string $addvar 增加值 | * @param string $addvar 增加值 | ||||
* @return string | * @return string | ||||
@@ -224,7 +224,7 @@ function GetRemoteImage($url, $uid = 0) | |||||
* 检测频道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 | ||||
*/ | */ | ||||
@@ -306,7 +306,7 @@ function SpLongBody($mybody, $spsize, $sptag) | |||||
* 创建指定ID的文档 | * 创建指定ID的文档 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $aid 文档ID | |||||
* @param string $aid 文档id | |||||
* @param string $ismakesign 生成标志 | * @param string $ismakesign 生成标志 | ||||
* @param int $isremote 是否远程 | * @param int $isremote 是否远程 | ||||
* @return string | * @return string | ||||
@@ -12,7 +12,7 @@ | |||||
* 删除文档信息 | * 删除文档信息 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $aid 文档ID | |||||
* @param string $aid 文档id | |||||
* @param string $type 类型 | * @param string $type 类型 | ||||
* @param string $onlyfile 删除数据库记录 | * @param string $onlyfile 删除数据库记录 | ||||
* @return string | * @return string | ||||
@@ -20,7 +20,7 @@ if (empty($typeid)) $typeid = 0; | |||||
if (!isset($uppage)) $uppage = 0; | if (!isset($uppage)) $uppage = 0; | ||||
if (empty($maxpagesize)) $maxpagesize = 30; | if (empty($maxpagesize)) $maxpagesize = 30; | ||||
$adminID = $cuserLogin->getUserID(); | $adminID = $cuserLogin->getUserID(); | ||||
//检测获取所有栏目ID | |||||
//检测获取所有栏目id | |||||
//普通生成或一键更新时更新所有栏目 | //普通生成或一键更新时更新所有栏目 | ||||
if ($gotype == '' || $gotype == 'mkallct') { | if ($gotype == '' || $gotype == 'mkallct') { | ||||
if ($upnext == 1 || $typeid == 0) { | if ($upnext == 1 || $typeid == 0) { | ||||
@@ -94,7 +94,7 @@ else if ($dopost == 'save') { | |||||
$ddisremote = 0; | $ddisremote = 0; | ||||
} | } | ||||
$litpic = GetDDImage('none', $picname, $ddisremote); | $litpic = GetDDImage('none', $picname, $ddisremote); | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
@@ -67,7 +67,7 @@ else if ($dopost == 'save') { | |||||
$ddisremote = 0; | $ddisremote = 0; | ||||
} | } | ||||
$litpic = GetDDImage('none', $picname, $ddisremote); | $litpic = GetDDImage('none', $picname, $ddisremote); | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $adminid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,无法进行后续操作", "-1"); | ShowMsg("无法获得主键,无法进行后续操作", "-1"); | ||||
@@ -328,7 +328,7 @@ | |||||
<td> | <td> | ||||
<label><input type="radio" name="cross" id="cross0" value="0" onClick="CheckCross()" checked="1"> 不交叉</label> | <label><input type="radio" name="cross" id="cross0" value="0" onClick="CheckCross()" checked="1"> 不交叉</label> | ||||
<label><input type="radio" name="cross" id="cross1" value="1" onClick="CheckCross()"> 自动获取同名栏目内容</label> | <label><input type="radio" name="cross" id="cross1" value="1" onClick="CheckCross()"> 自动获取同名栏目内容</label> | ||||
<label><input type="radio" name="cross" id="cross2" value="2" onClick="CheckCross()"> 手工指定交叉栏目ID(用逗号分开)</label> | |||||
<label><input type="radio" name="cross" id="cross2" value="2" onClick="CheckCross()"> 手工指定交叉栏目id(用逗号分开)</label> | |||||
<br> | <br> | ||||
<textarea name="crossid" id="crossid" style="display:none"></textarea> | <textarea name="crossid" id="crossid" style="display:none"></textarea> | ||||
</td> | </td> | ||||
@@ -387,7 +387,7 @@ | |||||
<tr id="helpvar1" style="display:none"> | <tr id="helpvar1" style="display:none"> | ||||
<td bgcolor="#f8f8f8">支持变量:</td> | <td bgcolor="#f8f8f8">支持变量:</td> | ||||
<td bgcolor="#f8f8f8"> | <td bgcolor="#f8f8f8"> | ||||
{tid}表示栏目ID,<br> | |||||
{tid}表示栏目id,<br> | |||||
{cid}表示频道模型的'名字ID'( | {cid}表示频道模型的'名字ID'( | ||||
<?php | <?php | ||||
foreach($channelArray as $k=>$arr) | foreach($channelArray as $k=>$arr) | ||||
@@ -273,7 +273,7 @@ | |||||
<td class="bline"> | <td class="bline"> | ||||
<label><input type="radio" name="cross" onClick="CheckCross()" value="0" <?php if($myrow['cross']==0) echo "checked='1'"; ?>> 不交叉</label> | <label><input type="radio" name="cross" onClick="CheckCross()" value="0" <?php if($myrow['cross']==0) echo "checked='1'"; ?>> 不交叉</label> | ||||
<label><input type="radio" name="cross" onClick="CheckCross()" value="1" <?php if($myrow['cross']==1) echo "checked='1'"; ?>> 自动获取同名栏目内容</label> | <label><input type="radio" name="cross" onClick="CheckCross()" value="1" <?php if($myrow['cross']==1) echo "checked='1'"; ?>> 自动获取同名栏目内容</label> | ||||
<label><input type="radio" name="cross" onClick="CheckCross()" value="2" <?php if($myrow['cross']==2) echo "checked='1'"; ?>> 手工指定交叉栏目ID(用逗号分开)</label> | |||||
<label><input type="radio" name="cross" onClick="CheckCross()" value="2" <?php if($myrow['cross']==2) echo "checked='1'"; ?>> 手工指定交叉栏目id(用逗号分开)</label> | |||||
<br> | <br> | ||||
<textarea name="crossid" id="crossid" style="<?php if($myrow['cross']!=2) echo'display:none'; ?>"><?php echo $myrow['crossid']; ?></textarea> | <textarea name="crossid" id="crossid" style="<?php if($myrow['cross']!=2) echo'display:none'; ?>"><?php echo $myrow['crossid']; ?></textarea> | ||||
</td> | </td> | ||||
@@ -331,7 +331,7 @@ | |||||
<tr id='helpvar1' style='display:none'> | <tr id='helpvar1' style='display:none'> | ||||
<td bgcolor="#f8f8f8">支持变量:</td> | <td bgcolor="#f8f8f8">支持变量:</td> | ||||
<td bgcolor="#f8f8f8"> | <td bgcolor="#f8f8f8"> | ||||
{tid}表示栏目ID,<br> | |||||
{tid}表示栏目id,<br> | |||||
{cid}表示频道模型的'名字ID'( | {cid}表示频道模型的'名字ID'( | ||||
<?php | <?php | ||||
foreach($channelArray as $k=>$arr) | foreach($channelArray as $k=>$arr) | ||||
@@ -225,7 +225,7 @@ | |||||
<option value="pubdate" selected>发布时间</option> | <option value="pubdate" selected>发布时间</option> | ||||
<option value="senddate">录入时间</option> | <option value="senddate">录入时间</option> | ||||
<option value="click">点击量</option> | <option value="click">点击量</option> | ||||
<option value="id">文档ID</option> | |||||
<option value="id">文档id</option> | |||||
<option value="lastpost">最后评论时间</option> | <option value="lastpost">最后评论时间</option> | ||||
<option value="postnum">评论总数</option> | <option value="postnum">评论总数</option> | ||||
</select> | </select> | ||||
@@ -204,7 +204,7 @@ | |||||
<td>排列顺序: | <td>排列顺序: | ||||
<?php | <?php | ||||
$orderby = $ctag->GetAtt('orderby'); | $orderby = $ctag->GetAtt('orderby'); | ||||
$sorta = "sortrank,置顶权限值;pubdate,发布时间;senddate,录入时间;click,点击量;id,文档ID,lastpost,最后评论时间;postnum,评论总数;rand,随机获取"; | |||||
$sorta = "sortrank,置顶权限值;pubdate,发布时间;senddate,录入时间;click,点击量;id,文档id,lastpost,最后评论时间;postnum,评论总数;rand,随机获取"; | |||||
$sortas = explode(';',$sorta); | $sortas = explode(';',$sorta); | ||||
foreach($sortas as $v) | foreach($sortas as $v) | ||||
{ | { | ||||
@@ -221,7 +221,7 @@ | |||||
<option value="pubdate">发布时间</option> | <option value="pubdate">发布时间</option> | ||||
<option value="senddate">录入时间</option> | <option value="senddate">录入时间</option> | ||||
<option value="click">点击量</option> | <option value="click">点击量</option> | ||||
<option value="id">文档ID</option> | |||||
<option value="id">文档id</option> | |||||
<option value="lastpost">最后评论时间</option> | <option value="lastpost">最后评论时间</option> | ||||
<option value="postnum">评论总数</option> | <option value="postnum">评论总数</option> | ||||
</select> | </select> | ||||
@@ -145,7 +145,7 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>默认栏目ID<br> | |||||
<td>默认栏目id<br> | |||||
<span class="style2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span></td> | <span class="style2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span></td> | ||||
<td><input type="text" name="dfcid" id="dfcid" value="0" class="pubinputs"></td> | <td><input type="text" name="dfcid" id="dfcid" value="0" class="pubinputs"></td> | ||||
</tr> | </tr> | ||||
@@ -108,7 +108,7 @@ | |||||
?> | ?> | ||||
<tr> | <tr> | ||||
<td style="border-top:0">模型性质<br> | <td style="border-top:0">模型性质<br> | ||||
<span class="style2" id="help5">如果为系统模型将禁止删除,此选项不可修改,对于独立模型,系统强制创建字段aid、栏目ID、发布时间、文档标题</span> | |||||
<span class="style2" id="help5">如果为系统模型将禁止删除,此选项不可修改,对于独立模型,系统强制创建字段aid、栏目id、发布时间、文档标题</span> | |||||
</td> | </td> | ||||
<td style="border-top:0"> | <td style="border-top:0"> | ||||
<?php | <?php | ||||
@@ -233,7 +233,7 @@ | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td>默认栏目ID<br><span class="style2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span></td> | |||||
<td>默认栏目id<br><span class="style2" id="help8">与投稿是唯一性结合可以用模型设计自定义表单</span></td> | |||||
<td><input type="text" name="dfcid" id="dfcid" value="<?php echo $row['dfcid']; ?>" class="pubinputs" style="width:160px"></td> | <td><input type="text" name="dfcid" id="dfcid" value="<?php echo $row['dfcid']; ?>" class="pubinputs" style="width:160px"></td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -65,10 +65,10 @@ | |||||
<input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>"> | <input type="hidden" name="_csrf_token" value="<?php echo $GLOBALS['csrf_token']; ?>"> | ||||
<tr> | <tr> | ||||
<td colspan="3">自定义标记的调用方法:<br> | <td colspan="3">自定义标记的调用方法:<br> | ||||
{dede:mytag name='标记名称' ismake='是否含板块代码(yes 或 no)' typeid='栏目ID'/}<br> | |||||
{dede:mytag name='标记名称' ismake='是否含板块代码(yes 或 no)' typeid='栏目id'/}<br> | |||||
1、name 标记名称,该项是必须的属性,以下 2、3是可选属性;<br> | 1、name 标记名称,该项是必须的属性,以下 2、3是可选属性;<br> | ||||
2、ismake 默认是 no 表示设定的纯HTML代码, yes 表示含板块标记的代码;<br> | 2、ismake 默认是 no 表示设定的纯HTML代码, yes 表示含板块标记的代码;<br> | ||||
3、typeid 表示所属栏目的ID,默认为 0 ,表示所有栏目通用的显示内容,在列表和文档模板中,typeid默认是这个列表或文档本身的栏目ID</td> | |||||
3、typeid 表示所属栏目的ID,默认为 0 ,表示所有栏目通用的显示内容,在列表和文档模板中,typeid默认是这个列表或文档本身的栏目id</td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td width="15%" align="center">所属栏目:</td> | <td width="15%" align="center">所属栏目:</td> | ||||
@@ -134,7 +134,7 @@ | |||||
<option value="pubdate" selected>发布时间</option> | <option value="pubdate" selected>发布时间</option> | ||||
<option value="senddate">录入时间</option> | <option value="senddate">录入时间</option> | ||||
<option value="click">点击量</option> | <option value="click">点击量</option> | ||||
<option value="id">文档ID</option> | |||||
<option value="id">文档id</option> | |||||
<option value="lastpost">最后评论时间</option> | <option value="lastpost">最后评论时间</option> | ||||
<option value="scores">评论积分</option> | <option value="scores">评论积分</option> | ||||
<option value="rand">随机获取</option> | <option value="rand">随机获取</option> | ||||
@@ -281,7 +281,7 @@ table{border-collapse:separate} | |||||
1、文章列表用ID1,ID2,ID3这样形式分开,系统会自动排除不同节点的相同文章;<br> | 1、文章列表用ID1,ID2,ID3这样形式分开,系统会自动排除不同节点的相同文章;<br> | ||||
2、关于单条记录模板里的[field:fieldname/]标记的使用,请参考关于系统帮助关于 arclist 标记的说明;<br> | 2、关于单条记录模板里的[field:fieldname/]标记的使用,请参考关于系统帮助关于 arclist 标记的说明;<br> | ||||
3、节点ID是节点的唯一标识,专题模板中用{dede:field.note noteid='标识'/}这样来表示单个节点,不指定noteid时为所有节点列表<br> | 3、节点ID是节点的唯一标识,专题模板中用{dede:field.note noteid='标识'/}这样来表示单个节点,不指定noteid时为所有节点列表<br> | ||||
4、正常的情况下,每个节点显示的是“节点文章列表”里的文档,如果您指定为“自动获取模式”,那么必须指定关键词和栏目ID </td> | |||||
4、正常的情况下,每个节点显示的是“节点文章列表”里的文档,如果您指定为“自动获取模式”,那么必须指定关键词和栏目id </td> | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td> | <td> | ||||
@@ -322,7 +322,7 @@ table{border-collapse:separate} | |||||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文章列表</label> | <label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文章列表</label> | ||||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label> | <label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label> | ||||
<label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label> | <label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label> | ||||
栏目ID:<label><input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" size="4"></label> | |||||
栏目id:<label><input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" size="4"></label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -347,7 +347,7 @@ table{border-collapse:separate} | |||||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" <?php if($isauto==0) echo "checked"; ?>> 按文章列表</label> | <label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" <?php if($isauto==0) echo "checked"; ?>> 按文章列表</label> | ||||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1" <?php if($isauto==1) echo "checked"; ?>> 自动获取文档</label> | <label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1" <?php if($isauto==1) echo "checked"; ?>> 自动获取文档</label> | ||||
<label>关键词:<input type="text" name="keywords<?php echo $i?>" value="<?php echo $keywords?>" id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label> | <label>关键词:<input type="text" name="keywords<?php echo $i?>" value="<?php echo $keywords?>" id="keywords<?php echo $i?>" value="" size="16">(逗号分开)</label> | ||||
<label>栏目ID:<input type="text" name="typeid<?php echo $i?>" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" value="0" size="4"></label> | |||||
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" value="<?php echo $typeid?>" id="typeid<?php echo $i?>" value="0" size="4"></label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -394,7 +394,7 @@ table{border-collapse:separate} | |||||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文章列表</label> | <label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="0" checked> 按文章列表</label> | ||||
<label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label> | <label><input type="radio" name="isauto<?php echo $i?>" id="isauto<?php echo $i?>" value="1"> 自动获取文档</label> | ||||
<label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" value="" size="16">(空格分开)</label> | <label>关键词:<input type="text" name="keywords<?php echo $i?>" id="keywords<?php echo $i?>" value="" size="16">(空格分开)</label> | ||||
<label>栏目ID:<input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" size="4"></label> | |||||
<label>栏目id:<input type="text" name="typeid<?php echo $i?>" id="_typeid<?php echo $i?>" value="0" size="4"></label> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -40,7 +40,7 @@ | |||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
<td colspan="2"> | <td colspan="2"> | ||||
全局标记指的是应用在网站主页、单独页面、频道封面使用的单独的模板标记,在列表或文章模板中,一般只允许调用channel、arclist标记(hotart、coolart、imglist等都是这个标记延伸出来的标记),但是环境变量限定为文章或列表所在的栏目,如果您要测试的标记是在列表或文章中使用,请指定环境变量(栏目ID)<br> | |||||
全局标记指的是应用在网站主页、单独页面、频道封面使用的单独的模板标记,在列表或文章模板中,一般只允许调用channel、arclist标记(hotart、coolart、imglist等都是这个标记延伸出来的标记),但是环境变量限定为文章或列表所在的栏目,如果您要测试的标记是在列表或文章中使用,请指定环境变量(栏目id)<br> | |||||
各标记的具体含义和用途,请在<a href="https://www.dedebiz.com/help" target="_blank">模板标记参考</a>一章查阅 | 各标记的具体含义和用途,请在<a href="https://www.dedebiz.com/help" target="_blank">模板标记参考</a>一章查阅 | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -34,7 +34,7 @@ $fid = isset($fid) ? intval($fid) : 0; //用来标记回复评论的变量 | |||||
if (empty($aid) && empty($fid)) { | if (empty($aid) && empty($fid)) { | ||||
echo json_encode(array( | echo json_encode(array( | ||||
"code" => -1, | "code" => -1, | ||||
"msg" => "文档ID不能为空", | |||||
"msg" => "文档id不能为空", | |||||
"data" => null, | "data" => null, | ||||
)); | )); | ||||
exit(); | exit(); | ||||
@@ -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! "); | ||||
@@ -16,7 +16,7 @@ if (isset($arcID)) $aid = $arcID; | |||||
$arcID = $aid = (isset($aid) && is_numeric($aid) ? $aid : 0); | $arcID = $aid = (isset($aid) && is_numeric($aid) ? $aid : 0); | ||||
$type = (!isset($type) ? "" : $type); | $type = (!isset($type) ? "" : $type); | ||||
if (empty($aid)) { | if (empty($aid)) { | ||||
ShowMsg("文档ID不能为空", "-1"); | |||||
ShowMsg("文档id不能为空", "-1"); | |||||
exit(); | exit(); | ||||
} | } | ||||
//读取文档信息 | //读取文档信息 | ||||
@@ -4047,7 +4047,7 @@ INSERT INTO `#@__sysconfig` VALUES('1','cfg_basehost','站点网址','1','string | |||||
('105','cfg_beian','网站备案号','1','string',''), | ('105','cfg_beian','网站备案号','1','string',''), | ||||
('106','cfg_need_typeid2','是否启用副栏目','6','bool','Y'), | ('106','cfg_need_typeid2','是否启用副栏目','6','bool','Y'), | ||||
('107','cfg_mb_pwdtype','前台密码验证类型:默认32—32位md5,可选:l16—前16位、r16—后16位、m16—中间16位','4','string','32'), | ('107','cfg_mb_pwdtype','前台密码验证类型:默认32—32位md5,可选:l16—前16位、r16—后16位、m16—中间16位','4','string','32'), | ||||
('108','cfg_cache_type','id 文档ID,content标签最终内容,修改此变量后必须更新系统缓存','6','string','id'), | |||||
('108','cfg_cache_type','id 文档id,content标签最终内容,修改此变量后必须更新系统缓存','6','string','id'), | |||||
('109','cfg_max_face','会员上传头像大小限制KB','3','number','100'), | ('109','cfg_max_face','会员上传头像大小限制KB','3','number','100'), | ||||
('110','cfg_typedir_df','栏目网址使用目录名(不显示默认页,则是/a/b/c形式)','2','bool','Y'), | ('110','cfg_typedir_df','栏目网址使用目录名(不显示默认页,则是/a/b/c形式)','2','bool','Y'), | ||||
('111','cfg_make_andcat','发表文章后马上更新相关栏目','6','bool','N'), | ('111','cfg_make_andcat','发表文章后马上更新相关栏目','6','bool','N'), | ||||
@@ -959,7 +959,7 @@ CREATE TABLE `#@__statistics_detail` ( | |||||
`device_type` varchar(10) DEFAULT NULL COMMENT '设备类型', | `device_type` varchar(10) DEFAULT NULL COMMENT '设备类型', | ||||
`os` varchar(20) DEFAULT NULL COMMENT '操作系统', | `os` varchar(20) DEFAULT NULL COMMENT '操作系统', | ||||
`url_type` tinyint DEFAULT NULL COMMENT '访问地址类型:0:未知 1:列表 2:内容 3:搜索 4:TAG', | `url_type` tinyint DEFAULT NULL COMMENT '访问地址类型:0:未知 1:列表 2:内容 3:搜索 4:TAG', | ||||
`typeid` int DEFAULT NULL COMMENT '栏目ID', | |||||
`typeid` int DEFAULT NULL COMMENT '栏目id', | |||||
`aid` int DEFAULT NULL COMMENT '内容ID', | `aid` int DEFAULT NULL COMMENT '内容ID', | ||||
`value` varchar(50) DEFAULT NULL COMMENT '值', | `value` varchar(50) DEFAULT NULL COMMENT '值', | ||||
PRIMARY KEY (`id`), | PRIMARY KEY (`id`), | ||||
@@ -38,7 +38,7 @@ CREATE TABLE `#@__statistics_detail` ( | |||||
`device_type` varchar(10) DEFAULT NULL COMMENT '设备类型', | `device_type` varchar(10) DEFAULT NULL COMMENT '设备类型', | ||||
`os` varchar(20) DEFAULT NULL COMMENT '操作系统', | `os` varchar(20) DEFAULT NULL COMMENT '操作系统', | ||||
`url_type` tinyint DEFAULT NULL COMMENT '访问地址类型:0:未知 1:列表 2:内容 3:搜索 4:TAG', | `url_type` tinyint DEFAULT NULL COMMENT '访问地址类型:0:未知 1:列表 2:内容 3:搜索 4:TAG', | ||||
`typeid` int DEFAULT NULL COMMENT '栏目ID', | |||||
`typeid` int DEFAULT NULL COMMENT '栏目id', | |||||
`aid` int DEFAULT NULL COMMENT '内容ID', | `aid` int DEFAULT NULL COMMENT '内容ID', | ||||
`value` varchar(50) DEFAULT NULL COMMENT '值', | `value` varchar(50) DEFAULT NULL COMMENT '值', | ||||
PRIMARY KEY (`id`), | PRIMARY KEY (`id`), | ||||
@@ -45,7 +45,7 @@ class Archives | |||||
* php5构造函数 | * php5构造函数 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $aid 文档ID | |||||
* @param int $aid 文档id | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
function __construct($aid) | function __construct($aid) | ||||
@@ -516,7 +516,7 @@ class Archives | |||||
if ($this->TempSource == '') { | if ($this->TempSource == '') { | ||||
$tempfile = $this->GetTempletFile(); | $tempfile = $this->GetTempletFile(); | ||||
if (!file_exists($tempfile) || !is_file($tempfile)) { | if (!file_exists($tempfile) || !is_file($tempfile)) { | ||||
echo "文档ID:{$this->Fields['id']} - {$this->TypeLink->TypeInfos['typename']} - {$this->Fields['title']}<br>"; | |||||
echo "文档id:{$this->Fields['id']} - {$this->TypeLink->TypeInfos['typename']} - {$this->Fields['title']}<br>"; | |||||
echo "模板文件不存在,无法解析文档"; | echo "模板文件不存在,无法解析文档"; | ||||
exit(); | exit(); | ||||
} | } | ||||
@@ -800,8 +800,8 @@ class FreeList | |||||
* 获得一个指定档案的链接 | * 获得一个指定档案的链接 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $aid 文档ID | |||||
* @param int $typeid 栏目ID | |||||
* @param int $aid 文档id | |||||
* @param int $typeid 栏目id | |||||
* @param int $timetag 时间戳 | * @param int $timetag 时间戳 | ||||
* @param string $title 标题 | * @param string $title 标题 | ||||
* @param int $ismake 是否生成 | * @param int $ismake 是否生成 | ||||
@@ -44,7 +44,7 @@ class ListView | |||||
* php5构造函数 | * php5构造函数 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param int $uppage 上一页 | * @param int $uppage 上一页 | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
@@ -90,7 +90,7 @@ class ListView | |||||
//设置环境变量 | //设置环境变量 | ||||
SetSysEnv($this->TypeID, $this->Fields['typename'], 0, '', 'list'); | SetSysEnv($this->TypeID, $this->Fields['typename'], 0, '', 'list'); | ||||
$this->Fields['typeid'] = $this->TypeID; | $this->Fields['typeid'] = $this->TypeID; | ||||
//获得交叉栏目ID | |||||
//获得交叉栏目id | |||||
if ($this->TypeLink->TypeInfos['cross'] > 0 && $this->TypeLink->TypeInfos['ispart'] == 0) { | if ($this->TypeLink->TypeInfos['cross'] > 0 && $this->TypeLink->TypeInfos['ispart'] == 0) { | ||||
$selquery = ''; | $selquery = ''; | ||||
if ($this->TypeLink->TypeInfos['cross'] == 1) { | if ($this->TypeLink->TypeInfos['cross'] == 1) { | ||||
@@ -544,7 +544,7 @@ class ListView | |||||
* 获得要创建的文件名称规则 | * 获得要创建的文件名称规则 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param string $wname | * @param string $wname | ||||
* @param string $typedir 栏目目录 | * @param string $typedir 栏目目录 | ||||
* @param string $defaultname 默认名称 | * @param string $defaultname 默认名称 | ||||
@@ -32,7 +32,7 @@ class PartView | |||||
* php5构造函数 | * php5构造函数 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param int $needtypelink 是否需要栏目连接 | * @param int $needtypelink 是否需要栏目连接 | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
@@ -33,7 +33,7 @@ class RssView | |||||
* php5构造函数 | * php5构造函数 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param int $max_row 最大显示行数 | * @param int $max_row 最大显示行数 | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
@@ -54,7 +54,7 @@ class SearchView | |||||
* php5构造函数 | * php5构造函数 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @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 频道类型 | ||||
@@ -45,7 +45,7 @@ class SgListView | |||||
* php5构造函数 | * php5构造函数 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param array $searchArr 检索数组 | * @param array $searchArr 检索数组 | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
@@ -85,7 +85,7 @@ class SgListView | |||||
//设置环境变量 | //设置环境变量 | ||||
SetSysEnv($this->TypeID, $this->Fields['typename'], 0, '', 'list'); | SetSysEnv($this->TypeID, $this->Fields['typename'], 0, '', 'list'); | ||||
$this->Fields['typeid'] = $this->TypeID; | $this->Fields['typeid'] = $this->TypeID; | ||||
//获得交叉栏目ID | |||||
//获得交叉栏目id | |||||
if ($this->TypeLink->TypeInfos['cross'] > 0 && $this->TypeLink->TypeInfos['ispart'] == 0) { | if ($this->TypeLink->TypeInfos['cross'] > 0 && $this->TypeLink->TypeInfos['ispart'] == 0) { | ||||
$selquery = ''; | $selquery = ''; | ||||
if ($this->TypeLink->TypeInfos['cross'] == 1) { | if ($this->TypeLink->TypeInfos['cross'] == 1) { | ||||
@@ -478,7 +478,7 @@ class SgListView | |||||
* 获得要创建的文件名称规则 | * 获得要创建的文件名称规则 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $typeid 栏目ID | |||||
* @param string $typeid 栏目id | |||||
* @param string $wname | * @param string $wname | ||||
* @param string $typedir 栏目目录 | * @param string $typedir 栏目目录 | ||||
* @param string $defaultname 默认名称 | * @param string $defaultname 默认名称 | ||||
@@ -615,7 +615,7 @@ class TagList | |||||
* 获得一个指定的频道的链接 | * 获得一个指定的频道的链接 | ||||
* | * | ||||
* @access private | * @access private | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param string $typedir 栏目目录 | * @param string $typedir 栏目目录 | ||||
* @param int $isdefault 是否为默认 | * @param int $isdefault 是否为默认 | ||||
* @param string $defaultname 默认名称 | * @param string $defaultname 默认名称 | ||||
@@ -632,8 +632,8 @@ class TagList | |||||
* 获得一个指定档案的链接 | * 获得一个指定档案的链接 | ||||
* | * | ||||
* @access private | * @access private | ||||
* @param int $aid 文档ID | |||||
* @param int $typeid 栏目ID | |||||
* @param int $aid 文档id | |||||
* @param int $typeid 栏目id | |||||
* @param int $timetag 时间戳 | * @param int $timetag 时间戳 | ||||
* @param string $title 标题 | * @param string $title 标题 | ||||
* @param int $ismake 是否生成静态 | * @param int $ismake 是否生成静态 | ||||
@@ -158,7 +158,7 @@ EOT; | |||||
* @access public | * @access public | ||||
* @param string $dvalue 默认值 | * @param string $dvalue 默认值 | ||||
* @param string $dtype 默认类型 | * @param string $dtype 默认类型 | ||||
* @param int $aid 文档ID | |||||
* @param int $aid 文档id | |||||
* @param string $job 操作类型 | * @param string $job 操作类型 | ||||
* @param string $addvar 值 | * @param string $addvar 值 | ||||
* @param string $admintype 管理类型 | * @param string $admintype 管理类型 | ||||
@@ -36,7 +36,7 @@ class DataListCP | |||||
var $isQuery; | var $isQuery; | ||||
var $queryTime; | var $queryTime; | ||||
/** | /** | ||||
* 用指定的文档ID进行初始化 | |||||
* 用指定的文档id进行初始化 | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $tplfile 模板文件 | * @param string $tplfile 模板文件 | ||||
@@ -121,7 +121,7 @@ if (!function_exists('GetTags')) { | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $arcrank 权限值 | * @param string $arcrank 权限值 | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param int $sortrank 排序ID | * @param int $sortrank 排序ID | ||||
* @param int $channelid 模型ID | * @param int $channelid 模型ID | ||||
* @param int $senddate 发布日期 | * @param int $senddate 发布日期 | ||||
@@ -149,9 +149,9 @@ if (!function_exists('GetIndexKey')) { | |||||
* 更新微表key及Tag | * 更新微表key及Tag | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $id 文档ID | |||||
* @param int $id 文档id | |||||
* @param string $arcrank 权限值 | * @param string $arcrank 权限值 | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param int $sortrank 排序ID | * @param int $sortrank 排序ID | ||||
* @param string $tags tag标签 | * @param string $tags tag标签 | ||||
* @return string | * @return string | ||||
@@ -34,8 +34,8 @@ if (!function_exists('GetRankStar')) { | |||||
* GetFileUrl($aid,$typeid,$timetag,$title,$ismake,$rank,$namerule,$typedir,$money) | * GetFileUrl($aid,$typeid,$timetag,$title,$ismake,$rank,$namerule,$typedir,$money) | ||||
* 即是不指定站点参数则返回相当对根目录的真实路径 | * 即是不指定站点参数则返回相当对根目录的真实路径 | ||||
* | * | ||||
* @param int $aid 文档ID | |||||
* @param int $typeid 栏目ID | |||||
* @param int $aid 文档id | |||||
* @param int $typeid 栏目id | |||||
* @param int $timetag 时间戳 | * @param int $timetag 时间戳 | ||||
* @param string $title 标题 | * @param string $title 标题 | ||||
* @param int $ismake 是否生成 | * @param int $ismake 是否生成 | ||||
@@ -85,8 +85,8 @@ if (!function_exists('GetFileUrl')) { | |||||
/** | /** | ||||
* 获得新文件名(本函数会自动创建目录) | * 获得新文件名(本函数会自动创建目录) | ||||
* | * | ||||
* @param int $aid 文档ID | |||||
* @param int $typeid 栏目ID | |||||
* @param int $aid 文档id | |||||
* @param int $typeid 栏目id | |||||
* @param int $timetag 时间戳 | * @param int $timetag 时间戳 | ||||
* @param string $title 标题 | * @param string $title 标题 | ||||
* @param int $ismake 是否生成 | * @param int $ismake 是否生成 | ||||
@@ -124,8 +124,8 @@ if (!function_exists('GetFileNewName')) { | |||||
/** | /** | ||||
* 获得文件相对于主站点根目录的物理文件名(动态网址返回url) | * 获得文件相对于主站点根目录的物理文件名(动态网址返回url) | ||||
* | * | ||||
* @param int $aid 文档ID | |||||
* @param int $typeid 栏目ID | |||||
* @param int $aid 文档id | |||||
* @param int $typeid 栏目id | |||||
* @param int $timetag 时间戳 | * @param int $timetag 时间戳 | ||||
* @param string $title 标题 | * @param string $title 标题 | ||||
* @param int $ismake 是否生成 | * @param int $ismake 是否生成 | ||||
@@ -189,7 +189,7 @@ if (!function_exists('GetFileName')) { | |||||
* 获得指定类目的URL链接 | * 获得指定类目的URL链接 | ||||
* 对于使用封面文件和单独页面的情况,强制使用默认页名称 | * 对于使用封面文件和单独页面的情况,强制使用默认页名称 | ||||
* | * | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param string $typedir 栏目目录 | * @param string $typedir 栏目目录 | ||||
* @param int $isdefault 是否默认 | * @param int $isdefault 是否默认 | ||||
* @param string $defaultname 默认名称 | * @param string $defaultname 默认名称 | ||||
@@ -266,7 +266,7 @@ if (!function_exists('MagicVar')) { | |||||
/** | /** | ||||
* 获取某个类目的所有上级栏目id | * 获取某个类目的所有上级栏目id | ||||
* | * | ||||
* @param int $tid 栏目ID | |||||
* @param int $tid 栏目id | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
if (!function_exists('GetTopids')) { | if (!function_exists('GetTopids')) { | ||||
@@ -280,7 +280,7 @@ if (!function_exists('GetTopids')) { | |||||
* 获取上级ID列表 | * 获取上级ID列表 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $tid 栏目ID | |||||
* @param string $tid 栏目id | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
if (!function_exists('GetParentIds')) { | if (!function_exists('GetParentIds')) { | ||||
@@ -316,7 +316,7 @@ if (!function_exists('IsParent')) { | |||||
/** | /** | ||||
* 获取一个类目的顶级类目id | * 获取一个类目的顶级类目id | ||||
* | * | ||||
* @param string $tid 栏目ID | |||||
* @param string $tid 栏目id | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
if (!function_exists('GetTopid')) { | if (!function_exists('GetTopid')) { | ||||
@@ -520,9 +520,9 @@ function GetOneTypeUrlA($typeinfos) | |||||
/** | /** | ||||
* 设置全局环境变量 | * 设置全局环境变量 | ||||
* | * | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param string $typename 栏目名称 | * @param string $typename 栏目名称 | ||||
* @param string $aid 文档ID | |||||
* @param string $aid 文档id | |||||
* @param string $title 标题 | * @param string $title 标题 | ||||
* @param string $curfile 当前文件 | * @param string $curfile 当前文件 | ||||
* @return string | * @return string | ||||
@@ -83,7 +83,7 @@ function lib_arclist(&$ctag, &$refObj) | |||||
* @access public | * @access public | ||||
* @param object $refObj 引用对象 | * @param object $refObj 引用对象 | ||||
* @param object $ctag 标签 | * @param object $ctag 标签 | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param int $row 调用行数 | * @param int $row 调用行数 | ||||
* @param int $titlelen 字符串长度 | * @param int $titlelen 字符串长度 | ||||
* @param int $infolen 描述信息长度 | * @param int $infolen 描述信息长度 | ||||
@@ -93,7 +93,7 @@ function lib_arclist(&$ctag, &$refObj) | |||||
* @param string $orderby 排列顺序 | * @param string $orderby 排列顺序 | ||||
* @param string $keyword 关键词 | * @param string $keyword 关键词 | ||||
* @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 限制 | ||||
@@ -31,7 +31,7 @@ function ch_specialtopic($noteinfo, $arcTag, $refObj, $fname = '') | |||||
$keywords = ''; | $keywords = ''; | ||||
$stypeid = 0; | $stypeid = 0; | ||||
if (empty($rownum)) $rownum = 40; | if (empty($rownum)) $rownum = 40; | ||||
//通过关键词和栏目ID自动获取模式 | |||||
//通过关键词和栏目id自动获取模式 | |||||
if ($isauto == 1) { | if ($isauto == 1) { | ||||
$idlist = ''; | $idlist = ''; | ||||
$keywords = trim($ctag->GetAtt('keywords')); | $keywords = trim($ctag->GetAtt('keywords')); | ||||
@@ -7,7 +7,7 @@ imgwidth='' imgheight='' listtype='' orderby='' keyword='' limit='0,1'} | |||||
>>dede>> | >>dede>> | ||||
col='' 分多少列显示(默认为单列) | col='' 分多少列显示(默认为单列) | ||||
row='10' 返回文档列表总数 | row='10' 返回文档列表总数 | ||||
typeid='' 栏目ID,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目; | |||||
typeid='' 栏目id,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目; | |||||
titlelen = '30' 标题长度 等同于titlelength | titlelen = '30' 标题长度 等同于titlelength | ||||
infolen='160' 表示内容简介长度 等同于infolength | infolen='160' 表示内容简介长度 等同于infolength | ||||
imgwidth='120' 缩略图宽度 | imgwidth='120' 缩略图宽度 | ||||
@@ -23,8 +23,8 @@ orderby='sortrank' 文档排序方式 | |||||
§ orderby='rand' 随机获得指定条件的文档列表 | § orderby='rand' 随机获得指定条件的文档列表 | ||||
keyword='' 含有指定关键词的文档列表,多个关键词用","分 | keyword='' 含有指定关键词的文档列表,多个关键词用","分 | ||||
innertext = '' 单条记录样式 | innertext = '' 单条记录样式 | ||||
aid='' 指定文档ID | |||||
idlist ='' 提取特定文档(文档ID) | |||||
aid='' 指定文档id | |||||
idlist ='' 提取特定文档(文档id) | |||||
isweight = 'n' 开启按照权重排序,默认为n/N,如果设为y/Y,则内容会按照weight字段排序,数值越小越靠前 | isweight = 'n' 开启按照权重排序,默认为n/N,如果设为y/Y,则内容会按照weight字段排序,数值越小越靠前 | ||||
channelid 频道ID | channelid 频道ID | ||||
limit='' 起始,结束 表示限定的记录范围(如:limit='1,2') | limit='' 起始,结束 表示限定的记录范围(如:limit='1,2') | ||||
@@ -6,13 +6,13 @@ | |||||
>>dede>> | >>dede>> | ||||
col='' 分多少列显示(默认为单列),5.3版中本属性无效,要多列显示的可用div+css实现 | col='' 分多少列显示(默认为单列),5.3版中本属性无效,要多列显示的可用div+css实现 | ||||
row='10' 返回文档列表总数 | row='10' 返回文档列表总数 | ||||
typeid='' 栏目ID,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目; | |||||
typeid='' 栏目id,在列表模板和档案模板中一般不需要指定,在封面模板中允许用","分开表示多个栏目; | |||||
titlelen = '30' 标题长度 等同于titlelength | titlelen = '30' 标题长度 等同于titlelength | ||||
orderwey='desc'或'asc' 排序方向 | orderwey='desc'或'asc' 排序方向 | ||||
keyword= 含有指定关键词的文档列表,多个关键词用","分 | keyword= 含有指定关键词的文档列表,多个关键词用","分 | ||||
innertext = "<a href='[field:arcurl/]'>[field:title/]</a>" 单条记录样式(innertext是放在标签之间的代码) | innertext = "<a href='[field:arcurl/]'>[field:title/]</a>" 单条记录样式(innertext是放在标签之间的代码) | ||||
arcid='' 指定文档ID | |||||
idlist ='' 提取特定文档(文档ID) | |||||
arcid='' 指定文档id | |||||
idlist ='' 提取特定文档(文档id) | |||||
channelid = '' 频道ID | 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] | ||||
@@ -4,8 +4,8 @@ | |||||
<li><a href='[field:typelink/]'>[field:typename/]</a> </li> | <li><a href='[field:typelink/]'>[field:typename/]</a> </li> | ||||
{/dede:channel} | {/dede:channel} | ||||
>>dede>> | >>dede>> | ||||
typeid = '0' 栏目ID | |||||
reid = '0' 上级栏目ID | |||||
typeid = '0' 栏目id | |||||
reid = '0' 上级栏目id | |||||
row = '100' 调用栏目数 | row = '100' 调用栏目数 | ||||
col = '1' 分多少列显示(默认为单列) | col = '1' 分多少列显示(默认为单列) | ||||
type = 'son' son表示下级栏目,self表示同级栏目,top顶级栏目 | type = 'son' son表示下级栏目,self表示同级栏目,top顶级栏目 |
@@ -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 = '' 标记名 |
@@ -4,4 +4,4 @@ | |||||
<a href="[field:typelink/]">[field:typename/]</a> | <a href="[field:typelink/]">[field:typename/]</a> | ||||
{/dede:type} | {/dede:type} | ||||
>>dede>> | >>dede>> | ||||
typeid='' 指定栏目ID | |||||
typeid='' 指定栏目id |
@@ -234,7 +234,7 @@ class TypeLink | |||||
* 逻辑递归 | * 逻辑递归 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $id 栏目ID | |||||
* @param int $id 栏目id | |||||
* @param int $step 步进标志 | * @param int $step 步进标志 | ||||
* @param int $oper 操作权限 | * @param int $oper 操作权限 | ||||
* @return string | * @return string | ||||
@@ -262,7 +262,7 @@ class TypeLink | |||||
* $typetype 的值为:sun 下级分类 self 同级分类 top 顶级分类 | * $typetype 的值为:sun 下级分类 self 同级分类 top 顶级分类 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $typeid 栏目ID | |||||
* @param int $typeid 栏目id | |||||
* @param int $reid 所属ID | * @param int $reid 所属ID | ||||
* @param int $row 栏目行数 | * @param int $row 栏目行数 | ||||
* @param string $typetype 栏目类型 | * @param string $typetype 栏目类型 | ||||
@@ -44,7 +44,7 @@ class TypeUnit | |||||
function Close() | function Close() | ||||
{ | { | ||||
} | } | ||||
//获取所有栏目的文档ID数 | |||||
//获取所有栏目的文档id数 | |||||
function UpdateCatalogNum() | function UpdateCatalogNum() | ||||
{ | { | ||||
$this->dsql->SetQuery("SELECT typeid,count(typeid) as dd FROM `#@__arctiny` WHERE arcrank <>-2 group by typeid"); | $this->dsql->SetQuery("SELECT typeid,count(typeid) as dd FROM `#@__arctiny` WHERE arcrank <>-2 group by typeid"); | ||||
@@ -165,7 +165,7 @@ class TypeUnit | |||||
* 获得子类目的递归调用 | * 获得子类目的递归调用 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $id 栏目ID | |||||
* @param int $id 栏目id | |||||
* @param string $step 层级标志 | * @param string $step 层级标志 | ||||
* @return void | * @return void | ||||
*/ | */ | ||||
@@ -249,7 +249,7 @@ class TypeUnit | |||||
* 返回与某个目相关的下级目录的类目ID列表(删除类目或文章时调用) | * 返回与某个目相关的下级目录的类目ID列表(删除类目或文章时调用) | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $id 栏目ID | |||||
* @param int $id 栏目id | |||||
* @param int $channel 频道ID | * @param int $channel 频道ID | ||||
* @return array | * @return array | ||||
*/ | */ | ||||
@@ -276,7 +276,7 @@ class TypeUnit | |||||
* 删除类目 | * 删除类目 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $id 栏目ID | |||||
* @param int $id 栏目id | |||||
* @param bool $isDelFile 是否删除文件 | * @param bool $isDelFile 是否删除文件 | ||||
* @return string | * @return string | ||||
*/ | */ | ||||
@@ -119,7 +119,7 @@ class TypeUnit | |||||
* 获得子类目的递归调用 | * 获得子类目的递归调用 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $id 栏目ID | |||||
* @param int $id 栏目id | |||||
* @param string $step 层级标志 | * @param string $step 层级标志 | ||||
* @param bool $needcheck 权限 | * @param bool $needcheck 权限 | ||||
* @return string | * @return string | ||||
@@ -93,7 +93,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 | ||||
@@ -123,10 +123,10 @@ function AddMyAddon($fid, $filename) | |||||
fclose($fp); | fclose($fp); | ||||
} | } | ||||
/** | /** | ||||
* 清理附件,如果关连的文档ID,先把上一批附件传给这个文档ID | |||||
* 清理附件,如果关连的文档id,先把上一批附件传给这个文档id | |||||
* | * | ||||
* @access public | * @access public | ||||
* @param string $aid 文档ID | |||||
* @param string $aid 文档id | |||||
* @param string $title 文档标题 | * @param string $title 文档标题 | ||||
* @return empty | * @return empty | ||||
*/ | */ | ||||
@@ -406,7 +406,7 @@ class userLogin | |||||
* 获得某id的所有下级id | * 获得某id的所有下级id | ||||
* | * | ||||
* @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 | ||||
@@ -426,7 +426,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 是否加入当前这个栏目 | ||||
@@ -66,7 +66,7 @@ | |||||
<option value="sortrank" selected>默认</option> | <option value="sortrank" selected>默认</option> | ||||
<option value="senddate">收录时间</option> | <option value="senddate">收录时间</option> | ||||
<option value="pubdate">发布时间</option> | <option value="pubdate">发布时间</option> | ||||
<option value="id">文档ID</option> | |||||
<option value="id">文档id</option> | |||||
</select> | </select> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -112,7 +112,7 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
@@ -84,7 +84,7 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
//处理图片文档的自定义属性 | //处理图片文档的自定义属性 | ||||
if ($litpic != '') $flag = 'p'; | if ($litpic != '') $flag = 'p'; | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
@@ -130,7 +130,7 @@ else if ($dopost == 'save') { | |||||
exit(); | exit(); | ||||
} | } | ||||
} | } | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
@@ -72,7 +72,7 @@ else if ($dopost == 'save') { | |||||
} | } | ||||
$body = AnalyseHtmlBody($body, $description); | $body = AnalyseHtmlBody($body, $description); | ||||
$body = HtmlReplace($body, -1); | $body = HtmlReplace($body, -1); | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||
@@ -14,7 +14,7 @@ require_once(DEDEINC."/channelunit.func.php"); | |||||
* 删除文档 | * 删除文档 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $aid 文档ID | |||||
* @param int $aid 文档id | |||||
* @return bool | * @return bool | ||||
*/ | */ | ||||
function DelArc($aid) | function DelArc($aid) | ||||
@@ -122,7 +122,7 @@ function DelArc($aid) | |||||
* 删除不带主表内容模型的数据 | * 删除不带主表内容模型的数据 | ||||
* | * | ||||
* @access public | * @access public | ||||
* @param int $aid 文档ID | |||||
* @param int $aid 文档id | |||||
* @return string | * @return string | ||||
*/ | */ | ||||
function DelArcSg($aid) | function DelArcSg($aid) | ||||
@@ -55,7 +55,7 @@ function _SaveArticle(){ } | |||||
else if ($dopost == 'save') { | else if ($dopost == 'save') { | ||||
$description = ''; | $description = ''; | ||||
include(DEDEMEMBER.'/inc/archives_check.php'); | include(DEDEMEMBER.'/inc/archives_check.php'); | ||||
//生成文档ID | |||||
//生成文档id | |||||
$arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | $arcID = GetIndexKey($arcrank, $typeid, $sortrank, $channelid, $senddate, $mid); | ||||
if (empty($arcID)) { | if (empty($arcID)) { | ||||
ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ShowMsg("无法获得主键,因此无法进行后续操作", "-1"); | ||||