选择数据规则模型
规则类型:
频道模型
数据规则(旧)
请选择采集规则:
SetQuery("Select aid,rulename From #@__co_exrule order by aid asc"); $dsql->Execute(); while($row = $dsql->GetObject()) { echo "
{$row->rulename}
"; } ?>
请选择频道模型:
SetQuery("Select channeltype,count(channeltype) as dd From #@__arctype group by channeltype"); $dsql->Execute(); while($row = $dsql->GetObject()){ if($row->dd>0) $channels .= ($channels=='' ? $row->channeltype : ','.$row->channeltype); } echo $channels; if($channels!=''){ $dsql->SetQuery("Select ID,typename From #@__channeltype where ID in ($channels)"); $dsql->Execute(); while($row = $dsql->GetObject()){ echo "
{$row->typename}
"; } } ?>