数据规则模型管理
>>修改导入规则
§基本参数:
规则名称:
入库类型:
GetAtt('etype')=='当前系统') echo " checked";?>> 当前系统
GetAtt('etype')=='其它系统') echo " checked";?>> 其它系统
针对频道:
--非系统频道模型--
SetQuery("Select ID,typename From #@__channeltype where ID>0 order by ID asc"); $dsql->Execute(); while($row = $dsql->GetObject()){ if($channelid==$row->ID) echo "
{$row->typename}
\r\n"; else echo "
{$row->typename}
\r\n"; } $dsql->Close(); ?>
§数据库基本参数:
导入的数据表:
(多个表用“,”分开,最多支持两个表)
自动编号字段:
(表示两个表关连时,第一个表的自动编号字段)
多表同步字段:
(表示第二个表与第一个表的自动编号字段关连字段)
§字段设定:
增加字段:
CTags)) { $s = 0; foreach($dtp->CTags as $ctag){ if($ctag->GetName()=='field') { $s++; if($s<10) $ss="0".$s; else $ss=$s; $c1=""; $c2=""; $c3=""; if($ctag->GetAtt('source')=='function') $c1=" checked"; else if($ctag->GetAtt('source')=='value') $c2=" checked"; else $c3=" checked"; $line=" 字段{$ss}:
注解:
递属表:
值类型:
函数
指定值
导入/采集 指定值或函数:
".$ctag->GetInnerText()."
\r\n"; echo $line; } } } ?>