prop.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. {// 引入标签库 }
  2. <tagLib name="html" />
  3. <include file="Public:header" />
  4. <script type="text/javascript">
  5. //完全删除
  6. function prop_detail(id)
  7. {
  8. if(!id)
  9. {
  10. idBox = $(".key:checked");
  11. if(idBox.length == 0)
  12. {
  13. alert(LANG['DELETE_EMPTY_WARNING']);
  14. return;
  15. }
  16. idArray = new Array();
  17. $.each( idBox, function(i, n){
  18. idArray.push($(n).val());
  19. });
  20. id = idArray.join(",");
  21. }
  22. if(confirm(LANG['CONFIRM_DELETE']))
  23. $.ajax({
  24. url: ROOT+"?"+VAR_MODULE+"="+MODULE_NAME+"&"+VAR_ACTION+"=delete_prop&id="+id,
  25. data: "ajax=1",
  26. dataType: "json",
  27. success: function(obj){
  28. $("#info").html(obj.info);
  29. if(obj.status==1)
  30. location.href=location.href;
  31. }
  32. });
  33. }
  34. </script>
  35. <script type="text/javascript" src="__TMPL__Common/js/calendar/calendar.php?lang=zh-cn" ></script>
  36. <load href='__TMPL__Common/js/calendar/calendar.css' />
  37. <load href='__TMPL__Common/js/calendar/calendar.js' />
  38. <div class="main">
  39. <div class="main_title">{$user_info.nick_name} {%USER_PROP_DETAIL}{$list[0].log_admin_id}</div>
  40. <div class="blank5"></div>
  41. <div class="blank5"></div>
  42. <div class="search_row">
  43. <form name="search" action="__APP__" method="get" class="clearfix">
  44. <div>赠送者ID:<input type="text" class="textbox" name="from_user_id" value="{:trim($_REQUEST['from_user_id'])}" style="width:100px;" /></div>
  45. <div>赠送者昵称:<input type="text" class="textbox" name="nick_name" value="{:trim($_REQUEST['nick_name'])}" style="width:100px;" /></div>
  46. <div>礼物名称:<select name="prop_id">
  47. <option value="0">全部</option>
  48. <foreach name="prop" item="prop_item">
  49. <option value="{$prop_item.id}" <if condition="$_REQUEST['prop_id'] eq $prop_item['id']">selected="selected"</if>>{$prop_item.name}</option>
  50. </foreach>
  51. </select></div>
  52. <div>赠送时间:
  53. <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>
  54. <input type="hidden" value="UserGeneral" name="m" /><input type="hidden" value="prop" name="a" /><input type="submit" class="button" value="{%SEARCH}" />
  55. <input type="hidden" value="<?php echo $_REQUEST['id'] ?>" name="id"/></div>
  56. </form>
  57. </div>
  58. <html:list
  59. id="dataTable"
  60. style="dataTable"
  61. name="prop"
  62. checkbox="true"
  63. action="true"
  64. datasource="list"
  65. show="prop_id:礼物ID|50px,prop_name:礼物名称,from_user_id:赠送者,nick_name:赠送者昵称,num:数量,total_ticket:获得印票数,create_date:赠送时间,from_ip:赠送IP"
  66. actionlist="prop_detail:{%FOREVERDEL}" />
  67. <div class="blank5"></div>
  68. <div class="button_row">
  69. <input type="button" class="button" value="{%FOREVERDEL}" onclick="prop_detail();" />
  70. </div>
  71. <div class="page">{$page}</div>
  72. </div>
  73. <include file="Public:footer" />