Esempio n. 1
0
 function showRangeList($range_id) {
     $count = 0;
     require_once $GLOBALS['RELATIVE_PATH_RESOURCES']."/lib/ResourcesOpenObjectGroups.class.php";
     foreach(ResourcesOpenObjectGroups::GetInstance($range_id)->getAllResources() as $resource_id){
         $this->showListObject($resource_id);
         ++$count;
     }
     return $count;
 }
Esempio n. 2
0
            <table width="100%" cellspacing="0" cellpadding="0" border="0">
            <tr>
                <td valign ="top">
                <? if (isset($_SESSION['resources_data']['actual_room_group']))
                    $ViewSchedules->showScheduleGraphical(Request::option('print_view'));
                } else {
                    $msg->displayMsg(25);
                }?>
                </td>
            </tr>
        </table>
<?
}

if ($view == "openobject_group_schedule") {
    $resources_groups = ResourcesOpenObjectGroups::GetInstance($SessSemName[1]);
    if(!$resources_groups->isGroup($_SESSION['resources_data']["actual_room_group"])){
        $_SESSION['resources_data']["actual_room_group"] = 0;
    }

    if ($resources_groups->getGroupCount($_SESSION['resources_data']["actual_room_group"])) {
        require_once $RELATIVE_PATH_RESOURCES."/views/ShowGroupSchedulesDaily.class.php";
        $ViewSchedules = new ShowGroupSchedulesDaily($_SESSION['resources_data']['actual_room_group'], $_SESSION['resources_data']["schedule_start_time"],$resources_groups);
        $ViewSchedules->setUsedView($view);
        $ViewSchedules->navigator(Request::option('print_view'));
        ?>                      </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>