index.html 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. {include file="public/header" /}
  2. <div class="page">
  3. <div class="fixed-bar">
  4. <div class="item-title">
  5. <div class="subject">
  6. <h3>{$Think.lang.live_setting}</h3>
  7. <h5></h5>
  8. </div>
  9. {include file="public/admin_items" /}
  10. </div>
  11. </div>
  12. <form id='o2o_form' method="post" name="form1">
  13. <div class="ncap-form-default">
  14. <dl>
  15. <dt>{$Think.lang.live_type}</dt>
  16. <dd>
  17. <label class="radio-label">
  18. <i class="radio-common {if $list_config.live_type =='0'}selected{/if}">
  19. <input type="radio" value="0" name="live_type" id="live_type_0" {if $list_config.live_type =='0'} checked="checked"{/if}>
  20. </i>
  21. <span>{$Think.lang.live_type_0}</span>
  22. </label>
  23. <label class="radio-label">
  24. <i class="radio-common {if $list_config.live_type =='1'}selected{/if}">
  25. <input type="radio" value="1" name="live_type" id="live_type_1" {if $list_config.live_type =='1'} checked="checked"{/if}>
  26. </i>
  27. <span>{$Think.lang.live_type_1}</span>
  28. </label>
  29. <span class="tips"></span>
  30. </dd>
  31. </dl>
  32. <div class="live_type_0">
  33. <dl>
  34. <dt>{$Think.lang.video_type}</dt>
  35. <dd>
  36. <label class="radio-label">
  37. <i class="radio-common {if $list_config.video_type =='tencent'}selected{/if}">
  38. <input type="radio" value="tencent" name="video_type" id="video_type_tencent" {if $list_config.video_type =='tencent'} checked="checked"{/if}>
  39. </i>
  40. <span>{$Think.lang.video_type_tencent}</span>
  41. </label>
  42. <label class="radio-label">
  43. <i class="radio-common {if $list_config.video_type =='aliyun'}selected{/if}">
  44. <input type="radio" value="aliyun" name="video_type" id="video_type_aliyun" {if $list_config.video_type =='aliyun'} checked="checked"{/if}>
  45. </i>
  46. <span>{$Think.lang.video_type_aliyun}</span>
  47. </label>
  48. <span class="tips"></span>
  49. </dd>
  50. </dl>
  51. <div class="aliyun">
  52. <dl>
  53. <dt><label>{$Think.lang.aliyun_user_id}:</label></dt>
  54. <dd>
  55. <input id="aliyun_user_id" name="aliyun_user_id" value="{$list_config.aliyun_user_id|default=''}" class="input-txt w300" type="text">
  56. <span class="tips"></span>
  57. </dd>
  58. </dl>
  59. <dl>
  60. <dt><label>{$Think.lang.aliyun_access_key_id}:</label></dt>
  61. <dd>
  62. <input id="aliyun_access_key_id" name="aliyun_access_key_id" value="{$list_config.aliyun_access_key_id|default=''}" class="input-txt w300" type="text">
  63. <span class="tips"></span>
  64. </dd>
  65. </dl>
  66. <dl>
  67. <dt><label>{$Think.lang.aliyun_access_key_secret}:</label></dt>
  68. <dd>
  69. <input id="aliyun_access_key_secret" name="aliyun_access_key_secret" value="{$list_config.aliyun_access_key_secret|default=''}" class="input-txt w300" type="password">
  70. <span class="tips">{$Think.lang.aliyun_access_key_secret_tips|raw}</span>
  71. </dd>
  72. </dl>
  73. <dl>
  74. <dt><label>{$Think.lang.aliyun_live_push_domain}:</label></dt>
  75. <dd>
  76. <input id="aliyun_live_push_domain" name="aliyun_live_push_domain" value="{$list_config.aliyun_live_push_domain}" class="input-txt w300" type="text">
  77. <span class="tips"></span>
  78. </dd>
  79. </dl>
  80. <dl>
  81. <dt><label>{$Think.lang.aliyun_live_push_key}:</label></dt>
  82. <dd>
  83. <input id="aliyun_live_push_key" name="aliyun_live_push_key" value="{$list_config.aliyun_live_push_key|default=''}" class="input-txt w300" type="password">
  84. <span class="tips"></span>
  85. </dd>
  86. </dl>
  87. <dl>
  88. <dt><label>{$Think.lang.aliyun_live_play_domain}:</label></dt>
  89. <dd>
  90. <input id="aliyun_live_play_domain" name="aliyun_live_play_domain" value="{$list_config.aliyun_live_play_domain}" class="input-txt w300" type="text">
  91. <span class="tips"></span>
  92. </dd>
  93. </dl>
  94. <dl>
  95. <dt><label>{$Think.lang.aliyun_live_play_key}:</label></dt>
  96. <dd>
  97. <input id="aliyun_live_play_key" name="aliyun_live_play_key" value="{$list_config.aliyun_live_play_key|default=''}" class="input-txt w300" type="password">
  98. <span class="tips"></span>
  99. </dd>
  100. </dl>
  101. </div>
  102. <div class="tencent">
  103. <dl>
  104. <dt><label>{$Think.lang.vod_tencent_appid}:</label></dt>
  105. <dd>
  106. <input id="vod_tencent_appid" name="vod_tencent_appid" value="{$list_config.vod_tencent_appid|default=''}" class="input-txt w300" type="text">
  107. <span class="tips"></span>
  108. </dd>
  109. </dl>
  110. <dl>
  111. <dt><label>{$Think.lang.vod_tencent_secret_id}:</label></dt>
  112. <dd>
  113. <input id="vod_tencent_secret_id" name="vod_tencent_secret_id" value="{$list_config.vod_tencent_secret_id|default=''}" class="input-txt w300" type="text">
  114. <span class="tips"></span>
  115. </dd>
  116. </dl>
  117. <dl>
  118. <dt><label>{$Think.lang.vod_tencent_secret_key}:</label></dt>
  119. <dd>
  120. <input id="vod_tencent_secret_key" name="vod_tencent_secret_key" value="{$list_config.vod_tencent_secret_key|default=''}" class="input-txt w300" type="password">
  121. <span class="tips">{$Think.lang.vod_tencent_tips|raw}</span>
  122. </dd>
  123. </dl>
  124. <dl>
  125. <dt><label>{$Think.lang.vod_tencent_play_domain}:</label></dt>
  126. <dd>
  127. <input id="vod_tencent_play_domain" name="vod_tencent_play_domain" value="{$list_config.vod_tencent_play_domain|default=''}" class="input-txt w300" type="text">
  128. <span class="tips"></span>
  129. </dd>
  130. </dl>
  131. <dl>
  132. <dt><label>{$Think.lang.vod_tencent_play_key}:</label></dt>
  133. <dd>
  134. <input id="vod_tencent_play_key" name="vod_tencent_play_key" value="{$list_config.vod_tencent_play_key|default=''}" class="input-txt w300" type="password">
  135. <span class="tips"></span>
  136. </dd>
  137. </dl>
  138. <dl>
  139. <dt><label>{$Think.lang.live_push_domain}:</label></dt>
  140. <dd>
  141. <input id="live_push_domain" name="live_push_domain" value="{$list_config.live_push_domain}" class="input-txt w300" type="text">
  142. <span class="tips"></span>
  143. </dd>
  144. </dl>
  145. <dl>
  146. <dt><label>{$Think.lang.live_push_key}:</label></dt>
  147. <dd>
  148. <input id="live_push_key" name="live_push_key" value="{$list_config.live_push_key}" class="input-txt w300" type="password">
  149. <span class="tips"></span>
  150. </dd>
  151. </dl>
  152. <dl>
  153. <dt><label>{$Think.lang.live_play_domain}:</label></dt>
  154. <dd>
  155. <input id="live_play_domain" name="live_play_domain" value="{$list_config.live_play_domain}" class="input-txt w300" type="text">
  156. <span class="tips"></span>
  157. </dd>
  158. </dl>
  159. </div>
  160. </div>
  161. <dl>
  162. <dt></dt>
  163. <dd>
  164. <a href="JavaScript:void(0);" class="btn" id="submitBtn" onclick="$('#o2o_form').submit()">{$Think.lang.ds_confirm_submit}</a>
  165. <span class="tips"></span>
  166. </dd>
  167. </dl>
  168. </div>
  169. </form>
  170. </div>
  171. <script>
  172. $(function () {
  173. if ($('#video_type_tencent').prop('checked')) {
  174. $('.aliyun').hide();
  175. $('.tencent').show();
  176. }else{
  177. $('.tencent').hide();
  178. $('.aliyun').show();
  179. }
  180. $('#video_type_tencent').click(function () {
  181. $('.aliyun').hide();
  182. $('.tencent').show();
  183. });
  184. $('#video_type_aliyun').click(function () {
  185. $('.tencent').hide();
  186. $('.aliyun').show();
  187. })
  188. if ($('#live_type_0').prop('checked')) {
  189. $('.live_type_0').show();
  190. }else{
  191. $('.live_type_0').hide();
  192. }
  193. $('#live_type_0').click(function () {
  194. $('.live_type_0').show();
  195. });
  196. $('#live_type_1').click(function () {
  197. $('.live_type_0').hide();
  198. })
  199. });
  200. </script>