コード例 #1
0
 /**
  * Display the form.
  */
 function display()
 {
     $templateMgr =& TemplateManager::getManager();
     $schedConf =& Request::getSchedConf();
     $templateMgr->assign('specialEventId', $this->specialEventId);
     $templateMgr->assign('helpTopicId', 'conference.currentConferences.specialEvents');
     import('manager.form.TimelineForm');
     list($earliestDate, $latestDate) = TimelineForm::getOutsideDates($schedConf);
     $templateMgr->assign('firstYear', strftime('%Y', $earliestDate));
     $templateMgr->assign('lastYear', strftime('%Y', $latestDate));
     // Get a good default start time
     import('manager.form.scheduler.ScheduleForm');
     $defaultStartTime = ScheduleForm::getDefaultStartTime();
     $templateMgr->assign('defaultStartTime', $defaultStartTime);
     parent::display();
 }
コード例 #2
0
 /**
  * Display the form
  */
 function display()
 {
     $templateMgr =& TemplateManager::getManager();
     import('mail.MailTemplate');
     $mail = new MailTemplate('SUBMISSION_ACK');
     if ($mail->isEnabled()) {
         $templateMgr->assign('submissionAckEnabled', true);
     }
     if ($this->_data['reviewDeadlineType'] == REVIEW_DEADLINE_TYPE_ABSOLUTE) {
         $templateMgr->assign('absoluteReviewDate', $this->_data['numWeeksPerReviewAbsolute']);
     }
     if (Config::getVar('general', 'scheduled_tasks')) {
         $templateMgr->assign('scheduledTasksEnabled', true);
     }
     import('manager.form.TimelineForm');
     $schedConf =& Request::getSchedConf();
     list($earliestDate, $latestDate) = TimelineForm::getOutsideDates($schedConf);
     $templateMgr->assign('firstYear', strftime('%Y', $earliestDate));
     $templateMgr->assign('lastYear', strftime('%Y', $latestDate));
     parent::display();
 }
コード例 #3
0
ファイル: ScheduleForm.inc.php プロジェクト: sedici/ocs
 /**
  * Display the form.
  */
 function display()
 {
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('helpTopicId', 'conference.currentConferences.buildings');
     $schedConf =& Request::getSchedConf();
     import('manager.form.TimelineForm');
     list($earliestDate, $latestDate) = TimelineForm::getOutsideDates($schedConf);
     $templateMgr->assign('firstYear', strftime('%Y', $earliestDate));
     $templateMgr->assign('lastYear', strftime('%Y', $latestDate));
     // Sort the data.
     $sort = Request::getUserVar('sort');
     $sortFuncMap = array('author' => array(&$this, 'authorSort'), 'title' => array(&$this, 'titleSort'), 'track' => array(&$this, 'trackSort'), 'startTime' => array(&$this, 'startTimeSort'), 'room' => array(&$this, 'roomSort'));
     if ($sort && isset($sortFuncMap[$sort])) {
         // this function may generate the E_STRICT warning "usort() [function.usort]:
         // Array was modified by the user comparison function In file". This is actually
         // a generic error for "an error was generated in the callback function", which
         // will be a "Non-static method cannot be called statically" error. This is a
         // benign warning; see http://www.php.net/manual/en/language.oop5.static.php
         usort($this->_data['publishedPapers'], $sortFuncMap[$sort]);
     }
     $defaultStartTime = $this->getDefaultStartTime();
     $templateMgr->assign('defaultStartTime', $defaultStartTime);
     $buildingsAndRooms = array();
     $buildingDao =& DAORegistry::getDAO('BuildingDAO');
     $roomDao =& DAORegistry::getDAO('RoomDAO');
     $schedConf =& Request::getSchedConf();
     $buildings =& $buildingDao->getBuildingsBySchedConfId($schedConf->getId());
     while ($building =& $buildings->next()) {
         $buildingId = $building->getId();
         $rooms =& $roomDao->getRoomsByBuildingId($buildingId);
         $buildingsAndRooms[$buildingId] = array('building' => &$building);
         while ($room =& $rooms->next()) {
             $roomId = $room->getId();
             $buildingsAndRooms[$buildingId]['rooms'][$roomId] =& $room;
             unset($room);
         }
         unset($rooms);
         unset($building);
     }
     $templateMgr->assign_by_ref('buildingsAndRooms', $buildingsAndRooms);
     $timeBlockDao =& DAORegistry::getDAO('TimeBlockDAO');
     $timeBlocks =& $timeBlockDao->getTimeBlocksBySchedConfId($schedConf->getId());
     $timeBlocks =& $timeBlocks->toArray();
     $templateMgr->assign_by_ref('timeBlocks', $timeBlocks);
     parent::display();
 }
