%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php $logged_in=$this->session->userdata('logged_in'); ?> <div class="main-wapper-inner"> <div class="top-menus"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <h3><i class="fa fa-list fa-x"></i> <?php echo $this->lang->line('generate_report');?> </h3> </div><!-- /input-group --> </div> </div><!-- /.col-lg-6 --> </div> <div class="home-inners"> <div class="container-fluid"> <div class="row"> <div class="col-lg-12"> <form method="post" action="<?php echo site_url('reports/index/');?>"> <div class="form-search form-search-2"> <select name="uid" class="form-control" <?php if($logged_in['su']=='1'){ echo 'readonly'; } ?>> <?php if($logged_in['su']=='1'){ ?> <option value="<?php echo $logged_in['uid'];?>" <?php if($_POST['uid']==$logged_in['uid']){ echo 'selected';} ?>><?php echo $logged_in['first_name'].' '.$logged_in['last_name'];?></option> <?php } else { ?> <option value="">Select User</option> <?php foreach($user_list as $qk => $row){ ?> <option value="<?php echo $row['uid'];?>" <?php if($_POST['uid']==$row['uid']){ echo 'selected';} ?>><?php echo $row['email'];?></option> <?php } } ?> </select> <select name="gid[]" multiple class="form-control" style="height:70px"> <option value="0"><?php echo $this->lang->line('select_group');?></option> <?php foreach($group_list as $gk => $group){ $selected = ''; if(in_array($group['gid'],$_POST['gid'])) { $selected ='selected'; } ?> <option value="<?php echo $group['gid'];?>" <?=$selected?> ><?php echo $group['group_name'];?></option> <?php } ?> </select> <div class="calender-icon"> <input type="text" name="date1" id="date1" class="form-control" value="<?=$_POST["date1"]?>" autocomplete=OFF placeholder="<?php echo $this->lang->line('date_from');?>" required> </div> <script type="text/javascript"> $(function () { $('#date1').datetimepicker({ format: 'DD-MM-YYYY', maxDate: new Date }); }); </script> <div class="calender-icon"> <input type="text" name="date2" id="date2" class="form-control " value="<?=$_POST["date2"]?>" autocomplete=OFF placeholder="<?php echo $this->lang->line('date_to');?>" required></div> <script type="text/javascript"> $(function () { $('#date2').datetimepicker({ format: 'DD-MM-YYYY', maxDate: new Date }); }); </script> <button class="btn btn-default button2" type="submit"><?php echo $this->lang->line('generate_report');?></button> <button class="btn btn-success button2" type="submit" name="download" value="download"> <i class="fa fa-download"></i> Download Report</button> </div><!-- /input-group --> </form> </div><!-- /.col-lg-6 --> </div><!-- /.row --> </div><!-- /.row --> </div> </div> <div class="main-wapper-inner main-wapper-inner1"> <div class="top-menus"> <div class="container-fluid"> <div class="row"> <div class="col-lg-2"> <h3><i class="fa fa-list fa-x"></i> Report List </h3> </div> <?php if(!empty($_POST['gid'])) { ?> <div class="col-lg-8" style="text-align:center;"> <?php $selectedArray = array(); foreach($group_list as $gk => $group){ if(in_array($group['gid'],$_POST['gid'])) { $selectedArray[] = $group['group_name']; } } echo "<span class='alert alert-success alert-new'>Total Records <strong>". count($userRecords). "</strong> for your search for <strong>". implode(', ',$selectedArray). '</strong> & Date from <strong>'.$_POST['date1']. '</strong> to <strong>'.$_POST['date2'].'</strong></span>'; ?> </div> <?php } ?> <div class="col-lg-2"> <?php if(count($result)>0){ ?> <p><input class="form-control" type="text" id="search" name="search" placeholder="Search from the list..." /></p> <?php } ?> </div><!-- /input-group --> </div> </div><!-- /.col-lg-6 --> </div> <div class="home-inners"> <div class="container-fluid"> <?php $logged_in=$this->session->userdata('logged_in'); ?> <div class="row"> <div class="col-md-12"> <?php if($this->session->flashdata('message')){ echo $this->session->flashdata('message'); } ?> <div class="table-responsice"> <table class="table table-bordered"> <tr> <th><?php echo $this->lang->line('s_no');?></th> <th><?php echo $this->lang->line('full_first_name');?></th> <th><?php echo $this->lang->line('group_name');?></th> <?php foreach($quiz_list as $row) { ?> <th><?php echo $row['quiz_name'];?></th> <?php } ?> </tr> <?php if(count($result)==0){ ?> <tr> <td colspan="3"><?php echo $this->lang->line('no_record_found');?></td> </tr> <?php } $k = count($result['full']); $i=1; foreach($userRecords as $key => $val){ ?> <tr class="central-content"> <td> <?php echo $i;?></td> <td><?php echo $val['first_name'];?> <?php echo $val['last_name'];?><br/><?php echo $val['email'];?></td> <td><?php echo $val['group_name'];?></td> <?php foreach($result['other'] as $key=>$pvalarray) { ?> <td><?php echo $pvalarray[$val['uid']]=='' ? '<span style="color:red;">AB</span>' : "<a href='".base_url('result/view_result/'.$pvalarray[$val['uid']]['rid'])."' target='_blank' title='View Score'>".round($pvalarray[$val['uid']]['percentage_obtained'],2)."</a>";?></td> <?php } ?> </tr> <?php $i++; $k--; } ?> </table> </div> </div> </div> <?php if($limit>0) { if(($limit-($this->config->item('number_of_rows')))>=0){ $back=$limit-($this->config->item('number_of_rows')); }else{ $back='0'; } ?> <a href="<?php echo site_url('result/index/'.$back.'/'.$status.'/'.$fquid);?>" class="btn btn-primary button3"><?php echo $this->lang->line('back');?></a> <?php } ?> <?php if(count($result)>=200) { $next=$limit+($this->config->item('number_of_rows')); ?> <a href="<?php echo site_url('result/index/'.$next.'/'.$status.'/'.$fquid);?>" class="btn btn-primary button3"><?php echo $this->lang->line('next');?></a> <?php } ?> </div> </div> </div> <script> $("#fquid").change(function() { this.form.submit(); }); $(document).ready(function() { $('#search').keyup(function(){ // Search text var text = $(this).val().toLowerCase(); // Hide all content class element $('.central-content').hide(); // Search $('.central-content').each(function(){ if($(this).text().toLowerCase().indexOf(""+text+"") != -1 ){ $(this).closest('.central-content').show(); } }); }); }); </script> <link href="//cdn.rawgit.com/Eonasdan/bootstrap-datetimepicker/e8bddc60e73c1ec2475f827be36e1957af72e2ea/build/css/bootstrap-datetimepicker.css" rel="stylesheet"> <script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.js"></script> <script src="//cdn.rawgit.com/Eonasdan/bootstrap-datetimepicker/e8bddc60e73c1ec2475f827be36e1957af72e2ea/src/js/bootstrap-datetimepicker.js"></script>