{template admin_header}
{if $_GET['get']=='list'}

| 编号 | 标题 | 所属分类 | 发布时间 | 操作
--- | --- | --- | --- | --- | ---
| {$value[id]} | {$value['title']} | {$value['typename']} | {$value['addtime']} | 编辑 删除

{form('button','删除','submit','','class=\'button\'')}
{self pagetotal}条记录/{eval echo $_GET['page'] ? $_GET['page'] : 1 }页{self showpage}
{/if} {if $_GET['get']=='add'||$_GET['get']=='edit'}
{$getName}

标题 | {form('title',{self news[title]},'input','','class=\'skey\'')}
所属分类 | {form('typeid',{self news[typeid]},'select',{self typelist})}
发布时间 | {form('addtime',formattime($this->news['addtime']),'data',true,'datefmt')}
详细内容 | {form('content',{self news[content]},'editor','0','<1@1>')}

{form('button','提交','submit','','class=\'button\'')}
{/if} {if $_GET['get']=='type'}

编号 | 分类名称 | 排序 | 操作
--- | --- | --- | ---
{$value[id]} | {form('typename[]',$value['typename'],'input','','class=\'skey\' style=\'width:130px;\'')} | {form('typeorder[]',$value['typeorder'],'input','','class=\'skey\' style=\'width:50px;\'')} | 删除

{form('button','确认修改','submit','','class=\'button\'')}
{/if}
{template admin_footer}