{template 'common/header'}
{if $foo == 'device_list'}

规则名称 | 机器码 | 访问密钥 | 是否启用 | 操作
--- | --- | --- | --- | ---
{loop $devices $item}
{$item['rule']['rule']['name']} | {$item['sn']} | {$item['token']} | {if $item['status'] == 1} 是 {else} 否 {/if} |
{/loop}

{$pager}
{elseif $foo == 'print_manage'}

#### 详细数据

选择 | 用户 | 照片信息 | 打印状态 | 创建时间 | 操作
--- | --- | --- | --- | --- | ---
{loop $logs $log}
| {php echo cutstr($log['openid'], 8)} |  | {if $log['status'] == 0} 待打印 {elseif $log['status'] == 1} 打印中 {elseif $log['status'] == 2} 打印成功 {elseif $log['status'] == 3} 打印失败 {/if} | {php echo date('Y-m-d H:i:s', $log[createtime]);} |
{/loop}

{$pager}
{/if} {template 'common/footer'}