ad.html 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229
  1. <form class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
  2. <div class="panel panel-default">
  3. <div class="panel-heading">首页</div>
  4. <div class="panel-body">
  5. <div class="form-group">
  6. <label class="control-label col-xs-12 col-sm-3">插屏广告:</label>
  7. <div class="col-xs-12 col-sm-6">
  8. <input id="c-index_cp" class="form-control" name="row[index_cp]" type="text" value="{$row.index_cp|default=''}">
  9. </div>
  10. <div class="col-xs-12 col-sm-3">
  11. <input id="c-index_cp_open" name="row[index_cp_open]" type="hidden" value="{$row.index_cp_open|default=0}">
  12. <a href="javascript:;" data-toggle="switcher" class="btn-index_cp_open" data-input-id="c-index_cp_open" data-yes="1" data-no="0" >
  13. <i class="fa fa-toggle-on text-success {if condition="!isset($row['index_cp_open']) || !$row['index_cp_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  14. </a>
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="control-label col-xs-12 col-sm-3">banner广告:</label>
  19. <div class="col-xs-12 col-sm-6">
  20. <input id="c-index_banner" class="form-control" name="row[index_banner]" type="text" value="{$row.index_banner|default=''}">
  21. </div>
  22. <div class="col-xs-12 col-sm-3">
  23. <input id="c-index_banner_open" name="row[index_banner_open]" type="hidden" value="{$row.index_banner_open|default=0}">
  24. <a href="javascript:;" data-toggle="switcher" class="btn-index_banner_open" data-input-id="c-index_banner_open" data-yes="1" data-no="0" >
  25. <i class="fa fa-toggle-on text-success {if condition="!isset($row['index_banner_open']) || !$row['index_banner_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  26. </a>
  27. </div>
  28. </div>
  29. <div class="form-group">
  30. <label class="control-label col-xs-12 col-sm-3">视频广告:</label>
  31. <div class="col-xs-12 col-sm-6">
  32. <input id="c-index_video" class="form-control" name="row[index_video]" type="text" value="{$row.index_video|default=''}">
  33. </div>
  34. <div class="col-xs-12 col-sm-3">
  35. <input id="c-index_video_open" name="row[index_video_open]" type="hidden" value="{$row.index_video_open|default=0}">
  36. <a href="javascript:;" data-toggle="switcher" class="btn-index_video_open" data-input-id="c-index_video_open" data-yes="1" data-no="0" >
  37. <i class="fa fa-toggle-on text-success {if condition="!isset($row['index_video_open']) || !$row['index_video_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  38. </a>
  39. </div>
  40. </div>
  41. <div class="form-group">
  42. <label class="control-label col-xs-12 col-sm-3">视频贴片广告:</label>
  43. <div class="col-xs-12 col-sm-6">
  44. <input id="c-index_video_patch" class="form-control" name="row[index_video_patch]" type="text" value="{$row.index_video_patch|default=''}">
  45. </div>
  46. <div class="col-xs-12 col-sm-3">
  47. <input id="c-index_video_patch_open" name="row[index_video_patch_open]" type="hidden" value="{$row.index_video_patch_open|default=0}">
  48. <a href="javascript:;" data-toggle="switcher" class="btn-index_video_patch_open" data-input-id="c-index_video_patch_open" data-yes="1" data-no="0" >
  49. <i class="fa fa-toggle-on text-success {if condition="!isset($row['index_video_patch_open']) || !$row['index_video_patch_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  50. </a>
  51. </div>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="panel panel-default">
  56. <div class="panel-heading">我的页面</div>
  57. <div class="panel-body">
  58. <div class="form-group">
  59. <label class="control-label col-xs-12 col-sm-3">插屏广告:</label>
  60. <div class="col-xs-12 col-sm-6">
  61. <input id="c-my_cp" class="form-control" name="row[my_cp]" type="text" value="{$row.my_cp|default=''}">
  62. </div>
  63. <div class="col-xs-12 col-sm-3">
  64. <input id="c-my_cp_open" name="row[my_cp_open]" type="hidden" value="{$row.my_cp_open|default=0}">
  65. <a href="javascript:;" data-toggle="switcher" class="btn-my_cp_open" data-input-id="c-my_cp_open" data-yes="1" data-no="0" >
  66. <i class="fa fa-toggle-on text-success {if condition="!isset($row['my_cp_open']) || !$row['my_cp_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  67. </a>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <label class="control-label col-xs-12 col-sm-3">banner广告:</label>
  72. <div class="col-xs-12 col-sm-6">
  73. <input id="c-my_banner" class="form-control" name="row[my_banner]" type="text" value="{$row.my_banner|default=''}">
  74. </div>
  75. <div class="col-xs-12 col-sm-3">
  76. <input id="c-my_banner_open" name="row[my_banner_open]" type="hidden" value="{$row.my_banner_open|default=0}">
  77. <a href="javascript:;" data-toggle="switcher" class="btn-my_banner_open" data-input-id="c-my_banner_open" data-yes="1" data-no="0" >
  78. <i class="fa fa-toggle-on text-success {if condition="!isset($row['my_banner_open']) || !$row['my_banner_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  79. </a>
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <label class="control-label col-xs-12 col-sm-3">视频广告:</label>
  84. <div class="col-xs-12 col-sm-6">
  85. <input id="c-my_video" class="form-control" name="row[my_video]" type="text" value="{$row.my_video|default=''}">
  86. </div>
  87. <div class="col-xs-12 col-sm-3">
  88. <input id="c-my_video_open" name="row[my_video_open]" type="hidden" value="{$row.my_video_open|default=0}">
  89. <a href="javascript:;" data-toggle="switcher" class="btn-my_video_open" data-input-id="c-my_video_open" data-yes="1" data-no="0" >
  90. <i class="fa fa-toggle-on text-success {if condition="!isset($row['my_video_open']) || !$row['my_video_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  91. </a>
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="control-label col-xs-12 col-sm-3">视频贴片广告:</label>
  96. <div class="col-xs-12 col-sm-6">
  97. <input id="c-my_video_patch" class="form-control" name="row[my_video_patch]" type="text" value="{$row.my_video_patch|default=''}">
  98. </div>
  99. <div class="col-xs-12 col-sm-3">
  100. <input id="c-my_video_patch_open" name="row[my_video_patch_open]" type="hidden" value="{$row.my_video_patch_open|default=0}">
  101. <a href="javascript:;" data-toggle="switcher" class="btn-my_video_patch_open" data-input-id="c-my_video_patch_open" data-yes="1" data-no="0" >
  102. <i class="fa fa-toggle-on text-success {if condition="!isset($row['my_video_patch_open']) || !$row['my_video_patch_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  103. </a>
  104. </div>
  105. </div>
  106. </div>
  107. </div>
  108. <div class="panel panel-default">
  109. <div class="panel-heading">题目搜索页</div>
  110. <div class="panel-body">
  111. <div class="form-group">
  112. <label class="control-label col-xs-12 col-sm-3">插屏广告:</label>
  113. <div class="col-xs-12 col-sm-6">
  114. <input id="c-question_search_cp" class="form-control" name="row[question_search_cp]" type="text" value="{$row.question_search_cp|default=''}">
  115. </div>
  116. <div class="col-xs-12 col-sm-3">
  117. <input id="c-question_search_cp_open" name="row[question_search_cp_open]" type="hidden" value="{$row.question_search_cp_open|default=0}">
  118. <a href="javascript:;" data-toggle="switcher" class="btn-question_search_cp_open" data-input-id="c-question_search_cp_open" data-yes="1" data-no="0" >
  119. <i class="fa fa-toggle-on text-success {if condition="!isset($row['question_search_cp_open']) || !$row['question_search_cp_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  120. </a>
  121. </div>
  122. </div>
  123. <div class="form-group">
  124. <label class="control-label col-xs-12 col-sm-3">banner广告:</label>
  125. <div class="col-xs-12 col-sm-6">
  126. <input id="c-question_search_banner" class="form-control" name="row[question_search_banner]" type="text" value="{$row.question_search_banner|default=''}">
  127. </div>
  128. <div class="col-xs-12 col-sm-3">
  129. <input id="c-question_search_banner_open" name="row[question_search_banner_open]" type="hidden" value="{$row.question_search_banner_open|default=0}">
  130. <a href="javascript:;" data-toggle="switcher" class="btn-question_search_banner_open" data-input-id="c-question_search_banner_open" data-yes="1" data-no="0" >
  131. <i class="fa fa-toggle-on text-success {if condition="!isset($row['question_search_banner_open']) || !$row['question_search_banner_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  132. </a>
  133. </div>
  134. </div>
  135. <div class="form-group">
  136. <label class="control-label col-xs-12 col-sm-3">视频广告:</label>
  137. <div class="col-xs-12 col-sm-6">
  138. <input id="c-question_search_video" class="form-control" name="row[question_search_video]" type="text" value="{$row.question_search_video|default=''}">
  139. </div>
  140. <div class="col-xs-12 col-sm-3">
  141. <input id="c-question_search_video_open" name="row[question_search_video_open]" type="hidden" value="{$row.question_search_video_open|default=0}">
  142. <a href="javascript:;" data-toggle="switcher" class="btn-question_search_video_open" data-input-id="c-question_search_video_open" data-yes="1" data-no="0" >
  143. <i class="fa fa-toggle-on text-success {if condition="!isset($row['question_search_video_open']) || !$row['question_search_video_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  144. </a>
  145. </div>
  146. </div>
  147. <div class="form-group">
  148. <label class="control-label col-xs-12 col-sm-3">视频贴片广告:</label>
  149. <div class="col-xs-12 col-sm-6">
  150. <input id="c-question_search_video_patch" class="form-control" name="row[question_search_video_patch]" type="text" value="{$row.question_search_video_patch|default=''}">
  151. </div>
  152. <div class="col-xs-12 col-sm-3">
  153. <input id="c-question_search_video_patch_open" name="row[question_search_video_patch_open]" type="hidden" value="{$row.question_search_video_patch_open|default=0}">
  154. <a href="javascript:;" data-toggle="switcher" class="btn-question_search_video_patch_open" data-input-id="c-question_search_video_patch_open" data-yes="1" data-no="0" >
  155. <i class="fa fa-toggle-on text-success {if condition="!isset($row['question_search_video_patch_open']) || !$row['question_search_video_patch_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  156. </a>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <div class="panel panel-default">
  162. <div class="panel-heading">排行榜</div>
  163. <div class="panel-body">
  164. <div class="form-group">
  165. <label class="control-label col-xs-12 col-sm-3">插屏广告:</label>
  166. <div class="col-xs-12 col-sm-6">
  167. <input id="c-rank_cp" class="form-control" name="row[rank_cp]" type="text" value="{$row.rank_cp|default=''}">
  168. </div>
  169. <div class="col-xs-12 col-sm-3">
  170. <input id="c-rank_cp_open" name="row[rank_cp_open]" type="hidden" value="{$row.rank_cp_open|default=0}">
  171. <a href="javascript:;" data-toggle="switcher" class="btn-rank_cp_open" data-input-id="c-rank_cp_open" data-yes="1" data-no="0" >
  172. <i class="fa fa-toggle-on text-success {if condition="!isset($row['rank_cp_open']) || !$row['rank_cp_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  173. </a>
  174. </div>
  175. </div>
  176. <div class="form-group">
  177. <label class="control-label col-xs-12 col-sm-3">banner广告:</label>
  178. <div class="col-xs-12 col-sm-6">
  179. <input id="c-rank_banner" class="form-control" name="row[rank_banner]" type="text" value="{$row.rank_banner|default=''}">
  180. </div>
  181. <div class="col-xs-12 col-sm-3">
  182. <input id="c-rank_banner_open" name="row[rank_banner_open]" type="hidden" value="{$row.rank_banner_open|default=0}">
  183. <a href="javascript:;" data-toggle="switcher" class="btn-rank_banner_open" data-input-id="c-rank_banner_open" data-yes="1" data-no="0" >
  184. <i class="fa fa-toggle-on text-success {if condition="!isset($row['rank_banner_open']) || !$row['rank_banner_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  185. </a>
  186. </div>
  187. </div>
  188. <div class="form-group">
  189. <label class="control-label col-xs-12 col-sm-3">视频广告:</label>
  190. <div class="col-xs-12 col-sm-6">
  191. <input id="c-rank_video" class="form-control" name="row[rank_video]" type="text" value="{$row.rank_video|default=''}">
  192. </div>
  193. <div class="col-xs-12 col-sm-3">
  194. <input id="c-rank_video_open" name="row[rank_video_open]" type="hidden" value="{$row.rank_video_open|default=0}">
  195. <a href="javascript:;" data-toggle="switcher" class="btn-rank_video_open" data-input-id="c-rank_video_open" data-yes="1" data-no="0" >
  196. <i class="fa fa-toggle-on text-success {if condition="!isset($row['rank_video_open']) || !$row['rank_video_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  197. </a>
  198. </div>
  199. </div>
  200. <div class="form-group">
  201. <label class="control-label col-xs-12 col-sm-3">视频贴片广告:</label>
  202. <div class="col-xs-12 col-sm-6">
  203. <input id="c-rank_video_patch" class="form-control" name="row[rank_video_patch]" type="text" value="{$row.rank_video_patch|default=''}">
  204. </div>
  205. <div class="col-xs-12 col-sm-3">
  206. <input id="c-rank_video_patch_open" name="row[rank_video_patch_open]" type="hidden" value="{$row.rank_video_patch_open|default=0}">
  207. <a href="javascript:;" data-toggle="switcher" class="btn-rank_video_patch_open" data-input-id="c-rank_video_patch_open" data-yes="1" data-no="0" >
  208. <i class="fa fa-toggle-on text-success {if condition="!isset($row['rank_video_patch_open']) || !$row['rank_video_patch_open']"}fa-flip-horizontal text-gray{/if} fa-2x"></i>
  209. </a>
  210. </div>
  211. </div>
  212. </div>
  213. </div>
  214. <input type="hidden" name="type" value="ad">
  215. <input type="hidden" name="config_id" {notempty name="$config_id" }value="{$config_id}" {/notempty}>
  216. <div class="form-group layer-footer">
  217. <label class="control-label col-xs-12 col-sm-2"></label>
  218. <div class="col-xs-12 col-sm-8">
  219. <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}
  220. </button>
  221. <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
  222. </div>
  223. </div>
  224. </form>