Ejemplo n.º 1
0
/**************************************************START OF PREVIOUS REVIEW ***************/
$html='';


$meangrade=0;
//get student enrolled courses

//checking if the user is a student,then getting enrolled courses
if(user_has_role_assignment($USER->id, 5)){

    $enrolledcourses =enrol_get_users_courses($USER->id);
    $no_courses=count($enrolledcourses);

    $totalgrade=0;
    $total_watchlisted=getAllWatchlistCountByUser($USER->id);

    //var_dump($enrolledcourses);
    foreach($enrolledcourses as $key => $value){
        if(is_object($value)){
            $studentenrolledcourses[$value->id]=$value->fullname;
            $c_grade = grade_get_course_grades($value->id, $USER->id);
//var_dump($resultkrb);
            $grd = $c_grade->grades[$USER->id];
            $grd=$grd->grade;
            $totalgrade=$totalgrade+$grd;
//Watchlist
//$watchlist=getStatus($USER->id,$value->id);
//$total_watchlisted=$total_watchlisted+$watchlist;
        }
    }
Ejemplo n.º 2
0
                </tbody>
            </table>
        </div>
        <?php

        //var_dump($student);
        ?>
        <div class="prof">
            <div class="profile">
                <h3 style="text-align:center;"><?php echo ucfirst(fullname($student));?> Profile</h3>
                <div class="rollno" style="width:68%;float: left;">
                   <!-- <p> Name : <b><?php echo ucfirst($student->firstname);?></b></p>-->
                    <p>Roll Number : <b style="text-transform:Uppercase;"><?php echo $student->profile['rollno'];?></b> </p>

                    <p>Eamcet Rank : <b style="text-transform:Uppercase;"><?php echo $student->profile['eamcetrank'];?></b> </p>
                    <p>Watchlisted : <b style="text-transform:Uppercase;"><?php echo getAllWatchlistCountByUser($id)?></b> Times</p>
                    <p>Email : <?php echo $student->email;?> </p>
                    <p>Phone No : <b style="text-transform:Uppercase;"><?php echo $student->phone1;?></b> </p>

                </div>
                <div class="details" style="width:32%;float: left;">
                    <div class="propic">
                        <img src="<?php echo $CFG->wwwroot; ?>/user/pix.php/<?php echo $id; ?>/f1.jpg " >
                    </div>
                    <p>Grade : <b><?php echo round($tgrade/$coursecount,2) ?></b></p>
                </div>

            </div>
        </div>
	 <div class="topic" id="creport" style="padding: 0px 0px;min-height:250px;">