Vendor & contractor integration

This commit is contained in:
2021-06-10 05:20:29 -04:00
parent f2d7d9ee14
commit b16b55fa11
24 changed files with 1036 additions and 111 deletions

View File

@@ -71,6 +71,11 @@
if (empty(filter_input(INPUT_POST, 'firstname', FILTER_SANITIZE_STRING))) { $firstname="";} else {$firstname=filter_input(INPUT_POST, 'firstname', FILTER_SANITIZE_STRING);};
if (empty(filter_input(INPUT_POST, 'lastname', FILTER_SANITIZE_STRING))) { $lastname="";} else {$lastname=filter_input(INPUT_POST, 'lastname', FILTER_SANITIZE_STRING);};
if (empty(filter_input(INPUT_POST, 'company', FILTER_SANITIZE_STRING))) { $company="";} else {$company=filter_input(INPUT_POST, 'company', FILTER_SANITIZE_STRING);};
if (empty(filter_input(INPUT_POST, 'isvendor', FILTER_SANITIZE_STRING))) { $isvendor="0";} else {$isvendor=filter_input(INPUT_POST, 'isvendor', FILTER_SANITIZE_STRING);};
if (empty(filter_input(INPUT_POST, 'db_vendorinfo_contact1', FILTER_SANITIZE_STRING))) { $db_vendorinfo_contact1="";} else {$db_vendorinfo_contact1=filter_input(INPUT_POST, 'db_vendorinfo_contact1', FILTER_SANITIZE_STRING);};
if (empty(filter_input(INPUT_POST, 'db_vendorinfo_contact2', FILTER_SANITIZE_STRING))) { $db_vendorinfo_contact2="";} else {$db_vendorinfo_contact2=filter_input(INPUT_POST, 'db_vendorinfo_contact2', FILTER_SANITIZE_STRING);};
if (empty(filter_input(INPUT_POST, 'db_vendorinfo_workstart', FILTER_SANITIZE_STRING))) { $db_vendorinfo_workstart="";} else {$db_vendorinfo_workstart=filter_input(INPUT_POST, 'db_vendorinfo_workstart', FILTER_SANITIZE_STRING);};
if (empty(filter_input(INPUT_POST, 'db_vendorinfo_workend', FILTER_SANITIZE_STRING))) { $db_vendorinfo_workend="";} else {$db_vendorinfo_workend=filter_input(INPUT_POST, 'db_vendorinfo_workend', FILTER_SANITIZE_STRING);};
?>
<div class="container">
<div class="row row-cols-1">
@@ -85,7 +90,7 @@
<div class="input-group mb-3">
<span class="input-group-text"><?php echo $transLang['REASON']; ?></span>
<select class="form-select" id="visit_type" aria-label="Visit Type" name="visit_type" required>
<option value="" selected><?php echo $transLang['SELECTREASON']; ?></option><?php foreach($VisitTypeInfo->getVisitTypeInfo("%") as $row): ?>
<option value="" selected><?php echo $transLang['SELECTREASON']; ?></option><?php foreach($VisitTypeInfo->getInfoVisitType($isvendor,"%") as $row): ?>
<option value="<?php echo $row['visittypes_id']; ?>"><?php echo $transLang[$row['visittypes_name']]; ?></option><?php endforeach; ?>
</select>
</div>
@@ -98,6 +103,11 @@
<input type="hidden" name="firstname" id="firstname" value="<?php echo $firstname; ?>" />
<input type="hidden" name="lastname" id="lastname" value="<?php echo $lastname; ?>" />
<input type="hidden" name="company" id="company" value="<?php echo $company; ?>" />
<input type="hidden" name="isvendor" id="isvendor" value="<?php echo $isvendor; ?>" />
<input type="hidden" name="db_vendorinfo_contact1" id="db_vendorinfo_contact1" value="<?php echo $db_vendorinfo_contact1; ?>" />
<input type="hidden" name="db_vendorinfo_contact2" id="db_vendorinfo_contact2" value="<?php echo $db_vendorinfo_contact2; ?>" />
<input type="hidden" name="db_vendorinfo_workstart" id="db_vendorinfo_workstart" value="<?php echo $db_vendorinfo_workstart; ?>" />
<input type="hidden" name="db_vendorinfo_workend" id="db_vendorinfo_workend" value="<?php echo $db_vendorinfo_workend; ?>" />
<button type="submit" id="saveBtn" class="btn btn-lg btn-success" name="signin"><?php echo $transLang['NEXT']; ?></button>
</div>
</div>