Go to the source code of this file.
Functions | |
setLocator ($a_obj_id, $a_path, $a_user_id, $a_txt_prefix) | |
formSelect ($selected, $varname, $options, $multiple=false) | |
Builds a select form field with options and shows the selected option first. | |
assignMailToPost ($a_mail_data) |
assignMailToPost | ( | $ | a_mail_data | ) |
formSelect | ( | $ | selected, | |
$ | varname, | |||
$ | options, | |||
$ | multiple = false | |||
) |
Builds a select form field with options and shows the selected option first.
string | value to be selected | |
string | variable name in formular | |
array | array with $options (key = lang_key, value = long name) | |
boolean |
Definition at line 130 of file inc.mail.php.
Referenced by ilMDEditorGUI::__buildDaysSelect(), ilObjUserGUI::__buildFilterSelect(), ilObjRoleFolderGUI::__buildFilterSelect(), ilObjCategoryGUI::__buildFilterSelect(), ilMDEditorGUI::__buildMonthsSelect(), ilPermissionGUI::__buildRoleFilterSelect(), ilObjectGUI::__buildRoleFilterSelect(), ilRegistrationSettingsGUI::__buildRoleSelection(), ilObjUserFolderGUI::__buildUserFilterSelect(), ilSearchresultGUI::__getActions(), ilSearchAdministrationGUI::__getActions(), ilObjChatGUI::__getColorSelect(), ilObjCourseGUI::__getDateSelect(), ilObjUserGUI::__getDateSelect(), ilObjUserFolderGUI::__getDateSelect(), ilObjExerciseGUI::__getDateSelect(), ilAdvancedSearchGUI::__getFilterSelect(), ilAdvancedSearchGUI::__getFolderSelect(), ilSearchGUI::__getFolderSelect(), ilObjChatServerGUI::__getLogLevelSelect(), ilObjChatServerGUI::__getStatusSelect(), ilObjChatGUI::__showAdminAddRoomSelect(), ilObjChatGUI::__showAdminRoomSelect(), ilSearchAdministrationGUI::__showHeader(), ilPaymentObjectGUI::__showPayMethodSelector(), ilPaymentObjectGUI::__showStatusSelector(), ilPaymentObjectGUI::__showVendorSelector(), ilMDUtilSelect::_getBrowserSelect(), ilMDUtilSelect::_getContextSelect(), ilMDUtilSelect::_getCopyrightAndOtherRestrictionsSelect(), ilMDUtilSelect::_getCostsSelect(), ilMDUtilSelect::_getDifficultySelect(), ilMDUtilSelect::_getDurationSelect(), ilMDUtilSelect::_getFormatSelect(), ilMDUtilSelect::_getIntendedEndUserRoleSelect(), ilMDUtilSelect::_getInteractivityLevelSelect(), ilMDUtilSelect::_getInteractivityTypeSelect(), ilMDUtilSelect::_getLanguageSelect(), ilMDUtilSelect::_getLearningResourceTypeSelect(), ilMDUtilSelect::_getLocationTypeSelect(), ilMDUtilSelect::_getOperatingSystemSelect(), ilMDUtilSelect::_getPurposeSelect(), ilMDUtilSelect::_getRoleSelect(), ilMDUtilSelect::_getSemanticDensitySelect(), ilMDUtilSelect::_getStatusSelect(), ilMDUtilSelect::_getStructureSelect(), ilMDUtilSelect::_getTypicalAgeRangeSelect(), ilMDUtilSelect::_getTypicalLearningTimeSelect(), ilCourseContentInterface::cciGetDateSelect(), ilObjiLincCourseGUI::changeMemberObject(), ilObjContentObjectGUI::chapters(), ilObjiLincClassroomGUI::create(), ilGlossaryTermGUI::create(), ilObjGlossaryGUI::createObject(), ilObjUserGUI::createObject(), ilObjStyleSheetGUI::createObject(), ilObjGroupGUI::createObject(), ilObjiLincClassroomGUI::displayEditForm(), ilPCTableGUI::edit(), ilPCParagraphGUI::edit(), ilPCListGUI::edit(), ilPCFileListGUI::edit(), ilObjAuthSettingsGUI::editCASObject(), ilObjMediaObjectGUI::editMapAreasObject(), ilObjCourseGUI::editMemberObject(), ilObjTypeDefinitionGUI::editObject(), ilObjStyleSheetGUI::editObject(), ilObjContentObjectGUI::editPublicSection(), ilObjAuthSettingsGUI::editSOAPObject(), ilObjStyleSheetGUI::editTagStyleObject(), ilGlossaryTermGUI::editTerm(), ilFeedbackGUI::getDateSelect(), ilObjUserFolderGUI::importUserRoleAssignmentObject(), ilPCTableGUI::insert(), ilPCParagraphGUI::insert(), ilPCListGUI::insert(), ilPCFileListGUI::insert(), ilObjMediaPoolGUI::listMedia(), ilObjGlossaryGUI::listTerms(), ilObjContentObjectGUI::pages(), ilSearchresultGUI::prepareOutput(), ilObjSCORMLearningModuleGUI::properties(), ilObjGlossaryGUI::properties(), ilObjContentObjectGUI::properties(), ilPCSourcecodeGUI::setTemplateText(), ilObjContentObjectGUI::showEntrySelector(), ilLMObjectGUI::showPossibleSubObjects(), ilObjUserFolderGUI::showPossibleSubObjects(), ilObjRoleFolderGUI::showPossibleSubObjects(), ilObjectGUI::showPossibleSubObjects(), ilContainerGUI::showPossibleSubObjects(), ilBookmarkAdministrationGUI::showPossibleSubObjects(), ilPaymentTrusteeGUI::showTrustees(), ilStructureObjectGUI::subchap(), and ilStructureObjectGUI::view().
{ global $lng; $multiple ? $multiple = " multiple=\"multiple\"" : ""; $str = "<select name=\"".$varname ."\"".$multiple.">\n"; foreach ($options as $key => $val) { $str .= " <option value=\"".$val."\""; if ($selected == $key) { $str .= " selected=\"selected\""; } $str .= ">".$val."</option>\n"; } $str .= "</select>\n"; return $str; }
setLocator | ( | $ | a_obj_id, | |
$ | a_path, | |||
$ | a_user_id, | |||
$ | a_txt_prefix | |||
) |
Definition at line 25 of file inc.mail.php.
References $_SESSION, $key, $lng, $mbox, $mtree, $row, $tpl, and ilFrameTargetInfo::_getFrame().
{ global $lng,$tpl,$ilias_locator, $ilMainMenu; $ilMainMenu->setActive("mail"); // IF THERE IS NO OBJ_ID GIVEN GET THE ID OF MAIL ROOT NODE if(!$a_obj_id) { include_once "classes/class.ilMailbox.php"; $mbox = new ilMailBox($_SESSION["AccountId"]); $a_obj_id = $mbox->getInboxFolder(); } return; $tpl->addBlockFile("LOCATOR", "locator", "tpl.locator.html"); $tpl->setVariable("TXT_LOCATOR",$lng->txt("locator")); $mtree = new ilTree($a_user_id); $mtree->setTableNames('mail_tree','mail_obj_data'); $path_full = $mtree->getPathFull($a_obj_id,$mtree->readRootId()); // ### AA 03.11.10 added new locator GUI class ### $i = 1; $tpl->touchBlock("locator_separator"); $tpl->touchBlock("locator_item"); if($a_path == 'mail.php') { // Folder $tpl->touchBlock("locator_separator"); $tpl->setCurrentBlock("locator_item"); $tpl->setVariable("ITEM", $lng->txt("folder")); $tpl->setVariable("LINK_ITEM", "mail.php?mobj_id=".$a_obj_id); $tpl->parseCurrentBlock(); // ### AA 03.11.10 added new locator GUI class ### // navigate locator //$ilias_locator->navigate($i++,$lng->txt("mail_mails_of"),"mail.php", // ilFrameTargetInfo::_getFrame("MainContent")); unset($path_full[0]); foreach ($path_full as $key => $row) { if($row["type"] != 'user_folder') { $row["title"] = $lng->txt("mail_".$row["title"]); } if ($key < count($path_full)) { $tpl->touchBlock("locator_separator"); } $tpl->setCurrentBlock("locator_item"); $tpl->setVariable("ITEM", $row["title"]); // TODO: SCRIPT NAME HAS TO BE VARIABLE!!! $tpl->setVariable("LINK_ITEM", "mail.php?mobj_id=".$row["child"]); $tpl->parseCurrentBlock(); // ### AA 03.11.10 added new locator GUI class ### // navigate locator $ilias_locator->navigate($i++,$row["title"],"mail.php?mobj_id=".$row["child"], ilFrameTargetInfo::_getFrame("MainContent")); } $tpl->setCurrentBlock("locator"); } switch($a_path) { case 'mail_new.php': case 'mail_attachment.php': case 'mail_search.php': $tpl->setCurrentBlock("locator_item"); $tpl->setVariable("ITEM", $lng->txt("mail_compose")); $tpl->setVariable("LINK_ITEM", "mail_new.php?mobj_id=$a_obj_id"); $tpl->parseCurrentBlock(); break; case "mail_addressbook.php": $tpl->setCurrentBlock("locator_item"); $tpl->setVariable("ITEM", $lng->txt("mail_addressbook")); $tpl->setVariable("LINK_ITEM", "mail_addressbook.php?mobj_id=$a_obj_id"); $tpl->parseCurrentBlock(); break; case "mail_options.php": $tpl->setCurrentBlock("locator_item"); $tpl->setVariable("ITEM", $lng->txt("mail_options_of")); $tpl->setVariable("LINK_ITEM", "mail_options.php?mobj_id=$a_obj_id"); $tpl->parseCurrentBlock(); break; default: break; } $tpl->setVariable("TXT_PATH",$a_txt_prefix); $tpl->parseCurrentBlock(); }