index.html 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <include file="public@header"/>
  2. </head>
  3. <body>
  4. <div class="wrap js-check-wrap">
  5. <ul class="nav nav-tabs">
  6. <li class="active"><a href="javascript:;">所有红娘</a></li>
  7. <li><a href="{:url('AdminMatchmaker/add')}">添加红娘</a></li>
  8. </ul>
  9. <form class="js-ajax-form" action="" method="post">
  10. <table class="table table-hover table-bordered table-list">
  11. <thead>
  12. <tr>
  13. <th width="50">ID</th>
  14. <th>姓名</th>
  15. <th width="160">头像</th>
  16. <th width="160">手机号</th>
  17. <th width="250">操作</th>
  18. </tr>
  19. </thead>
  20. <foreach name="list" item="vo">
  21. <tr>
  22. <td><b>{$vo.id}</b></td>
  23. <td>{$vo.name}</td>
  24. <td>
  25. <notempty name="vo.avatar">
  26. <a href="javascript:parent.imagePreviewDialog('{:cmf_get_image_preview_url($vo.avatar)}');">
  27. <i class="fa fa-photo fa-fw"></i>
  28. </a>
  29. <else/>
  30. <i class="fa fa-close fa-fw"></i>
  31. </notempty>
  32. </td>
  33. <td>{$vo.mobile}</td>
  34. <td>
  35. <a class="btn btn-xs btn-primary" href="{:url('AdminMatchmaker/edit',array('id'=>$vo['id']))}">{:lang('EDIT')}</a>
  36. <a class="btn btn-xs btn-danger js-ajax-delete" href="{:url('AdminMatchmaker/delete',array('id'=>$vo['id']))}">{:lang('DELETE')}</a>
  37. </td>
  38. </tr>
  39. </foreach>
  40. </table>
  41. <ul class="pagination">{$page|default=''}</ul>
  42. </form>
  43. </div>
  44. <script src="__STATIC__/js/admin.js"></script>
  45. <script>
  46. function reloadPage(win) {
  47. win.location.reload();
  48. }
  49. </script>
  50. </body>
  51. </html>