Use separate view for public search
这个提交包含在:
父节点
e2ef6c2b20
当前提交
d5f98da321
共有 2 个文件被更改,包括 66 次插入 和 1 次删除
|
|
@ -478,7 +478,7 @@ class Visitor extends CI_Controller {
|
||||||
if ($search_results->num_rows() > 0) {
|
if ($search_results->num_rows() > 0) {
|
||||||
echo "Result found";
|
echo "Result found";
|
||||||
$data['results'] = $search_results;
|
$data['results'] = $search_results;
|
||||||
$this->load->view('view_log/partial/log_ajax.php', $data);
|
$this->load->view('public_search/result.php', $data);
|
||||||
} else {
|
} else {
|
||||||
echo "No results found";
|
echo "No results found";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,65 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
if ($results) { ?>
|
||||||
|
|
||||||
|
<div class="table-responsive">
|
||||||
|
<table style="width:100%" class="table contacttable table-striped table-hover">
|
||||||
|
<thead>
|
||||||
|
<tr class="titles">
|
||||||
|
<th><?php echo lang('general_word_date'); ?></th>
|
||||||
|
<th><?php echo lang('gen_hamradio_call'); ?></th>
|
||||||
|
<th><?php echo lang('gen_hamradio_mode'); ?></th>
|
||||||
|
<th><?php echo lang('gen_hamradio_band'); ?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
|
||||||
|
<?php $i = 0;
|
||||||
|
foreach ($results->result() as $row) {
|
||||||
|
echo '<tr class="tr'.($i & 1).'">'; ?>
|
||||||
|
<td><?php $timestamp = strtotime($row->COL_TIME_ON); echo date($this->config->item('qso_date_format'), $timestamp); ?></td>
|
||||||
|
<td>
|
||||||
|
<?php echo str_replace("0","Ø",strtoupper($row->COL_CALL)); ?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<?php echo $row->COL_SUBMODE==null ? $row->COL_MODE : $row->COL_SUBMODE; ?>
|
||||||
|
</td>
|
||||||
|
<td>
|
||||||
|
<?php if($row->COL_SAT_NAME != null) { echo $row->COL_SAT_NAME; } else { echo strtolower($row->COL_BAND); } ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php $i++; } ?>
|
||||||
|
</tbody>
|
||||||
|
</table></div>
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
<?php if (isset($this->pagination)){ ?>
|
||||||
|
<?php
|
||||||
|
$config['full_tag_open'] = '<ul class="pagination">';
|
||||||
|
$config['full_tag_close'] = '</ul>';
|
||||||
|
$config['attributes'] = ['class' => 'page-link'];
|
||||||
|
$config['first_link'] = false;
|
||||||
|
$config['last_link'] = false;
|
||||||
|
$config['first_tag_open'] = '<li class="page-item">';
|
||||||
|
$config['first_tag_close'] = '</li>';
|
||||||
|
$config['prev_link'] = '«';
|
||||||
|
$config['prev_tag_open'] = '<li class="page-item">';
|
||||||
|
$config['prev_tag_close'] = '</li>';
|
||||||
|
$config['next_link'] = '»';
|
||||||
|
$config['next_tag_open'] = '<li class="page-item">';
|
||||||
|
$config['next_tag_close'] = '</li>';
|
||||||
|
$config['last_tag_open'] = '<li class="page-item">';
|
||||||
|
$config['last_tag_close'] = '</li>';
|
||||||
|
$config['cur_tag_open'] = '<li class="page-item active"><a href="#" class="page-link">';
|
||||||
|
$config['cur_tag_close'] = '<span class="sr-only">(current)</span></a></li>';
|
||||||
|
$config['num_tag_open'] = '<li class="page-item">';
|
||||||
|
$config['num_tag_close'] = '</li>';
|
||||||
|
$this->pagination->initialize($config);
|
||||||
|
?>
|
||||||
|
|
||||||
|
<?php echo $this->pagination->create_links(); ?>
|
||||||
|
|
||||||
|
<?php } ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
正在加载…
在新工单中引用