|
|
@ -534,11 +534,6 @@
|
|
|
|
<div class="col-xs-7">
|
|
|
|
<div class="col-xs-7">
|
|
|
|
<label>
|
|
|
|
<label>
|
|
|
|
信息标题
|
|
|
|
信息标题
|
|
|
|
<?php if (is_series_site()) { ?>
|
|
|
|
|
|
|
|
<button type="button" class="btn btn-xs none" data-toggle="modal" data-target="#tagM">
|
|
|
|
|
|
|
|
+ 标签(国际站)
|
|
|
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-17 text-right">
|
|
|
|
<div class="col-xs-17 text-right">
|
|
|
@ -549,7 +544,10 @@
|
|
|
|
<?php }?>
|
|
|
|
<?php }?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-24">
|
|
|
|
<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; ?>" >
|
|
|
|
<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; ?>" >
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-xs-24 btn-sm"></div>
|
|
|
|
<div class="col-xs-24 btn-sm"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -722,7 +720,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<?php if ($information->ic_sitecode == 'cht') { ?>
|
|
|
|
<?php if ($information->ic_sitecode == 'cht') {
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-5">
|
|
|
|
<div class="col-sm-5">
|
|
|
@ -737,7 +736,10 @@
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="col-sm-5 <?php if ($information->ic_ht_area_type != 'c') echo 'hidden'; ?>">
|
|
|
|
<div class="col-sm-5 <?php if ($information->ic_ht_area_type != 'c') {
|
|
|
|
|
|
|
|
echo 'hidden';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>">
|
|
|
|
<label>景点评论数
|
|
|
|
<label>景点评论数
|
|
|
|
<a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_review_count', $('#meta_review_count').val())"><i class="text-muted glyphicon glyphicon-remove"></i></a>
|
|
|
|
<a href="javascript:void(0);" onclick="meta('delete', '<?php echo $information->ic_id; ?>', 'meta_review_count', $('#meta_review_count').val())"><i class="text-muted glyphicon glyphicon-remove"></i></a>
|
|
|
|
<a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_review_count', $('#meta_review_count').val())"><i class="text-muted glyphicon glyphicon-hdd"></i></a>
|
|
|
|
<a href="javascript:void(0);" onclick="meta('save', '<?php echo $information->ic_id; ?>', 'meta_review_count', $('#meta_review_count').val())"><i class="text-muted glyphicon glyphicon-hdd"></i></a>
|
|
|
@ -898,7 +900,8 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<?php if (is_series_site()) { ?>
|
|
|
|
<?php if (is_series_site()) {
|
|
|
|
|
|
|
|
?>
|
|
|
|
<div class="row">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<label>机票目的地
|
|
|
|
<label>机票目的地
|
|
|
@ -926,7 +929,7 @@
|
|
|
|
'op' => 'OP',
|
|
|
|
'op' => 'OP',
|
|
|
|
'best' => '实用信息',
|
|
|
|
'best' => '实用信息',
|
|
|
|
'culture' => '文化',
|
|
|
|
'culture' => '文化',
|
|
|
|
'top10' => 'TOP10'
|
|
|
|
'top10' => 'TOP10',
|
|
|
|
);
|
|
|
|
);
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|
<label>匹配到一级导航
|
|
|
|
<label>匹配到一级导航
|
|
|
@ -1214,7 +1217,10 @@
|
|
|
|
<!-- <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>
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="btn-group col-xs-24 nopadding pull-right <?php if ($is_writeable == 0) echo 'hide'; ?>">
|
|
|
|
<div class="btn-group col-xs-24 nopadding pull-right <?php if ($is_writeable == 0) {
|
|
|
|
|
|
|
|
echo 'hide';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>">
|
|
|
|
<input type="hidden" name="rule_check_flag" id="rule_check_flag" value="1">
|
|
|
|
<input type="hidden" name="rule_check_flag" id="rule_check_flag" value="1">
|
|
|
|
<a href="javascript:void(0);" class="btn btn-primary col-xs-19" onclick="editor.sync();
|
|
|
|
<a href="javascript:void(0);" class="btn btn-primary col-xs-19" onclick="editor.sync();
|
|
|
|
if (editor.html() != '' && editor.text() == '') {
|
|
|
|
if (editor.html() != '' && editor.text() == '') {
|
|
|
@ -1267,100 +1273,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php //标签模态框 ?>
|
|
|
|
|
|
|
|
<div class="modal fade" id="tagM" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
|
|
|
|
|
|
|
|
<style type="text/css">
|
|
|
|
|
|
|
|
.tagLabel {background: #eee;padding: 5px 15px 5px 35px!important;border-radius: 5px;border: 1px solid #aaa; margin-right:2px;box-shadow: 0px 0px 2px #ddd;}
|
|
|
|
|
|
|
|
.myTag {background: #d2eafb; color:#108ee9; border-color: #108ee9;}
|
|
|
|
|
|
|
|
.tagLabel.newLabel {padding: 5px 10px!important;border: 1px dashed #000;}
|
|
|
|
|
|
|
|
</style>
|
|
|
|
|
|
|
|
<div class="modal-dialog" role="document">
|
|
|
|
|
|
|
|
<div class="modal-content">
|
|
|
|
|
|
|
|
<div class="modal-header">
|
|
|
|
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
|
|
|
|
|
<h4 class="modal-title" id="myModalLabel">添加标签</h4>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-body">
|
|
|
|
|
|
|
|
<div class="checkbox">
|
|
|
|
|
|
|
|
<?php foreach ($my_tags as $tag) { ?>
|
|
|
|
|
|
|
|
<label class="tagLabel myTag">
|
|
|
|
|
|
|
|
<input type="checkbox" value="<?php echo($tag->it_title) ?>" data-it-id="<?php echo($tag->it_id) ?>" checked>
|
|
|
|
|
|
|
|
<span><?php echo($tag->it_title) ?></span>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="checkbox">
|
|
|
|
|
|
|
|
<?php foreach ($all_tags as $tag) { ?>
|
|
|
|
|
|
|
|
<label class="tagLabel">
|
|
|
|
|
|
|
|
<input type="checkbox" value="<?php echo($tag->it_title) ?>" data-it-id="<?php echo($tag->it_id) ?>">
|
|
|
|
|
|
|
|
<span><?php echo($tag->it_title) ?></span>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<?php } ?>
|
|
|
|
|
|
|
|
<label class="tagLabel newLabel">
|
|
|
|
|
|
|
|
<a class="btn btn-xs newTagA"> + 新标签 </a>
|
|
|
|
|
|
|
|
<input class="form-control input-sm newTag newTagI" type="text" placeholder=" + 新标签 " style="display:none">
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal-footer">
|
|
|
|
|
|
|
|
<!--a class="btn btn-primary" id="newTemp" target="_blank" href="javascript:void(0);">添加为模板</a-->
|
|
|
|
|
|
|
|
<a class="btn btn-default" target="_blank" href="http://localhost:3000/">打开模板管理</a>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
//标签更新
|
|
|
|
|
|
|
|
$('[data-it-id]').on('change', function () {
|
|
|
|
|
|
|
|
if ($(this).is(':checked')) {
|
|
|
|
|
|
|
|
$.post('/info.php/info_tags/add_tag_to_content/', {
|
|
|
|
|
|
|
|
'it_id': $(this).attr('data-it-id'),
|
|
|
|
|
|
|
|
'ic_id': <?php echo $information->ic_id; ?>,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$(this).parent().addClass('myTag');
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$.post('/info.php/info_tags/remove_tag_to_content/', {
|
|
|
|
|
|
|
|
'it_id': $(this).attr('data-it-id'),
|
|
|
|
|
|
|
|
'ic_id': <?php echo $information->ic_id; ?>,
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$(this).parent().removeClass('myTag');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//新标签
|
|
|
|
|
|
|
|
$('.newTagA').on('click', function () {
|
|
|
|
|
|
|
|
$(this).hide();
|
|
|
|
|
|
|
|
$('.newTagI').show();
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
$('.newTagI').on('blur', function () {
|
|
|
|
|
|
|
|
$(this).hide();
|
|
|
|
|
|
|
|
if ($(this).val()) {
|
|
|
|
|
|
|
|
var yes = confirm("确认添加新标签:" + $(this).val())
|
|
|
|
|
|
|
|
//添加标签
|
|
|
|
|
|
|
|
if (yes) {
|
|
|
|
|
|
|
|
$.post('/info.php/info_tags/add_tag/', {'title': $(this).val(), 'memo': 'test'}, function (json) {
|
|
|
|
|
|
|
|
if (json.statu != '-1') {
|
|
|
|
|
|
|
|
$clone = $('.tagLabel').eq(0).clone(true);
|
|
|
|
|
|
|
|
$clone.removeClass('myTag');
|
|
|
|
|
|
|
|
$clone.find('input').attr('data-it-id', json.message).removeAttr('checked');
|
|
|
|
|
|
|
|
$clone.find('span').html($('.newTagI').val());
|
|
|
|
|
|
|
|
$('.newLabel').before($clone);
|
|
|
|
|
|
|
|
//归零
|
|
|
|
|
|
|
|
$('.newTagI').val('').hide();
|
|
|
|
|
|
|
|
$('.newTagA').html(' + 新标签 ').show();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
alert('增加标签失败!');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}, 'json');
|
|
|
|
|
|
|
|
$('.newTagA').html($(this).val()).show();
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$('.newTagA').show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
$('.newTagA').html(' + 新标签 ').show();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
//添加新模板
|
|
|
|
|
|
|
|
$('#newTemp').on('click', function () {
|
|
|
|
|
|
|
|
alert('ok');
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|