Working on adding business hours to the calendar
This commit is contained in:
parent
cfabdb950d
commit
7c884582a2
@ -2220,6 +2220,87 @@ $modsForHesk_settings = mfh_getSettings();
|
|||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="business-hours" class="col-sm-4 col-xs-12 control-label">
|
||||||
|
Business Hours
|
||||||
|
<?php /*echo $hesklang['business_hours']; */?>
|
||||||
|
<i class="fa fa-question-circle settingsquestionmark" data-toggle="popover"
|
||||||
|
title="<?php echo $hesklang['business_hours']; ?>"
|
||||||
|
data-content="<?php echo $hesklang['business_hours_help']; ?>"></i>
|
||||||
|
</label>
|
||||||
|
<div class="col-sm-8 col-xs-12">
|
||||||
|
<div class="table-reponsive">
|
||||||
|
<table class="table table-striped">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th> </th>
|
||||||
|
<th>Sunday</th>
|
||||||
|
<th>Monday</th>
|
||||||
|
<th>Tuesday</th>
|
||||||
|
<th>Wednesday</th>
|
||||||
|
<th>Thursday</th>
|
||||||
|
<th>Friday</th>
|
||||||
|
<th>Saturday</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
From
|
||||||
|
</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>
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -206,6 +206,8 @@ hesk_dbConnect();
|
|||||||
$all_good &= run_column_check('categories', 'mfh_description');
|
$all_good &= run_column_check('categories', 'mfh_description');
|
||||||
$all_good &= run_column_check('custom_fields', 'mfh_description');
|
$all_good &= run_column_check('custom_fields', 'mfh_description');
|
||||||
$all_good &= run_setting_check('migrationNumber');
|
$all_good &= run_setting_check('migrationNumber');
|
||||||
|
output_header_row('3.3.0');
|
||||||
|
$all_good &= run_table_check('mfh_calendar_business_hours');
|
||||||
|
|
||||||
if ($all_good) {
|
if ($all_good) {
|
||||||
echo "<script>$('#all-good').show()</script>";
|
echo "<script>$('#all-good').show()</script>";
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace v330\CalendarImprovements;
|
||||||
|
|
||||||
|
class AddBusinessHoursTable extends \AbstractUpdatableMigration {
|
||||||
|
|
||||||
|
function innerUp($hesk_settings) {
|
||||||
|
$this->executeQuery("CREATE TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mfh_calendar_business_hours`
|
||||||
|
(`day_of_week` INT NOT NULL, `all_day` INT NOT NULL,
|
||||||
|
`start_time` VARCHAR(5) NOT NULL, `end_time` VARCHAR(5) NOT NULL)");
|
||||||
|
}
|
||||||
|
|
||||||
|
function innerDown($hesk_settings) {
|
||||||
|
$this->executeQuery("DROP TABLE `" . hesk_dbEscape($hesk_settings['db_pfix']) . "mfh_calendar_business_hours`");
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user