Start page is a required select box with the option of putting in a custom value
This commit is contained in:
+22
-10
@@ -107,7 +107,10 @@ $config_theme_mode = "dark_mode";
|
|||||||
// Telemetry
|
// Telemetry
|
||||||
$config_telemetry = intval($row['config_telemetry']);
|
$config_telemetry = intval($row['config_telemetry']);
|
||||||
|
|
||||||
$colors_array = array(
|
|
||||||
|
// Select Arrays
|
||||||
|
|
||||||
|
$colors_array = array (
|
||||||
'blue',
|
'blue',
|
||||||
'green',
|
'green',
|
||||||
'cyan',
|
'cyan',
|
||||||
@@ -129,7 +132,7 @@ $colors_array = array(
|
|||||||
'olive'
|
'olive'
|
||||||
);
|
);
|
||||||
|
|
||||||
$net_terms_array = array(
|
$net_terms_array = array (
|
||||||
'0'=>'On Receipt',
|
'0'=>'On Receipt',
|
||||||
'7'=>'7 Days',
|
'7'=>'7 Days',
|
||||||
'10'=>'10 Days',
|
'10'=>'10 Days',
|
||||||
@@ -140,19 +143,19 @@ $net_terms_array = array(
|
|||||||
'90'=>'90 Days'
|
'90'=>'90 Days'
|
||||||
);
|
);
|
||||||
|
|
||||||
$records_per_page_array = array('5','10','15','20','30','50','100');
|
$records_per_page_array = array ('5','10','15','20','30','50','100');
|
||||||
|
|
||||||
include_once "settings_localization_array.php";
|
include_once "settings_localization_array.php";
|
||||||
|
|
||||||
|
|
||||||
$category_types_array = array(
|
$category_types_array = array (
|
||||||
'Expense',
|
'Expense',
|
||||||
'Income',
|
'Income',
|
||||||
'Payment Method',
|
'Payment Method',
|
||||||
'Referral'
|
'Referral'
|
||||||
);
|
);
|
||||||
|
|
||||||
$asset_types_array = array(
|
$asset_types_array = array (
|
||||||
'Laptop'=>'fa-laptop',
|
'Laptop'=>'fa-laptop',
|
||||||
'Desktop'=>'fa-desktop',
|
'Desktop'=>'fa-desktop',
|
||||||
'Server'=>'fa-server',
|
'Server'=>'fa-server',
|
||||||
@@ -169,7 +172,7 @@ $asset_types_array = array(
|
|||||||
'Other'=>'fa-tag'
|
'Other'=>'fa-tag'
|
||||||
);
|
);
|
||||||
|
|
||||||
$software_types_array = array(
|
$software_types_array = array (
|
||||||
'SaaS',
|
'SaaS',
|
||||||
'Application',
|
'Application',
|
||||||
'Mobile',
|
'Mobile',
|
||||||
@@ -178,18 +181,18 @@ $software_types_array = array(
|
|||||||
'Misc'
|
'Misc'
|
||||||
);
|
);
|
||||||
|
|
||||||
$license_types_array = array(
|
$license_types_array = array (
|
||||||
'Device',
|
'Device',
|
||||||
'User'
|
'User'
|
||||||
);
|
);
|
||||||
|
|
||||||
$document_types_array = array(
|
$document_types_array = array (
|
||||||
'0'=>'Document',
|
'0'=>'Document',
|
||||||
'1'=>'Template',
|
'1'=>'Template',
|
||||||
'2'=>'Global Template'
|
'2'=>'Global Template'
|
||||||
);
|
);
|
||||||
|
|
||||||
$asset_status_array = array(
|
$asset_status_array = array (
|
||||||
'Ready to Deploy',
|
'Ready to Deploy',
|
||||||
'Deployed',
|
'Deployed',
|
||||||
'Out for Repair',
|
'Out for Repair',
|
||||||
@@ -198,7 +201,7 @@ $asset_status_array = array(
|
|||||||
'Retired'
|
'Retired'
|
||||||
);
|
);
|
||||||
|
|
||||||
$ticket_status_array = array(
|
$ticket_status_array = array (
|
||||||
'Pending-Assignment',
|
'Pending-Assignment',
|
||||||
'Assigned',
|
'Assigned',
|
||||||
'In-Progress',
|
'In-Progress',
|
||||||
@@ -208,3 +211,12 @@ $ticket_status_array = array(
|
|||||||
'Scheduled',
|
'Scheduled',
|
||||||
'Closed'
|
'Closed'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
$start_page_select_array = array (
|
||||||
|
'dashboard.php'=>'Personal Dashboard',
|
||||||
|
'dashboard_financial.php'=>'Administrative Dashboard',
|
||||||
|
'dashboard_technical.php' => 'Technical Dashboard',
|
||||||
|
'clients.php'=> 'Client Management',
|
||||||
|
'tickets.php'=> 'Support Tickets',
|
||||||
|
'invoices.php' => 'Invoices'
|
||||||
|
);
|
||||||
+11
-1
@@ -16,7 +16,17 @@ require_once "inc_all_settings.php";
|
|||||||
<div class="input-group-prepend">
|
<div class="input-group-prepend">
|
||||||
<span class="input-group-text"><i class="fa fa-fw fa-home"></i></span>
|
<span class="input-group-text"><i class="fa fa-fw fa-home"></i></span>
|
||||||
</div>
|
</div>
|
||||||
<input type="text" class="form-control" name="start_page" value="<?php echo nullable_htmlentities($config_start_page); ?>">
|
<select class="form-control select2" name="start_page" data-tags="true" required>
|
||||||
|
<?php if (!in_array($config_start_page, array_keys($start_page_select_array))) { ?>
|
||||||
|
<option selected> <?php echo nullable_htmlentities($config_start_page); ?></option>
|
||||||
|
<?php } ?>
|
||||||
|
<?php foreach ($start_page_select_array as $start_page_value => $start_page_name) { ?>
|
||||||
|
<option <?php if ($start_page_value == $config_start_page) { echo "selected"; } ?>
|
||||||
|
value="<?php echo nullable_htmlentities($start_page_value); ?>">
|
||||||
|
<?php echo nullable_htmlentities($start_page_name); ?>
|
||||||
|
</option>
|
||||||
|
<?php }?>
|
||||||
|
</select>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user