165 lines
7.4 KiB
PHP
Executable File
165 lines
7.4 KiB
PHP
Executable File
<?php
|
|
define('QUADODO_IN_SYSTEM', true);
|
|
require_once './includes/header.php';
|
|
require_once './includes/redirectToLogin.php';
|
|
$qls->Security->check_auth_page('user.php');
|
|
?>
|
|
|
|
<?php require 'includes/header_start.php'; ?>
|
|
<?php require 'includes/header_end.php'; ?>
|
|
|
|
|
|
<!-- Page-Title -->
|
|
<div class="row">
|
|
<div class="col-sm-12">
|
|
<h4 class="page-title">Account Settings</h4>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-6 col-md-5 col-lg-5 col-xl-5">
|
|
<div class="card-box">
|
|
<div class="m-b-30">
|
|
<h4 class="m-t-0 header-title"><b>Timezone</b></h4>
|
|
<?php
|
|
$regions = array(
|
|
'Africa' => DateTimeZone::AFRICA,
|
|
'America' => DateTimeZone::AMERICA,
|
|
'Antarctica' => DateTimeZone::ANTARCTICA,
|
|
'Aisa' => DateTimeZone::ASIA,
|
|
'Atlantic' => DateTimeZone::ATLANTIC,
|
|
'Europe' => DateTimeZone::EUROPE,
|
|
'Indian' => DateTimeZone::INDIAN,
|
|
'Pacific' => DateTimeZone::PACIFIC
|
|
);
|
|
|
|
$timezones = array();
|
|
foreach ($regions as $name => $mask) {
|
|
$zones = DateTimeZone::listIdentifiers($mask);
|
|
foreach($zones as $timezone) {
|
|
// Lets sample the time there right now
|
|
$time = new DateTime(NULL, new DateTimeZone($timezone));
|
|
|
|
// Convert to 12 hour clock
|
|
$ampm = $time->format('H') > 12 ? ' ('.$time->format('g:i a').')' : '';
|
|
|
|
// Remove region name and add a sample time
|
|
$timezones[$name][$timezone] = substr($timezone, strlen($name) + 1).' - '.$time->format('H:i') . $ampm;
|
|
}
|
|
}
|
|
|
|
echo '<select class="form-control" id="selectTimezone">';
|
|
foreach($timezones as $region => $list) {
|
|
echo '<optgroup label="'.$region.'">'."\n";
|
|
foreach($list as $timezone => $name) {
|
|
$selected = $timezone == $qls->user_info['timezone'] ? 'selected' : '';
|
|
echo '<option value="'.$timezone.'" name="'.$timezone.'" '.$selected.'>'.$name.'</option>'."\n";
|
|
}
|
|
print '<optgroup>'."\n";
|
|
}
|
|
echo '</select>';
|
|
?>
|
|
</div>
|
|
<div class="m-b-30">
|
|
<h4 class="m-t-0 header-title"><b>Default Scan Method</b></h4>
|
|
<div class="radio">
|
|
<input class="radioScanMethod" type="radio" name="radio" id="radio1" value="manual"<?php echo $qls->user_info['scanMethod'] ? '' : ' checked'; ?>>
|
|
<label for="radio1">Manual</label>
|
|
</div>
|
|
<div class="radio">
|
|
<input class="radioScanMethod" type="radio" name="radio" id="radio2" value="barcode"<?php echo $qls->user_info['scanMethod'] ? ' checked' : ''; ?>>
|
|
<label for="radio2">Barcode</label>
|
|
</div>
|
|
</div>
|
|
<div class="m-b-30">
|
|
<h4 class="m-t-0 header-title"><b>Template Scroll</b></h4>
|
|
<div class="checkbox">
|
|
<input id="checkboxTemplateScroll" type="checkbox" <?php echo ($qls->user_info['scrollLock'] == 1) ? 'checked' : ''; ?>>
|
|
<label for="checkboxTemplateScroll">
|
|
Lock
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div class="m-b-30">
|
|
<h4 class="m-t-0 header-title"><b>Connection Style</b></h4>
|
|
<div class="radio">
|
|
<input class="radioConnectionStyle" type="radio" name="connectionRadio" id="connectionRadioAngled" value="0" <?php echo ($qls->user_info['connectionStyle'] == 0) ? 'checked' : ''; ?>>
|
|
<label for="connectionRadioAngled">Angled</label>
|
|
</div>
|
|
<div class="radio">
|
|
<input class="radioConnectionStyle" type="radio" name="connectionRadio" id="connectionRadioStraight" value="1" <?php echo ($qls->user_info['connectionStyle'] == 1) ? 'checked' : ''; ?>>
|
|
<label for="connectionRadioStraight">Straight</label>
|
|
</div>
|
|
<div class="radio">
|
|
<input class="radioConnectionStyle" type="radio" name="connectionRadio" id="connectionRadioCurved" value="2" <?php echo ($qls->user_info['connectionStyle'] == 2) ? 'checked' : ''; ?>>
|
|
<label for="connectionRadioCurved">Curved</label>
|
|
</div>
|
|
</div>
|
|
<div class="m-b-30">
|
|
<h4 class="m-t-0 header-title"><b>Path Orientation</b></h4>
|
|
<?php if($qls->user_info['group_id'] == 3) { ?>
|
|
<div class="checkbox">
|
|
<input id="checkboxGlobalPathOrientation" type="checkbox" <?php echo ($qls->org_info['global_setting_path_orientation'] == 1) ? 'checked' : ''; ?>>
|
|
<label for="checkboxGlobalPathOrientation">
|
|
Global
|
|
</label>
|
|
</div>
|
|
<?php } ?>
|
|
<div class="radio">
|
|
<input class="radioPathOrientation" type="radio" name="pathOrientationRadio" id="pathOrientationRadioAdjacent" value="0" <?php echo ($qls->user_info['pathOrientation'] == 0) ? 'checked' : ''; ?> <?php echo ($qls->org_info['global_setting_path_orientation'] == 1 and $qls->user_info['group_id'] != 3) ? 'disabled' : ''; ?>>
|
|
<label for="pathOrientationRadioAdjacent">Cable Adjacent</label>
|
|
</div>
|
|
<div class="radio">
|
|
<input class="radioPathOrientation" type="radio" name="pathOrientationRadio" id="pathOrientationRadioInline" value="1" <?php echo ($qls->user_info['pathOrientation'] == 1) ? 'checked' : ''; ?> <?php echo ($qls->org_info['global_setting_path_orientation'] == 1 and $qls->user_info['group_id'] != 3) ? 'disabled' : ''; ?>>
|
|
<label for="pathOrientationRadioInline">Cable Inline</label>
|
|
</div>
|
|
</div>
|
|
<div class="m-b-30">
|
|
<h4 class="m-t-0 header-title"><b>Tree Size</b></h4>
|
|
<div class="radio">
|
|
<input class="radioTreeSize" type="radio" name="treeSizeRadio" id="treeSizeRadioScrollable" value="0" <?php echo ($qls->user_info['treeSize'] == 0) ? 'checked' : ''; ?>>
|
|
<label for="treeSizeRadioScrollable">Scrollable</label>
|
|
</div>
|
|
<div class="radio">
|
|
<input class="radioTreeSize" type="radio" name="treeSizeRadio" id="treeSizeRadioExtended" value="1" <?php echo ($qls->user_info['treeSize'] == 1) ? 'checked' : ''; ?>>
|
|
<label for="treeSizeRadioExtended">Extended</label>
|
|
</div>
|
|
</div>
|
|
<div class="m-b-30">
|
|
<h4 class="m-t-0 header-title"><b>Location/Pod/Cabinet Sort</b></h4>
|
|
<div class="checkbox">
|
|
<input id="checkboxTreeSortAdj" type="checkbox" <?php echo ($qls->user_info['treeSortAdj'] == 1) ? 'checked' : ''; ?>>
|
|
<label for="checkboxTreeSortAdj">
|
|
Account for cabinet adjacencies
|
|
</label>
|
|
</div>
|
|
<div class="radio">
|
|
<input class="radioTreeSort" type="radio" name="treeSortRadio" id="treeSortRadioAlphabetical" value="0" <?php echo ($qls->user_info['treeSort'] == 0) ? 'checked' : ''; ?>>
|
|
<label for="treeSortRadioAlphabetical">Alphabetical</label>
|
|
</div>
|
|
<div class="radio">
|
|
<input class="radioTreeSort" type="radio" name="treeSortRadio" id="treeSortRadioUserDefined" value="1" <?php echo ($qls->user_info['treeSort'] == 1) ? 'checked' : ''; ?>>
|
|
<label for="treeSortRadioUserDefined">User Defined</label>
|
|
</div>
|
|
</div>
|
|
<div class="m-b-30">
|
|
<h4 class="m-t-0 header-title"><b>Object Sort</b></h4>
|
|
<div class="radio">
|
|
<input class="radioObjSort" type="radio" name="objSortRadio" id="objSortRadioName" value="0" <?php echo ($qls->user_info['objSort'] == 0) ? 'checked' : ''; ?>>
|
|
<label for="objSortRadioName">Name</label>
|
|
</div>
|
|
<div class="radio">
|
|
<input class="radioObjSort" type="radio" name="objSortRadio" id="objSortRadioRU" value="1" <?php echo ($qls->user_info['objSort'] == 1) ? 'checked' : ''; ?>>
|
|
<label for="objSortRadioRU">RU</label>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> <!-- end row -->
|
|
|
|
<?php require 'includes/footer_start.php' ?>
|
|
|
|
<script src="assets/pages/jquery.settings.js"></script>
|
|
|
|
<?php require 'includes/footer_end.php' ?>
|