|
|
@ -2220,86 +2220,89 @@ $modsForHesk_settings = mfh_getSettings();
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<h4 class="bold">
|
|
|
|
<label for="business-hours" class="col-sm-4 col-xs-12 control-label">
|
|
|
|
<?php echo $hesklang['business_hours']; ?>
|
|
|
|
Business Hours
|
|
|
|
|
|
|
|
<?php /*echo $hesklang['business_hours']; */?>
|
|
|
|
|
|
|
|
<i class="fa fa-question-circle settingsquestionmark" data-toggle="popover"
|
|
|
|
<i class="fa fa-question-circle settingsquestionmark" data-toggle="popover"
|
|
|
|
title="<?php echo $hesklang['business_hours']; ?>"
|
|
|
|
title="<?php echo $hesklang['business_hours']; ?>"
|
|
|
|
data-content="<?php echo $hesklang['business_hours_help']; ?>"></i>
|
|
|
|
data-content="<?php echo $hesklang['business_hours_help']; ?>"></i>
|
|
|
|
|
|
|
|
</h4>
|
|
|
|
|
|
|
|
<?php
|
|
|
|
|
|
|
|
$rs = hesk_dbQuery("SELECT * FROM `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mfh_calendar_business_hours`");
|
|
|
|
|
|
|
|
$business_hours = array();
|
|
|
|
|
|
|
|
while ($row = hesk_dbFetchAssoc($rs)) {
|
|
|
|
|
|
|
|
$business_hours[intval($row['day_of_week'])]['start'] = $row['start_time'];
|
|
|
|
|
|
|
|
$business_hours[intval($row['day_of_week'])]['end'] = $row['end_time'];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
|
|
<label for="business-hours-sunday" class="col-sm-4 col-xs-12 control-label">
|
|
|
|
|
|
|
|
<?php echo $hesklang['d0']; ?>
|
|
|
|
</label>
|
|
|
|
</label>
|
|
|
|
<div class="col-sm-8 col-xs-12">
|
|
|
|
<div class="col-sm-8 col-xs-12 form-inline">
|
|
|
|
<div class="table-reponsive">
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-sunday[0]" value="<?php echo $business_hours[0]['start']; ?>">
|
|
|
|
<table class="table table-striped">
|
|
|
|
<?php echo $hesklang['to']; ?>
|
|
|
|
<thead>
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-sunday[1]" value="<?php echo $business_hours[0]['end']; ?>">
|
|
|
|
<tr>
|
|
|
|
</div>
|
|
|
|
<th> </th>
|
|
|
|
</div>
|
|
|
|
<th>Sunday</th>
|
|
|
|
<div class="form-group">
|
|
|
|
<th>Monday</th>
|
|
|
|
<label for="business-hours-monday" class="col-sm-4 col-xs-12 control-label">
|
|
|
|
<th>Tuesday</th>
|
|
|
|
<?php echo $hesklang['d1']; ?>
|
|
|
|
<th>Wednesday</th>
|
|
|
|
</label>
|
|
|
|
<th>Thursday</th>
|
|
|
|
<div class="col-sm-8 col-xs-12 form-inline">
|
|
|
|
<th>Friday</th>
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-monday[0]" value="<?php echo $business_hours[1]['start']; ?>">
|
|
|
|
<th>Saturday</th>
|
|
|
|
<?php echo $hesklang['to']; ?>
|
|
|
|
</tr>
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-monday[1]" value="<?php echo $business_hours[1]['end']; ?>">
|
|
|
|
</thead>
|
|
|
|
</div>
|
|
|
|
<tbody>
|
|
|
|
</div>
|
|
|
|
<tr>
|
|
|
|
<div class="form-group">
|
|
|
|
<td>
|
|
|
|
<label for="business-hours-tuesday" class="col-sm-4 col-xs-12 control-label">
|
|
|
|
From
|
|
|
|
<?php echo $hesklang['d2']; ?>
|
|
|
|
</td>
|
|
|
|
</label>
|
|
|
|
<td>
|
|
|
|
<div class="col-sm-8 col-xs-12 form-inline">
|
|
|
|
<input type="text">
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-tuesday[0]" value="<?php echo $business_hours[2]['start']; ?>">
|
|
|
|
</td>
|
|
|
|
<?php echo $hesklang['to']; ?>
|
|
|
|
<td>
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-tuesday[1]" value="<?php echo $business_hours[2]['end']; ?>">
|
|
|
|
<input type="text">
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</div>
|
|
|
|
<td>
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text">
|
|
|
|
<label for="business-hours-wednesday" class="col-sm-4 col-xs-12 control-label">
|
|
|
|
</td>
|
|
|
|
<?php echo $hesklang['d3']; ?>
|
|
|
|
<td>
|
|
|
|
</label>
|
|
|
|
<input type="text">
|
|
|
|
<div class="col-sm-8 col-xs-12 form-inline">
|
|
|
|
</td>
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-wednesday[0]" value="<?php echo $business_hours[3]['start']; ?>">
|
|
|
|
<td>
|
|
|
|
<?php echo $hesklang['to']; ?>
|
|
|
|
<input type="text">
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-wednesday[1]" value="<?php echo $business_hours[3]['end']; ?>">
|
|
|
|
</td>
|
|
|
|
</div>
|
|
|
|
<td>
|
|
|
|
</div>
|
|
|
|
<input type="text">
|
|
|
|
<div class="form-group">
|
|
|
|
</td>
|
|
|
|
<label for="business-hours-thursday" class="col-sm-4 col-xs-12 control-label">
|
|
|
|
<td>
|
|
|
|
<?php echo $hesklang['d4']; ?>
|
|
|
|
<input type="text">
|
|
|
|
</label>
|
|
|
|
</td>
|
|
|
|
<div class="col-sm-8 col-xs-12 form-inline">
|
|
|
|
</tr>
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-thursday[0]" value="<?php echo $business_hours[4]['start']; ?>">
|
|
|
|
<tr>
|
|
|
|
<?php echo $hesklang['to']; ?>
|
|
|
|
<td>
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-thursday[1]" value="<?php echo $business_hours[4]['end']; ?>">
|
|
|
|
To
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
<td>
|
|
|
|
|
|
|
|
<input type="text">
|
|
|
|
|
|
|
|
</td>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
</tbody>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
|
|
<label for="business-hours-friday" class="col-sm-4 col-xs-12 control-label">
|
|
|
|
|
|
|
|
<?php echo $hesklang['d5']; ?>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="col-sm-8 col-xs-12 form-inline">
|
|
|
|
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-friday[0]" value="<?php echo $business_hours[5]['start']; ?>">
|
|
|
|
|
|
|
|
<?php echo $hesklang['to']; ?>
|
|
|
|
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-friday[1]" value="<?php echo $business_hours[5]['end']; ?>">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
|
|
|
<label for="business-hours-saturday" class="col-sm-4 col-xs-12 control-label">
|
|
|
|
|
|
|
|
<?php echo $hesklang['d6']; ?>
|
|
|
|
|
|
|
|
</label>
|
|
|
|
|
|
|
|
<div class="col-sm-8 col-xs-12 form-inline">
|
|
|
|
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-saturday[0]" value="<?php echo $business_hours[6]['start']; ?>">
|
|
|
|
|
|
|
|
<?php echo $hesklang['to']; ?>
|
|
|
|
|
|
|
|
<input type="text" class="form-control clockpicker" data-autoclose="true" name="business-hours-saturday[1]" value="<?php echo $business_hours[6]['end']; ?>">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|