CAttribute->Items, $attlist); extract($ctag->CAttribute->Items, EXTR_SKIP); //var_dump($refObj->Fields['id']); $id = 0; if (empty($type) and empty($id)) { if (get_class($refObj) == 'Archives') { $type = 'arc'; $id = $refObj->Fields['id']; } elseif (get_class($refObj) == 'ListView' or get_class($refObj) == 'SgListView') { $type = 'list'; $id = $refObj->Fields['id']; } elseif (get_class($refObj) == 'PartView' and !empty($refObj->Fields['id'])) { $type = 'list'; $id = $refObj->Fields['id']; } elseif (get_class($refObj) == 'PartView' and empty($refObj->Fields['id'])) { $type = 'index'; $id = 0; } } $reval = <<二维码生成 EOT; $GLOBALS['qrcode_id']++; return $reval; } ?>