<?php require_once("config.php"); require_once("header.php"); $obj = new Users; $DB = new DB; $countries = $DB->countryList(); ?> <div class="container-fluid"> <div class="col-md-12 col-sm-12 col-xs-12"> <div class="main-heading"> <h4>Add User</h4> </div> </div> </div> <div class="container-fluid"> <div class="row col-set"> <div class="col-md-12 backcolor_center"> <div class="col-md-6 col-md-offset-3"> <div class="app-block"> <div class="app-form"> <!--<div class="form-header"> <div class="app-brand"><h1>Logo</h1></div> </div>--></br> <form method="POST" id="create_user_form" name="" enctype="multipart/form-data"> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Select User Type</b> </span> <select class="form-control role" name="role" > <option value="user">User</option> <option value="shop">Shop</option> </select> </div> <div class="input-group user_name"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Full name with user</b></span> <input type="text" class="form-control" id="loginfullusername" name="loginfullusername" placeholder="Full Name" aria-describedby="basic-addon1"> </div> <div class="input-group user_name"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Profile Image</b><br>only JPEG</span> <input type="file" class="form-control" id="shopimage" name="shopimage" placeholder="Shop Name" aria-describedby="basic-addon1"> </div> <div class="input-group shop_name"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Full name with shopname</b></span> <input type="text" class="form-control" id="loginshopname" name="loginshopname" placeholder="Shop Name" aria-describedby="basic-addon1"> </div> <div class="input-group shop_name"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Shop Image</b></span> <input type="file" class="form-control" id="shopimage" name="shopimage" placeholder="Shop Name" aria-describedby="basic-addon1"> </div> <!-- <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>User Name</b></span> <input type="text" class="form-control" id="loginusername" name="loginusername" placeholder=" Username" aria-describedby="basic-addon1"> </div> --> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b> Email Add. </b></span> <input type="email" class="form-control" name="loginEmail" id="loginEmail" placeholder="Email Address" aria-describedby="basic-addon1"> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon2"> <b>Password</b></span> <input type="password" class="form-control" name="loginPass" id="loginPass" placeholder="Password" aria-describedby="basic-addon2" min="0" maxlength="4"> </div> <!--<div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Paypal Email</b></span> <input type="text" class="form-control" name="cc_detail" id="cc_detail" placeholder="Paypal Email" aria-describedby="basic-addon1"> </div>--> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Phone</b></span> <input type="text" class="form-control" name="ccode" id="ccode" placeholder="Country code" aria-describedby="basic-addon1"> <input type="text" class="form-control" name="usernumber" id="usernumber" placeholder="Phone" aria-describedby="basic-addon1"> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Address</b></span> <input type="text" class="form-control" name="address" id="address" placeholder="Address" aria-describedby="basic-addon1"> <input type="hidden" id="latitude" name="latitude" value=""> <input type="hidden" id="longitude" name="longitude" value=""> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Zipcode</b></span> <input type="text" class="form-control" name="zipcode" id="zipcode" placeholder="Zip Code" aria-describedby="basic-addon1"> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>City</b></span> <input type="text" class="form-control" name="city" id="city" placeholder="City" aria-describedby="basic-addon1"> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Country</b> </span> <select class="form-control" name="country" id="country" tabindex="10"> <?php foreach($countries as $code=>$country){ ?> <option value="<?php echo $country; ?>"><?php echo $country; ?></option> <?php } ?> </select> </div> <div class="input-group bdate"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Birth Date</b></span> <input type="text" class="form-control" name="birth_date" id="birth_date" placeholder="1999-12-31" aria-describedby="basic-addon1"> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Select Currency</b> </span> <select class="form-control currency" name="currency"> <option value="inr">INR</option> <option value="usd">USD</option> <option value="czk">CZK</option> <option value="eur">EUR</option> <option value="nok">NOK</option> <option value="mad">MAD</option> </select> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Acc Holder Name</b></span> <input type="text" class="form-control" name="accholdername" id="accholdername" placeholder="Acc Holder Name" aria-describedby="basic-addon1"> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Acc Holder Type</b></span> <select class="form-control acc_holder_type" name="acc_holder_type" > <option value="individual">Private</option> <option value="company">Company</option> </select> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>Account Number</b></span> <input type="text" class="form-control" name="accnumber" id="accnumber" placeholder="Account Number" aria-describedby="basic-addon1"> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>User Routing Number</b></span> <input type="text" class="form-control" name="userroutingnumber" id="userroutingnumber" placeholder="User Routing Number" aria-describedby="basic-addon1"> </div> <div class="input-group"> <span class="input-group-addon width_class" id="basic-addon1"> <b>SSN Number</b></span> <input type="text" class="form-control" name="ssnnumber" id="ssnnumber" placeholder="SSN Number" aria-describedby="basic-addon1"> </div> <div class="text-center"> <input type="button" class="btn btn-success btn-submit add_user_super" value="Add User"> </div> </form> </div> </div> </div> </div> </div> </div> <?php require_once("footer.php"); ?> <script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyBqT2jHcRTVKCTv4YBnUjszDNuIBOKYTaM&callback=initialize" async defer></script> <script> //jQuery('.shop_name').hide(); </script> <link rel="stylesheet" href="//code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"> <script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> <script type="text/javascript"> jQuery(document).ready(function(){ jQuery("#birth_date").datepicker(); //Show Hide SSN Number Fields based on country select. (KPS) 12/07/2017 jQuery(document).on("change","select[name='country']", function (e) { e.preventDefault(); var country = jQuery(this).val(); if(country == 'USA'){ jQuery(document).find("input[name='ssnnumber']").parent().removeClass("hidden"); } else { var randomNumber = Math.floor(Math.random() * 999999999); jQuery(document).find("input[name='ssnnumber']").parent().addClass("hidden"); jQuery(document).find("input[name='ssnnumber']").val(randomNumber); } }); }); </script>