| | |
| | | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| | | <html> |
| | | |
| | | <head> |
| | | <meta http-equiv="Content-Type" content="text/html;charset=utf-8"> |
| | | <link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" /> |
| | |
| | | $("#imgparent").addClass('none'); |
| | | } |
| | | } |
| | | function checkform(myform){ |
| | | function save_link(myform) { |
| | | if (myform.type.value==""){ |
| | | parent.layer.msg('请选择链接类型!', 2, 8); |
| | | myform.type.focus(); |
| | |
| | | myform.tem_type.focus(); |
| | | return (false); |
| | | } |
| | | var postData = $("#add_link_form").serialize(); |
| | | let loading; |
| | | $.ajax({ |
| | | type: "POST", |
| | | url: "index.php?m=link&c=save", |
| | | data: postData, |
| | | dataType: 'json', |
| | | beforeSend: function () { |
| | | loading = layer.load(1, { |
| | | shade: 0.3, |
| | | }); |
| | | }, |
| | | cache: false, |
| | | success: function (msg) { |
| | | layer.close(loading); |
| | | if (msg.st == 9) { |
| | | layer.msg(msg.msg, { |
| | | icon: 1, |
| | | time: 1000, |
| | | offset: '10%' |
| | | }); |
| | | } else { |
| | | layer.msg(msg.msg, { |
| | | icon: 2, |
| | | time: 2000, |
| | | offset: '10%' |
| | | }, function () { |
| | | // $("#submit_button").attr('disabled', false); |
| | | }); |
| | | } |
| | | } |
| | | }); |
| | | return false; |
| | | } |
| | | </script> |
| | | <link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet"> |
| | | <script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> |
| | | <script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script> |
| | | <title>后台管理</title> |
| | | </head> |
| | | |
| | | <body class="body_ifm"> |
| | | <div class="infoboxp"> |
| | | <div class="tty-tishi_top"> |
| | |
| | | <div class="clear"></div> |
| | | |
| | | <iframe id="supportiframe" name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe> |
| | | <form name="myform" target="supportiframe" action="index.php?m=link&c=save" method="post" encType="multipart/form-data" |
| | | onSubmit="return checkform(this);" class="layui-form"> |
| | | <!-- action="index.php?m=link&c=save" --> |
| | | <form name="myform" target="supportiframe" id="add_link_form" method="post" onsubmit="save_link(this);" class="layui-form"> |
| | | <input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}"> |
| | | <table width="100%" class="table_form" style="background:#fff;"> |
| | | <tr> |
| | |
| | | <tr class="pic"> |
| | | <th width="120">图片预览:</th> |
| | | <td> |
| | | <img src="{yun:}$info.pic{/yun}" width="160" height="50" /></td> |
| | | <img src="{yun:}$info.pic{/yun}" width="160" height="50" /> |
| | | </td> |
| | | </tr> |
| | | {yun:}/if{/yun} |
| | | {yun:}/if{/yun} |
| | | <tr class="admin_table_trbg"> |
| | | <th width="120">排序:</th> |
| | | <td><input class="tty_input t_w480" type="text" name="sorting" size="20" value="{yun:}$info.link_sorting{/yun}" /> |
| | | <span class="admin_web_tip">例:大前小后</span></td> |
| | | <span class="admin_web_tip">例:大前小后</span> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <th> </th> |
| | |
| | | {yun:}else{/yun} |
| | | <input class="tty_sub" type="submit" name="link_add" value=" 添 加 " /> |
| | | {yun:}/if{/yun} |
| | | <input class="tty_cz" type="reset" name="reset" value=" 重 置 " /></td> |
| | | <input class="tty_cz" type="reset" name="reset" value=" 重 置 " /> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </form> |
| | |
| | | </script> |
| | | <script src="{yun:}$config.sy_weburl{/yun}/js/layui.upload.js?v={yun:}$config.cachecode{/yun}" type='text/javascript'></script> |
| | | </body> |
| | | |
| | | </html> |