コード例 #4
0
ファイル: ScheduleForm.inc.php プロジェクト: jalperin/ocs
 /**
  * Display the form.
  */
 function display()
 {
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('helpTopicId', 'conference.currentConferences.buildings');
     $schedConf =& Request::getSchedConf();
     import('manager.form.TimelineForm');
     list($earliestDate, $latestDate) = TimelineForm::getOutsideDates($schedConf);
     $templateMgr->assign('firstYear', strftime('%Y', $earliestDate));
     $templateMgr->assign('lastYear', strftime('%Y', $latestDate));
     // Sort the data.
     $sort = Request::getUserVar('sort');
     $sortFuncMap = array('author' => array(&$this, 'authorSort'), 'title' => array(&$this, 'titleSort'), 'track' => array(&$this, 'trackSort'), 'startTime' => array(&$this, 'startTimeSort'), 'room' => array(&$this, 'roomSort'));
     if ($sort && isset($sortFuncMap[$sort])) {
         usort($this->_data['publishedPapers'], $sortFuncMap[$sort]);
     }
     $defaultStartTime = $this->getDefaultStartTime();
     $templateMgr->assign('defaultStartTime', $defaultStartTime);
     $buildingsAndRooms = array();
     $buildingDao =& DAORegistry::getDAO('BuildingDAO');
     $roomDao =& DAORegistry::getDAO('RoomDAO');
     $schedConf =& Request::getSchedConf();
     $buildings =& $buildingDao->getBuildingsBySchedConfId($schedConf->getId());
     while ($building =& $buildings->next()) {
         $buildingId = $building->getId();
         $rooms =& $roomDao->getRoomsByBuildingId($buildingId);
         $buildingsAndRooms[$buildingId] = array('building' => &$building);
         while ($room =& $rooms->next()) {
             $roomId = $room->getId();
             $buildingsAndRooms[$buildingId]['rooms'][$roomId] =& $room;
             unset($room);
         }
         unset($rooms);
         unset($building);
     }
     $templateMgr->assign_by_ref('buildingsAndRooms', $buildingsAndRooms);
     $timeBlockDao =& DAORegistry::getDAO('TimeBlockDAO');
     $timeBlocks =& $timeBlockDao->getTimeBlocksBySchedConfId($schedConf->getId());
     $timeBlocks =& $timeBlocks->toArray();
     $templateMgr->assign_by_ref('timeBlocks', $timeBlocks);
     parent::display();
 }
コード例 #5
0
ファイル: TimeBlockForm.inc.php プロジェクト: artkuo/ocs
 /**
  * Display the form.
  */
 function display()
 {
     $templateMgr =& TemplateManager::getManager();
     $templateMgr->assign('timeBlockId', $this->timeBlockId);
     $templateMgr->assign('helpTopicId', 'conference.managementPages.timeBlocks');
     $schedConf =& Request::getSchedConf();
     $templateMgr->assign('schedConfStartDate', $schedConf->getSetting('startDate'));
     $templateMgr->assign('schedConfEndDate', $schedConf->getSetting('endDate'));
     import('classes.manager.form.TimelineForm');
     list($earliestDate, $latestDate) = TimelineForm::getOutsideDates($schedConf);
     $templateMgr->assign('firstYear', strftime('%Y', $earliestDate));
     $templateMgr->assign('lastYear', strftime('%Y', $latestDate));
     parent::display();
 }