EVOLUTION-NINJA
Edit File: vendor_home.php
<?php $this->load->view('includes/vendor_header');?> <!-- <section class="mid_work_one"> <div class="container-fluid"> <h4 class="info_text">Welcome, <?php echo $this->session->userdata('first_name'); ?></h4> <hr style="margin-top: 0px;margin-bottom: 0px;border-top: 2px solid #a19d9d;"> <br> <div class="row mid_container"> <form class="form-horizontal"> <div class="row"> <div class="col-sm-0 col-md-1"></div> <div class="col-sm-12 col-md-10"> <div class="col-sm-8"> <h4>Tasks</h4> <div class="task_div1"> <?php if($profile){ if($profile->c_name==''){ ?> <p>Update Profile Before <?php echo date('d-m-Y',strtotime($profile->coordinate_vendor)); ?></p> <?php } }?> </div> </div> <div class="col-sm-4"> <h4>Contact Information</h4> <div class="task_div2"> <p> #17, 1st Floor,<br>Buddha Vihara Road,<br> Cox Town,<br> Bengaluru-560005 </p> <p> <i class="fa fa-phone"></i> +91 1234567890 </p> <p> <i class="fa fa-envelope"></i> info@intiprocure.com </p> </div> </div> </div> <div class="col-sm-0 col-md-1"></div> </div> <div class="col-sm-12" style="padding-top: 20px;"> <table class="table welcome_table"> <thead> <tr> <th>Sl No.</th> <th>Event Name</th> <th>Company</th> <th>Date of Bidding</th> <th>Bidding Time</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach($com as $key=>$value){ ?> <tr> <td><?php echo $key+1; ?></td> <td><?php echo $value['bidding_title']; ?></td> <td><?php echo $value['company_name']; ?></td> <td><?php echo date('d-m-Y',strtotime($value['bidding_date'])); ?></td> <td><?php echo $value['bidding_time']; ?></td> <td><a href="<?php echo base_url('/vendor-event'); ?>/<?php echo $value['bidding_id']; ?>">Bid</a></td> </tr> <?php } ?> </tbody> </table> </div> </form> </div> <br> </div> </section> </body> </html> --> <section class="mid_work_one"> <div class="container"> <?php if(empty($company)){ ?> <h4 class="profile_update">Please Update Your Profile</h4> <?php } ?> <!-- <div class="row mid_container"> <?php if($user->login_count=='0'){ ?> <h4 style="color:red;text-align: center;">Update your profile</h4> <?php } ?> <form class="form-horizontal"> <h4 class="info_text">Bidding Events</h4> <hr style="margin-top: 0px;margin-bottom: 0px;border-top: 2px solid #a19d9d;"> <br> <div class="row"> <div class="col-sm-8"> <table class="table prio_table" style="margin-bottom:0 !important;"> <thead> <tr> <th>Sl No.</th> <th>Event Name</th> <th>Company</th> <th>Date</th> <th>Time</th> </tr> </thead> <tbody> <?php foreach($bidding as $key => $value) { ?> <tr> <td><?php echo $key+1;?></td> <td><?php echo $value->bidding_title;?></td> <td><?php echo $value->company_name;?></td> <td><?php echo date('d-m-Y',strtotime($value->final_bidding_date)); ?></td> <td><?php echo $value->bidding_time; ?></td> </tr> <?php } ?> </tbody> </table> </div> <div class="col-sm-4"> <h4 style="background:#182155;color:#fff;text-align:center;padding:8px 0px;border-top-left-radius:5px;border-top-right-radius:5px;margin-bottom:0px;margin-top:0px;">Contact Information</h4> <div class="task_div2"> <p> #17, 1st Floor,<br>Buddha Vihara Road,<br> Cox Town,<br> Bengaluru-560005 </p> <p> <i class="fa fa-phone"></i> +91 1234567890 </p> <p> <i class="fa fa-envelope"></i> info@intiprocure.com </p> </div> </div> </div> --><!--row 1 end--> <!-- <div class="row"> <div class="col-sm-8 "> <div class="priority_div"> <table class="table" id="priority_table" style="margin-bottom:0px !important;"> <thead> <tr> <th>Priority</th> <th>Start Date</th> <th>Due Date</th> </tr> </thead> <tbody> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> <tr> <td></td> <td></td> <td></td> </tr> </tbody> </table> </div> </div> </div><!--row 3 end--> <!-- <br> <div class="col-sm-8"> <h4 class="info_text">Procurement Events</h4> <table class="table prio_table"> <thead> <tr> <th>Sl No.</th> <th>Event Name</th> <th>Date</th> <th>Time</th> <th>No. of Participants</th> <th>Next Due Task</th> <th>Action</th> </tr> </thead> <tbody> <?php foreach($bid as $key => $value) { ?> <tr> <td><?php echo $key+1; ?></td> <td><?php echo $value['bidding_title']; ?></td> <td><?php echo date('d-m-Y',strtotime($value['final_bidding_date'])); ?></td> <td><?php echo $value['bidding_time']; ?></td> <td><?php echo $value['vendor']; ?></td> <td><?php echo $value['next_due_task']; ?></td> <td><a style="background: #f39c12;padding: 5px 10px;color: #fff;" href="<?php echo base_url('bidding-event'); ?>/<?php echo $value['bidding_id']; ?>">Bid</a></td> </tr> <?php } ?> </tbody> </table> </div> </form> </div> <br> --> <div class="row"> <div class="col-sm-12"> <div class="wlc_bg" style="font-size: 19px !important;padding: 9px !important;"> Welcome <?php echo $user->first_name; ?> <?php echo $user->last_name; ?>! </div> </div> </div> <div class="row"> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-aqua"> <div class="inner"> <h3><?php echo $total_bid; ?></h3> <p>Total Biddings</p> </div> <div class="icon"> <i class="fa fa-user" aria-hidden="true"></i> </div> <a href="<?php echo base_url('/total-bidding-list'); ?>" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> </div> </div> <!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-green"> <div class="inner"> <h3><?php echo $completed_bid; ?><sup style="font-size: 20px"></sup></h3> <p>Completed Biddings</p> </div> <div class="icon"> <i class="fa fa-signal" aria-hidden="true"></i> </div> <a href="<?php echo base_url('/completed-bidding-list'); ?>" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> </div> </div> <!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-yellow"> <div class="inner"> <h3><?php echo $upcoming_bid; ?></h3> <p>Upcoming Bidding</p> </div> <div class="icon"> <i class="fa fa-university" aria-hidden="true"></i> </div> <a href="<?php echo base_url('/upcoming-bidding-list'); ?>" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> </div> </div> <!-- ./col --> <div class="col-lg-3 col-xs-6"> <!-- small box --> <div class="small-box bg-red"> <div class="inner"> <h3><?php echo $todays_bid; ?></h3> <p>Todays Bidding</p> </div> <div class="icon"> <i class="fa fa-list" aria-hidden="true"></i> </div> <a href="<?php echo base_url('/todays-bidding-list'); ?>" class="small-box-footer">More info <i class="fa fa-arrow-circle-right"></i></a> </div> </div> <!-- ./col --> </div> <div class="row"> <div class="col-sm-8"> <h4 class="info_text">Your Bidding</h4> <div class="table-responsive"> <table class="table prio_table" style="margin-bottom:0 !important;"> <thead> <tr> <th>#</th> <th>Event Name</th> <th>Company Name</th> <th>Date</th> <th>Time</th> <!-- <th>Participants</th> --> <th>Action</th> </tr> </thead> <tbody> <?php foreach($com as $key=>$value){ ?> <tr> <td><?php echo $key+1; ?></td> <td><?php echo $value['bidding_title']; ?></td> <td><?php echo $value['company_name']; ?></td> <td><?php echo date('d-m-Y',strtotime($value['bidding_date'])); ?></td> <td><?php echo $value['bidding_time']; ?></td> <!-- <td><?php echo $value['vendor']; ?></td> --> <td><a href="<?php echo base_url('/vendor-item-description'); ?>/<?php echo $value['bidding_id']; ?>" class="btn btn-success btn-xs" role="button">View</a> <a href="<?php echo base_url('/vendor-event'); ?>/<?php echo $value['bidding_id']; ?>" class="btn btn-warning btn-xs" role="button">BID</a></td> </tr> <?php } ?> </tbody> </table> </div> </div> <div class="col-sm-4"> <h4 style="background:#182155;color:#fff;text-align:center;padding:8px 0px;border-top-left-radius:5px;border-top-right-radius:5px;margin-bottom:0px;margin-top:0px;">Contact Information</h4> <div class="task_div2"> <p><strong>Intiprocure Private Limited</strong></p> <p> #390, 2nd Cross,<br>Lakshmi Devi Nagar,<br>Bangalore - 560096<br>India. </p> <p> www.intiprocure.com<br>Phone: +91 8050023650<br>Email: intiprocurepvtltd@gmail.com<br>Email: intiprocure@intiprocure.com </p> </div> <a href="#" class="btn btn-block btn-dark btn-sm change_password" role="button" data-toggle="modal" data-target="#myModal">Change Password</a></td> </div> <!-- Modal --> <div id="myModal" class="modal fade" role="dialog"> <div class="modal-dialog"> <!-- Modal content--> <div class="modal-content"> <div class="modal-header"> <button type="button" class="close" data-dismiss="modal">×</button> <h4 class="modal-title">Change Password</h4> </div> <div class="modal-body"> <div class="form-group"> <label for="usr">Email:</label> <input type="text" class="form-control" id="change_pass_usr" value="<?php echo $user->email; ?>" readonly="readonly"> </div> <div class="form-group"> <label for="pwd">Enter Current Password:</label> <input type="password" class="form-control old_pass" placeholder="Enter Current Password" id="pwddd"> <p style="display: none;color: red;" class="old_p">Entered old password is wrong</p> </div> <div class="form-group"> <label for="pwd">Password:</label> <input type="password" class="form-control" id="pwd"> </div> <div class="form-group"> <label for="pwd">Confirm Password:</label> <input type="password" class="form-control" id="cnf_pwd"> </div> </div> <div class="modal-footer"> <button type="button" onclick="change_password()" class="btn btn-default ch_btn">Submit</button> <button type="button" class="btn btn-default" data-dismiss="modal">Close</button> </div> </div> </div> </div> </div> </div> </section> </body> </html> <script> $('.old_pass').focusout(function(e){ e.preventDefault(); var old_pass=$(this).val(); $.ajax({ type : 'post', url : '<?php echo site_url("welcome/check_password")?>', data : {'old_pass':old_pass}, success:function(response){ response=jQuery.parseJSON(response); if(response.result=='1'){ $('.old_p').hide(); $(".ch_btn").removeAttr("disabled", "disabled"); }else{ $('.old_p').show(); $(".ch_btn").attr("disabled", "disabled"); } } }); }); function change_password() { var user_name=$('#change_pass_usr').val(); var pwd=$('#pwd').val(); var cnf_pwd=$('#cnf_pwd').val(); if(pwd == cnf_pwd) { $.ajax({ type : 'post', url : '<?php echo base_url("welcome/change_password")?>', data : {'user_name':user_name,'pwd':pwd,'cnf_pwd':cnf_pwd}, success:function(response){ // response=jQuery.parseJSON(response); $('#myModal').modal('toggle'); $('#pwd').val(''); $('#cnf_pwd').val(''); toastr["success"]("Updated Successfully"); } }); } else { toastr["error"]("Password and Confirm Password Not Match..Pleae Enter Correct Password"); } } </script> <style> .profile_update { background-color: #dd4b39 !important; border-radius: 50%; padding: 0.3% 0; text-align: center; color: white; text-transform: uppercase; } </style>