program.jsp 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. <%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
  2. <%@ include file="../common/common.jsp" %>
  3. <link rel="stylesheet" type="text/css" href="${staticPath}css/jquery.datetimepicker.css" />
  4. <title>节目管理</title>
  5. </head>
  6. <body>
  7. <%@ include file="../common/head.jsp" %>
  8. <div class="screen main">
  9. <%@ include file="../common/left.jsp" %>
  10. <div class="main-content">
  11. <div class="btn-radius">节目管理</div>
  12. <form id="programForm">
  13. <div class="search-group">
  14. <div class="search-item">节目名称&nbsp;&nbsp;<input id="programName" type="text" name="programName" class="text {text:'请输入关键字'}" size="32" /></div>
  15. <div class="search-item">期/集&nbsp;&nbsp;<input id="showPhase" type="text" name="showPhase" class="text {text:'请输入关键字'}" size="32" /></div>
  16. <div class="search-item">
  17. 类型&nbsp;
  18. <div class="select selectW320 {onchange:getOneCategorySelect,width:320}">
  19. <select id="type" name="type">
  20. <option value="">请选择</option>
  21. <option value="1">综艺</option>
  22. <option value="2">栏目</option>
  23. <option value="3">电视剧</option>
  24. <option value="4">电影</option>
  25. </select>
  26. </div>
  27. </div>
  28. <div class="mTop10">
  29. <div class="search-item">
  30. 一级分类&nbsp;
  31. <!--<div class="select selectW200 {onchange:getTwoCategory,width:200}">
  32. <select id="firstType" name="firstType">
  33. <option value="">一级分类</option>
  34. </select>
  35. </div> -->
  36. <div class="search-item">
  37. <input type="text" id="keywords1" arrow=true class="text textTips" name="firstType" />
  38. </div>
  39. <input type="hidden" id="firstType" />
  40. </div>
  41. <div class="search-item">
  42. 二级分类&nbsp;
  43. <div class="search-item">
  44. <input type="text" id="keywords2" arrow=true class="text textTips" name="secondType" />
  45. </div>
  46. <input type="hidden" id="secondType"/>
  47. <!-- <div class="select selectW200 {width:200}">
  48. <select id="secondType" name="secondType">
  49. <option value="">二级分类</option>
  50. </select>
  51. </div> -->
  52. </div>
  53. <div class="search-item">首播日期&nbsp;&nbsp;<input type="text" name="startDate" id="start_time" class="text {text:'开始时间'}" size="14" /> - <input type="text" name="endDate" id="end_time" class="text {text:'结束时间'}" size="14" /></div>
  54. <div class="search-item">
  55. <a href="javascript:getList(1)" class="btn-radius">搜 索</a>
  56. </div>
  57. </div>
  58. </div>
  59. </form>
  60. <div class="rFloat buttons">
  61. <c:if test="${funcMap['program_add'] eq 1}">
  62. <a href="javascript:programModfiy('add','节目')" class="btn">+新增</a>
  63. </c:if>
  64. <a href="${staticPath}excel/节目导入模板.rar" class="btn">下载模板</a>
  65. <c:if test="${funcMap['program_import_excel'] eq 1}">
  66. <a href="javascript:importExcel()" class="btn upfile">
  67. <form id="excelInfo" action="" method="POST" enctype="multipart/form-data" target="hframe">
  68. <input type="file" name="uploadfile" onchange="importExcel(this)"/><span>导入表</span>
  69. </form>
  70. </a>
  71. </c:if>
  72. <c:if test="${funcMap['program_export'] eq 1}">
  73. <a href="javascript:exportExcel()" class="btn">导出</a>
  74. </c:if>
  75. <c:if test="${funcMap['program_import_data'] eq 1}">
  76. <a href="javascript:programDataTemplate()" class="btn">导入数据</a>
  77. </c:if>
  78. </div>
  79. 已选 <span id="checkCount" class="orange">0</span> 条&nbsp;&nbsp;
  80. <c:if test="${funcMap['program_all_delete'] eq 1}">
  81. <a href="javascript:delBatch()" class="btn del">批量删除</a>
  82. </c:if>
  83. <table class="table mTop10" cellpadding="0" cellspacing="0">
  84. <thead>
  85. <tr>
  86. <th width="44"><input type="checkbox" class="checkbox checkbox-white {click:checkAll}" name="all" value="" /></th>
  87. <th>节目名称</th>
  88. <th>节目类型</th>
  89. <th>一级行业</th>
  90. <th>二级行业</th>
  91. <th>播出周期</th>
  92. <th>年份/季</th>
  93. <th>第几期/集</th>
  94. <th>首播日期</th>
  95. <th>开始时间</th>
  96. <th>结束时间</th>
  97. <th width="98">节目数据</th>
  98. <th width="98">操作</th>
  99. </tr>
  100. </thead>
  101. <tbody id="list"></tbody>
  102. </table>
  103. <div class="mTop20">
  104. <div id="page" class="rFloat"></div>
  105. 累计 <span id="count" class="blue">10</span> 条
  106. </div>
  107. </div>
  108. <div class="clear"></div>
  109. </div>
  110. <%@ include file="../common/footer.jsp" %>
  111. <iframe name="hframe" style="display: none;"></iframe>
  112. <script type="text/javascript" src="${staticPath}js/common/jquery.datetimepicker.js"></script>
  113. <script type="text/javascript" src="${staticPath}js/program/program.js"></script>
  114. <script type="text/javascript">
  115. var update_flag = "${funcMap['program_update']}",
  116. delete_flag = "${funcMap['program_delete']}",data_update_flag = "${funcMap['program_data_update']}";
  117. $(function(){
  118. getList(1);
  119. $.resetText();
  120. $(".text").input();
  121. $(".select").uiSelect();
  122. $.checkbox();
  123. $("#start_time, #end_time").datetimepicker();
  124. $(".table").hoverTable(true);
  125. $("#keywords1").inputTips("ajax_program_category_list.do?type=1&level=1",2,"#firstType",200,null,true);
  126. $("#keywords2").inputTips("ajax_program_category_list.do?type=1&level=2",2,"#secondType",200,null,true);
  127. });
  128. </script>
  129. </body>
  130. </html>