index.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <include file="Public:new" />
  5. <load href='__TMPL__Common/js/jquery.bgiframe.js' />
  6. <load href='__TMPL__Common/js/jquery.weebox.js' />
  7. <load href='__TMPL__Common/js/user.js' />
  8. <load href='__TMPL__Common/style/weebox.css' />
  9. <script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
  10. <load href='__TMPL__Common/js/calendar/calendar.css' />
  11. <load href='__TMPL__Common/js/calendar/calendar.js' />
  12. <div class="main">
  13. <div class="main_title_list"><div class="list-line-ico"></div>订单列表</div>
  14. <php>
  15. function get_weibo_type($type){
  16. switch($type){
  17. case 'imagetext':
  18. return '图文动态';
  19. case 'video':
  20. return '视频动态';
  21. case 'weixin':
  22. return '微信账号';
  23. case 'goods':
  24. return '虚拟商品动态';
  25. case 'red_photo':
  26. return '红包图片动态';
  27. case 'photo':
  28. return '写真动态';
  29. case 'reward':
  30. return '打赏';
  31. case 'chat':
  32. return '聊天';
  33. }
  34. }
  35. function get_nickname($id){
  36. $get_nickname=$GLOBALS['db']->getOne("select nick_name from ".DB_PREFIX."user where id=".$id);
  37. return emoji_decode($get_nickname);
  38. }
  39. function screenshot($screenshot){
  40. return "<img src='".$screenshot."' style='height:35px;width:35px;'/>";
  41. }
  42. function get_order_status($status){
  43. switch($status){
  44. case 0:
  45. return '支付中';
  46. case 1:
  47. return '支付成功';
  48. }
  49. }
  50. </php>
  51. <div class="button_row">
  52. <!--<input type="button" class="button" value="{%ADD}" onclick="add();" />-->
  53. </div>
  54. <div class="search_row">
  55. <form name="search" action="__APP__" method="get" class="clearfix">
  56. <div>动态ID:<input type="text" class="textbox" name="weibo_id" value="{:trim($_REQUEST['weibo_id'])}" style="width:100px;" /></div>
  57. <div>支付人ID:<input type="text" class="textbox" name="user_id" value="{:trim($_REQUEST['user_id'])}" style="width:100px;" /></div>
  58. <div>订单类型:<select name="type" style="width:100px;">
  59. <option value="0">全部</option>
  60. <option value="weixin" <if condition="$_REQUEST['type'] eq 'weixin'">selected="selected"</if>>微信账号</option>
  61. <option value="goods" <if condition="$_REQUEST['type'] eq 'goods'">selected="selected"</if>>虚拟商品</option>
  62. <option value="red_photo" <if condition="$_REQUEST['type'] eq 'red_photo'">selected="selected"</if>>红包图片</option>
  63. <option value="photo" <if condition="$_REQUEST['type'] eq 'photo'">selected="selected"</if>>写真订单</option>
  64. <option value="reward" <if condition="$_REQUEST['type'] eq 'reward'">selected="selected"</if>>打赏订单</option>
  65. <option value="chat" <if condition="$_REQUEST['type'] eq 'chat'">selected="selected"</if>>聊天订单</option>
  66. </select>
  67. </div>
  68. <div>支付状态:<select name="sattus" style="width:100px;">
  69. <option value="">全部</option>
  70. <option value="0" <if condition="$_REQUEST['sattus'] eq '0'">selected="selected"</if>>支付中</option>
  71. <option value="1" <if condition="$_REQUEST['sattus'] eq '1'">selected="selected"</if>>支付成功</option>
  72. <option value="2" <if condition="$_REQUEST['sattus'] eq '2'">selected="selected"</if>>申述中</option>
  73. <option value="3" <if condition="$_REQUEST['sattus'] eq '3'">selected="selected"</if>>退款成功</option>
  74. </select>
  75. </div>
  76. <div>订单时间:<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> - <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>
  77. <input type="hidden" value="WeiboOrder" name="m" />
  78. <input type="hidden" value="index" name="a" />
  79. <input type="submit" class="button" value="{%SEARCH}" />
  80. </div>
  81. </form>
  82. </div>
  83. <html:list
  84. id="dataTable"
  85. style="dataTable"
  86. name="tipoff"
  87. checkbox="true"
  88. action="true"
  89. datasource="list"
  90. show="id:{%ID}|90px
  91. ,order_id:动态ID
  92. ,user_id|get_nickname=$list['user_id']:支付人
  93. ,recharge_name:订单类型
  94. ,money:订单价格
  95. ,is_paid|get_order_status=$list['is_paid']:动态状态
  96. ,create_time|to_date:订单生成时间
  97. "
  98. actionlist="tips:无" />
  99. <table class="dataTable">
  100. <tbody>
  101. <td colspan="8">
  102. <input type="button" class="button button-del" value="{%DEL}" onclick="foreverdel();" />
  103. </td>
  104. </tbody>
  105. </table>
  106. <div class="page">{$page}</div>
  107. </div>
  108. <include file="Public:footer" />