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.
information-system/application/third_party/recommend/views/bind_info.php

88 lines
4.9 KiB
PHP

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
aria-hidden="true">&times;</span>
</button>
<h4 class="modal-title"><?php echo $infoRecommend->ir_name; ?></h4>
</div>
<div class="modal-body">
<form class="form-horizontal" action="<?php echo site_url('thirdparty/recommend/index/bind_info_save') ?>" method="post" id="bind_info_form" name="bind_info_form">
<div class="row">
<div class="col-md-6">
<label> <input type="radio" name="ir_rule" id="ir_rule_no" <?php echo $infoRecommend->ir_rule=='no'?'checked':''; ?>
value="no">继承上级规则</label>
</div>
<div class="col-md-6">
<label> <input type="radio" name="ir_rule" id="ir_rule_same_node_keyword" <?php echo $infoRecommend->ir_rule=='same_node_keyword'?'checked':''; ?>
value="same_node_keyword">同节点关键词</label>
</div>
<div class="col-md-6">
<label> <input type="radio" name="ir_rule" id="ir_rule_same_url_keyword" <?php echo $infoRecommend->ir_rule=='same_url_keyword'?'checked':''; ?>
value="same_url_keyword">
同URL关键词</label>
</div>
<div class="col-md-6">
<label> <input type="radio" name="ir_rule" id="ir_rule_same_node_random" <?php echo $infoRecommend->ir_rule=='same_node_random'?'checked':''; ?>
value="same_node_random">
同节点随机</label>
</div>
<div class="col-md-6">
<label> <input type="radio" name="ir_rule" id="ir_rule_this_node_random" <?php echo $infoRecommend->ir_rule=='this_node_random'?'checked':''; ?>
value="this_node_random">
指定节点随机</label>
</div>
<div class="col-md-6">
<label> <input type="radio" name="ir_rule" id="ir_rule_range_random" value="range_random" <?php echo $infoRecommend->ir_rule=='range_random'?'checked':''; ?>>
以下范围内随机</label>
</div>
<div class="col-md-6">
<label> <input type="radio" name="ir_rule" id="ir_rule_show_tips" <?php echo $infoRecommend->ir_rule=='ir_rule_show_tips'?'checked':''; ?>
value="ir_rule_show_tips">显示广告</label>
</div>
<div class="col-md-6">
<label> <input type="radio" name="ir_rule" id="ir_rule_no_show" <?php echo $infoRecommend->ir_rule=='no_show'?'checked':''; ?>
value="no_show">不显示</label>
</div>
</div>
<br/>
<div class="form-group">
<label for="ir_keyword" class="col-md-5 control-label">H1包含关键词: </label>
<div class="col-md-19">
<input type="text" class="form-control" name="ir_keyword" id="ir_keyword" placeholder="多个关键词以 , 分隔" value="<?php echo $infoRecommend->ir_keyword; ?>">
</div>
</div>
<div class="form-group">
<label for="ir_pointer_is_id" class="col-md-5 control-label">节点ID: </label>
<div class="col-md-19">
<div class="input-group">
<input type="text" class="form-control" id="ir_pointer_is_id" name="ir_pointer_is_id" placeholder="is_id" value="<?php echo $infoRecommend->ir_pointer_is_id; ?>">
<div class="input-group-addon"><a href="javascript:void(0);" onclick="check_is_id_info()">检查</a></div>
<input type="text" class="form-control" disabled id="pointer_check_info" placeholder="节点ID对应的名称">
</div>
</div>
</div>
<div class="form-group">
<label for="ir_keyword" class="col-md-5 control-label">广告列表: </label>
<div class="col-md-12">
<select class="form-control" id="ir_pointer_it_id" name="ir_pointer_it_id">
<?php foreach ($tipsList as $item){ ?>
<option value="<?php echo $item->it_id; ?>" <?php echo $infoRecommend->ir_pointer_it_id==$item->it_id?'selected':''; ?> ><?php echo $item->it_title; ?></option>
<?php } ?>
</select>
</div>
</div>
<textarea class="form-control" rows="6" id="ir_urls" name="ir_urls" placeholder="备选URL列表和随机范围URL列表每行一个"><?php echo $infoRecommend->ir_urls; ?></textarea>
<input type="hidden" name="ir_id" id="ir_id" value="<?php echo $infoRecommend->ir_id; ?>" />
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary" onclick="submitForm('bind_info_form');">保存</button>
</div>