CAttribute->Items,$attlist); //extract($ctag->CAttribute->Items, EXTR_SKIP); $cmspath = ((empty($cfg_cmspath) || preg_match('#[/$]#', $cfg_cmspath)) ? $cfg_cmspath.'/' : $cfg_cmspath); if (empty($refObj->Fields['typeid'])) { $row = $dsql->GetOne("SELECT id FROM `#@__arctype` WHERE channeltype='-8' And reid = '0' "); $typeid = (is_array($row) ? $row['id'] : 0); if (empty($typeid)) { return '请指定一个栏目类型为“分类信息”,否则无法使用这个搜索表单'; } } else { $typeid = $refObj->Fields['typeid']; } $innerText = trim($ctag->GetInnerText()); if (empty($innerText)) $innerText = GetSysTemplets("info_guide.htm"); $ctp = new DedeTagParse(); $ctp->SetNameSpace('field', '[', ']'); $ctp->LoadSource($innerText); $revalue = $seli = ''; $fields = array('nativeplace' => '', 'infotype' => '', 'typeid' => $typeid); if ($hasSetEnumJs != 'has') { $revalue .= ''."\r\n"; $GLOBALS['hasSetEnumJs'] = 'hasset'; } $fields['nativeplace'] = $fields['infotype'] = ''; if (empty($nativeplace)) $nativeplace = 0; if (empty($infotype)) $infotype = 0; $fields['nativeplace'] .= "\r\n"; $fields['nativeplace'] .= "地区:\r\n"; $fields['nativeplace'] .= "\r\n
\r\n"; $fields['nativeplace'] .= "\r\n"; $fields['nativeplace'] .= ''."\r\n"; $fields['infotype'] .= "\r\n"; $fields['infotype'] .= "类型:\r\n"; $fields['infotype'] .= "
\r\n"; $fields['infotype'] .= "\r\n"; $fields['infotype'] .= ''."\r\n"; if (is_array($ctp->CTags)) { foreach ($ctp->CTags as $tagid => $ctag) { if (isset($fields[$ctag->GetName()])) { $ctp->Assign($tagid, $fields[$ctag->GetName()]); } } $revalue .= $ctp->GetResult(); } return $revalue; }