mirror of
https://github.com/itflow-org/itflow
synced 2026-04-29 07:47:46 +00:00
Move some arrays out of load global settings and into their own entity
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user