video.html 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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. }
  30. }
  31. function get_nickname($id){
  32. $get_nickname=$GLOBALS['db']->getOne("select nick_name from ".DB_PREFIX."user where id=".$id);
  33. return emoji_decode($get_nickname);
  34. }
  35. function screenshot($screenshot){
  36. return "<img src='".$screenshot."' style='height:35px;width:35px;'/>";
  37. }
  38. function get_weibo_status($status){
  39. if($status){
  40. return '上架';
  41. }else{
  42. return '下架';
  43. }
  44. }
  45. </php>
  46. <div class="button_row">
  47. <!--<input type="button" class="button" value="{%ADD}" onclick="add();" />-->
  48. </div>
  49. <div class="search_row">
  50. <form name="search" action="__APP__" method="get" class="clearfix">
  51. <div>动态ID:<input type="text" class="textbox" name="weibo_id" value="{:trim($_REQUEST['weibo_id'])}" style="width:100px;" /></div>
  52. <div>发布人ID:<input type="text" class="textbox" name="user_id" value="{:trim($_REQUEST['user_id'])}" style="width:100px;" /></div>
  53. <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>
  54. <input type="hidden" value="WeiboList" name="m" />
  55. <input type="hidden" value="video" name="a" />
  56. <input type="submit" class="button" value="{%SEARCH}" />
  57. </div> </form>
  58. </div>
  59. <?php if (defined('OPEN_SVIDEO_MODULE') && OPEN_SVIDEO_MODULE) { ?>
  60. <html:list
  61. id="dataTable"
  62. style="dataTable"
  63. name="weibo"
  64. checkbox="true"
  65. action="true"
  66. datasource="list"
  67. show="id:{%ID}|90px
  68. ,user_id:发布人ID|90px
  69. ,user_id|get_nickname=$weibo['user_id']:发布人|180px
  70. ,type|get_weibo_type=$weibo['type']:动态类型|90px
  71. ,content:发布内容|270px
  72. ,status|get_weibo_status=$weibo['status']:动态状态|90px
  73. ,is_recommend|get_recommend=$weibo['id']:是否推荐|90px
  74. ,create_time:发布时间|90px
  75. "
  76. actionlist="foreverdel:{%DEL}" />
  77. <?php } else { ?>
  78. <html:list
  79. id="dataTable"
  80. style="dataTable"
  81. name="weibo"
  82. checkbox="true"
  83. action="true"
  84. datasource="list"
  85. show="id:{%ID}|90px
  86. ,user_id:发布人ID|90px
  87. ,user_id|get_nickname=$weibo['user_id']:发布人|180px
  88. ,type|get_weibo_type=$weibo['type']:动态类型|90px
  89. ,content:发布内容|270px
  90. ,price:发布价格|90px
  91. ,status|get_weibo_status=$weibo['status']:动态状态|90px
  92. ,is_recommend|get_recommend=$weibo['id']:是否推荐|90px
  93. ,create_time:发布时间|90px
  94. "
  95. actionlist="foreverdel:{%DEL}" />
  96. <?php } ?>
  97. <table class="dataTable">
  98. <tbody>
  99. <td colspan="8">
  100. <input type="button" class="button button-del" value="{%DEL}" onclick="foreverdel();" />
  101. </td>
  102. </tbody>
  103. </table>
  104. <div class="page">{$page}</div>
  105. </div>
  106. <include file="Public:footer" />