mirror of
https://github.com/itflow-org/itflow
synced 2026-04-18 02:25:40 +00:00
Move some arrays out of load global settings and into their own entity
This commit is contained in:
@@ -2,6 +2,16 @@
|
||||
|
||||
require_once '../../../includes/modal_header.php';
|
||||
|
||||
$license_types_array = array (
|
||||
'Device',
|
||||
'User',
|
||||
'Site',
|
||||
'Concurrent',
|
||||
'Trial',
|
||||
'Perpetual',
|
||||
'Usage-based'
|
||||
);
|
||||
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
|
||||
@@ -13,8 +13,18 @@ $software_type = nullable_htmlentities($row['software_template_type']);
|
||||
$software_license_type = nullable_htmlentities($row['software_template_license_type']);
|
||||
$software_notes = nullable_htmlentities($row['software_template_notes']);
|
||||
|
||||
// Generate the HTML form content using output buffering.
|
||||
$license_types_array = array (
|
||||
'Device',
|
||||
'User',
|
||||
'Site',
|
||||
'Concurrent',
|
||||
'Trial',
|
||||
'Perpetual',
|
||||
'Usage-based'
|
||||
);
|
||||
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
|
||||
@@ -1,7 +1,25 @@
|
||||
<?php
|
||||
|
||||
require_once "includes/inc_all_admin.php";
|
||||
?>
|
||||
|
||||
$start_page_select_array = array (
|
||||
'dashboard.php'=>'Dashboard',
|
||||
'clients.php'=> 'Client Management',
|
||||
'tickets.php'=> 'Support Tickets',
|
||||
'invoices.php' => 'Invoices'
|
||||
);
|
||||
|
||||
$net_terms_array = array (
|
||||
'0'=>'On Receipt',
|
||||
'7'=>'7 Days',
|
||||
'10'=>'10 Days',
|
||||
'15'=>'15 Days',
|
||||
'30'=>'30 Days',
|
||||
'45'=>'45 Days',
|
||||
'60'=>'60 Days',
|
||||
'90'=>'90 Days'
|
||||
);
|
||||
|
||||
?>
|
||||
|
||||
<div class="card card-dark">
|
||||
<div class="card-header py-3">
|
||||
|
||||
@@ -10,6 +10,17 @@ $referral_sql = mysqli_query($mysqli, "SELECT * FROM categories WHERE category_t
|
||||
|
||||
$sql_tags_select = mysqli_query($mysqli, "SELECT * FROM tags WHERE tag_type = 1 ORDER BY tag_name ASC");
|
||||
|
||||
$net_terms_array = array (
|
||||
'0'=>'On Receipt',
|
||||
'7'=>'7 Days',
|
||||
'10'=>'10 Days',
|
||||
'15'=>'15 Days',
|
||||
'30'=>'30 Days',
|
||||
'45'=>'45 Days',
|
||||
'60'=>'60 Days',
|
||||
'90'=>'90 Days'
|
||||
);
|
||||
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
|
||||
@@ -6,6 +6,17 @@ $client_ids = array_map('intval', $_GET['client_ids'] ?? []);
|
||||
|
||||
$count = count($client_ids);
|
||||
|
||||
$net_terms_array = array (
|
||||
'0'=>'On Receipt',
|
||||
'7'=>'7 Days',
|
||||
'10'=>'10 Days',
|
||||
'15'=>'15 Days',
|
||||
'30'=>'30 Days',
|
||||
'45'=>'45 Days',
|
||||
'60'=>'60 Days',
|
||||
'90'=>'90 Days'
|
||||
);
|
||||
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
|
||||
@@ -28,9 +28,21 @@ while ($row = mysqli_fetch_assoc($sql_client_tags)) {
|
||||
$client_tag_id_array[] = $client_tag_id;
|
||||
}
|
||||
|
||||
// Generate the HTML form content using output buffering.
|
||||
$net_terms_array = array (
|
||||
'0'=>'On Receipt',
|
||||
'7'=>'7 Days',
|
||||
'10'=>'10 Days',
|
||||
'15'=>'15 Days',
|
||||
'30'=>'30 Days',
|
||||
'45'=>'45 Days',
|
||||
'60'=>'60 Days',
|
||||
'90'=>'90 Days'
|
||||
);
|
||||
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class='fa fa-fw fa-user-edit mr-2'></i>Editing Client: <strong><?php echo $client_name; ?></strong></h5>
|
||||
<button type="button" class="close text-white" data-dismiss="modal">
|
||||
|
||||
@@ -4,6 +4,16 @@ require_once '../../../includes/modal_header.php';
|
||||
|
||||
$client_id = intval($_GET['client_id'] ?? 0);
|
||||
|
||||
$license_types_array = array (
|
||||
'Device',
|
||||
'User',
|
||||
'Site',
|
||||
'Concurrent',
|
||||
'Trial',
|
||||
'Perpetual',
|
||||
'Usage-based'
|
||||
);
|
||||
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
|
||||
@@ -41,9 +41,20 @@ while ($row = mysqli_fetch_assoc($contact_licenses_sql)) {
|
||||
}
|
||||
$contact_licenses = implode(',', $contact_licenses_array);
|
||||
|
||||
// Generate the HTML form content using output buffering.
|
||||
$license_types_array = array (
|
||||
'Device',
|
||||
'User',
|
||||
'Site',
|
||||
'Concurrent',
|
||||
'Trial',
|
||||
'Perpetual',
|
||||
'Usage-based'
|
||||
);
|
||||
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark">
|
||||
<h5 class="modal-title"><i class="fa fa-fw fa-cube mr-2"></i>Editing license: <strong><?php echo $software_name; ?></strong></h5>
|
||||
<button type="button" class="close text-white" data-dismiss="modal">
|
||||
|
||||
@@ -158,17 +158,6 @@ $colors_array = array (
|
||||
'olive'
|
||||
);
|
||||
|
||||
$net_terms_array = array (
|
||||
'0'=>'On Receipt',
|
||||
'7'=>'7 Days',
|
||||
'10'=>'10 Days',
|
||||
'15'=>'15 Days',
|
||||
'30'=>'30 Days',
|
||||
'45'=>'45 Days',
|
||||
'60'=>'60 Days',
|
||||
'90'=>'90 Days'
|
||||
);
|
||||
|
||||
$records_per_page_array = array ('5','10','15','20','30','50','100');
|
||||
|
||||
include_once "settings_localization_array.php";
|
||||
@@ -189,26 +178,3 @@ $asset_types_array = array (
|
||||
'Virtual Machine'=>'fa-cloud',
|
||||
'Other'=>'fa-tag'
|
||||
);
|
||||
|
||||
$license_types_array = array (
|
||||
'Device',
|
||||
'User',
|
||||
'Site',
|
||||
'Concurrent',
|
||||
'Trial',
|
||||
'Perpetual',
|
||||
'Usage-based'
|
||||
);
|
||||
|
||||
$document_types_array = array (
|
||||
'0'=>'Document',
|
||||
'1'=>'Template',
|
||||
'2'=>'Global Template'
|
||||
);
|
||||
|
||||
$start_page_select_array = array (
|
||||
'dashboard.php'=>'Dashboard',
|
||||
'clients.php'=> 'Client Management',
|
||||
'tickets.php'=> 'Support Tickets',
|
||||
'invoices.php' => 'Invoices'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user