{sub h} {if $method == 'cateList'} {adminList {lg isDel0 admin} |id |del {lg sort admin} |sort |sort {lg cateName admin} |name {lg alias admin} |ename {lg helpCount admin} |total |code,$v[total]({lg view admin}) {lg ctime admin}|addTime |flag,date2 {lg ledit admin}|editTime|flag,date2 |id |link,edit={lg edit admin} } {elseif $method == 'addCate' || $method == 'editCate'} {adminForm {lg cateName admin},null={lg plsWtCateName admin} |name |text|240|32 {lg alias admin} ,null={lg plsWtCateAlias admin}|ename|text|240|32 } {elseif $method == 'cmsList'} {eval @eval(parse_php::parse('{adminList {lg isDel0 admin} |id |del {lg sort admin} |sort |sort {lg subCate admin}|name'.($showFieldAlias?"\n".$showFieldAlias:'').' {lg atime admin}|addTime |flag,date2 {lg ledit admin}|editTime|flag,date2 {lg addIP admin} |addIp |flag,ip {lg clicks admin} |clicks |id |link,editCms={lg edit admin};link3,top={lg top admin}/{lg ctop admin} }'));} {elseif $method == 'addCms' || $method == 'editCms'}
$sys_hash_code {loop $fields $v} {if $v[htmlType] != 'hidden'} {/if} {/loop}
{lg subCate admin}
$v[name] {switch $v[htmlType] 'txt'} {case 'textarea'} {case 'radio'} {loop $v[choose] $k1 $v1} {/loop} {case 'checkbox'} {loop $v[choose] $k1 $v1} {/loop} {case 'select'} {case 'file'} {if empty($datas[$v[htmlName]])} {if $v[htmlDefaultValue]}
{lg view admin}$v[name] {/if} {else}
{lg view admin}$v[name] {/if} {case 'image'} {if empty($datas[$v[htmlName]])} {if $v[htmlDefaultValue]}
{/if} {else}
{/if} {case 'editor'} {eval include(d('./js_lib/ckeditor/ckeditor.php')); include(d('./js_lib/ckfinder/ckfinder.php')); $CKEditor = new CKEditor(); $CKEditor->basePath = $weburl2.'js_lib/ckeditor/'; $CKEditor->config['width'] = $v[htmlWidth]; $CKEditor->config['height'] = $v[htmlHeight]; $CKEditor->config['skin'] = 'office2003'; $CKEditor->returnOutput = true; CKFinder::SetupCKeditor($CKEditor, $weburl2.'js_lib/ckfinder/'); $editor_html=$CKEditor->editor($v[htmlName], $$v[htmlName]); echo $editor_html; } {/switch}
{/if} {sub f}