| @@ -1,6 +1,6 @@ | |||||
| <?php | <?php | ||||
| /** | /** | ||||
| * 处理文档管理列表操作 | |||||
| * 文档列表相关操作 | |||||
| * | * | ||||
| * @version $id:archives_do.php 8:26 2010年7月12日 tianya $ | * @version $id:archives_do.php 8:26 2010年7月12日 tianya $ | ||||
| * @package DedeBIZ.Administrator | * @package DedeBIZ.Administrator | ||||
| @@ -295,7 +295,7 @@ else if ($dopost == "checkArchives") { | |||||
| if (empty($typeInfos['addtable'])) { | if (empty($typeInfos['addtable'])) { | ||||
| $typeInfos['maintable'] = '#@__archives'; | $typeInfos['maintable'] = '#@__archives'; | ||||
| } | } | ||||
| //添加单表模型判断 | |||||
| //添加自定义模型判断 | |||||
| if ($typeInfos['issystem'] == -1) { | if ($typeInfos['issystem'] == -1) { | ||||
| $typeInfos['maintable'] = $typeInfos['addtable']; | $typeInfos['maintable'] = $typeInfos['addtable']; | ||||
| $idtype = "aid"; | $idtype = "aid"; | ||||
| @@ -126,7 +126,7 @@ else if ($dopost == "upcatcache") { | |||||
| //导入普通模型微数据 | //导入普通模型微数据 | ||||
| $sql = "INSERT INTO `#@__arctiny` (id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid) SELECT id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid FROM `#@__archives` "; | $sql = "INSERT INTO `#@__arctiny` (id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid) SELECT id, typeid, typeid2, arcrank, channel, senddate, sortrank, mid FROM `#@__archives` "; | ||||
| $dsql->ExecuteNoneQuery($sql); | $dsql->ExecuteNoneQuery($sql); | ||||
| //导入单表模型微数据 | |||||
| //导入自定义模型微数据 | |||||
| $dsql->SetQuery("SELECT id,addtable FROM `#@__channeltype` WHERE id < -1 "); | $dsql->SetQuery("SELECT id,addtable FROM `#@__channeltype` WHERE id < -1 "); | ||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $doarray = array(); | $doarray = array(); | ||||
| @@ -96,7 +96,7 @@ if ($cid == 0) { | |||||
| } else { | } else { | ||||
| $positionname = str_replace($cfg_list_symbol, " > ", $tl->GetPositionName())." > "; | $positionname = str_replace($cfg_list_symbol, " > ", $tl->GetPositionName())." > "; | ||||
| } | } | ||||
| //当选择的是单表模型栏目时,直接跳转单表模型管理区 | |||||
| //当选择的是自定义模型栏目时,直接跳转自定义模型管理区 | |||||
| if (empty($channelid) && isset($tl->TypeInfos['channeltype'])) { | if (empty($channelid) && isset($tl->TypeInfos['channeltype'])) { | ||||
| $channelid = $tl->TypeInfos['channeltype']; | $channelid = $tl->TypeInfos['channeltype']; | ||||
| } | } | ||||
| @@ -1,6 +1,6 @@ | |||||
| <?php | <?php | ||||
| /** | /** | ||||
| * 文档操作相关函数 | |||||
| * 文档函数相关操作 | |||||
| * | * | ||||
| * @version $id:inc_batchup.php 10:32 2010年7月21日 tianya $ | * @version $id:inc_batchup.php 10:32 2010年7月21日 tianya $ | ||||
| * @package DedeBIZ.Administrator | * @package DedeBIZ.Administrator | ||||
| @@ -54,7 +54,7 @@ function DelArc($aid, $type = 'ON', $onlyfile = FALSE, $recycle = 0) | |||||
| return FALSE; | return FALSE; | ||||
| } | } | ||||
| } | } | ||||
| //$issystem==-1 是单表模型,不使用回收站 | |||||
| //$issystem==-1 是自定义模型,不使用回收站 | |||||
| if ($issystem == -1) $type = 'OK'; | if ($issystem == -1) $type = 'OK'; | ||||
| if (!is_array($arcRow)) return FALSE; | if (!is_array($arcRow)) return FALSE; | ||||
| /** 删除到回收站 **/ | /** 删除到回收站 **/ | ||||
| @@ -93,7 +93,7 @@ else if ($dopost == 2) { | |||||
| //导入普通模型微数据 | //导入普通模型微数据 | ||||
| $sql = "INSERT INTO `#@__arctiny` (id,typeid,typeid2,arcrank,channel,senddate,sortrank,mid) SELECT id,typeid,typeid2,arcrank,channel,senddate,sortrank,mid FROM `#@__archives` "; | $sql = "INSERT INTO `#@__arctiny` (id,typeid,typeid2,arcrank,channel,senddate,sortrank,mid) SELECT id,typeid,typeid2,arcrank,channel,senddate,sortrank,mid FROM `#@__archives` "; | ||||
| $dsql->ExecuteNoneQuery($sql); | $dsql->ExecuteNoneQuery($sql); | ||||
| //导入单表模型微数据 | |||||
| //导入自定义模型微数据 | |||||
| foreach ($shtables as $tb => $v) { | foreach ($shtables as $tb => $v) { | ||||
| $sql = "INSERT INTO `#@__arctiny` (id,typeid,typeid2,arcrank,channel,senddate,sortrank,mid) SELECT aid,typeid,0,arcrank,channel,senddate,0,mid FROM `$tb` "; | $sql = "INSERT INTO `#@__arctiny` (id,typeid,typeid2,arcrank,channel,senddate,sortrank,mid) SELECT aid,typeid,0,arcrank,channel,senddate,0,mid FROM `$tb` "; | ||||
| $rs = $dsql->ExecuteNoneQuery($sql); | $rs = $dsql->ExecuteNoneQuery($sql); | ||||
| @@ -143,7 +143,7 @@ else if ($dopost == 3) { | |||||
| if (!empty($addtable)) $dsql->ExecuteNoneQuery("DELETE FROM `$addtable` WHERE id='{$row['id']}' "); | if (!empty($addtable)) $dsql->ExecuteNoneQuery("DELETE FROM `$addtable` WHERE id='{$row['id']}' "); | ||||
| } | } | ||||
| } | } | ||||
| //导入单表模型微数据 | |||||
| //导入自定义模型微数据 | |||||
| $dsql->SetQuery("SELECT id,addtable FROM `#@__channeltype` WHERE id < -1 "); | $dsql->SetQuery("SELECT id,addtable FROM `#@__channeltype` WHERE id < -1 "); | ||||
| $dsql->Execute(); | $dsql->Execute(); | ||||
| $doarray = array(); | $doarray = array(); | ||||
| @@ -58,7 +58,7 @@ class Archives | |||||
| $this->ChannelUnit = new ChannelUnit($arr['channel'], $aid); | $this->ChannelUnit = new ChannelUnit($arr['channel'], $aid); | ||||
| $this->TypeLink = new TypeLink($arr['typeid']); | $this->TypeLink = new TypeLink($arr['typeid']); | ||||
| if ($this->ChannelUnit->ChannelInfos['issystem'] != -1) { | if ($this->ChannelUnit->ChannelInfos['issystem'] != -1) { | ||||
| //如果当前文档不是系统模型,为单表模型 | |||||
| //如果当前文档不是系统模型,为自定义模型 | |||||
| $query = "SELECT arc.*,tp.reid,tp.typedir,ch.addtable FROM `#@__archives` arc LEFT JOIN `#@__arctype` tp on tp.id=arc.typeid LEFT JOIN `#@__channeltype` as ch on arc.channel = ch.id WHERE arc.id='$aid' "; | $query = "SELECT arc.*,tp.reid,tp.typedir,ch.addtable FROM `#@__archives` arc LEFT JOIN `#@__arctype` tp on tp.id=arc.typeid LEFT JOIN `#@__channeltype` as ch on arc.channel = ch.id WHERE arc.id='$aid' "; | ||||
| $this->Fields = $this->dsql->GetOne($query); | $this->Fields = $this->dsql->GetOne($query); | ||||
| } else { | } else { | ||||
| @@ -101,7 +101,7 @@ class Archives | |||||
| $query = "SELECT * FROM `{$this->ChannelUnit->ChannelInfos['addtable']}` WHERE `aid` = '$aid'"; | $query = "SELECT * FROM `{$this->ChannelUnit->ChannelInfos['addtable']}` WHERE `aid` = '$aid'"; | ||||
| $this->addTableRow = $this->dsql->GetOne($query); | $this->addTableRow = $this->dsql->GetOne($query); | ||||
| } | } | ||||
| //issystem==-1 表示单表模型,单表模型不支持redirecturl这类参数,因此限定文档普通模型才进行下面查询 | |||||
| //issystem==-1 表示自定义模型,自定义模型不支持redirecturl这类参数,因此限定文档普通模型才进行下面查询 | |||||
| if ($this->ChannelUnit->ChannelInfos['addtable'] != '' && $this->ChannelUnit->ChannelInfos['issystem'] != -1) { | if ($this->ChannelUnit->ChannelInfos['addtable'] != '' && $this->ChannelUnit->ChannelInfos['issystem'] != -1) { | ||||
| if (is_array($this->addTableRow)) { | if (is_array($this->addTableRow)) { | ||||
| $this->Fields['redirecturl'] = $this->addTableRow['redirecturl']; | $this->Fields['redirecturl'] = $this->addTableRow['redirecturl']; | ||||
| @@ -1,7 +1,7 @@ | |||||
| <?php | <?php | ||||
| if (!defined('DEDEINC')) exit('dedebiz'); | if (!defined('DEDEINC')) exit('dedebiz'); | ||||
| /** | /** | ||||
| * 单表模型列表视图类 | |||||
| * 自定义模型列表类 | |||||
| * | * | ||||
| * @version $id:sglistview.class.php 15:48 2010年7月7日 tianya $ | * @version $id:sglistview.class.php 15:48 2010年7月7日 tianya $ | ||||
| * @package DedeBIZ.Libraries | * @package DedeBIZ.Libraries | ||||
| @@ -1,7 +1,7 @@ | |||||
| <?php | <?php | ||||
| if (!defined('DEDEINC')) exit('dedebiz'); | if (!defined('DEDEINC')) exit('dedebiz'); | ||||
| /** | /** | ||||
| * 单表模型视图类 | |||||
| * 自定义模型视图类 | |||||
| * | * | ||||
| * @version $id:sgpage.class.php 15:48 2010年7月7日 tianya $ | * @version $id:sgpage.class.php 15:48 2010年7月7日 tianya $ | ||||
| * @package DedeBIZ.Libraries | * @package DedeBIZ.Libraries | ||||
| @@ -1,7 +1,7 @@ | |||||
| <?php | <?php | ||||
| if (!defined('DEDEINC')) exit('dedebiz'); | if (!defined('DEDEINC')) exit('dedebiz'); | ||||
| /** | /** | ||||
| * 标签列表 | |||||
| * 标签列表类 | |||||
| * | * | ||||
| * @version $id:taglist.class.php 18:17 2010年7月7日 tianya $ | * @version $id:taglist.class.php 18:17 2010年7月7日 tianya $ | ||||
| * @package DedeBIZ.Libraries | * @package DedeBIZ.Libraries | ||||
| @@ -1,7 +1,7 @@ | |||||
| <?php | <?php | ||||
| if (!defined('DEDEINC')) exit('dedebiz'); | if (!defined('DEDEINC')) exit('dedebiz'); | ||||
| /** | /** | ||||
| * 单表模型文档列表标签 | |||||
| * 自定义模型列表标签 | |||||
| * | * | ||||
| * @version $id:arclistsg.lib.php 9:29 2010年7月6日 tianya $ | * @version $id:arclistsg.lib.php 9:29 2010年7月6日 tianya $ | ||||
| * @package DedeBIZ.Taglib | * @package DedeBIZ.Taglib | ||||
| @@ -1,4 +1,4 @@ | |||||
| 单表模型的文档列表调用标记 | |||||
| 自定义模型的文档列表调用标记 | |||||
| >>dede>> | >>dede>> | ||||
| {dede:arclistsg typeid='' row='' flag='h' col='' titlelen='' orderway='' keyword='' limit='0,1'} | {dede:arclistsg typeid='' row='' flag='h' col='' titlelen='' orderway='' keyword='' limit='0,1'} | ||||
| <a href='[field:arcurl/]'>[field:title/]</a> | <a href='[field:arcurl/]'>[field:title/]</a> | ||||
| @@ -1,7 +1,7 @@ | |||||
| <?php | <?php | ||||
| if (!defined('DEDEINC')) exit('dedebiz'); | if (!defined('DEDEINC')) exit('dedebiz'); | ||||
| /** | /** | ||||
| * 单表模型发布器 | |||||
| * 自定义模型发布 | |||||
| * | * | ||||
| * @version $id:archives_sg_add.php 13:52 2010年7月9日 tianya $ | * @version $id:archives_sg_add.php 13:52 2010年7月9日 tianya $ | ||||
| * @package DedeBIZ.User | * @package DedeBIZ.User | ||||