mirror of
https://github.com/itflow-org/itflow
synced 2026-07-23 08:50:42 +00:00
Removed valueOrDash Function was able to replace with ?: '-'
This commit is contained in:
@@ -28,8 +28,8 @@ $credential_created_at = escapeHtml($row['credential_created_at']);
|
||||
|
||||
enforceClientAccess();
|
||||
|
||||
// Generate the HTML form content using output buffering.
|
||||
ob_start();
|
||||
|
||||
?>
|
||||
|
||||
<div class="modal-header bg-dark text-white">
|
||||
@@ -37,7 +37,7 @@ ob_start();
|
||||
<i class="fas fa-fw fa-building fa-2x mr-3"></i>
|
||||
<div>
|
||||
<h5 class="modal-title mb-0"><?php echo $name; ?></h5>
|
||||
<div class="text-muted"><?php echo valueOrDash($description); ?></div>
|
||||
<div class="text-muted"><?php echo $description ?: '-'; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
<button type="button" class="close text-white" data-dismiss="modal">
|
||||
@@ -53,12 +53,12 @@ ob_start();
|
||||
<h6 class="text-secondary"><i class="fas fa-info-circle mr-2"></i>Vendor Details</h6>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div><strong>Account Number:</strong> <?php echo valueOrDash($account_number); ?></div>
|
||||
<div><strong>Hours:</strong> <?php echo valueOrDash($hours); ?></div>
|
||||
<div><strong>SLA:</strong> <?php echo valueOrDash($sla); ?></div>
|
||||
<div><strong>Account Number:</strong> <?php echo $account_number ?: '-'; ?></div>
|
||||
<div><strong>Hours:</strong> <?php echo $hours ?: '-'; ?></div>
|
||||
<div><strong>SLA:</strong> <?php echo $sla ?: '-'; ?></div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div><strong>Code:</strong> <?php echo valueOrDash($code); ?></div>
|
||||
<div><strong>Code:</strong> <?php echo $code ?: '-'; ?></div>
|
||||
<div><strong>Website:</strong> <?php echo !empty($website) ? '<a href="' . $website . '" target="_blank" class="text-primary">' . $website . '</a>' : '<span class="text-muted">Not Available</span>'; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -71,8 +71,8 @@ ob_start();
|
||||
<h6 class="text-secondary"><i class="fas fa-user mr-2"></i>Contact Information</h6>
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<div><strong>Contact Name:</strong> <?php echo valueOrDash($contact_name); ?></div>
|
||||
<div><strong>Phone:</strong> <?php echo valueOrDash($phone); ?></div>
|
||||
<div><strong>Contact Name:</strong> <? $contact_name ?: '-'; ?></div>
|
||||
<div><strong>Phone:</strong> <?= $phone ?: '-'; ?></div>
|
||||
</div>
|
||||
<div class="col-sm-6">
|
||||
<div><strong>Email:</strong> <?php echo !empty($email) ? '<a href="mailto:' . $email . '" class="text-primary">' . $email . '</a>' : '<span class="text-muted">Not Available</span>'; ?></div>
|
||||
@@ -86,7 +86,7 @@ ob_start();
|
||||
<div class="card-body">
|
||||
<h6 class="text-secondary"><i class="fas fa-sticky-note mr-2"></i>Notes</h6>
|
||||
<div>
|
||||
<?php echo valueOrDash($notes); ?>
|
||||
<?= $notes ?: '-'; ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user