PluginProbe
VikBooking Hotel Booking Engine & PMS / 1.6.8
VikBooking Hotel Booking Engine & PMS v1.6.8
1.8.16 1.8.15 1.8.14 1.8.13 1.8.12 1.8.11 1.8.10 1.8.9 1.8.6 1.8.7 1.8.8 trunk 1.6.0 1.6.1 1.6.2 1.6.3 1.6.4 1.6.5 1.6.6 1.6.7 1.6.8 1.6.9 1.7.0 1.7.1 1.7.2 All 37 releases
vikbooking / admin / views / states / tmpl / default.php

default.php in VikBooking Hotel Booking Engine & PMS 1.6.8, at admin/views/states/tmpl/default.php

129 lines 7.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * @package VikBooking
4 * @subpackage com_vikbooking
5 * @author Alessio Gaggii - e4j - Extensionsforjoomla.com
6 * @copyright Copyright (C) 2018 e4j - Extensionsforjoomla.com. All rights reserved.
7 * @license GNU General Public License version 2 or later; see LICENSE
8 * @link https://vikwp.com
9 */
10
11 defined('ABSPATH') or die('No script kiddies please!');
12
13 $app = JFactory::getApplication();
14 $pidcountry = $app->getUserStateFromRequest("vbo.states.idcountry", 'idcountry', 0, 'int');
15 $pstatename = $app->getUserStateFromRequest("vbo.states.statename", 'statename', '', 'string');
16
17 $vbo_app = VikBooking::getVboApplication();
18 $vbo_app->loadSelect2();
19
20 ?>
21 <div class="vbo-list-form-filters vbo-btn-toolbar">
22 <form action="index.php?option=com_vikbooking&amp;view=states" method="post" name="statesform">
23 <div style="width: 100%; display: inline-block;" class="btn-toolbar" id="filter-bar">
24 <div class="btn-group pull-left">
25 <select name="idcountry" id="idcountry" onchange="document.statesform.submit();">
26 <option value=""><?php echo JText::translate('VBNEWCUSTOMFCOUNTRY'); ?></option>
27 <?php
28 foreach (VikBooking::getCountriesArray($tn = true, $no_id = false) as $country) {
29 ?>
30 <option value="<?php echo $country['id']; ?>"<?php echo $country['id'] == $pidcountry ? ' selected="selected"' : ''; ?>><?php echo $country['country_name']; ?></option>
31 <?php
32 }
33 ?>
34 </select>
35 </div>
36 <div class="btn-group pull-left input-append">
37 <input type="text" name="statename" id="statename" value="<?php echo JHtml::fetch('esc_attr', $pstatename); ?>" size="40" placeholder="<?php echo JText::translate('VBPVIEWROOMONE'); ?>"/>
38 <button type="button" class="btn btn-secondary" onclick="document.statesform.submit();"><i class="icon-search"></i></button>
39 </div>
40 <div class="btn-group pull-left">
41 <button type="button" class="btn btn-secondary" onclick="document.getElementById('statename').value='';document.getElementById('idcountry').value='';document.statesform.submit();"><?php echo JText::translate('JSEARCH_FILTER_CLEAR'); ?></button>
42 </div>
43 </div>
44 <input type="hidden" name="task" value="" />
45 <input type="hidden" name="option" value="com_vikbooking" />
46 </form>
47 </div>
48
49 <script type="text/javascript">
50 jQuery(function() {
51 jQuery('#idcountry').select2();
52 });
53 </script>
54
55 <?php
56 if (empty($this->rows)) {
57 ?>
58 <p class="warn"><?php echo JText::translate('JGLOBAL_NO_MATCHING_RESULTS'); ?></p>
59 <form action="index.php?option=com_vikbooking" method="post" name="adminForm" id="adminForm">
60 <input type="hidden" name="task" value="" />
61 <input type="hidden" name="option" value="com_vikbooking" />
62 </form>
63 <?php
64 } else {
65 ?>
66 <form action="index.php?option=com_vikbooking" method="post" name="adminForm" id="adminForm" class="vbo-list-form">
67 <div class="table-responsive">
68 <table cellpadding="4" cellspacing="0" border="0" width="100%" class="table table-striped vbo-list-table">
69 <thead>
70 <tr>
71 <th width="20">
72 <input type="checkbox" onclick="Joomla.checkAll(this)" value="" name="checkall-toggle">
73 </th>
74 <th class="title left" width="150">
75 <a href="index.php?option=com_vikbooking&amp;view=states&amp;vborderby=state_name&amp;vbordersort=<?php echo ($this->orderby == "state_name" && $this->ordersort == "ASC" ? "DESC" : "ASC"); ?>" class="<?php echo ($this->orderby == "state_name" && $this->ordersort == "ASC" ? "vbo-list-activesort" : ($this->orderby == "state_name" ? "vbo-list-activesort" : "")); ?>">
76 <?php echo JText::translate('VBO_STATE_PROVINCE') . ($this->orderby == "state_name" && $this->ordersort == "ASC" ? '<i class="'.VikBookingIcons::i('sort-asc').'"></i>' : ($this->orderby == "state_name" ? '<i class="'.VikBookingIcons::i('sort-desc').'"></i>' : '<i class="'.VikBookingIcons::i('sort').'"></i>')); ?>
77 </a>
78 </th>
79 <th class="title left" width="150"><?php echo JText::translate( 'VBNEWCUSTOMFCOUNTRY' ); ?></th>
80 <th class="title center" width="100" align="center">
81 <a href="index.php?option=com_vikbooking&amp;view=states&amp;vborderby=state_3_code&amp;vbordersort=<?php echo ($this->orderby == "state_3_code" && $this->ordersort == "ASC" ? "DESC" : "ASC"); ?>" class="<?php echo ($this->orderby == "state_3_code" && $this->ordersort == "ASC" ? "vbo-list-activesort" : ($this->orderby == "state_3_code" ? "vbo-list-activesort" : "")); ?>">
82 <?php echo JText::translate('VBO_3CHAR_CODE').($this->orderby == "state_3_code" && $this->ordersort == "ASC" ? '<i class="'.VikBookingIcons::i('sort-asc').'"></i>' : ($this->orderby == "state_3_code" ? '<i class="'.VikBookingIcons::i('sort-desc').'"></i>' : '<i class="'.VikBookingIcons::i('sort').'"></i>')); ?>
83 </a>
84 </th>
85 <th class="title center" width="100" align="center">
86 <a href="index.php?option=com_vikbooking&amp;view=states&amp;vborderby=state_2_code&amp;vbordersort=<?php echo ($this->orderby == "state_2_code" && $this->ordersort == "ASC" ? "DESC" : "ASC"); ?>" class="<?php echo ($this->orderby == "state_2_code" && $this->ordersort == "ASC" ? "vbo-list-activesort" : ($this->orderby == "state_2_code" ? "vbo-list-activesort" : "")); ?>">
87 <?php echo JText::translate('VBO_2CHAR_CODE').($this->orderby == "state_2_code" && $this->ordersort == "ASC" ? '<i class="'.VikBookingIcons::i('sort-asc').'"></i>' : ($this->orderby == "state_2_code" ? '<i class="'.VikBookingIcons::i('sort-desc').'"></i>' : '<i class="'.VikBookingIcons::i('sort').'"></i>')); ?>
88 </a>
89 </th>
90 <th class="title center" width="50" align="center">
91 <a href="index.php?option=com_vikbooking&amp;view=states&amp;vborderby=published&amp;vbordersort=<?php echo ($this->orderby == "published" && $this->ordersort == "ASC" ? "DESC" : "ASC"); ?>" class="<?php echo ($this->orderby == "published" && $this->ordersort == "ASC" ? "vbo-list-activesort" : ($this->orderby == "published" ? "vbo-list-activesort" : "")); ?>">
92 <?php echo JText::translate('VBPSHOWPAYMENTSFIVE').($this->orderby == "published" && $this->ordersort == "ASC" ? '<i class="'.VikBookingIcons::i('sort-asc').'"></i>' : ($this->orderby == "published" ? '<i class="'.VikBookingIcons::i('sort-desc').'"></i>' : '<i class="'.VikBookingIcons::i('sort').'"></i>')); ?>
93 </a>
94 </th>
95 </tr>
96 </thead>
97 <?php
98 $k = 0;
99 $i = 0;
100 for ($i = 0, $n = count($this->rows); $i < $n; $i++) {
101 $row = $this->rows[$i];
102 ?>
103 <tr class="row<?php echo $k; ?>">
104 <td><input type="checkbox" id="cb<?php echo $i;?>" name="cid[]" value="<?php echo $row['id']; ?>" onclick="Joomla.isChecked(this.checked);"></td>
105 <td class="vbo-highlighted-td"><a href="index.php?option=com_vikbooking&amp;task=states.edit&amp;cid[]=<?php echo $row['id']; ?>"><?php echo $row['state_name']; ?></a></td>
106 <td><?php echo $row['country_name']; ?></td>
107 <td class="center"><?php echo $row['state_3_code']; ?></td>
108 <td class="center"><?php echo $row['state_2_code']; ?></td>
109 <td class="center"><?php echo ($row['published'] == 1 ? '<i class="'.VikBookingIcons::i('check', 'vbo-icn-img').'" style="color: #099909;"></i>' : '<i class="'.VikBookingIcons::i('times-circle', 'vbo-icn-img').'" style="color: #ff0000;"></i>'); ?></td>
110 </tr>
111 <?php
112 $k = 1 - $k;
113 }
114 ?>
115 </table>
116 </div>
117
118 <input type="hidden" name="boxchecked" value="0" />
119 <input type="hidden" name="task" value="" />
120 <input type="hidden" name="view" value="states" />
121 <input type="hidden" name="idcountry" value="<?php echo $pidcountry; ?>" />
122
123 <?php echo JHtml::fetch('form.token'); ?>
124 <?php echo $this->navbut; ?>
125 </form>
126 <?php
127 }
128 ?>
129