Esempio n. 1
0
	</thead>
    
    
    <tbody>
        
        
        
        
        
		<?php 
    $obj_report = new report();
    $result = $u->get_num_reports();
    $i = 1;
    while ($row = mysqli_fetch_array($result)) {
        //	 echo "Report Id : ".$row['report_id']."<br>";
        $obj_report->get_report($row['report_id']);
        $details = $obj_report->get_report_parameters();
        $details = explode(";", $details);
        $report_id = $details[0];
        $report_owner_id = $details[1];
        $report_type = $details[2] == 1 ? "Attendence Report" : "Result";
        $report_name = $details[3];
        $for_year = $details[4];
        $sum = explode("/*+-", $details[5]);
        $report_time = $sum[0];
        $report_details = "Attendance Report";
        if ($report_owner_id == $_SESSION['user_id']) {
            echo '<tr>';
            echo '<td align="justify" ><input type="checkbox" id="report" name ="admin_report" value ="' . $row['report_id'] . '"</td>';
            echo '<td>' . $i . '</td>';
            echo '<td>';