<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="UTF-8">
<title><{$title}></title>
<link rel="stylesheet" href="__PUBLIC__/css/bootstrap.min.css">
<link rel="stylesheet" href="__PUBLIC__/my.css">
</head>
<body>
<div class="container">
<h1><{$title}></h1>
<a href="<{:U('index')}>" class='btn btn-info btn-sm'>用户首页</a>
<a href="<{:U('add')}>" class='btn btn-info btn-sm'>添加用户</a>
</div><!--end of head container-->
<div class="container">
<block name='main'>
<table class='table table-hover mt50 table-striped h4'>
<tr>
<th class='text-center'>ID</th>
<th class='text-center'>姓名</th>
<th class='text-center'>性别</th>
<th class='text-center'>操作</th>
</tr>
<volist name='list' id='v'>
<tr class='text-center'>
<td><{$v.id}></td>
<td><{$v.name}></td>
<td>
<if condition="$v.sex eq w" >女
<elseif condition="$v.sex eq m" />男
</if>
</td>
<td class='col-md-2'>
<a href="<{:U('edit',array('id'=>$v['id']))}>" class='btn btn-sm btn-warning'>编辑</a>
<a href="<{:U('del',array('id'=>$v['id']))}>" class='btn btn-sm btn-danger'>删除</a>
</td>
</tr>
</volist>
</table>
</block>
</div>
<script src='__PUBLIC__/js/jquery.min.js'></script>
<script src='__PUBLIC__/js/bootstrap.min.js'></script>
</body>
</html>