Vendor & contractor integration
This commit is contained in:
114
signin_1.php
114
signin_1.php
@@ -63,8 +63,12 @@
|
||||
?>
|
||||
|
||||
|
||||
<?php if (!empty($_POST)) { // PROCESS POST
|
||||
if (empty(filter_input(INPUT_POST, 'submit', FILTER_SANITIZE_STRING))) { $isvendor="0";} else {$isvendor=filter_input(INPUT_POST, 'submit', FILTER_SANITIZE_STRING);};
|
||||
?>
|
||||
|
||||
<!-- START CONTENT -->
|
||||
<?php if ($isvendor==="0") { ?>
|
||||
<!-- START CUSTOMER CONTENT -->
|
||||
<div class="container">
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
@@ -110,12 +114,118 @@
|
||||
</div>
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
<input type="hidden" name="isvendor" id="isvendor" value="<?php echo $isvendor; ?>" />
|
||||
<input type="hidden" name="siteid" id="siteid" value="<?php echo $siteid; ?>" />
|
||||
<button type="submit" id="saveBtn" class="btn btn-lg btn-success" name="signin"><?php echo $transLang['NEXT']; ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- END CONTENT -->
|
||||
<!-- END CUSTOMER CONTENT -->
|
||||
<?php } elseif ($isvendor==="1") { ?>
|
||||
<!-- START VENDOR CONTENT -->
|
||||
<div class="container">
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
<h2><i class="fas fa-sign-in-alt"></i> <?php echo $transLang['SIGNIN']; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
<form name="form-signin" class="form-signin" action="signin_2.php" method="post">
|
||||
<?php echo Csrf::getInputToken('home') ?>
|
||||
<div class="row row-cols-1">
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><?php echo $transLang['NAME']; ?></span>
|
||||
<input type="text" id="firstname" name="firstname" class="form-control" placeholder="<?php echo $transLang['FIRST']; ?>" required autofocus>
|
||||
<input type="text" id="lastname" name="lastname" class="form-control" placeholder="<?php echo $transLang['LAST']; ?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php if($SiteInfo->getSite($siteid, $uid, "0", "0")[0]["sites_region"] == "EMEA") { ?>
|
||||
<div class="row row-cols-1">
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><?php echo $transLang['CARNUM']; ?></span>
|
||||
<input type="text" id="company" name="carnum" class="form-control" placeholder="<?php echo $transLang['CARNUM']; ?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-cols-1">
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><?php echo $transLang['SSANUM']; ?></span>
|
||||
<input type="text" id="company" name="ssanum" class="form-control" placeholder="<?php echo $transLang['SSANUM']; ?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php }; ?>
|
||||
<div class="row row-cols-1">
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><?php echo $transLang['COMPANY']; ?></span>
|
||||
<input type="text" id="company" name="company" class="form-control" placeholder="<?php echo $transLang['COMPANY']; ?>" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-cols-2">
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><?php echo $transLang['VENDORINFO-CONTACT1']; ?></span>
|
||||
<input type="text" id="db_vendorinfo_contact1" name="db_vendorinfo_contact1" class="form-control" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text"><?php echo $transLang['VENDORINFO-CONTACT2']; ?></span>
|
||||
<input type="text" id="db_vendorinfo_contact2" name="db_vendorinfo_contact2" class="form-control" required autofocus>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-cols-2">
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text" data-bs-toggle="datetimepicker" data-target=".datetimepicker-db_vendorinfo_workstart"><?php echo $transLang['VENDORINFO-WORKSTART']; ?> <i class="fas fa-clock"></i></span>
|
||||
<input placeholder="" name="db_vendorinfo_workstart" type="text" class="form-control form-control-sm bg-white datetimepicker-input datetimepicker-db_vendorinfo_workstart" id="datetimepicker-db_vendorinfo_workstart" data-toggle="datetimepicker" data-target=".datetimepicker-db_vendorinfo_workstart"/>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('.datetimepicker-db_vendorinfo_workstart').datetimepicker({'timeZone': '<?php echo $timezone; ?>', 'sideBySide':true, 'format':'YYYY-MM-DD HH:mm:ss', 'allowInputToggle': true });
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="input-group mb-3">
|
||||
<span class="input-group-text" data-bs-toggle="datetimepicker" data-target=".datetimepicker-db_vendorinfo_workend"><?php echo $transLang['VENDORINFO-WORKEND']; ?> <i class="fas fa-clock"></i></span>
|
||||
<input placeholder="" name="db_vendorinfo_workend" type="text" class="form-control form-control-sm bg-white datetimepicker-input datetimepicker-db_vendorinfo_workend" id="datetimepicker-db_vendorinfo_workend" data-toggle="datetimepicker" data-target=".datetimepicker-db_vendorinfo_workend"/>
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$('.datetimepicker-db_vendorinfo_workend').datetimepicker({'timeZone': '<?php echo $timezone; ?>', 'sideBySide':true, 'format':'YYYY-MM-DD HH:mm:ss', 'allowInputToggle': true });
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
<input type="hidden" name="isvendor" id="isvendor" value="<?php echo $isvendor; ?>" />
|
||||
<input type="hidden" name="siteid" id="siteid" value="<?php echo $siteid; ?>" />
|
||||
<button type="submit" id="saveBtn" class="btn btn-lg btn-success" name="signin"><?php echo $transLang['NEXT']; ?></button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<!-- END VENDOR CONTENT -->
|
||||
<?php }; ?>
|
||||
<?php } else { ?>
|
||||
<!-- START ERROR -->
|
||||
<div class="container">
|
||||
<div class="row row-cols-1">
|
||||
<div class="col d-grid gap-2">
|
||||
<h2><?php echo $transLang['NOSIGNIN']; ?></h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- END ERROR -->
|
||||
<?php }; ?>
|
||||
|
||||
<?php }; require_once("inc/footer.inc.php"); ?>
|
||||
|
||||
Reference in New Issue
Block a user