You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
3.7 KiB
HTML
88 lines
3.7 KiB
HTML
<extend name="Public/base" />
|
|
|
|
<block name="body">
|
|
<script src="__STATIC__/layer/layer.js" type="text/javascript"></script>
|
|
<script src="__STATIC__/layer/extend/layer.ext.js" type="text/javascript"></script>
|
|
<link rel="stylesheet" href="__STATIC__/kindeditor/default/default.css" />
|
|
<script charset="utf-8" src="__STATIC__/kindeditor/kindeditor-min.js"></script>
|
|
<script charset="utf-8" src="__STATIC__/kindeditor/zh_CN.js"></script>
|
|
<!-- 标签页导航 -->
|
|
<div class="cf main-place top_nav_list navtab_list">
|
|
<h3 class="page_title">推广后台公告</h3>
|
|
<p class="description_text">说明:设置推广后台公告。</p>
|
|
</div>
|
|
<div class="tab-content tabcon1711">
|
|
<!-- 表单 -->
|
|
<!-- 基础 -->
|
|
<div id="tab1" class="tab-pane in tab1">
|
|
<table border="0" cellspacing="0" cellpadding="0">
|
|
<tr >
|
|
<td class="l noticeinfo">是否开启:</td>
|
|
<td class="r table_radio table_radio2">
|
|
<span class="table_btn">
|
|
<label>
|
|
<input type="radio" class="inp_radio" value="1" name="is_open" <if condition="$data['is_open'] eq 1"> checked</if>> 是
|
|
</label>
|
|
<label style="margin-left: 50px;">
|
|
<input type="radio" class="inp_radio" value="0" name="is_open" <if condition="$data['is_open'] eq 0"> checked</if> > 否
|
|
</label></span>
|
|
</td>
|
|
</tr>
|
|
<tr style="height: 50px;"></tr>
|
|
<tr>
|
|
<td class="l">公告内容:</td>
|
|
<td class="r">
|
|
<textarea name="content" id="content" class="txt_area">{$data['content']}</textarea>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="form-item cf">
|
|
<input type="hidden" name="id" value="{$data['id']}" />
|
|
<button class="submit_btn" style="margin-left:210px;">
|
|
保存
|
|
</button>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
</block>
|
|
<block name="script">
|
|
<script type="text/javascript">
|
|
highlight_subnav("{:U('edit')}");
|
|
KindEditor.ready(function(K) {
|
|
var options = {
|
|
filterMode : true,
|
|
width : '700px',
|
|
height:'600px'
|
|
};
|
|
var editor = K.create('textarea[name="content"]', options);
|
|
$('.submit_btn').on("click",function(){
|
|
editor.sync();
|
|
var senddata = {
|
|
id:$("input[name='id']").val(),
|
|
is_open:$("input[type='radio']:checked").val(),
|
|
content:$("#content").val()
|
|
}
|
|
$.ajax({
|
|
type: "POST",
|
|
url: "{:U('doEdit')}",
|
|
dataType: 'json',
|
|
data: senddata,
|
|
success:function(data){
|
|
if(data.status==1){
|
|
layer.msg("<font style='color:white'>" + data.msg + "</font>");
|
|
setTimeout(function(){
|
|
window.location.reload();
|
|
},1500);
|
|
}else{
|
|
layer.msg("<font style='color:white'>" + data.msg + "</font>");
|
|
return false;
|
|
}
|
|
}
|
|
});
|
|
})
|
|
})
|
|
</script>
|
|
</block>
|