add.html 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  1. <form id="add-form" class="form-horizontal form-ajax" role="form" data-toggle="validator" method="POST" action="">
  2. <!-- <a class="btn btn-info" id="select">选择</a>-->
  3. <div class="form-group">
  4. <label for="module" class="control-label col-xs-12 col-sm-2">推广标题:</label>
  5. <div class="col-xs-12 col-sm-8">
  6. <input type="text" class="form-control" id="title" name="row[title]" value="" data-rule="required" />
  7. </div>
  8. </div>
  9. <div class="form-group">
  10. <label class="control-label col-xs-12 col-sm-2">{:__('类型')}:</label>
  11. <div class="col-xs-12 col-sm-8">
  12. <input type="radio" name="row[short_url_type]" value="1" sval="qq" id="type-image" checked />
  13. <label for="type-image">腾讯短链接</label>
  14. <input type="radio" name="row[short_url_type]" value="2" sval="weibo" id="type-news" />
  15. <label for="type-news">新浪短链接</label>
  16. </div>
  17. </div>
  18. <!--分类型处理 start-->
  19. <!-- 腾讯短链接 -->
  20. <div class="form-group group-type" id="group-type-qq">
  21. <input type="hidden" name="row[referral_ids]" />
  22. <label class="control-label col-xs-12 col-sm-2">腾讯短链接:</label>
  23. <div class="col-xs-12 col-sm-8 new-template-wrap">
  24. <div class="img_txt_box" style="margin-bottom: 20px;">
  25. <div class="img_txt_list">
  26. <!--
  27. <div class="img_txt_one img_txt_main">
  28. <i class="fa fa-trash img_txt_edit_tit" title="删除"></i>
  29. <div class="img_txt_one_tit">
  30. <div class="img_txt_one_h3"><p>腾讯短链接,竟看到女老师不为人知的一面!</p></div>
  31. <a href="javascript:;">http://m3.mp.koread.cn/admin/referral/many?ref=addtabs</a>
  32. </div>
  33. </div>
  34. -->
  35. </div>
  36. <a href="javascript:;" class="img_txt_add_but"><i class="fa fa-plus-square-o"></i> 添加链接</a>
  37. </div>
  38. <a class="btn btn-info many_copy">复制腾讯短链接</a>
  39. </div>
  40. </div>
  41. <!-- 新浪短链接 -->
  42. <div class="form-group group-type hide" id="group-type-weibo">
  43. <input type="hidden" name="row[referral_ids]" disabled />
  44. <label class="control-label col-xs-12 col-sm-2">新浪短链接:</label>
  45. <div class="col-xs-12 col-sm-8 new-template-wrap">
  46. <div class="img_txt_box" style="margin-bottom: 20px;">
  47. <div class="img_txt_list">
  48. <!--
  49. <div class="img_txt_one img_txt_main">
  50. <i class="fa fa-trash img_txt_edit_tit" title="删除"></i>
  51. <div class="img_txt_one_tit">
  52. <div class="img_txt_one_h3"><p>新浪短链接,竟看到女老师不为人知的一面!</p></div>
  53. <a href="javascript:;">http://m3.mp.koread.cn/admin/referral/many?ref=addtabs</a>
  54. </div>
  55. </div>
  56. -->
  57. </div>
  58. <a href="javascript:;" class="img_txt_add_but"><i class="fa fa-plus-square-o"></i> 添加链接</a>
  59. </div>
  60. <a class="btn btn-info many_copy">复制新浪短链接</a>
  61. </div>
  62. </div>
  63. <!--分类型处理 end-->
  64. <div id="many_copy_dom" style="position: fixed;left: -10000px;max-width: 5000px;"></div>
  65. <div class="form-group {:input('get.callback')?'':'hidden layer-footer'}">
  66. <div class="col-xs-2"></div>
  67. <div class="col-xs-12 col-sm-8">
  68. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
  69. <!--<button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>-->
  70. </div>
  71. </div>
  72. </form>
  73. <style type="text/css">
  74. .img_txt_box{
  75. padding: 20px;
  76. width: 380px;
  77. background-color: #f1f1f1;
  78. box-sizing: border-box;
  79. }
  80. .img_txt_list{
  81. padding: 10px 0;
  82. background-color: #fff;
  83. }
  84. .img_txt_list > div:last-child{
  85. border-bottom: 0;
  86. }
  87. .img_txt_one{
  88. position: relative;
  89. left: 0;
  90. top: 0;
  91. padding: 10px 20px;
  92. border-bottom: 1px solid #e9e9e9;
  93. }
  94. .img_txt_one_tit{
  95. margin-right: 30px;
  96. overflow: hidden;
  97. cursor: pointer;
  98. }
  99. .img_txt_one i{
  100. position: absolute;
  101. right: 20px;
  102. top: 50%;
  103. margin: -21px 0 0;
  104. height: 42px;
  105. width: 22px;
  106. background: none;
  107. text-align: center;
  108. font-size: 18px;
  109. color: #18bc9c;
  110. line-height: 42px;
  111. cursor: pointer;
  112. }
  113. .img_txt_one_h3,
  114. .img_txt_li_h3{
  115. overflow: hidden;
  116. margin: 0;
  117. padding: 0;
  118. font-size: 14px;
  119. color: rgba(0,0,0,0.6);
  120. line-height: 22px;
  121. }
  122. .img_txt_li_h3{
  123. margin:0 0 5px;
  124. height: 44px;
  125. }
  126. .img_txt_one_h3 p,
  127. .img_txt_li_h3 p{
  128. display: block;
  129. margin: 0;
  130. padding: 0;
  131. border: 0;
  132. width: 100%;
  133. font-size: 14px;
  134. color: rgba(0,0,0,0.6);
  135. outline: none;
  136. line-height: 18px;
  137. }
  138. .img_txt_one_img{
  139. overflow: hidden;
  140. cursor: pointer;
  141. }
  142. .img_txt_one_img img{
  143. display: block;
  144. margin: 0;
  145. padding: 0;
  146. border: 0;
  147. width:100%;
  148. }
  149. .img_txt_li{
  150. position: relative;
  151. left: 0;
  152. top: 0;
  153. overflow: hidden;
  154. padding: 10px 20px;
  155. border-bottom: 1px solid #e9e9e9;
  156. }
  157. .img_txt_li_img{
  158. overflow: hidden;
  159. float: right;
  160. height: 78px;
  161. width: 78px;
  162. }
  163. .img_txt_li_img img{
  164. display: block;
  165. width: 78px;
  166. height: 78px;
  167. }
  168. .img_txt_li_txt{
  169. position: relative;
  170. left: 0;
  171. top: 0;
  172. margin: 0 88px 0 0;
  173. overflow: hidden;
  174. }
  175. .img_txt_li_txt a,
  176. .img_txt_one_tit a{
  177. display: block;
  178. margin: 0;
  179. overflow: hidden;
  180. padding: 3px 0;
  181. font-size: 14px;
  182. color: #1581ff;
  183. line-height: 18px;
  184. white-space: normal;
  185. word-break: break-all;
  186. word-wrap: break-word;
  187. box-sizing: border-box;
  188. }
  189. .img_txt_add_but{
  190. display: block;
  191. margin-top: 20px;
  192. height: 40px;
  193. font-size: 16px;
  194. color: #1581ff;
  195. text-align: center;
  196. line-height: 40px;
  197. }
  198. .img_txt_add_but i{
  199. font-size: 16px;
  200. vertical-align: middle;
  201. }
  202. .img_txt_remvoe{
  203. display: none;
  204. position: absolute;
  205. right: 0;
  206. bottom: 0;
  207. height: 36px;
  208. width: 36px;
  209. cursor: pointer;
  210. }
  211. .img_txt_li:hover .img_txt_remvoe{
  212. display: block;
  213. }
  214. .img_txt_remvoe:before {
  215. content: "";
  216. width: 0;
  217. height: 0;
  218. overflow: hidden;
  219. border: 18px solid transparent;
  220. border-bottom-color: #d0021b;
  221. border-right-color: #d0021b;
  222. _border-bottom-style: solid;
  223. _border-right-style: solid;
  224. position: absolute;
  225. left: 0;
  226. top: 0;
  227. }
  228. .img_txt_remvoe:after {
  229. content: "\f1f8";
  230. position: absolute;
  231. right: 2px;
  232. bottom: 2px;
  233. color: #fff;
  234. font-size: 16px;
  235. }
  236. </style>
  237. <script>
  238. var datas = {};
  239. </script>