打开 \include\arc.sglistview.class.php 搜索 $this-Fields['typeid'] = $this-TypeID; 在它下面加入代码 $this-Fields['nativeplace'] = $this-searchArr['nativeplace']; 打开 \include\extend.func.php 在最下面增加个方法 01 if ( ! function_exists( ' […]
打开 \include\arc.sglistview.class.php 搜索
$this->Fields['typeid'] = $this->TypeID;
在它下面加入代码
$this->Fields['nativeplace'] = $this->searchArr['nativeplace'];
打开 \include\extend.func.php 在最下面增加个方法
01
|
if ( ! function_exists('GetSysEnum'))
|
03
|
function GetSysEnum($evalue, $egroup)
|
06
|
$egroup = isset($egroup) ? $egroup : 'nativeplace';
|
07
|
if($evalue % 500 == 0)
|
09
|
$rowtop = $dsql->GetOne("select ename from `58pic_sys_enum` where egroup='".$egroup."' and evalue='".$evalue."'");
|
10
|
return $rowtop['ename'];
|
14
|
(preg_match("#\.#", $evalue)) ? $rowre = $dsql->GetOne("select ename from `58pic_sys_enum` where egroup='".$egroup."' and evalue='".( floor($evalue-($evalue%500))+1 )."'") : $rowre['ename'] = '';
|
15
|
$rowtop = $dsql->GetOne("select ename from `58pic_sys_enum` where egroup='".$egroup."' and evalue='".( floor($evalue-($evalue%500)) )."'");
|
16
|
$rowson = $dsql->GetOne("select ename from `58pic_sys_enum` where egroup='".$egroup."' and evalue='".$evalue."'");
|
19
|
return $rowtop['ename'].$rowre['ename'].$rowson['ename'];
|
|
<title>{dede:field.nativeplace function=GetSysEnum(@me)/}_{dede:field.title/}_{dede:global.cfg_webname/}</title>列表模板title处的标签调用代码