push.html 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. <div class="alert alert-info" role="alert">
  2. 由于推送到代理商处理时间较长,所以每次推送改为最多推送10个代理商,推送过程较慢,请耐心等待推送完成。
  3. </div>
  4. <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="" >
  5. <input type="hidden" name="row[referral_ids]" value="{$row.referral_ids}"/>
  6. <div class="form-group">
  7. <label class="control-table col-xs-12 col-sm-2">选择代理:</label>
  8. <div class="col-xs-12 col-sm-8">
  9. {notempty name="agents"}
  10. <a href="javascript:selall();" class="btn btn-xs">选择前10个</a>&nbsp;
  11. <a href="javascript:unselall();" class="btn btn-xs">全不选</a>&nbsp;
  12. {else/}
  13. 全部代理都已经被推送过
  14. {/notempty}
  15. <br>
  16. {foreach name="agents" item="a"}
  17. <label class="ids_checkbox"><input type="checkbox" name="ids[]" value="{$a.id}">{$a.nickname}</label>
  18. {/foreach}
  19. </div>
  20. </div>
  21. <input type="hidden" id="rmid" value="{$row.id}">
  22. <div class="form-group hidden layer-footer">
  23. <label class="control-label col-xs-12 col-sm-2"></label>
  24. <div class="col-xs-12 col-sm-8">
  25. <button type="submit" class="btn btn-success btn-embossed disabled">开始推送 (ps:推送时间较长,请耐心等待)</button>
  26. <!-- <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button> -->
  27. </div>
  28. </div>
  29. </form>
  30. <style type="text/css">
  31. .img_txt_box{
  32. padding: 20px;
  33. width: 380px;
  34. background-color: #f1f1f1;
  35. box-sizing: border-box;
  36. }
  37. .img_txt_list{
  38. padding: 10px 0;
  39. background-color: #fff;
  40. }
  41. .img_txt_list > div:last-child{
  42. border-bottom: 0;
  43. }
  44. .img_txt_one{
  45. position: relative;
  46. left: 0;
  47. top: 0;
  48. padding: 10px 20px;
  49. border-bottom: 1px solid #e9e9e9;
  50. }
  51. .img_txt_one_tit{
  52. margin-right: 30px;
  53. overflow: hidden;
  54. cursor: pointer;
  55. }
  56. .img_txt_one i{
  57. position: absolute;
  58. right: 20px;
  59. top: 50%;
  60. margin: -21px 0 0;
  61. height: 42px;
  62. width: 22px;
  63. background: none;
  64. text-align: center;
  65. font-size: 18px;
  66. color: #18bc9c;
  67. line-height: 42px;
  68. cursor: pointer;
  69. }
  70. .img_txt_one_h3,
  71. .img_txt_li_h3{
  72. overflow: hidden;
  73. margin: 0;
  74. padding: 0;
  75. font-size: 14px;
  76. color: rgba(0,0,0,0.6);
  77. line-height: 22px;
  78. }
  79. .img_txt_li_h3{
  80. margin:0 0 5px;
  81. height: 44px;
  82. }
  83. .img_txt_one_h3 p,
  84. .img_txt_li_h3 p{
  85. display: block;
  86. margin: 0;
  87. padding: 0;
  88. border: 0;
  89. width: 100%;
  90. font-size: 14px;
  91. color: rgba(0,0,0,0.6);
  92. outline: none;
  93. line-height: 18px;
  94. }
  95. .img_txt_one_img{
  96. overflow: hidden;
  97. cursor: pointer;
  98. }
  99. .img_txt_one_img img{
  100. display: block;
  101. margin: 0;
  102. padding: 0;
  103. border: 0;
  104. width:100%;
  105. }
  106. .img_txt_li{
  107. position: relative;
  108. left: 0;
  109. top: 0;
  110. overflow: hidden;
  111. padding: 10px 20px;
  112. border-bottom: 1px solid #e9e9e9;
  113. }
  114. .img_txt_li_img{
  115. overflow: hidden;
  116. float: right;
  117. height: 78px;
  118. width: 78px;
  119. }
  120. .img_txt_li_img img{
  121. display: block;
  122. width: 78px;
  123. height: 78px;
  124. }
  125. .img_txt_li_txt{
  126. position: relative;
  127. left: 0;
  128. top: 0;
  129. margin: 0 88px 0 0;
  130. overflow: hidden;
  131. }
  132. .img_txt_li_txt a,
  133. .img_txt_one_tit a{
  134. display: block;
  135. margin: 0;
  136. overflow: hidden;
  137. padding: 3px 0;
  138. font-size: 14px;
  139. color: #1581ff;
  140. line-height: 18px;
  141. white-space: normal;
  142. word-break: break-all;
  143. word-wrap: break-word;
  144. box-sizing: border-box;
  145. }
  146. .img_txt_add_but{
  147. display: block;
  148. margin-top: 20px;
  149. height: 40px;
  150. font-size: 16px;
  151. color: #1581ff;
  152. text-align: center;
  153. line-height: 40px;
  154. }
  155. .img_txt_add_but i{
  156. font-size: 16px;
  157. vertical-align: middle;
  158. }
  159. .img_txt_remvoe{
  160. display: none;
  161. position: absolute;
  162. right: 0;
  163. bottom: 0;
  164. height: 36px;
  165. width: 36px;
  166. cursor: pointer;
  167. }
  168. .img_txt_li:hover .img_txt_remvoe{
  169. display: block;
  170. }
  171. .img_txt_remvoe:before {
  172. content: "";
  173. width: 0;
  174. height: 0;
  175. overflow: hidden;
  176. border: 18px solid transparent;
  177. border-bottom-color: #d0021b;
  178. border-right-color: #d0021b;
  179. _border-bottom-style: solid;
  180. _border-right-style: solid;
  181. position: absolute;
  182. left: 0;
  183. top: 0;
  184. }
  185. .img_txt_remvoe:after {
  186. content: "\f1f8";
  187. position: absolute;
  188. right: 2px;
  189. bottom: 2px;
  190. color: #fff;
  191. font-size: 16px;
  192. }
  193. </style>
  194. <script>
  195. //全选
  196. function selall(){
  197. if($(".ids_checkbox").length > 10){
  198. for(var i=0; i<10; i++){
  199. $('.ids_checkbox:eq('+ i +') input[name="ids[]"]').prop("checked", true);
  200. }
  201. }else{
  202. $("input[name='ids[]']").prop("checked", true);
  203. }
  204. }
  205. //取消全选
  206. function unselall(){
  207. $("input[name='ids[]']").prop("checked", false);
  208. }
  209. //反选
  210. function selreverse(){
  211. $("input[name='ids[]']").each(function(){
  212. $(this).prop("checked", !$(this).prop("checked"));
  213. })
  214. }
  215. </script>