|
|
|
@ -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('是否删除?')) {
|
|
|
|
@ -320,7 +344,7 @@
|
|
|
|
|
//跳转到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>
|
|
|
|
@ -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>
|
|
|
|
|