index.html 4.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.ds_bonus}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form method="get" name="formSearch" id="formSearch">
  13. <div class="ds-search-form">
  14. <dl>
  15. <dt>{$Think.lang.bonus_name}</dt>
  16. <dd><input type="text" value="{$Request.param.bonus_name}" name="bonus_name" class="txt"></dd>
  17. </dl>
  18. <dl>
  19. <dt>{$Think.lang.bonus_type}</dt>
  20. <dd>
  21. <select name="bonus_type">
  22. <option value="">{$Think.lang.ds_please_choose}...</option>
  23. {foreach name="bonus_type_list" item="v" key="k"}
  24. <option value="{$k}" {if condition="$Request.param.bonus_type eq $k"}selected{/if}>{$v}</option>
  25. {/foreach}
  26. </select>
  27. </dd>
  28. </dl>
  29. <dl>
  30. <dt>{$Think.lang.bonus_state}</dt>
  31. <dd>
  32. <select name="bonus_state">
  33. <option value="">{$Think.lang.ds_please_choose}...</option>
  34. {foreach name="bonus_state_list" item="v" key="k"}
  35. <option value="{$k}" {if condition="$Request.param.bonus_state eq $k"}selected{/if}>{$v}</option>
  36. {/foreach}
  37. </select>
  38. </dd>
  39. </dl>
  40. <div class="btn_group">
  41. <input type="submit" class="btn" value="{$Think.lang.ds_search}">
  42. <a href="{:url('Bonus/index')}" class="btn btn-default" title="{$Think.lang.ds_cancel}">{$Think.lang.ds_cancel}</a>
  43. </div>
  44. </div>
  45. </form>
  46. <table class="ds-default-table">
  47. <thead>
  48. <tr>
  49. <th>{$Think.lang.bonus_name}</th>
  50. <th>{$Think.lang.bonus_type}</th>
  51. <th>{$Think.lang.bonus_totalprice}</th>
  52. <th>{$Think.lang.bonus_receiveprice}</th>
  53. <th>{$Think.lang.bonus_receivecount}</th>
  54. <th>{$Think.lang.ds_begin_time}</th>
  55. <th>{$Think.lang.ds_end_time}</th>
  56. <th>{$Think.lang.bonus_state}</th>
  57. <th>{$Think.lang.ds_handle}</th>
  58. </tr>
  59. </thead>
  60. <tbody>
  61. {notempty name="bonus_list"}
  62. {foreach name="bonus_list" item="bonus"}
  63. <tr id="ds_row_{$bonus.bonus_id}">
  64. <td>{$bonus.bonus_name}</td>
  65. <td>{$bonus_type_list[$bonus['bonus_type']]}</td>
  66. <td>{$bonus.bonus_totalprice}</td>
  67. <td>{$bonus.bonus_receiveprice}</td>
  68. <td>{$bonus.bonus_receivecount}</td>
  69. <td>{$bonus.bonus_begintime|date="Y-m-d H:i:s"}</td>
  70. <td>{$bonus.bonus_endtime|date="Y-m-d H:i:s"}</td>
  71. <td>{$bonus_state_list[$bonus['bonus_state']]}</td>
  72. <td>
  73. <a href="javascript:dsLayerOpen('{:url('Bonus/receive',['bonus_id'=>$bonus.bonus_id])}','{$Think.lang.ds_edit}')" class="dsui-btn-view"><i class="iconfont"></i>{$Think.lang.ds_detail}</a>
  74. {if $bonus.bonus_state == 1}
  75. <a href="javascript:dsLayerOpen('{:url('Bonus/edit',['bonus_id'=>$bonus.bonus_id])}','{$Think.lang.ds_edit}')" class="dsui-btn-edit"><i class="iconfont"></i>{$Think.lang.ds_edit}</a>
  76. {if $bonus.bonus_type == 1}<a href="javascript:dsLayerOpen('{:url('Bonus/link',['bonus_id'=>$bonus.bonus_id])}','{$Think.lang.ds_link}')" class="dsui-btn-link"><i class="iconfont"></i>{$Think.lang.ds_link}</a>{/if}
  77. <a href="javascript:dsLayerConfirm('{:url('Bonus/invalid',['bonus_id'=>$bonus.bonus_id])}','{$Think.lang.ds_ensure_del}')" class="dsui-btn-del"><i class="iconfont"></i>{$Think.lang.ds_invalid}</a>
  78. {/if}
  79. </td>
  80. </tr>
  81. {/foreach}
  82. {else /}
  83. <tr class="no_data">
  84. <td colspan="10">{$Think.lang.ds_no_record}</td>
  85. </tr>
  86. {/notempty}
  87. </tbody>
  88. </table>
  89. {$show_page|raw}
  90. </div>