mirror of
https://github.com/itflow-org/itflow
synced 2026-08-05 23:27:17 +00:00
Use Short echo tags across the code
This commit is contained in:
@@ -58,8 +58,8 @@ $sql_years_select = mysqli_query($mysqli, "
|
||||
$year_select = date('Y');
|
||||
}
|
||||
?>
|
||||
<option value="<?php echo $year_select; ?>" <?php if ($year == $year_select) { echo "selected"; } ?>>
|
||||
<?php echo $year_select; ?>
|
||||
<option value="<?= $year_select ?>" <?php if ($year == $year_select) { echo "selected"; } ?>>
|
||||
<?= $year_select ?>
|
||||
</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
@@ -179,12 +179,12 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
<div class="row">
|
||||
<div class="col-lg-4 col-md-6 col-sm-12">
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-primary" href="income.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
|
||||
<a class="small-box bg-primary" href="income.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<div class="inner">
|
||||
<h3><?php echo numfmt_format_currency($currency_format, $total_income, "$session_company_currency"); ?></h3>
|
||||
<h3><?= numfmt_format_currency($currency_format, $total_income, "$session_company_currency") ?></h3>
|
||||
<p>Income</p>
|
||||
<hr>
|
||||
<small>Receivables: <?php echo numfmt_format_currency($currency_format, $receivables, "$session_company_currency"); ?></small>
|
||||
<small>Receivables: <?= numfmt_format_currency($currency_format, $receivables, "$session_company_currency") ?></small>
|
||||
</div>
|
||||
<div class="icon">
|
||||
<i class="fa fa-hand-holding-usd"></i>
|
||||
@@ -195,9 +195,9 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
|
||||
<div class="col-lg-4 col-md-6 col-sm-12">
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-danger" href="expenses.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
|
||||
<a class="small-box bg-danger" href="expenses.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<div class="inner">
|
||||
<h3><?php echo numfmt_format_currency($currency_format, $total_expenses, "$session_company_currency"); ?></h3>
|
||||
<h3><?= numfmt_format_currency($currency_format, $total_expenses, "$session_company_currency") ?></h3>
|
||||
<p>Expenses</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -211,7 +211,7 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-success" href="reports/profit_loss.php">
|
||||
<div class="inner">
|
||||
<h3><?php echo numfmt_format_currency($currency_format, $profit, "$session_company_currency"); ?></h3>
|
||||
<h3><?= numfmt_format_currency($currency_format, $profit, "$session_company_currency") ?></h3>
|
||||
<p>Profit</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -225,7 +225,7 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-info" href="reports/recurring_by_client.php">
|
||||
<div class="inner">
|
||||
<h3><?php echo numfmt_format_currency($currency_format, $recurring_monthly_total, "$session_company_currency"); ?></h3>
|
||||
<h3><?= numfmt_format_currency($currency_format, $recurring_monthly_total, "$session_company_currency") ?></h3>
|
||||
<p>Monthly Recurring Income</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -239,7 +239,7 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-pink" href="recurring_expenses.php">
|
||||
<div class="inner">
|
||||
<h3><?php echo numfmt_format_currency($currency_format, $recurring_expense_monthly_total, "$session_company_currency"); ?></h3>
|
||||
<h3><?= numfmt_format_currency($currency_format, $recurring_expense_monthly_total, "$session_company_currency") ?></h3>
|
||||
<p>Monthly Recurring Expense</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -254,7 +254,7 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-secondary" href="reports/tickets_unbilled.php">
|
||||
<div class="inner">
|
||||
<h3><?php echo $unbilled_tickets; ?></h3>
|
||||
<h3><?= $unbilled_tickets ?></h3>
|
||||
<p>Unbilled Ticket<?php if ($unbilled_tickets > 1 || $unbilled_tickets == 0) { echo "s"; } ?></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -265,9 +265,9 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
<?php } else { ?>
|
||||
<div class="col-lg-3 col-md-6 col-sm-12">
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-secondary" href="recurring_invoices.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
|
||||
<a class="small-box bg-secondary" href="recurring_invoices.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<div class="inner">
|
||||
<h3><?php echo $recurring_invoices_added; ?></h3>
|
||||
<h3><?= $recurring_invoices_added ?></h3>
|
||||
<p>Recurring Invoices Added</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -279,9 +279,9 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
|
||||
<div class="col-lg-2 col-6">
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-secondary" href="clients.php?leads=1&dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
|
||||
<a class="small-box bg-secondary" href="clients.php?leads=1&dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<div class="inner">
|
||||
<h3><?php echo $leads_added; ?></h3>
|
||||
<h3><?= $leads_added ?></h3>
|
||||
<p>New Leads</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -293,9 +293,9 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
|
||||
<div class="col-lg-2 col-6">
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-secondary" href="clients.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
|
||||
<a class="small-box bg-secondary" href="clients.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<div class="inner">
|
||||
<h3><?php echo $clients_added; ?></h3>
|
||||
<h3><?= $clients_added ?></h3>
|
||||
<p>New Clients</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -307,9 +307,9 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
|
||||
<div class="col-lg-2 col-6">
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-secondary" href="vendors.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
|
||||
<a class="small-box bg-secondary" href="vendors.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<div class="inner">
|
||||
<h3><?php echo $vendors_added; ?></h3>
|
||||
<h3><?= $vendors_added ?></h3>
|
||||
<p>New Vendors</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -321,9 +321,9 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
|
||||
<div class="col-lg-3 col-md-6 col-sm-12">
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-secondary" href="trips.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
|
||||
<a class="small-box bg-secondary" href="trips.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<div class="inner">
|
||||
<h3><?php echo number_format($total_miles, 2); ?></h3>
|
||||
<h3><?= number_format($total_miles, 2) ?></h3>
|
||||
<p>Miles Traveled</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -427,7 +427,7 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
$opening_balance = floatval($row['opening_balance']);
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $account_name; ?></td>
|
||||
<td><?= $account_name ?></td>
|
||||
<?php
|
||||
$sql_payments = mysqli_query($mysqli, "SELECT SUM(payment_amount) AS total_payments FROM payments WHERE payment_account_id = $account_id");
|
||||
$row = mysqli_fetch_assoc($sql_payments);
|
||||
@@ -447,7 +447,7 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
$balance = '0.00';
|
||||
}
|
||||
?>
|
||||
<td class="text-right text-monospace"><?php echo numfmt_format_currency($currency_format, $balance, "$session_company_currency"); ?></td>
|
||||
<td class="text-right text-monospace"><?= numfmt_format_currency($currency_format, $balance, "$session_company_currency") ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
@@ -485,10 +485,10 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
$client_name = escapeHtml($row['client_name']);
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $payment_date; ?></td>
|
||||
<td><?php echo $client_name; ?></td>
|
||||
<td><?php echo "$invoice_prefix$invoice_number"; ?></td>
|
||||
<td class="text-right text-monospace"><?php echo numfmt_format_currency($currency_format, $payment_amount, "$session_company_currency"); ?></td>
|
||||
<td><?= $payment_date ?></td>
|
||||
<td><?= $client_name ?></td>
|
||||
<td><?= "$invoice_prefix$invoice_number" ?></td>
|
||||
<td class="text-right text-monospace"><?= numfmt_format_currency($currency_format, $payment_amount, "$session_company_currency") ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
@@ -525,10 +525,10 @@ if ($user_config_dashboard_financial_enable == 1) {
|
||||
$category_name = escapeHtml($row['category_name']);
|
||||
?>
|
||||
<tr>
|
||||
<td><?php echo $expense_date; ?></td>
|
||||
<td><?php echo $vendor_name; ?></td>
|
||||
<td><?php echo $category_name; ?></td>
|
||||
<td class="text-right text-monospace"><?php echo numfmt_format_currency($currency_format, $expense_amount, "$session_company_currency"); ?></td>
|
||||
<td><?= $expense_date ?></td>
|
||||
<td><?= $vendor_name ?></td>
|
||||
<td><?= $category_name ?></td>
|
||||
<td class="text-right text-monospace"><?= numfmt_format_currency($currency_format, $expense_amount, "$session_company_currency") ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
@@ -614,9 +614,9 @@ if ($user_config_dashboard_technical_enable == 1) {
|
||||
<div class="row">
|
||||
<div class="col-lg-3 col-6">
|
||||
<!-- small box -->
|
||||
<a class="small-box bg-secondary" href="clients.php?dtf=<?php echo $year; ?>-01-01&dtt=<?php echo $year; ?>-12-31">
|
||||
<a class="small-box bg-secondary" href="clients.php?dtf=<?= $year ?>-01-01&dtt=<?= $year ?>-12-31">
|
||||
<div class="inner">
|
||||
<h3><?php echo $clients_added; ?></h3>
|
||||
<h3><?= $clients_added ?></h3>
|
||||
<p>New Clients</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -629,7 +629,7 @@ if ($user_config_dashboard_technical_enable == 1) {
|
||||
<div class="col-lg-3 col-6">
|
||||
<a class="small-box bg-success" href="contacts.php">
|
||||
<div class="inner">
|
||||
<h3><?php echo $contacts_added; ?></h3>
|
||||
<h3><?= $contacts_added ?></h3>
|
||||
<p>New Contacts</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -642,7 +642,7 @@ if ($user_config_dashboard_technical_enable == 1) {
|
||||
<div class="col-lg-3 col-6">
|
||||
<a class="small-box bg-info" href="assets.php">
|
||||
<div class="inner">
|
||||
<h3><?php echo $assets_added; ?></h3>
|
||||
<h3><?= $assets_added ?></h3>
|
||||
<p>New Assets</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -655,7 +655,7 @@ if ($user_config_dashboard_technical_enable == 1) {
|
||||
<div class="col-lg-3 col-6">
|
||||
<a class="small-box bg-danger" href="tickets.php">
|
||||
<div class="inner">
|
||||
<h3><?php echo $active_tickets; ?></h3>
|
||||
<h3><?= $active_tickets ?></h3>
|
||||
<p>Active Tickets</p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -668,7 +668,7 @@ if ($user_config_dashboard_technical_enable == 1) {
|
||||
<div class="col-lg-3 col-6">
|
||||
<a class="small-box bg-warning" href="domains.php?expire_days=30&sort=domain_expire&order=ASC">
|
||||
<div class="inner">
|
||||
<h3><?php echo $expiring_domains; ?></h3>
|
||||
<h3><?= $expiring_domains ?></h3>
|
||||
<p>Expiring Domains <small>30 Day</small></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -681,7 +681,7 @@ if ($user_config_dashboard_technical_enable == 1) {
|
||||
<div class="col-lg-3 col-6">
|
||||
<a class="small-box bg-primary" href="certificates.php?expire_days=30&sort=certificate_expire&order=ASC">
|
||||
<div class="inner">
|
||||
<h3><?php echo $expiring_certificates; ?></h3>
|
||||
<h3><?= $expiring_certificates ?></h3>
|
||||
<p>Expiring Certificates<small>30 Day</small></p>
|
||||
</div>
|
||||
<div class="icon">
|
||||
@@ -773,18 +773,18 @@ if ($user_config_dashboard_technical_enable == 1) {
|
||||
$ticket_priority_color = $ticket_priority == "High" ? "danger" : ($ticket_priority == "Medium" ? "warning" : "info");
|
||||
$contact_display = empty($contact_name) ? "-" : "<a href='contact.php?client_id=$client_id&contact_id=$contact_id'>$contact_name</a>";
|
||||
?>
|
||||
<tr class="<?php echo empty($ticket_updated_at) ? 'text-bold' : ''; ?>">
|
||||
<tr class="<?= empty($ticket_updated_at) ? 'text-bold' : '' ?>">
|
||||
<td>
|
||||
<a class="text-dark"
|
||||
href="ticket.php?ticket_id=<?= "$ticket_id$has_client" ?>"><?= "$ticket_prefix$ticket_number" ?>
|
||||
</a>
|
||||
</td>
|
||||
<td><a href="ticket.php?ticket_id=<?= "$ticket_id$has_client" ?>"><?= $ticket_subject ?></a></td>
|
||||
<td><a href="tickets.php?client_id=<?php echo $client_id; ?>"><strong><?php echo $client_name; ?></strong></a></td>
|
||||
<td><?php echo $contact_display; ?></td>
|
||||
<td><span class='p-2 badge badge-pill badge-<?php echo $ticket_priority_color; ?>'><?php echo $ticket_priority; ?></span></td>
|
||||
<td><span class='badge badge-pill text-light p-2' style="background-color: <?php echo $ticket_status_color; ?>"><?php echo $ticket_status_name; ?></span></td>
|
||||
<td><?php echo $ticket_updated_at_display; ?></td>
|
||||
<td><a href="tickets.php?client_id=<?= $client_id ?>"><strong><?= $client_name ?></strong></a></td>
|
||||
<td><?= $contact_display ?></td>
|
||||
<td><span class='p-2 badge badge-pill badge-<?= $ticket_priority_color ?>'><?= $ticket_priority ?></span></td>
|
||||
<td><span class='badge badge-pill text-light p-2' style="background-color: <?= $ticket_status_color ?>"><?= $ticket_status_name ?></span></td>
|
||||
<td><?= $ticket_updated_at_display ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
|
||||
Reference in New Issue
Block a user