{sub h} {if $method == 'cateList'} {adminList 删? |id |del 排序 |sort |sort 分类名 |name 别名 |ename {modelAlias}总数 |total |code,$v[total](查看) 创建时间|addTime |flag,date2 最后修改|editTime|flag,date2 |id |link,edit=编辑 } {elseif $method == 'addCate' || $method == 'editCate'} {adminForm 分类名,null=请输入分类名 |name |text|240|32 别名 ,null=请输入分类别名|ename|text|240|32 } {elseif $method == 'cmsList'} {eval @eval(parse_php::parse('{adminList 删? |id |del 排序 |sort |sort 所属分类|name'.($showFieldAlias?"\n".$showFieldAlias:'').' 发布时间|addTime |flag,date2 最后修改|editTime|flag,date2 发布IP |addIp |flag,ip 点击数 |clicks |id |link,editCms=编辑;link3,top=推荐/取消推荐 }'));} {elseif $method == 'addCms' || $method == 'editCms'}
$sys_hash_code {loop $fields $v} {if $v[htmlType] != 'hidden'} {/if} {/loop}
所属分类
$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]}
查看$v[name] {/if} {else}
查看$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], $datas[$v[htmlName]]); echo $editor_html; } {/switch}
{/if} {sub f}