Add EMEA fields

This commit is contained in:
Josh North 2018-10-22 10:23:22 -04:00
parent 9745ad620f
commit 044596271f

View File

@ -163,6 +163,8 @@
$timein = new DateTime($row['visits_intime'], new DateTimeZone('UTC'));
$timein->setTimezone(new DateTimeZone("$timezone"));
$timein_disp = $timein->format('Y-m-d H:i:s');
if(!empty($row['visits_carnum'])) { $carnum=$row['visits_carnum']; } else { $carnum="";};
if(!empty($row['visits_ssanum'])) { $ssanum=$row['visits_ssanum']; } else { $ssanum="";};
?>
<?php if($row['visits_approved']==2) { ?>
<tr class="alert alert-success">
@ -192,8 +194,7 @@
</td>
<td><input type="text" id="badge" name="badge" class="form-control" autofocus disabled value="<?php echo $row['visits_badge']; ?>"> <input type="text" id="initials" name="initials" class="form-control" autofocus disabled value="<?php echo $row['visits_initials']; ?>"></td>
<?php if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?>
<?php if(!empty($row['visits_carnum'])) { $carnum=$row['visits_carnum']; } else { $carnum="";}; ?>
<td><?php echo $carnum; ?> / <?php echo $row['visits_ssanum']; ?></td>
<td><?php echo $carnum; ?> / <?php echo $ssanum; ?></td>
<?php }; ?>
<td> </td>
<td><button type="submit" name="endvisit" value="<?php echo $row['visits_id']; ?>" class="btn btn-warning btn-block"><i class="fas fa-sign-out-alt"></i>&nbsp<?php echo $transLang['SIGNOUT']; ?></button><br>
@ -229,7 +230,7 @@
<div class="invalid-feedback"><?php echo $transLang['REQUIRED']; ?></div>
</td>
<?php if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?>
<td><?php echo $row['visits_carnum']; ?> / <?php echo $row['visits_ssanum']; ?></td>
<td><?php echo $carnum; ?> / <?php echo $ssanum; ?></td>
<?php }; ?>
<td>
<button type="submit" name="approvevisit" value="<?php echo $visitid; ?>" class="btn btn-success btn-block"><i class="fas fa-thumbs-up"></i>&nbsp;<?php echo $transLang['APPROVE']; ?></button><br /><button type="submit" name="voidvisit" value="<?php echo $visitid; ?>" class="btn btn-danger btn-block" onsubmit="return confirm('<?php echo $transLang['VOID_WARNING']; ?>')"><i class="fas fa-thumbs-down"></i>&nbsp;<?php echo $transLang['VOID']; ?></button>