EVOLUTION-NINJA
Edit File: client_home.php
<?php $this->load->view('includes/client_header');?> <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 $t_vendor; ?></h3> <p>Total Vendors</p> </div> <div class="icon"> <i class="fa fa-user" aria-hidden="true"></i> </div> <a href="<?php echo base_url('/client-vendor-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 $total_procur; ?><sup style="font-size: 20px"></sup></h3> <p>Total Procurements</p> </div> <div class="icon"> <i class="fa fa-signal" aria-hidden="true"></i> </div> <a href="<?php echo base_url('/client-total-procurments'); ?>" 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 $wait_procur; ?></h3> <p>Procurements Due</p> </div> <div class="icon"> <i class="fa fa-university" aria-hidden="true"></i> </div> <a href="<?php echo base_url('/manage-session'); ?>" 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 $bidding_due; ?></h3> <p>Biddings Due</p> </div> <div class="icon"> <i class="fa fa-list" aria-hidden="true"></i> </div> <a href="<?php echo base_url('/client-bidding-due'); ?>" 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 table-responsive"> <h4 class="info_text">Your Biddings</h4> <table class="table prio_table"> <thead> <tr> <th>#</th> <th>Event Name</th> <th>Company</th> <th>Date</th> <th>Time</th> <th>Actions</th> </tr> </thead> <tbody> <!-- <?php// foreach($bidding_new as $key => $value) { ?> <tr> <td><?php // echo $key+1; ?></td> <td><?php //echo $value->bidding_title; ?></td> <td><?php// echo $usres_tab_val[$key]->company_name; ?></td> <?php //if($value->final_bidding_date!=0000-00-00){ ?> <td><?php //echo date('d-m-Y',strtotime($value->final_bidding_date)); ?></td> <?php //}else { ?> <td></td> <?php// } ?> <td><?php// echo $value->bidding_time; ?></td> <td><a href="<?php// echo base_url('/item-description'); ?>/<?php// echo $value->bidding_session_id; ?>" class="btn btn-success btn-xs" role="button">View</a> <a href="<?php //echo base_url('/client-event'); ?>/<?php //echo $value->bidding_session_id; ?>" class="btn btn-warning btn-xs" role="button">BID</a></td> </tr> <?php// } ?> --> <?php foreach($bidding_new as $key => $value) { ?> <tr> <td><?php echo $key+1; ?></td> <td><?php echo $value->bidding_title; ?></td> <td><?php echo $usres_tab_val[$key]->company_name ?? ''; ?></td> <?php if($value->final_bidding_date!=0000-00-00){ ?> <td><?php echo date('d-m-Y',strtotime($value->final_bidding_date)); ?></td> <?php }else { ?> <td></td> <?php } ?> <td><?php echo $value->bidding_time; ?></td> <td><a href="<?php echo base_url('/item-description'); ?>/<?php echo $value->bidding_session_id; ?>" class="btn btn-success btn-xs" role="button">View</a> <a href="<?php echo base_url('/client-event'); ?>/<?php echo $value->bidding_session_id; ?>" class="btn btn-warning btn-xs" role="button">BID</a></td> </tr> <?php } ?> </tbody> </table> <h4 class="info_text">Procurement Events</h4> <table class="table prio_table" style="margin-bottom:0 !important;"> <thead> <tr> <th>#</th> <th>Event Name</th> <th>Date</th> <th>Time</th> <th>Participants</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> <a href="<?php echo base_url('/edit-session'); ?>/<?php echo $value['bidding_id']; ?>" class="btn btn-primary btn-xs" role="button">Manage</a></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><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> <style type="text/css"> .table-responsive { overflow-x: hidden !important; } @media only screen and (min-width:320px) and (max-width:640px) { .table-responsive { overflow-x: auto !important; } } @media only screen and (min-width:641px) and (max-width:991px) { .table-responsive { overflow-x: auto !important; } } @media only screen and (min-width:992px) and (max-width:1258px) { .table-responsive { overflow-x: auto !important; } } </style>