GetOne("Select * From `#@__channeltype` where id='{$channelid}' ");
$dtp = new DedeTagParse();
$dtp->SetNameSpace('field','<','>');
$dtp->LoadString($row['fieldset']);
foreach($dtp->CTags as $ctag)
{
//采集禁用的字段
$notsend = $ctag->GetAtt('notsend');
if($notsend==1) continue;
$fieldtype = $ctag->GetAtt('type');
$tname = $ctag->GetTagName();
$iname = $ctag->GetAtt('itemname');
if(isset($notes[$tname]['item']))
{
$tvalue = $notes[$tname]['item']->GetAtt('value');
$tisunit = $notes[$tname]['item']->GetAtt('isunit');
$tisdown = $notes[$tname]['item']->GetAtt('isdown');
$tmatch = $notes[$tname]['match'];
$ttrim = $notes[$tname]['trim'];
$tfunction = $notes[$tname]['function'];
}else {
$tvalue = $tisunit = $tisdown = $tmatch = $ttrim = $tfunction = '';
}
?>
|