コード例 #1
0
ファイル: resourcesControl.inc.php プロジェクト: ratbird/hope
    $editSettings=new EditSettings;
    $editSettings->showPermsForms();
}

/*****************************************************************************
Belegungen ausgeben, views: view_schedule, openobject_schedule
/*****************************************************************************/
if ($view == "view_schedule" || $view == "openobject_schedule") {
    require_once ($RELATIVE_PATH_RESOURCES."/views/ShowSchedules.class.php");
    if ($_SESSION['resources_data']["actual_object"] &&
            ResourceObject::isScheduleViewAllowed($_SESSION['resources_data']["actual_object"])) {
        $ViewSchedules=new ShowSchedules($_SESSION['resources_data']["actual_object"]);
        $ViewSchedules->setStartTime($_SESSION['resources_data']["schedule_start_time"]);
        $ViewSchedules->setEndTime($_SESSION['resources_data']["schedule_end_time"]);
        $ViewSchedules->setLengthFactor($_SESSION['resources_data']["schedule_length_factor"]);
        $ViewSchedules->setLengthUnit($_SESSION['resources_data']["schedule_length_unit"]);
        $ViewSchedules->setWeekOffset($_SESSION['resources_data']["schedule_week_offset"]);
        $ViewSchedules->setUsedView($view);

        if (!Request::get('print_view')) {
            $ViewSchedules->navigator();
        }

        ?>                      </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </td>