mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Finished File Entity Renaming process
This commit is contained in:
@@ -122,7 +122,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include("edit_account_modal.php");
|
include("account_edit_modal.php");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -135,7 +135,7 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_account_modal.php");
|
include("account_add_modal.php");
|
||||||
|
|
||||||
include("footer.php");
|
include("footer.php");
|
||||||
|
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ if(isset($_GET['calendar_id'])){
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_calendar_event_modal.php");
|
include("calendar_event_add_modal.php");
|
||||||
include("add_calendar_modal.php");
|
include("calendar_add_modal.php");
|
||||||
include("add_quick_modal.php");
|
include("add_quick_modal.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -35,7 +35,7 @@ while($row = mysqli_fetch_array($sql)){
|
|||||||
$calendar_color = $row['calendar_color'];
|
$calendar_color = $row['calendar_color'];
|
||||||
$client_id = $row['event_client_id'];
|
$client_id = $row['event_client_id'];
|
||||||
|
|
||||||
include("edit_calendar_event_modal.php");
|
include("calendar_event_edit_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -140,7 +140,7 @@ $colors_diff = array_diff($colors_array,$colors_used_array);
|
|||||||
|
|
||||||
//$colors_diff = array_diff($colors_array,$colors_used_array);
|
//$colors_diff = array_diff($colors_array,$colors_used_array);
|
||||||
|
|
||||||
include("edit_category_modal.php");
|
include("category_edit_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -155,7 +155,7 @@ $colors_diff = array_diff($colors_array,$colors_used_array);
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_category_modal.php");
|
include("category_add_modal.php");
|
||||||
|
|
||||||
include("footer.php");
|
include("footer.php");
|
||||||
|
|
||||||
|
|||||||
@@ -261,8 +261,8 @@ $location_phone = formatPhoneNumber($location_phone);
|
|||||||
|
|
||||||
include("client_routes.php");
|
include("client_routes.php");
|
||||||
include("client_edit_modal.php");
|
include("client_edit_modal.php");
|
||||||
include("add_quick_modal.php");
|
|
||||||
include("client_delete_modal.php");
|
include("client_delete_modal.php");
|
||||||
|
include("category_quick_add_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="modal" id="addAssetCSVModal" tabindex="-1">
|
<div class="modal" id="importAssetModal" tabindex="-1">
|
||||||
<div class="modal-dialog">
|
<div class="modal-dialog">
|
||||||
<div class="modal-content bg-dark">
|
<div class="modal-content bg-dark">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
@@ -150,7 +150,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<div class="float-right">
|
<div class="float-right">
|
||||||
<a href="post.php?export_client_<?php echo $_GET['tab']; ?>_csv=<?php echo $client_id; ?>" class="btn btn-default"><i class="fa fa-fw fa-download"></i> Export</a>
|
<a href="post.php?export_client_<?php echo $_GET['tab']; ?>_csv=<?php echo $client_id; ?>" class="btn btn-default"><i class="fa fa-fw fa-download"></i> Export</a>
|
||||||
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#addAssetCSVModal"><i class="fa fa-fw fa-upload"></i> Import</button>
|
<button type="button" class="btn btn-default" data-toggle="modal" data-target="#importAssetModal"><i class="fa fa-fw fa-upload"></i> Import</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -344,7 +344,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_asset_modal.php");
|
include("client_asset_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -357,6 +357,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include("add_asset_modal.php");
|
include("client_asset_add_modal.php");
|
||||||
include("add_asset_csv_modal.php");
|
include("client_asset_import_modal.php");
|
||||||
?>
|
?>
|
||||||
@@ -124,7 +124,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_certificate_modal.php");
|
include("client_certificate_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -136,7 +136,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_certificate_modal.php"); ?>
|
<?php include("client_certificate_add_modal.php"); ?>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function fetchSSL()
|
function fetchSSL()
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_contact_modal.php");
|
include("client_contact_edit_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -201,4 +201,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_contact_modal.php"); ?>
|
<?php include("client_contact_add_modal.php"); ?>
|
||||||
|
|||||||
@@ -169,13 +169,13 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
<a class="dropdown-item text-danger" href="post.php?delete_document=<?php echo $document_id; ?>">Delete</a>
|
<a class="dropdown-item text-danger" href="post.php?delete_document=<?php echo $document_id; ?>">Delete</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php include("view_document_modal.php"); ?>
|
<?php include("client_document_view_modal.php"); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_document_modal.php");
|
include("client_document_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -187,5 +187,5 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_document_modal.php"); ?>
|
<?php include("client_document_add_modal.php"); ?>
|
||||||
<?php include("manage_document_tags_modal.php"); ?>
|
<?php include("client_document_tags_modal.php"); ?>
|
||||||
|
|||||||
@@ -133,7 +133,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_domain_modal.php");
|
include("client_domain_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -145,4 +145,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_domain_modal.php"); ?>
|
<?php include("client_domain_add_modal.php"); ?>
|
||||||
@@ -12,8 +12,8 @@ if(isset($_GET['calendar_id'])){
|
|||||||
<div id='calendar'></div>
|
<div id='calendar'></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_calendar_event_modal.php"); ?>
|
<?php include("calendar_event_add_modal.php"); ?>
|
||||||
<?php include("add_calendar_modal.php"); ?>
|
<?php include("calendar_add_modal.php"); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
?>
|
?>
|
||||||
@@ -32,7 +32,7 @@ while($row = mysqli_fetch_array($sql)){
|
|||||||
$calendar_name = $row['calendar_name'];
|
$calendar_name = $row['calendar_name'];
|
||||||
$calendar_color = $row['calendar_color'];
|
$calendar_color = $row['calendar_color'];
|
||||||
|
|
||||||
include("edit_calendar_event_modal.php");
|
include("calendar_event_edit_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@ $num_of_files = mysqli_num_rows($sql_files_images) + mysqli_num_rows($sql_files_
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include("view_file_modal.php");
|
include("client_file_view_modal.php");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
</div>
|
||||||
@@ -101,4 +101,4 @@ $num_of_files = mysqli_num_rows($sql_files_images) + mysqli_num_rows($sql_files_
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_file_modal.php"); ?>
|
<?php include("client_file_add_modal.php"); ?>
|
||||||
@@ -173,8 +173,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_invoice_copy_modal.php");
|
include("invoice_copy_modal.php");
|
||||||
include("edit_invoice_modal.php");
|
include("invoice_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -186,4 +186,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_invoice_modal.php"); ?>
|
<?php include("invoice_add_modal.php"); ?>
|
||||||
@@ -145,7 +145,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
<a class="dropdown-item text-danger" href="post.php?delete_location=<?php echo $location_id; ?>">Delete</a>
|
<a class="dropdown-item text-danger" href="post.php?delete_location=<?php echo $location_id; ?>">Delete</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<?php include("edit_location_modal.php"); ?>
|
<?php include("client_location_edit_modal.php"); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@@ -162,4 +162,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_location_modal.php"); ?>
|
<?php include("client_location_add_modal.php"); ?>
|
||||||
@@ -155,7 +155,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_login_modal.php");
|
include("client_login_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -167,4 +167,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_login_modal.php"); ?>
|
<?php include("client_login_add_modal.php"); ?>
|
||||||
@@ -148,7 +148,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_network_modal.php");
|
include("client_network_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -160,4 +160,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_network_modal.php"); ?>
|
<?php include("client_network_add_modal.php"); ?>
|
||||||
@@ -163,8 +163,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_quote_modal.php");
|
include("quote_edit_modal.php");
|
||||||
include("add_quote_copy_modal.php");
|
include("quote_copy_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -176,4 +176,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_quote_modal.php"); ?>
|
<?php include("quote_add_modal.php"); ?>
|
||||||
@@ -153,7 +153,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include("edit_recurring_modal.php");
|
include("recurring_invoice_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -165,4 +165,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_recurring_modal.php"); ?>
|
<?php include("recurring_invoice_add_modal.php"); ?>
|
||||||
@@ -37,8 +37,8 @@ if(isset($_GET['tab'])){
|
|||||||
elseif($_GET['tab'] == "invoices"){
|
elseif($_GET['tab'] == "invoices"){
|
||||||
include("client_invoices.php");
|
include("client_invoices.php");
|
||||||
}
|
}
|
||||||
elseif($_GET['tab'] == "recurring"){
|
elseif($_GET['tab'] == "recurring_invoices"){
|
||||||
include("client_recurring.php");
|
include("client_recurring_invoices.php");
|
||||||
}
|
}
|
||||||
elseif($_GET['tab'] == "payments"){
|
elseif($_GET['tab'] == "payments"){
|
||||||
include("client_payments.php");
|
include("client_payments.php");
|
||||||
|
|||||||
@@ -146,8 +146,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
ON service_documents.document_id = documents.document_id
|
ON service_documents.document_id = documents.document_id
|
||||||
WHERE service_id = '$service_id'");
|
WHERE service_id = '$service_id'");
|
||||||
|
|
||||||
include("service_edit_modal.php");
|
include("client_service_edit_modal.php");
|
||||||
include("service_view_modal.php");
|
include("client_service_view_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -158,4 +158,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("service_add_modal.php"); ?>
|
<?php include("client_service_add_modal.php"); ?>
|
||||||
@@ -224,7 +224,7 @@
|
|||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li class="nav-item">
|
<li class="nav-item">
|
||||||
<a href="?client_id=<?php echo $client_id; ?>&tab=recurring" class="nav-link <?php if($_GET['tab'] == "recurring") { echo "active"; } ?>">
|
<a href="?client_id=<?php echo $client_id; ?>&tab=recurring_invoices" class="nav-link <?php if($_GET['tab'] == "recurring_invoices") { echo "active"; } ?>">
|
||||||
<i class="nav-icon fas fa-sync-alt"></i>
|
<i class="nav-icon fas fa-sync-alt"></i>
|
||||||
<p>
|
<p>
|
||||||
Recurring
|
Recurring
|
||||||
|
|||||||
@@ -171,7 +171,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_software_modal.php");
|
include("client_software_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -183,4 +183,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_software_modal.php"); ?>
|
<?php include("client_software_add_modal.php"); ?>
|
||||||
@@ -148,8 +148,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_trip_copy_modal.php");
|
include("trip_copy_modal.php");
|
||||||
include("edit_trip_modal.php");
|
include("trip_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -161,4 +161,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_trip_modal.php"); ?>
|
<?php include("trip_add_modal.php"); ?>
|
||||||
@@ -179,7 +179,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_vendor_modal.php");
|
include("vendor_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -193,4 +193,4 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_vendor_modal.php"); ?>
|
<?php include("vendor_add_modal.php"); ?>
|
||||||
@@ -1,51 +0,0 @@
|
|||||||
<?php include("header.php");
|
|
||||||
|
|
||||||
$sql = mysqli_query($mysqli,"SELECT * FROM clients LEFT JOIN contacts ON clients.primary_contact = contacts.contact_id LEFT JOIN locations ON clients.primary_location = locations.location_id");
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|
||||||
<div class="card card-dark">
|
|
||||||
<div class="card-header py-2">
|
|
||||||
<h3 class="card-title mt-2"><i class="fa fa-fw fa-users"></i> Clients</h3>
|
|
||||||
<div class="card-tools">
|
|
||||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#addClientModal"><i class="fas fa-fw fa-plus"></i> New Client</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="card-body">
|
|
||||||
<hr>
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table table-striped table-hover table-borderless">
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>Client ID</th>
|
|
||||||
<th>Client</th>
|
|
||||||
<th>Contact Name</th>
|
|
||||||
<th>Location</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<?php
|
|
||||||
|
|
||||||
while($row = mysqli_fetch_array($sql)){
|
|
||||||
$client_id = $row['client_id'];
|
|
||||||
$client_name = $row['client_name'];
|
|
||||||
$contact_name = $row['contact_name'];
|
|
||||||
$location_address = $row['location_address'];
|
|
||||||
|
|
||||||
?>
|
|
||||||
<tr>
|
|
||||||
<td><?php echo $client_id; ?></td>
|
|
||||||
<td><?php echo $client_name; ?></td>
|
|
||||||
<td><?php echo $contact_name; ?></td>
|
|
||||||
<td><?php echo $location_address; ?></td>
|
|
||||||
</tr>
|
|
||||||
|
|
||||||
<?php } ?>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<?php include("footer.php");
|
|
||||||
@@ -340,6 +340,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("client_add_modal.php"); ?>
|
<?php include("client_add_modal.php"); ?>
|
||||||
<?php include("add_quick_modal.php"); ?>
|
<?php include("category_quick_add_modal.php"); ?>
|
||||||
|
|
||||||
<?php include("footer.php"); ?>
|
<?php include("footer.php"); ?>
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_company_modal.php");
|
include("company_edit_modal.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
@@ -150,6 +150,6 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_company_modal.php"); ?>
|
<?php include("company_add_modal.php"); ?>
|
||||||
|
|
||||||
<?php include("footer.php");
|
<?php include("footer.php");
|
||||||
42
create.php
42
create.php
@@ -1,42 +0,0 @@
|
|||||||
<?php
|
|
||||||
include("config.php");
|
|
||||||
include("check_login.php");
|
|
||||||
include("functions.php");
|
|
||||||
?>
|
|
||||||
|
|
||||||
<?php
|
|
||||||
|
|
||||||
require 'vendor/stripe-php-7.72.0/init.php';
|
|
||||||
|
|
||||||
// This is your real test secret API key.
|
|
||||||
\Stripe\Stripe::setApiKey("$config_stripe_secret");
|
|
||||||
|
|
||||||
|
|
||||||
function calculateOrderAmount(array $items): int {
|
|
||||||
// Replace this constant with a calculation of the order's amount
|
|
||||||
// Calculate the order total on the server to prevent
|
|
||||||
// customers from directly manipulating the amount on the client
|
|
||||||
return 1400;
|
|
||||||
}
|
|
||||||
|
|
||||||
header('Content-Type: application/json');
|
|
||||||
|
|
||||||
try {
|
|
||||||
// retrieve JSON from POST body
|
|
||||||
$json_str = file_get_contents('php://input');
|
|
||||||
$json_obj = json_decode($json_str);
|
|
||||||
|
|
||||||
$paymentIntent = \Stripe\PaymentIntent::create([
|
|
||||||
'amount' => calculateOrderAmount($json_obj->items),
|
|
||||||
'currency' => 'usd',
|
|
||||||
]);
|
|
||||||
|
|
||||||
$output = [
|
|
||||||
'clientSecret' => $paymentIntent->client_secret,
|
|
||||||
];
|
|
||||||
|
|
||||||
echo json_encode($output);
|
|
||||||
} catch (Error $e) {
|
|
||||||
http_response_code(500);
|
|
||||||
echo json_encode(['error' => $e->getMessage()]);
|
|
||||||
}
|
|
||||||
@@ -114,7 +114,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_custom_link_modal.php");
|
include("custom_link_edit_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_custom_link_modal.php");
|
include("custom_link_add_modal.php");
|
||||||
|
|
||||||
include("footer.php");
|
include("footer.php");
|
||||||
|
|
||||||
|
|||||||
12
expenses.php
12
expenses.php
@@ -225,10 +225,10 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_expense_modal.php");
|
include("expense_edit_modal.php");
|
||||||
include("add_expense_copy_modal.php");
|
include("expense_copy_modal.php");
|
||||||
include("add_expense_refund_modal.php");
|
include("expense_refund_modal.php");
|
||||||
include("export_expenses_modal.php");
|
include("expense_export_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -241,7 +241,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php include("add_expense_modal.php"); ?>
|
<?php include("expense_add_modal.php"); ?>
|
||||||
<?php include("add_quick_modal.php"); ?>
|
<?php include("category_quick_add_modal.php"); ?>
|
||||||
|
|
||||||
<?php include("footer.php");
|
<?php include("footer.php");
|
||||||
12
invoice.php
12
invoice.php
@@ -287,7 +287,7 @@ if(isset($_GET['invoice_id'])){
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_item_modal.php");
|
include("item_edit_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -484,12 +484,12 @@ if(isset($_GET['invoice_id'])){
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include("add_payment_modal.php");
|
include("invoice_payment_add_modal.php");
|
||||||
include("add_invoice_copy_modal.php");
|
include("invoice_copy_modal.php");
|
||||||
include("add_invoice_recurring_modal.php");
|
include("invoice_recurring_add_modal.php");
|
||||||
include("edit_invoice_modal.php");
|
include("invoice_edit_modal.php");
|
||||||
include("invoice_note_modal.php");
|
include("invoice_note_modal.php");
|
||||||
include("add_quick_modal.php");
|
include("category_quick_add_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -374,8 +374,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
|
||||||
include("edit_invoice_modal.php");
|
include("invoice_edit_modal.php");
|
||||||
include("add_invoice_copy_modal.php");
|
include("invoice_copy_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -390,8 +390,8 @@
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_invoice_modal.php");
|
include("invoice_add_modal.php");
|
||||||
include("add_quick_modal.php");
|
include("category_quick_add_modal.php");
|
||||||
|
|
||||||
include("footer.php");
|
include("footer.php");
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ if(isset($_POST['login'])){
|
|||||||
$_SESSION['logged'] = TRUE;
|
$_SESSION['logged'] = TRUE;
|
||||||
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Login', log_action = 'Success', log_description = '$user_name successfully logged in', log_ip = '$ip', log_user_agent = '$user_agent', log_created_at = NOW(), log_user_id = $user_id");
|
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Login', log_action = 'Success', log_description = '$user_name successfully logged in', log_ip = '$ip', log_user_agent = '$user_agent', log_created_at = NOW(), log_user_id = $user_id");
|
||||||
|
|
||||||
header("Location: dashboard.php");
|
header("Location: dashboard_financial.php");
|
||||||
} else {
|
} else {
|
||||||
$token_field = "<div class='input-group mb-3'>
|
$token_field = "<div class='input-group mb-3'>
|
||||||
<input type='text' class='form-control' placeholder='Token' name='current_code' autofocus>
|
<input type='text' class='form-control' placeholder='Token' name='current_code' autofocus>
|
||||||
@@ -110,7 +110,7 @@ if(isset($_POST['login'])){
|
|||||||
$_SESSION['logged'] = TRUE;
|
$_SESSION['logged'] = TRUE;
|
||||||
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Login 2FA', log_action = 'Success', log_description = '$user_name successfully logged in using 2FA', log_ip = '$ip', log_user_agent = '$user_agent', log_created_at = NOW(), log_user_id = $user_id");
|
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Login 2FA', log_action = 'Success', log_description = '$user_name successfully logged in using 2FA', log_ip = '$ip', log_user_agent = '$user_agent', log_created_at = NOW(), log_user_id = $user_id");
|
||||||
//header("Location: $config_start_page");
|
//header("Location: $config_start_page");
|
||||||
header("Location: dashboard.php");
|
header("Location: dashboard_financial.php");
|
||||||
} else {
|
} else {
|
||||||
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Login', log_action = '2FA Failed', log_description = '$user_name failed 2FA', log_ip = '$ip', log_user_agent = '$user_agent', log_created_at = NOW(), log_user_id = $user_id");
|
mysqli_query($mysqli, "INSERT INTO logs SET log_type = 'Login', log_action = '2FA Failed', log_description = '$user_name failed 2FA', log_ip = '$ip', log_user_agent = '$user_agent', log_created_at = NOW(), log_user_id = $user_id");
|
||||||
|
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("product_add_modal.php");
|
include("product_add_modal.php");
|
||||||
include("add_quick_modal.php");
|
include("category_quick_add_modal.php");
|
||||||
|
|
||||||
include("footer.php");
|
include("footer.php");
|
||||||
|
|
||||||
|
|||||||
10
quote.php
10
quote.php
@@ -251,7 +251,7 @@ if(isset($_GET['quote_id'])){
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_item_modal.php");
|
include("item_edit_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -391,11 +391,11 @@ if(isset($_GET['quote_id'])){
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include("edit_quote_modal.php");
|
include("quote_edit_modal.php");
|
||||||
include("add_quote_to_invoice_modal.php");
|
include("quote_to_invoice_modal.php");
|
||||||
include("add_quote_copy_modal.php");
|
include("quote_copy_modal.php");
|
||||||
include("quote_note_modal.php");
|
include("quote_note_modal.php");
|
||||||
include("add_quick_modal.php");
|
include("category_quick_add_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -238,8 +238,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_quote_modal.php");
|
include("quote_edit_modal.php");
|
||||||
include("add_quote_copy_modal.php");
|
include("quote_copy_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -254,8 +254,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_quote_modal.php");
|
include("quote_add_modal.php");
|
||||||
include("add_quick_modal.php");
|
include("category_quick_add_modal.php");
|
||||||
|
|
||||||
include("footer.php");
|
include("footer.php");
|
||||||
|
|
||||||
|
|||||||
@@ -220,7 +220,7 @@ if(isset($_GET['recurring_id'])){
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_item_modal.php");
|
include("item_edit_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -354,9 +354,9 @@ if(isset($_GET['recurring_id'])){
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_recurring_modal.php");
|
include("recurring_invoice_edit_modal.php");
|
||||||
include("recurring_note_modal.php");
|
include("recurring_invoice_note_modal.php");
|
||||||
include("add_quick_modal.php");
|
include("category_quick_add_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -225,7 +225,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include("edit_recurring_modal.php");
|
include("recurring_invoice_edit_modal.php");
|
||||||
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
@@ -239,8 +239,8 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_recurring_modal.php");
|
include("recurring_invoice_add_modal.php");
|
||||||
include("add_quick_modal.php");
|
include("category_quick_add_modal.php");
|
||||||
|
|
||||||
include("footer.php");
|
include("footer.php");
|
||||||
|
|
||||||
@@ -202,7 +202,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</div>
|
</div>
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("edit_revenue_modal.php");
|
include("revenue_edit_modal.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
@@ -223,7 +223,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
include("add_revenue_modal.php");
|
include("revenue_add_modal.php");
|
||||||
include("add_quick_modal.php");
|
include("add_quick_modal.php");
|
||||||
|
|
||||||
include("footer.php");
|
include("footer.php");
|
||||||
|
|||||||
@@ -75,7 +75,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli,"SELECT FOUND_ROWS()"));
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include("scheduled_tickets_edit_modal.php");
|
include("scheduled_ticket_edit_modal.php");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user