Esempio n. 1
0
foreach ($sections as $section) {
    $counter++;
    $filename = $counter;
    echo '<div class="span12"></div>';
    echo '  <div class="span12 thebox">';
    echo '      <p class="ybname2">' . $section->name . '</p>';
    file_put_contents($path . "images/" . $filename . ".jpg", base64_decode($section->picture));
    echo '  <img class="img-polaroid" src="http://skoolyf.kellyescape.com/' . $path . 'images/' . $filename . '.jpg" />';
    echo '  </div>';
    echo '  <div class="span12 thebox">';
    echo '      <p class="ybname2">Adviser Message</p>';
    echo '      <p class="advisermessage">';
    echo '        ' . $section->advisermessage . '';
    echo '      </p>';
    echo '  </div>';
    $sectionusers = SectionUser::getUsersInSection($section->id);
    foreach ($sectionusers as $sectionuser) {
        $counter++;
        $filename = $counter;
        if ($sectionuser->pending == 0 && $sectionuser->enabled == 1) {
            $user = User::get_by_id($sectionuser->userid);
            $achievements = Achievement::get($user->id, "user", $batch->id);
            $clubusers = ClubUser::getClubsImIn($user->id);
            $groupusers = GroupUser::getGroupsImIn($user->id);
            $comments = Comment::get_all_comments($user->id, "user");
            if ($user->pending == 0 && $user->enabled == 1) {
                echo '<div class="span12"></div>';
                echo '  <div class="span12 mygridbox">';
                echo '    <div class="span4">';
                file_put_contents($path . "images/" . $filename . "xx.jpg", base64_decode($user->picture));
                echo '  <img class="img-polaroid img-circle yearbookimage ybimage" src="http://skoolyf.kellyescape.com/' . $path . 'images/' . $filename . 'xx.jpg" />';
Esempio n. 2
0
require_once "header.php";
$pathinfo = pathinfo($_SERVER["PHP_SELF"]);
$basename = $pathinfo["basename"];
$currentFile = str_replace(".php", "", $basename);
$sound = isset($_GET['positive']) ? "positive" : "";
$sound = isset($_GET['negative']) ? "negative" : $sound;
$batchsInSchool = BatchUser::getBatchsInSchool(CSNTRID);
$usersinbatch = array();
$batchsIds = array();
if (count($batchsInSchool) > 0) {
    foreach ($batchsInSchool as $batchuser) {
        array_push($batchsIds, $batchuser->batchid);
    }
}
if (isset($_GET['sectionid'])) {
    $theusers = SectionUser::getUsersInSection($_GET['sectionid']);
} else {
    if (isset($_GET['batchid'])) {
        $theusers = BatchUser::getUsersInBatch($_GET['batchid']);
    } else {
        if (isset($_GET['schoolid'])) {
            $theusers = SchoolUser::getUsersInSchool($_GET['schoolid']);
        } else {
            $theusers = SchoolUser::getUsersInSchool(CSNTRID);
        }
    }
}
?>

<div class="container-fixed" >
  <div class="span12 offset1">