index.html 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
  5. <load href='__TMPL__Common/js/calendar/calendar.css' />
  6. <load href='__TMPL__Common/js/calendar/calendar.js' />
  7. <php>
  8. function get_user_diamonds($user_id)
  9. {
  10. return M("User")->where("id=".intval($user_id))->getField("diamonds");
  11. }
  12. function to_user_list($user_id)
  13. {
  14. return '<a href="'.U('UserGeneral/index',array('id'=>$user_id)).'">'.$user_id.'</a>';
  15. }
  16. function get_promoter_two($child_count,$pid)
  17. {
  18. if($child_count >0) {
  19. return $child_count.'<a href="'.U('BmPromoterTwo/index',array('p_promoter_id'=>$pid)).'">明细</a>';
  20. }else{
  21. return $child_count;
  22. }
  23. }
  24. </php>
  25. <script>
  26. </script>
  27. <div class="main">
  28. <div class="main_title_list"><div class="list-line-ico"></div>推广中心列表</div>
  29. <div class="search_row">
  30. <form name="search" action="__APP__" method="get">
  31. <div>推广中心ID:<input type="text" style="width:60px;" class="textbox" name="id" value="{:trim($_REQUEST['id'])}" /></div>
  32. <div>推广中心名称:<input type="text" class="textbox" name="name" value="{:trim($_REQUEST['name'])}" /></div>
  33. <div>手机号:<input type="text" style="width:80px;" class="textbox" name="mobile" value="{:trim($_REQUEST['mobile'])}" /></div>
  34. <div>创建时间:
  35. <span><input type="text" class="textbox" name="create_time_1" id="create_time_1" value="{$_REQUEST['create_time_1']}" onfocus="this.blur(); return showCalendar('create_time_1', '%Y-%m-%d', false, false, 'btn_create_time_1');" /><input type="button" class="button" id="btn_create_time_1" value="{%SELECT_TIME}" onclick="return showCalendar('create_time_1', '%Y-%m-%d', false, false, 'btn_create_time_1');" /></span>
  36. - <span><input type="text" class="textbox" name="create_time_2" id="create_time_2" value="{$_REQUEST['create_time_2']}" onfocus="this.blur(); return showCalendar('create_time_2', '%Y-%m-%d', false, false, 'btn_create_time_2');" /><input type="button" class="button" id="btn_create_time_2" value="{%SELECT_TIME}" onclick="return showCalendar('create_time_2', '%Y-%m-%d', false, false, 'btn_create_time_2');" /></span>
  37. <input type="hidden" value="BmPromoterOne" name="m" />
  38. <input type="hidden" value="index" name="a" />
  39. <input type="submit" class="button" value="{%SEARCH}" />
  40. </div>
  41. </form>
  42. </div>
  43. <html:list
  44. id="dataTable"
  45. style="dataTable"
  46. name="data"
  47. checkbox="true"
  48. action="true"
  49. datasource="list"
  50. show="
  51. ,id:推广中心ID|100px
  52. ,name:推广中心名称:edit
  53. ,mobile:手机号
  54. ,user_id|to_user_list:绑定会员ID
  55. ,user_id|get_user_diamonds:钻石数
  56. ,child_count|get_promoter_two=$data['id']:发展推广商/人
  57. ,create_time|to_date:{%CREATE_TIME}
  58. ,is_effect|get_is_effect=$data['id']:{%IS_EFFECT}"
  59. actionlist="edit:{%EDIT}" />
  60. <table class="dataTable">
  61. <tbody>
  62. <td colspan="9">
  63. <input type="button" class="button button-add" value="{%ADD}" onclick="add();" />
  64. </td>
  65. </tbody>
  66. </table>
  67. <div class="page">{$page}</div>
  68. </div>
  69. <include file="Public:footer" />