예제 #1
0
 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" />';
             //echo '      <img class="img-polaroid img-circle yearbookimage ybimage" src="data:image/jpeg;base64, '.$user->picture.'"/>';
             echo '    </div>';
             echo '    <div class="span8">';
             echo '      <p class="ybname">' . $user->get_full_name() . '</p>';
             echo '      <p class="ybmotto">';
             echo '        ' . $user->moto . '';
             echo '      </p>';
             echo '      <p class="ybmotto">';
예제 #2
0
            $ids = array();
            foreach ($orgbyuser as $item) {
                array_push($ids, $item->sectionid);
            }
            $mates = SectionUser::getUsersInMultipleSectionsSearch($ids, $_GET['input']);
        } else {
            if ($filterby == "clubmates") {
                $orgbyuser = ClubUser::getClubsImIn($thestudent->id);
                $ids = array();
                foreach ($orgbyuser as $item) {
                    array_push($ids, $item->clubid);
                }
                $mates = ClubUser::getUsersInMultipleClubsSearch($ids, $_GET['input']);
            } else {
                if ($filterby == "groupmates") {
                    $orgbyuser = GroupUser::getGroupsImIn($thestudent->id);
                    $ids = array();
                    foreach ($orgbyuser as $item) {
                        array_push($ids, $item->groupid);
                    }
                    $mates = GroupUser::getUsersInMultipleGroupsSearch($ids, $_GET['input']);
                }
            }
        }
    }
}
if (count($mates) > 0) {
    foreach ($mates as $mate) {
        $usermate = User::get_by_id($mate->userid);
        if (!$usermate) {
            continue;