HEX
Server: nginx/1.27.1
System: Linux in-4 5.15.0-131-generic #141-Ubuntu SMP Fri Jan 10 21:18:28 UTC 2025 x86_64
User: ilikadirect (1186)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v6964/avoxlive/public_html/application/views/backend/exhibitor/printAttendanceReport.php
<div class="row" align="center">
                    <div class="col-sm-12">
				  	<div class="panel panel-info">

                            <div class="panel-wrapper collapse in" aria-expanded="true">
                            <div class="panel-body">
<div class="printableArea">
        <div align="center">
        <img src="<?php echo base_url();?>uploads/logo.png" width="60px" height="60px" class="img-circle"><br/>
        <span style="text-align:center; font-size:25px"><?php echo $system_name;?></span><br/>
        <span style="text-align:center; font-size:15px"><?php echo $system_address;?></span>
        </div>
        <br>
                                
    <table cellpadding="0" cellspacing="0" border="0" class="table">
            <thead>
                <tr>
                    <td style="text-align: left;">Students<i class="fa fa-down-thin"></i>| Date:</td>
                    <?php
                    $days = date("t",mktime(0,0,0,$month,1,$year)); 
                        for ($i=0; $i < $days; $i++) { 
                           ?>
                            <td style="text-align: center;"><?php echo ($i+1);?></td>   
                           <?php 
                        }
                    ;?>
                </tr>
            </thead>
            <tbody>
            <?php 
                //STUDENTS ATTENDANCE
                $students   =   $this->db->get_where('student' , array('class_id'=>$class_id))->result_array();
                foreach($students as $key => $student)
                {
                    ?>
                <tr class="gradeA">
                    <td align="left"><!--<img src="<?php //echo $this->crud_model->get_image_url('student', $student['student_id']);?>" class="img-circle" width="30px" height="30px">--><?php echo $student['name'];?></td>
                    <?php 
                    for ($i=1; $i <= $days; $i++) {
                    $full_date = $year."-".$month."/".$i;
                    $verify_data  =  array('student_id' => $student['student_id'], 'date' => $full_date);
                    $attendance = $this->db->get_where('attendance' , $verify_data)->row();
                    $status     = $attendance->status;
                    ?>
                            <td style="text-align: center;">
                                <?php if ($status == "0"):?>
                               <h9 style="color:black">U</h9>
                                <?php endif;?>
                                <?php if ($status == "1"):?>
                                <h9 style="color:green">P</h9>
                                <?php endif;?>
								
								<?php if ($status == "2"):?>
                                <h9 style="color:red">A</h9>
                                <?php endif;?>
								
								<?php if ($status == "3"):?>
                                <h9 style="color:grey">L</h9>
                                <?php endif;?>
								
								<?php if ($status == "4"):?>
                                <h9 style="color:yellow">H</h9>
                                <?php endif;?>
								
                            </td>    
                           <?php 
                        }
                    ;?>
                </tr>
                <?php
                }
                ;?>
            </tbody>
        </table>
        <hr>
        <div align="center">
        <strong>KEYS: </strong>
        Present&nbsp;-&nbsp; P &nbsp;&nbsp;
        Absent&nbsp;-&nbsp;A&nbsp;&nbsp;
        Half Day&nbsp;-&nbsp; H&nbsp;&nbsp;
        Late&nbsp;-&nbsp; L&nbsp;&nbsp;
        Undefine&nbsp;-&nbsp;U
        </div>
    </div>

    <br>
    <button id ="print" class="btn btn-info btn-sm btn-rounded btn-block"><i class="fa fa-print"></i> Print</button>

	</div>
	</div>
	</div>
	</div>
	</div>