|
|
@ -4,7 +4,8 @@
|
|
|
|
#dialog-header{height: 30px;}
|
|
|
|
#dialog-header{height: 30px;}
|
|
|
|
.ad_link, .sop_link {font-size: 16px;text-decoration: underline;padding-right: 12px;color:#000;font-weight: bold;}
|
|
|
|
.ad_link, .sop_link {font-size: 16px;text-decoration: underline;padding-right: 12px;color:#000;font-weight: bold;}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|
<link type="text/css" rel="stylesheet" href="http://europe.chtcdn.com/js/lyydate/skins/default/laydate.css?1" id="LayDateSkin">
|
|
|
|
<script type="text/javascript" src="/wysiwyg/ckeditor.js"></script>
|
|
|
|
|
|
|
|
<link type="text/css" rel="stylesheet" href="/js/lyydate/skins/default/laydate.css?1" id="LayDateSkin">
|
|
|
|
<div class="container-fluid" style="background:#f8f8f8;">
|
|
|
|
<div class="container-fluid" style="background:#f8f8f8;">
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-5 col-md-4 nopadding hidden-xs">
|
|
|
|
<div class="col-sm-5 col-md-4 nopadding hidden-xs">
|
|
|
@ -160,35 +161,22 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
var editor;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var editor;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
$(document).ready(function() {
|
|
|
|
//编辑器初始化
|
|
|
|
//编辑器初始化
|
|
|
|
KindEditor.ready(function(K) {
|
|
|
|
|
|
|
|
editor = K.create('#ad_content', {
|
|
|
|
editor = CKEDITOR.replace("ad_content", {
|
|
|
|
width: '100%',
|
|
|
|
width: '100%',
|
|
|
|
height: '500px',
|
|
|
|
height: '560px',
|
|
|
|
filterMode: false,
|
|
|
|
filebrowserBrowseUrl:'/wysiwyg/ckfinder/ckfinder.php?sitecode=<?php echo $this->config->item('site_code'); ?>',
|
|
|
|
allowImageUpload: false,
|
|
|
|
filebrowserUploadUrl: '/wysiwyg/ckfinder/core/connector/php/connector.php?command=QuickUpload&type=image',
|
|
|
|
items: [
|
|
|
|
});
|
|
|
|
'source', 'formatblock', 'fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold',
|
|
|
|
|
|
|
|
'italic', 'underline', 'strikethrough', 'lineheight', '|',
|
|
|
|
|
|
|
|
'justifyleft', 'justifycenter', 'justifyright', 'justifyfull', 'insertorderedlist', 'insertunorderedlist', 'indent', 'outdent', '|',
|
|
|
|
|
|
|
|
'clearhtml', 'removeformat', 'image', 'pagebreak', 'link', 'unlink', 'mediacits', 'character', 'fullscreen'
|
|
|
|
|
|
|
|
],
|
|
|
|
|
|
|
|
afterChange: function() {}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//LMR:加载广告模板
|
|
|
|
|
|
|
|
$('[data-ad-template]').on('click', function() {
|
|
|
|
|
|
|
|
var tpl = $(this).attr('data-ad-template');
|
|
|
|
|
|
|
|
if (tpl=='ad-img') {
|
|
|
|
|
|
|
|
if (!editor.html()) {
|
|
|
|
|
|
|
|
editor.html('<div class="cht_adv"><a href="#"><img src="http://images.chinahighlights.com/allpicture/2016/02/b3a8dc0e0f70456c9a21b3aa.jpg" class="img-responsive"></a><br/></div>')
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
alert('编辑区域有内容,请先清空编辑区!');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$(".center-col").css({"min-height": $(document).height()});
|
|
|
|
$(".center-col").css({"min-height": $(document).height()});
|
|
|
|
|
|
|
|
|
|
|
@ -227,7 +215,7 @@
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//编辑广告内容
|
|
|
|
//编辑广告内容
|
|
|
|
$('.btn_advertise_edit').on('click', function() {
|
|
|
|
$('.btn_advertise_edit').on('click', function() {
|
|
|
|
editor.sync();
|
|
|
|
editor.updateElement();
|
|
|
|
submitForm('form_advertise_edit');
|
|
|
|
submitForm('form_advertise_edit');
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//添加关联信息
|
|
|
|
//添加关联信息
|
|
|
@ -267,11 +255,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
function load_preview_css() {
|
|
|
|
|
|
|
|
$(".editor-box").find(".ke-edit").css({"border": "1px solid #ddd"});
|
|
|
|
|
|
|
|
$(".editor-box").find(".ke-toolbar").css({"border-left": "1px solid #ddd", "border-right": "1px solid #ddd"});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//选择内容图片
|
|
|
|
//选择内容图片
|
|
|
|
function openKCFinder_Content() {
|
|
|
|
function openKCFinder_Content() {
|
|
|
|
var site_url = '<?php echo $this->config->item('site_url') ?>';
|
|
|
|
var site_url = '<?php echo $this->config->item('site_url') ?>';
|
|
|
@ -301,7 +286,7 @@
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<script type="text/javascript" src="/js/init_ztree.js"></script>
|
|
|
|
<script type="text/javascript" src="/js/init_ztree.js"></script>
|
|
|
|
<!--日期选择器-->
|
|
|
|
<!--日期选择器-->
|
|
|
|
<script src="http://europe.chtcdn.com/js/lyydate/jquery.lyydate.min.js?1"></script>
|
|
|
|
<script src="/js/lyydate/jquery.lyydate.min.js?1"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
<script type="text/javascript">
|
|
|
|
$('#ad_expire').lyydatepicker({
|
|
|
|
$('#ad_expire').lyydatepicker({
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|