Exemplo n.º 1
0
echo CSNTRID;
?>
">Groups</a>
                      <ul class="dropdown-menu">
                        <?php 
$objects = Group::get_all_by_schoolid(CSNTRID);
if (count($objects) > 0) {
    foreach ($objects as $theobject) {
        echo '
                             <li class="dropdown-submenu">
                              <a tabindex="-1" href="group.php?id=' . $theobject->id . '">' . $theobject->name . '</a>
                              <ul class="dropdown-menu">
                            ';
        echo '<li><a href="group.php?id=' . $theobject->id . '"><i class="icon-large icon-play"></i> View</a></li>';
        if ($session->is_logged_in()) {
            if (SchoolUser::amIAdmin($session->user_id, $theobject->schoolid) || GroupUser::amIAdmin($session->user_id, $theobject->id) || $user->is_super_admin()) {
                echo '<li><a href="updategroup.php?id=' . $theobject->id . '"><i class="icon-large icon-pencil"></i> Edit</a></li>';
            }
        }
        echo '
                              </ul>
                            </li>';
    }
} else {
    echo '<li class="disabled"><a href="#">no clubs yet</a></li>';
}
?>
                      </ul>
                    </li>
                    <li>
                      <a tabindex="-1" href="students.php?schoolid=<?php 
Exemplo n.º 2
0
          <a class="carousel-control right" href="#myCarousel" data-slide="next">&rsaquo;</a> -->
        </div>
        <!-- /Carousel -->
        <span class="myname"><?php 
echo $group->name;
?>
</span>

        <?php 
if ($session->is_logged_in()) {
    echo '
            <a href="#invitationBox" role="button" class="btn-mini pull-right" data-toggle="modal">
              <i class="icon-large icon-comment"></i> Invite Students
            </a>
          ';
    if ($loggeduser->is_super_admin() || GroupUser::amIAdmin($loggeduser->id, $group->id)) {
        echo '
              <a href="updategroup.php?id=' . $group->id . '" class="btn-mini pull-right">
              <i class="icon-large icon-pencil"></i> Edit
              </a>
            ';
    }
    $loggedschooluser = GroupUser::getUser($session->user_id, $group->id);
    if ($loggedschooluser == null) {
        echo ' 
              <button role="button" class="btn-mini btn-link pull-right" onclick="join(); return false;">
                <i class="icon-large icon-envelope"></i> Join
              </button>
            ';
    } else {
        if ($loggedschooluser != null) {