|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
<?php // 代码各服务器已经同步 2016.06.01 ycc ?>
|
|
|
|
|
<?php // 代码各服务器已经同步 2016.06.01 ycc ?>
|
|
|
|
|
<script src="/js/ace/ace.js" type="text/javascript" charset="utf-8"></script>
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
var content_length = 0;
|
|
|
|
@ -149,6 +149,30 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//移动到任意节点下
|
|
|
|
|
function move_by_is_id(is_id) {
|
|
|
|
|
is_parent_id = prompt("请输入移动到的节点ID:", "");
|
|
|
|
|
if (is_parent_id != null) {
|
|
|
|
|
if (confirm('请确认是否要移动到:' + is_parent_id)) {
|
|
|
|
|
var urlReQuery = "<?php echo site_url('information/move_by_is_id'); ?>";
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "post",
|
|
|
|
|
url: urlReQuery,
|
|
|
|
|
data: {'is_id': is_id, 'is_parent_id': is_parent_id},
|
|
|
|
|
success: function(data, textStatus) {
|
|
|
|
|
window.location.href = "<?php echo site_url('information/edit'); ?>/"+is_id;
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
error: function() {
|
|
|
|
|
$.modaldialog.error('发生错误,请联系YCC');
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//删除结构和信息
|
|
|
|
|
function deleteInfo(is_id) {
|
|
|
|
|
if (confirm('是否删除?')) {
|
|
|
|
@ -317,10 +341,10 @@
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//跳转到HTML验证页面
|
|
|
|
|
//跳转到HTML验证页面
|
|
|
|
|
function goto_validator() {
|
|
|
|
|
var site_url = '<?php echo $this->config->item('site_url') ?>';
|
|
|
|
|
$('#goto_validator_button').attr("href", 'https://validator.w3.org/nu/?doc='+site_url + $('#ic_url').val());
|
|
|
|
|
$('#goto_validator_button').attr("href", 'https://validator.w3.org/nu/?doc=' + site_url + $('#ic_url').val());
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -496,7 +520,7 @@
|
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="col-xs-24 btn-sm"></div>
|
|
|
|
|
<div class="col-xs-7">
|
|
|
|
|
<label>信息标题 & ID: <?php echo $information->ic_id; ?></label>
|
|
|
|
|
<label>信息标题</label>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-xs-24">
|
|
|
|
|
<input class="form-control" type="text" id="ic_title" style="<?php if ($embody == 1) echo 'border-color:green;'; ?>" name="ic_title" value="<?php echo $information->ic_title; ?>" >
|
|
|
|
@ -525,7 +549,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<textarea id="ic_content" name="ic_content" ><?php echo str_replace($this->config->item('site_image_url'), $this->config->item('media_image_url'), str_replace('textarea','#textarea#',$information->ic_content)); ?></textarea>
|
|
|
|
|
<textarea id="ic_content" name="ic_content" ><?php echo str_replace($this->config->item('site_image_url'), $this->config->item('media_image_url'), str_replace('textarea', '#textarea#', $information->ic_content)); ?></textarea>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<textarea name="ic_summary" id="ic_summary" class="col-xs-24" rows="5" placeholder="信息简介" style="border:none;border-bottom:1px solid #bbb;"><?php echo $information->ic_summary; ?></textarea>
|
|
|
|
@ -1025,13 +1049,13 @@
|
|
|
|
|
<input type="text" name="meta_facts_city" class="form-control" value="<?php echo get_meta($information->ic_id, 'meta_facts_city'); ?>" id="meta_facts_city"/>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<div class="col-sm-4">
|
|
|
|
|
<label>隐藏社媒按钮
|
|
|
|
|
<a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_media_button', $('#meta_media_button').val())"><i class="text-muted glyphicon glyphicon-remove"></i></a>
|
|
|
|
|
<a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_media_button', $('#meta_media_button').val())"><i class="text-muted glyphicon glyphicon-hdd"></i></a>
|
|
|
|
|
<a href="javascript:void(0);" title="城市facets"><i class="text-muted glyphicon glyphicon-question-sign"></i></a>
|
|
|
|
|
</label>
|
|
|
|
|
<select name="meta_media_button" id="meta_media_button" class="form-control" >
|
|
|
|
|
<select name="meta_media_button" id="meta_media_button" class="form-control" >
|
|
|
|
|
<option value="no">不隐藏</option>
|
|
|
|
|
<option value="yes" <?php echo get_meta($information->ic_id, 'meta_media_button') === 'yes' ? 'selected' : FALSE; ?>>隐藏</option>
|
|
|
|
|
</select>
|
|
|
|
@ -1155,7 +1179,7 @@
|
|
|
|
|
$('#mobile_friendly_status').html('');
|
|
|
|
|
mobile_friendly();">自适应检测</button>
|
|
|
|
|
<span id="mobile_friendly_status"></span>
|
|
|
|
|
<a href="javascript:void();" class="btn btn-sm" id="goto_validator_button" target="_blank" onclick="goto_validator();" >HTML规范验证</a>
|
|
|
|
|
<a href="javascript:void();" class="btn btn-sm" id="goto_validator_button" target="_blank" onclick="goto_validator();" >HTML规范验证</a>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
<div class="btn-group col-xs-24 nopadding pull-right <?php if ($is_writeable == 0) echo 'hide'; ?>">
|
|
|
|
@ -1175,7 +1199,7 @@
|
|
|
|
|
<ul class="dropdown-menu">
|
|
|
|
|
<li><a href="<?php echo site_url('author/create_task/' . $information->is_id) ?>" target="_blank">发布任务</a></li>
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
|
|
|
|
|
|
<li><a href="javascript:void(0);" onclick="move_by_is_id('<?php echo $information->is_id; ?>');">搬迁信息</a></li>
|
|
|
|
|
|
|
|
|
|
<li><a href="javascript:void(0);" onclick="deleteInfo('<?php echo $information->is_id; ?>');">删除信息</a></li>
|
|
|
|
|
<li class="divider"></li>
|
|
|
|
|