| 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 |
$cid = $this->cid; |
| 14 |
$countries = $this->countries; |
| 15 |
|
| 16 |
$vbo_app = VikBooking::getVboApplication(); |
| 17 |
$nowdf = VikBooking::getDateFormat(true); |
| 18 |
if ($nowdf == "%d/%m/%Y") { |
| 19 |
$df = 'd/m/Y'; |
| 20 |
} elseif ($nowdf == "%m/%d/%Y") { |
| 21 |
$df = 'm/d/Y'; |
| 22 |
} else { |
| 23 |
$df = 'Y/m/d'; |
| 24 |
} |
| 25 |
$wselcountries = '<select name="country"><option value="">'.JText::translate('VBOANYCOUNTRY').'</option>'."\n"; |
| 26 |
foreach ($countries as $key => $val) { |
| 27 |
$wselcountries .= '<option value="'.$val['country_3_code'].'">'.$val['country_name'].'</option>'."\n"; |
| 28 |
} |
| 29 |
$wselcountries .= '</select>'; |
| 30 |
?> |
| 31 |
<form action="index.php?option=com_vikbooking" method="post" name="adminForm" id="adminForm"> |
| 32 |
<?php |
| 33 |
if (count($cid) > 0 && !empty($cid[0])) { |
| 34 |
?> |
| 35 |
<h4><?php echo JText::sprintf('VBOCUSTOMEREXPSEL', count($cid)); ?></h4> |
| 36 |
<?php |
| 37 |
foreach ($cid as $cust_id) { |
| 38 |
echo '<input type="hidden" name="cid[]" value="'.$cust_id.'" />'."\n"; |
| 39 |
} |
| 40 |
} else { |
| 41 |
?> |
| 42 |
<h4><?php echo JText::translate('VBOCUSTOMEREXPALL'); ?></h4> |
| 43 |
<div class="vbo-export-customer-entry"> |
| 44 |
<?php echo $vbo_app->getCalendar('', 'fromdate', 'fromdate', $nowdf, array('class'=>'', 'size'=>'10', 'maxlength'=>'19', 'placeholder' => JText::translate('VBCONFIGCLOSINGDATEFROM'), 'todayBtn' => 'true')); ?> |
| 45 |
|
| 46 |
<?php echo $vbo_app->getCalendar('', 'todate', 'todate', $nowdf, array('class'=>'', 'size'=>'10', 'maxlength'=>'19', 'placeholder' => JText::translate('VBCONFIGCLOSINGDATETO'), 'todayBtn' => 'true')); ?> |
| 47 |
|
| 48 |
<select name="datefilt"> |
| 49 |
<option value="1"><?php echo JText::translate('VBOFILTERDATEBOOK'); ?></option> |
| 50 |
<option value="2"><?php echo JText::translate('VBOFILTERDATEIN'); ?></option> |
| 51 |
<option value="3"><?php echo JText::translate('VBOFILTERDATEOUT'); ?></option> |
| 52 |
</select> |
| 53 |
</div> |
| 54 |
<div class="vbo-export-customer-entry"> |
| 55 |
<?php |
| 56 |
echo $wselcountries; |
| 57 |
?> |
| 58 |
</div> |
| 59 |
<?php |
| 60 |
} |
| 61 |
?> |
| 62 |
<div class="vbo-export-customer-entry"> |
| 63 |
<span> |
| 64 |
<label for="donotes"><?php echo JText::translate('VBOCUSTOMEREXPNOTES'); ?></label> |
| 65 |
</span> |
| 66 |
<input type="checkbox" name="notes" value="1" id="donotes" /> |
| 67 |
</div> |
| 68 |
<div class="vbo-export-customer-entry"> |
| 69 |
<span> |
| 70 |
<label for="dopin"><?php echo JText::translate('VBOCUSTOMEREXPPIN'); ?></label> |
| 71 |
</span> |
| 72 |
<input type="checkbox" name="pin" value="1" id="dopin" /> |
| 73 |
</div> |
| 74 |
<div class="vbo-export-customer-entry"> |
| 75 |
<span> |
| 76 |
<label for="doscanimg"><?php echo JText::translate('VBOCUSTOMEREXPSCANIMG'); ?></label> |
| 77 |
</span> |
| 78 |
<input type="checkbox" name="scanimg" value="1" id="doscanimg" /> |
| 79 |
</div> |
| 80 |
<input type="hidden" name="task" value="" /> |
| 81 |
<input type="hidden" name="option" value="com_vikbooking" /> |
| 82 |
</form> |