EVOLUTION-NINJA
Edit File: coordinator_dashbaord.php
<?php $this->load->view('includes/coordinator_header');?> <section class="mid_work_one"> <div class="container"> <!-- <div class="row middle_container"> <h3 class="summary_head">Summary</h3> <form class="form-horizontal"> <div class="col-sm-9 col-md-7 col-lg-6"> <div class="form-group"> <label class="control-label col-sm-8">No. of Clients :</label> <div class="col-sm-4"> <input type="text" class="form-control" value="<?php echo $client; ?>"> </div> </div> <div class="form-group"> <label class="control-label col-sm-8">No. of active licences :</label> <div class="col-sm-4"> <input type="text" class="form-control" value="<?php echo $license; ?>"> </div> </div> <div class="form-group"> <label class="control-label col-sm-8">No. of licences due for Renewal :</label> <div class="col-sm-4"> <input type="text" class="form-control" value="<?php echo $renewal; ?>"> </div> </div> <div class="form-group"> <label class="control-label col-sm-8">No. of licences due for Renewal in next month :</label> <div class="col-sm-4"> <input type="text" class="form-control" value="<?php echo $renew_next; ?>"> </div> </div> <div class="form-group"> <label class="control-label col-sm-8">No. of iAdmins :</label> <div class="col-sm-4"> <input type="text" class="form-control" value="<?php echo $iadmin; ?>"> </div> </div> </div> </form> </div> --> <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; ?>! </div> </div> </div> <div class="row"> <div class="col-sm-8 table-responsive"> <h4 class="info_text">Events</h4> <form class="form-horizontal"> <div class="table-responsive"> <table class="table prio_table text-nowrap"> <thead> <tr> <th>#</th> <th>Event Name</th> <th>Company Name</th> <th>Time Limit Per Item</th> <th>Date</th> <th>Time</th> <th>Participants</th> <th>Bidding</th> <!-- <th>Action</th> --> </tr> </thead> <tbody> <?php $y=0; $i=1; foreach($bidding as $r) { foreach($r as $key => $value) { $vendor = $this->db->where('bidding_id', $value->bidding_session_id)->get('vendor_bidding_table')->result(); ?> <tr class="row<?php echo $value->bidding_session_id; ?>"> <td><?php echo $i;?></td> <td><?php echo $value->bidding_title; ?></td> <td><?php echo $bidding_comapny[$y]->company_name; ?></td> <td><?php echo $value->bidding_limit_time; ?> Sec</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><?php echo count($vendor);?></td> <td><a href="<?php echo base_url('/coordiator-bidding-event');?>/<?php echo $value->bidding_session_id; ?>" class="btn btn-success btn-xs" role="button">Start</a></td> <!-- <td><a href="<?php echo base_url('/edit-session'); ?>/<?php echo $value->bidding_session_id; ?>" class="btn btn-primary btn-xs" role="button">Manage</a> <button type="button" class="btn btn-danger btn-xs"><span class="fa fa-trash" onclick="delete_iadmin(<?php echo $value->bidding_session_id;?>);" aria-hidden="true"></span></button> </td> --> </tr> <?php $y=$y+1; $i=$i+1; } } ?> </tbody> </table> </div> </form> </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> 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> <!---<script type="text/javascript"> jQuery(document).ready(function($) { $('.ul_menu li.dropdown').hover(function() { $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeIn(500); }, function() { $(this).find('.dropdown-menu').stop(true, true).delay(200).fadeOut(500); }); }); </script>-->