edit.html 8.7 KB

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