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

编号 | 关联会员 | 商家名称 | 联系人 | 联系电话 | 所属分类 | 加入时间 | 目前状态 | 操作
--- | --- | --- | --- | --- | --- | --- | --- | ---
{$value[id]} | {$value[username]} | {$value['name']} | {$value['person']} | {$value['telphone']} | {$value['typename']} | {$value['addtime']} | {$value['checked']} | 编辑

{self pagetotal}条记录/{eval echo $_GET['page'] ? $_GET['page'] : 1 }页{self showpage}
{/if} {if $_GET['get']=='add'||$_GET['get']=='edit'}
{$getName}

商家名称 | {form('name',{self company['name']},'input','','class=\'skey\'')}
商家地址 | {form('address',{self company['address']},'input','','class=\'skey\'')}
联系人 | {form('person',{self company['person']},'input','','class=\'skey\'')}
联系电话 | {form('telphone',{self company['telphone']},'input','','class=\'skey\'')}
所属分类 | {form('typeid',{self company[typeid]},'select',{self typelist})}
所属地区 |
加入时间 | {form('addtime',formattime($this->company['addtime'],'Y-m-d'),'data',false,'datefmt')}
商家详细介绍 | {form('content',{self company[content]},'editor','0','<1@1>')}
缩略图片 | 把第 {form('pics',{self company['pics']},'input','','class=\'skey\' style=\'width:20px;\'')} 张作为缩略图
商家状态 | {form('checked',{self company[checked]},'radio','[<1><审核>][<0><未审核>]')}
是否推荐 | {form('ishot',{self company[ishot]},'radio','[<1><推荐>][<0><不推荐>]')}

{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}