Esempio n. 1
0
 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" />';
             //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>';
Esempio n. 2
0
     $ids = array();
     foreach ($orgbyuser as $item) {
         array_push($ids, $item->batchid);
     }
     $mates = BatchUser::getUsersInMultipleBatchsSearch($ids, $_GET['input']);
 } else {
     if ($filterby == "sectionmates") {
         $orgbyuser = SectionUser::getSectionsImIn($thestudent->id);
         $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']);
             }
         }