|
|
|
@ -5,14 +5,39 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="col-md-9">
|
|
|
|
|
<h4>广告管理 <small><a href="<?php echo site_url('thirdparty/recommend/tips/add'); ?>">添加广告</a></small></h4>
|
|
|
|
|
<form method="post" action="<?php echo site_url('thirdparty/recommend/index/search'); ?>" class="navbar-form navbar-left">
|
|
|
|
|
<form id="searchForm" method="post" action="<?php echo site_url('thirdparty/recommend/index/search'); ?>" class="navbar-form navbar-left">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<input type="text" class="form-control input-sm" name="keywords" id="keywords" value="" style="min-width:450px;">
|
|
|
|
|
<input type="hidden" name="byWhat" id="byWhatInput" >
|
|
|
|
|
<span class="input-group-btn">
|
|
|
|
|
<button class="btn btn-default btn-sm" type="submit">搜索</button>
|
|
|
|
|
<button class="btn btn-default btn-sm" id="searchByTitleBtn" type="button">搜索标题</button>
|
|
|
|
|
<button class="btn btn-default btn-sm" id="searchByLabelBtn" type="button">搜索标签</button>
|
|
|
|
|
<button class="btn btn-default btn-sm" id="searchByContentBtn" type="button">搜索内容</button>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<script>
|
|
|
|
|
var searchForm = document.getElementById('searchForm');
|
|
|
|
|
var searchByTitleBtn = document.getElementById('searchByTitleBtn');
|
|
|
|
|
var searchByLabelBtn = document.getElementById('searchByLabelBtn');
|
|
|
|
|
var searchByContentBtn = document.getElementById('searchByContentBtn');
|
|
|
|
|
var byWhatInput = document.getElementById('byWhatInput');
|
|
|
|
|
|
|
|
|
|
function submitSearch(byWhat) {
|
|
|
|
|
byWhatInput.value = byWhat;
|
|
|
|
|
searchForm.submit();
|
|
|
|
|
}
|
|
|
|
|
searchByTitleBtn.addEventListener('click', function(event) {
|
|
|
|
|
submitSearch('byTitle');
|
|
|
|
|
});
|
|
|
|
|
searchByLabelBtn.addEventListener('click', function(event) {
|
|
|
|
|
submitSearch('byLabel');
|
|
|
|
|
});
|
|
|
|
|
searchByContentBtn.addEventListener('click', function(event) {
|
|
|
|
|
submitSearch('byContent');
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
|
|
|
|
|
|
<thead>
|
|
|
|
|