No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

theme_conf.htm 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  1. {eq name="'Index@theme_conf'|is_check_access" value="1"}
  2. <style type="text/css">
  3. #theme_main_color,#theme_assist_color {
  4. /*margin:0;*/
  5. /*padding:0;*/
  6. border:solid 1px #ccc;
  7. width:70px;
  8. height:20px;
  9. border-right:40px solid green;
  10. /*line-height:20px;*/
  11. }
  12. </style>
  13. <form class="form-horizontal" id="postForm1" action="{:url('Index/theme_conf')}" method="post">
  14. <div class="hDiv">
  15. <div class="hDivBox">
  16. <table cellspacing="0" cellpadding="0" style="width: 100%">
  17. <thead>
  18. <tr>
  19. <th class="sign w10" axis="col0">
  20. <div class="tc"></div>
  21. </th>
  22. <th abbr="article_title" axis="col3" class="w10">
  23. <div class="tc">主题设置</div>
  24. </th>
  25. <th abbr="ac_id" axis="col4">
  26. <div class=""></div>
  27. </th>
  28. </tr>
  29. </thead>
  30. </table>
  31. </div>
  32. </div>
  33. <div class="ncap-form-default">
  34. <!-- <dl class="row">
  35. <dt class="tit">
  36. <label for="theme_id">主题风格</label>
  37. </dt>
  38. <dd class="opt">
  39. <div class="theme_style" id="theme_login_style">
  40. <ul>
  41. {volist name="$list" id="vo"}
  42. <li>
  43. <img src="{$vo.theme_pic|get_default_pic=###}" {if condition="$vo['theme_id'] == $global['web_theme_styleid']"} class="active" {/if}>
  44. <span><input name="theme_id" value="{$vo.theme_id}" type="radio" {if condition="$vo['theme_id'] == $global['web_theme_styleid']"} checked="checked" {/if}>{$vo.theme_title}</span>
  45. </li>
  46. {/volist}
  47. </ul>
  48. </div>
  49. </dd>
  50. </dl> -->
  51. {eq name='$main_lang' value='$admin_lang'}
  52. <dl class="row"><dt class="tit"><label><b>登录页设置</b></label></dt></dl>
  53. <dl class="row">
  54. <dt class="tit">
  55. <label for="login_tplname">模板选择</label>
  56. </dt>
  57. <dd class="opt">
  58. <select name="login_tplname" id="login_tplname">
  59. <option value="">系统默认</option>
  60. {volist name="$login_tplist" id="vo"}
  61. <option value="{$vo}" {if condition="$global['web_theme_login_tplname'] == $vo"} selected="true" {/if}>{$vo}</option>
  62. {/volist}
  63. </select>
  64. <p class="notic">模板格式:login_自定义.htm<br/>模板目录:__ROOT_DIR__/application/admin/template/theme/</p>
  65. &nbsp;<a href="javascript:void(0);" onclick="login_tplname_add();" class="ncap-btn ncap-btn-green">新建模板</a>
  66. </dd>
  67. </dl>
  68. <dl class="row">
  69. <dt class="tit">
  70. <label for="login_logo">登录logo</label>
  71. </dt>
  72. <dd class="opt">
  73. <div class="input-file-show">
  74. <span class="show">
  75. <a id="img_a_login_logo" class="nyroModal" rel="gal" href="{$global.web_loginlogo|default='javascript:void(0);'}?t={php}echo getTime();{/php}" target="_blank">
  76. <i id="img_i_login_logo" class="fa fa-picture-o" {notempty name="$global.web_loginlogo"}onmouseover="layer_tips=layer.tips('<img src={$global.web_loginlogo|default=''} class=\'layer_tips_img\'>',this,{tips: [1, '#fff']});"{/notempty} onmouseout="layer.close(layer_tips);"></i>
  77. </a>
  78. </span>
  79. <span class="type-file-box">
  80. <input type="text" id="login_logo" name="login_logo" value="{$global.web_loginlogo|default=''}" class="type-file-text" autocomplete="off">
  81. <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button">
  82. <input class="type-file-file" onClick="GetUploadify(1,'','loginlogo','login_logo_call_back','{:url('Uploadify/upload_full')}');" size="30" hidefocus="true" nc_type="change_site_logo" title="点击前方预览图可查看大图,点击按钮选择文件并提交表单后上传生效">
  83. </span>
  84. </div>
  85. <span class="err"></span>
  86. <p class="notic"></p>
  87. </dd>
  88. </dl>
  89. <dl class="row">
  90. <dt class="tit">
  91. <label for="login_bgimg_model">背景图</label>
  92. </dt>
  93. <dd class="opt">
  94. <input type="hidden" name="login_bgimg_model" value="{$global['web_loginbgimg_model']|default='1'}" id="login_bgimg_model"/>
  95. <div class="theme_bg div_login_bgimg_model">
  96. <ul>
  97. <li id="login_bgimg_model_1" {if condition="$global['web_loginbgimg_model'] == 1"} class="active" {/if} data-model="1"><img src="__SKIN__/loginbg/login-bg-1.png"></li>
  98. <li id="login_bgimg_model_2" {if condition="$global['web_loginbgimg_model'] == 2"} class="active" {/if} data-model="2"><img src="__SKIN__/loginbg/login-bg-2.png"></li>
  99. {if condition="$php_servicemeal >= 2"}
  100. <li id="login_bgimg_model_3" {if condition="$global['web_loginbgimg_model'] == 3"} class="active" {/if} data-model="3"><img src="__SKIN__/loginbg/login-bg-3.png"></li>
  101. {/if}
  102. <li id="login_bgimg_model_custom" {if condition="$global['web_loginbgimg_model'] == 'custom'"} class="active" {/if} data-model="custom"><img src="__SKIN__/images/login-bg-empty.png" title="自定义背景"></li>
  103. </ul>
  104. </div>
  105. </dd>
  106. </dl>
  107. <dl class="row" id="div_custom_login_bgimg" {if condition="$global['web_loginbgimg_model'] != 'custom'"} style="display: none;" {/if}>
  108. <dt class="tit">
  109. <label for="login_bgimg">&nbsp;</label>
  110. </dt>
  111. <dd class="opt">
  112. <div class="input-file-show">
  113. <span class="show">
  114. <a id="img_a_login_bgimg" class="nyroModal" rel="gal" href="{$global.web_loginbgimg|default='javascript:void(0);'}" target="_blank">
  115. <i id="img_i_login_bgimg" class="fa fa-picture-o" {notempty name="$global.web_loginbgimg"}onmouseover="layer_tips=layer.tips('<img src={$global.web_loginbgimg|default=''} class=\'layer_tips_img\'>',this,{tips: [1, '#fff']});"{/notempty} onmouseout="layer.close(layer_tips);"></i>
  116. </a>
  117. </span>
  118. <span class="type-file-box">
  119. <input type="text" id="login_bgimg" name="login_bgimg" value="{$global.web_loginbgimg|default=''}" class="type-file-text" autocomplete="off">
  120. <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button">
  121. <input class="type-file-file" onClick="GetUploadify(1,'','loginbgimg','login_bgimg_call_back','{:url('Uploadify/upload_full')}');" size="30" hidefocus="true" nc_type="change_site_logo" title="点击前方预览图可查看大图,点击按钮选择文件并提交表单后上传生效">
  122. </span>
  123. </div>
  124. <span class="err"></span>
  125. <p class="notic"></p>
  126. </dd>
  127. </dl>
  128. {/eq}
  129. <dl class="row"><dt class="tit"><label><b>主题元素设置</b></label></dt></dl>
  130. <dl class="row">
  131. <dt class="tit">
  132. <label for="theme_color_model">主题色</label>
  133. </dt>
  134. <dd class="opt">
  135. <div class="theme-color div_theme_color_model">
  136. <input type="hidden" name="theme_color_model" value="{$global['web_theme_color_model']|default='1'}" id="theme_color_model"/>
  137. <ul>
  138. <li id="theme_color_model_1" {if condition="empty($global['web_theme_color_model']) || $global['web_theme_color_model'] == 1"} class="active" {/if} data-model="1">
  139. <span class="main_color" style="background-color: #3398cc;"></span>
  140. <span class="assist_color" style="background-color: #2189be;"></span>
  141. </li>
  142. <li id="theme_color_model_2" {if condition="$global['web_theme_color_model'] == 2"} class="active" {/if} data-model="2">
  143. <span class="main_color" style="background-color: #1e9fff;"></span>
  144. <span class="assist_color" style="background-color: #0069b7;"></span>
  145. </li>
  146. <li id="theme_color_model_3" {if condition="$global['web_theme_color_model'] == 3"} class="active" {/if} data-model="3">
  147. <span class="main_color" style="background-color: #1aa094;"></span>
  148. <span class="assist_color" style="background-color: #197971;"></span>
  149. </li>
  150. <li id="theme_color_model_4" {if condition="$global['web_theme_color_model'] == 4"} class="active" {/if} data-model="4">
  151. <span class="main_color" style="background-color: #e82121;"></span>
  152. <span class="assist_color" style="background-color: #ae1919;"></span>
  153. </li>
  154. <li id="theme_color_model_5" {if condition="$global['web_theme_color_model'] == 5"} class="active" {/if} data-model="5">
  155. <span class="main_color" style="background-color:#197971;"></span>
  156. <span class="assist_color" style="background-color: #fa921b;"></span>
  157. </li>
  158. <li id="theme_color_model_6" {if condition="$global['web_theme_color_model'] == 6"} class="active" {/if} data-model="6">
  159. <span class="main_color" style="background-color:#963885;"></span>
  160. <span class="assist_color" style="background-color: #772c6a;"></span>
  161. </li>
  162. <li id="theme_color_model_custom" {if condition="$global['web_theme_color_model'] == 'custom'"} class="active" {/if} data-model="custom">
  163. <span style="background-color:#ffffff;">
  164. <img src="__STATIC__/admin/images/empty-color.png?v={$version|default='v1.6.2'}">
  165. </span>
  166. <span style="background-color:#ffffff;">
  167. <img src="__STATIC__/admin/images/empty-color.png?v={$version|default='v1.6.2'}">
  168. </span>
  169. </li>
  170. </ul>
  171. </div>
  172. </dd>
  173. </dl>
  174. <div id="div_custom_theme_color" class="{if condition="$global['web_theme_color_model'] != 'custom'"} none {/if}">
  175. <dl class="row">
  176. <dt class="tit">
  177. <label for="theme_main_color">自定义主色</label>
  178. </dt>
  179. <dd class="opt">
  180. <input type="text" name="theme_main_color" value="{$global.web_theme_color|default='#3398cc'}" id="theme_main_color" style="border-color: {$global.web_theme_color|default='#3398cc'};" />
  181. </dd>
  182. </dl>
  183. <dl class="row">
  184. <dt class="tit">
  185. <label for="theme_assist_color">自定义辅色</label>
  186. </dt>
  187. <dd class="opt">
  188. <input type="text" name="theme_assist_color" value="{$global.web_assist_color|default='#2189be'}" id="theme_assist_color" style="border-color: {$global.web_assist_color|default='#2189be'};" />
  189. </dd>
  190. </dl>
  191. </div>
  192. {eq name='$main_lang' value='$admin_lang'}
  193. <dl class="row">
  194. <dt class="tit">
  195. <label for="admin_logo">后台logo</label>
  196. </dt>
  197. <dd class="opt">
  198. <div class="input-file-show">
  199. <span class="show">
  200. <a id="img_a_admin_logo" class="nyroModal" rel="gal" href="{$global.web_adminlogo|default='javascript:void(0);'}?t={php}echo getTime();{/php}" target="_blank">
  201. <i id="img_i_admin_logo" class="fa fa-picture-o" {notempty name="$global.web_adminlogo"}onmouseover="layer_tips=layer.tips('<img src={$global.web_adminlogo|default=''} class=\'layer_tips_img\'>',this,{tips: [1, '#fff']});"{/notempty} onmouseout="layer.close(layer_tips);"></i>
  202. </a>
  203. </span>
  204. <span class="type-file-box">
  205. <input type="text" id="admin_logo" name="admin_logo" value="{$global.web_adminlogo|default=''}" class="type-file-text" autocomplete="off">
  206. <input type="button" name="button" id="button1" value="选择上传..." class="type-file-button">
  207. <input class="type-file-file" onClick="GetUploadify(1,'','adminlogo','admin_logo_call_back','{:url('Uploadify/upload_full')}');" size="30" hidefocus="true" nc_type="change_site_logo" title="点击前方预览图可查看大图,点击按钮选择文件并提交表单后上传生效">
  208. </span>
  209. </div>
  210. <span class="err"></span>
  211. <p class="notic"></p>
  212. </dd>
  213. </dl>
  214. {/eq}
  215. <dl class="row">
  216. <div class="bot">
  217. <!-- <input type="hidden" name="theme_title" value=""> -->
  218. <!-- <input type="hidden" name="is_select_theme" value="0"> -->
  219. <a href="JavaScript:void(0);" onclick="checkSubmit1();" class="ncap-btn-big ncap-btn-green" id="submitBtn">确认提交</a>
  220. </div>
  221. </dl>
  222. </div>
  223. </form>
  224. <script>
  225. $(document).ready(function(){
  226. // 主题风格切换
  227. /*$('#theme_login_style').find('li').click(function(){
  228. $('#theme_login_style').find('li>img').removeClass('active');
  229. $(this).find('img').addClass('active');
  230. $(this).find('input[type=radio]').attr('checked', true);
  231. var theme_id = $(this).find('input[type=radio]').val();
  232. $.ajax({
  233. type: "GET",
  234. url: "{:url('Index/ajax_get_theme_info', ['_ajax'=>1])}",
  235. data: {theme_id:theme_id},
  236. dataType: 'json',
  237. success: function (res) {
  238. layer.closeAll();
  239. if (res.code == 1) {
  240. $('input[name=is_select_theme]').val(1);
  241. var info = res.data.info;
  242. $('input[name=theme_title]').val(info.theme_title);
  243. login_logo_call_back(info.login_logo);
  244. $('#login_bgimg_model_'+info.login_bgimg_model).click();
  245. login_bgimg_call_back(info.login_bgimg);
  246. $('input[name=login_tplname]').val('');
  247. $('#theme_color_model_'+info.theme_color_model).click();
  248. if (info.theme_color_model == 'custom') {
  249. $('input[name=theme_main_color]').val(info.theme_main_color).css('border-color',info.theme_main_color);
  250. $('input[name=theme_assist_color]').val(info.theme_assist_color).css('border-color',info.theme_assist_color);
  251. }
  252. admin_logo_call_back(info.admin_logo);
  253. } else {
  254. showErrorAlert(res.msg);
  255. }
  256. },
  257. error:function(e){
  258. layer.closeAll();
  259. showErrorAlert(e.responseText);
  260. }
  261. });
  262. });*/
  263. // 登录背景图切换
  264. $('.div_login_bgimg_model').find('li').click(function(){
  265. $('.div_login_bgimg_model').find('li').removeClass('active');
  266. $(this).addClass('active');
  267. var data_model = $(this).attr('data-model');
  268. $('#login_bgimg_model').val(data_model);
  269. if ('custom' == data_model) {
  270. $('#div_custom_login_bgimg').show();
  271. } else {
  272. $('#div_custom_login_bgimg').hide();
  273. // 登录背景图
  274. var loginbgimg = $(this).find('img').attr('src');
  275. $('#login_bgimg').val(loginbgimg);
  276. }
  277. });
  278. // 主题色切换
  279. $('.div_theme_color_model').find('li').click(function(){
  280. $('.div_theme_color_model').find('li').removeClass('active');
  281. $(this).addClass('active');
  282. var data_model = $(this).attr('data-model');
  283. $('#theme_color_model').val(data_model);
  284. if ('custom' == data_model) {
  285. $('#div_custom_theme_color').show();
  286. } else {
  287. $('#div_custom_theme_color').hide();
  288. // 主题色
  289. var main_color = $(this).find('span.main_color').css('background-color');
  290. main_color = main_color.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
  291. main_color= "#" + hex(main_color[1]) + hex(main_color[2]) + hex(main_color[3]);
  292. $('#theme_main_color').val(main_color);
  293. // 辅助色
  294. var assist_color = $(this).find('span.assist_color').css('background-color');
  295. assist_color = assist_color.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/);
  296. assist_color= "#" + hex(assist_color[1]) + hex(assist_color[2]) + hex(assist_color[3]);
  297. $('#theme_assist_color').val(assist_color);
  298. }
  299. });
  300. // 10进制转为16进制
  301. function hex(x) {
  302. return ("0" + parseInt(x).toString(16)).slice(-2);
  303. }
  304. // 自定义 - 主题颜色选择
  305. $('#theme_main_color').colpick({
  306. flat:false,
  307. layout:'rgbhex',
  308. submit:0,
  309. colorScheme:'light',
  310. color:$('#theme_main_color').val(),
  311. onChange:function(hsb,hex,rgb,el,bySetColor) {
  312. $(el).css('border-color','#'+hex);
  313. // Fill the text box just if the color was set using the picker, and not the colpickSetColor function.
  314. if(!bySetColor) $(el).val('#'+hex);
  315. }
  316. }).keyup(function(){
  317. $(this).colpickSetColor('#'+this.value);
  318. });
  319. // 自定义 - 辅助颜色选择
  320. $('#theme_assist_color').colpick({
  321. flat:false,
  322. layout:'rgbhex',
  323. submit:0,
  324. colorScheme:'light',
  325. color:$('#theme_assist_color').val(),
  326. onChange:function(hsb,hex,rgb,el,bySetColor) {
  327. $(el).css('border-color','#'+hex);
  328. // Fill the text box just if the color was set using the picker, and not the colpickSetColor function.
  329. if(!bySetColor) $(el).val('#'+hex);
  330. }
  331. }).keyup(function(){
  332. $(this).colpickSetColor('#'+this.value);
  333. });
  334. });
  335. function checkSubmit1(){
  336. layer_loading('正在处理');
  337. $.ajax({
  338. type : 'POST',
  339. url : "{:url('Index/theme_conf', ['_ajax'=>1])}",
  340. data : $('#postForm1').serialize(),
  341. dataType : 'json',
  342. success : function(res){
  343. if(res.code == 1){
  344. if (res.data.is_change == 1) {
  345. /*layer.confirm('已保存,确认要新建主题风格?', {
  346. shade: layer_shade,
  347. area: ['480px', '190px'],
  348. move: false,
  349. title: '提示',
  350. btnAlign:'r',
  351. closeBtn: 3,
  352. btn: ['新建主题','关闭'], //按钮
  353. success: function () {
  354. $(".layui-layer-content").css('text-align', 'left');
  355. $(".layui-layer-btn").find('a.layui-layer-btn1').removeClass('layui-layer-btn1').addClass('layui-layer-btn2');
  356. $(".layui-layer-btn").find('a.layui-layer-btn0').removeClass('layui-layer-btn0').addClass('layui-layer-btn1');
  357. $(".layui-layer-btn").find('a.layui-layer-btn2').removeClass('layui-layer-btn2').addClass('layui-layer-btn0');
  358. },
  359. cancel: function(index, layero){
  360. layer.closeAll();
  361. window.location.reload();
  362. return false;
  363. }
  364. }, function () {
  365. layer.closeAll();
  366. layer.prompt({
  367. title: '新建主题风格',
  368. id: 'layerid_1645598368',
  369. btn: ['确定','取消'],
  370. shade: layer_shade,
  371. closeBtn: 0,
  372. success: function(layero, index) {
  373. $("#layerid_1645598368").find('input').attr('placeholder', '请输入主题名称');
  374. $("#layerid_1645598368").find('input').bind('keydown', function(event) {
  375. if (event.keyCode == 13) {
  376. theme_add_login($(this).val());
  377. }
  378. });
  379. },
  380. btn2: function(index, layero){
  381. window.location.reload();
  382. return false;
  383. }
  384. }, function(value, index) {
  385. theme_add_login(value);
  386. });
  387. }, function (index) {
  388. layer.closeAll();
  389. window.location.reload();
  390. });*/
  391. } else {
  392. layer.closeAll();
  393. layer.alert(res.msg, {
  394. shade: layer_shade,
  395. area: ['480px', '190px'],
  396. move: false,
  397. title: '提示',
  398. btnAlign:'r',
  399. closeBtn: 3,
  400. btn: ['确定','取消'],
  401. success: function () {
  402. $(".layui-layer-content").css('text-align', 'left');
  403. },
  404. cancel: function(index, layero){
  405. window.location.reload();
  406. return false;
  407. },
  408. btn2: function(index, layero){
  409. window.location.reload();
  410. }
  411. },function(){
  412. top.window.location.reload();
  413. });
  414. }
  415. }else{
  416. layer.closeAll();
  417. showErrorMsg(res.msg);
  418. }
  419. },
  420. error: function(e){
  421. layer.closeAll();
  422. layer.alert(e.responseText, {icon: 5, title:false});
  423. }
  424. });
  425. }
  426. /*function theme_add_login(theme_title)
  427. {
  428. $('input[name=theme_title]').val(theme_title);
  429. $.ajax({
  430. type: "POST",
  431. url: "{:url('Index/theme_add_login', ['_ajax'=>1])}",
  432. data: $('#postForm1').serialize(),
  433. dataType: 'json',
  434. success: function (res1) {
  435. layer.closeAll();
  436. if (res1.code == 1) {
  437. layer.alert(res1.msg, {
  438. shade: layer_shade,
  439. area: ['480px', '190px'],
  440. move: false,
  441. title: '提示',
  442. btnAlign:'r',
  443. closeBtn: 3,
  444. btn: ['关闭','刷新后台'],
  445. success: function () {
  446. $(".layui-layer-content").css('text-align', 'left');
  447. },
  448. cancel: function(index, layero){
  449. window.location.reload();
  450. return false;
  451. },
  452. btn2: function(index, layero){
  453. top.window.location.reload();
  454. }
  455. },function(){
  456. window.location.reload();
  457. });
  458. } else {
  459. showErrorAlert(res1.msg);
  460. }
  461. },
  462. error:function(e){
  463. layer.closeAll();
  464. showErrorAlert(e.responseText);
  465. }
  466. });
  467. }*/
  468. function admin_logo_call_back(fileurl_tmp)
  469. {
  470. $("#admin_logo").val(fileurl_tmp);
  471. $("#img_a_admin_logo").attr('href', fileurl_tmp);
  472. $("#img_i_admin_logo").attr('onmouseover', "layer_tips=layer.tips('<img src="+fileurl_tmp+" class=\\'layer_tips_img\\'>',this,{tips: [1, '#fff']});");
  473. }
  474. function login_logo_call_back(fileurl_tmp)
  475. {
  476. $("#login_logo").val(fileurl_tmp);
  477. $("#img_a_login_logo").attr('href', fileurl_tmp);
  478. $("#img_i_login_logo").attr('onmouseover', "layer_tips=layer.tips('<img src="+fileurl_tmp+" class=\\'layer_tips_img\\'>',this,{tips: [1, '#fff']});");
  479. }
  480. function login_bgimg_call_back(fileurl_tmp)
  481. {
  482. $("#login_bgimg").val(fileurl_tmp);
  483. $("#img_a_login_bgimg").attr('href', fileurl_tmp);
  484. $("#img_i_login_bgimg").attr('onmouseover', "layer_tips=layer.tips('<img src="+fileurl_tmp+" class=\\'layer_tips_img\\'>',this,{tips: [1, '#fff']});");
  485. }
  486. function login_tplname_add()
  487. {
  488. var url = "{:url('Index/ajax_theme_tplfile_add',['type'=>'login'])}";
  489. //iframe窗
  490. layer.open({
  491. type: 2,
  492. title: '新建登录页模板',
  493. fixed: true, //不固定
  494. shadeClose: false,
  495. shade: layer_shade,
  496. maxmin: false, //开启最大化最小化按钮
  497. area: ['100%', '100%'],
  498. content: url
  499. });
  500. }
  501. </script>
  502. {/eq}