本文整理汇总了PHP中ilUtil::infoPanel方法的典型用法代码示例。如果您正苦于以下问题:PHP ilUtil::infoPanel方法的具体用法?PHP ilUtil::infoPanel怎么用?PHP ilUtil::infoPanel使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ilUtil
的用法示例。
在下文中一共展示了ilUtil::infoPanel方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: prepareOutput
protected function prepareOutput()
{
$this->tpl->getStandardTemplate();
$this->tpl->setTitleIcon(ilObject::_getIcon('', '', 'pays'), $this->lng->txt("shop"));
$this->tpl->setTitle($this->lng->txt("shop"));
ilUtil::infoPanel();
}
示例2: prepareOutput
protected function prepareOutput()
{
$this->tpl->getStandardTemplate();
$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pays_cart_b.png"), $this->lng->txt("search"));
$this->tpl->setTitle($this->lng->txt("shop"));
ilUtil::infoPanel();
$this->buildSubTabs();
}
示例3: displayHeader
/**
* display header and locator
*/
function displayHeader()
{
//$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
// $this->lng->txt("personal_desktop"));
// $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
// "");
$this->tpl->setTitle($this->lng->txt("news"));
// display infopanel if something happened
ilUtil::infoPanel();
}
示例4: prepareOutput
function prepareOutput()
{
global $ilLocator, $lng;
$this->tpl->getStandardTemplate();
// $ilLocator->addItem($this->lng->txt('search'),$this->ctrl->getLinkTarget($this));
// $this->tpl->setLocator();
//$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_src_b.gif"),
// $lng->txt("search"));
$this->tpl->setTitleIcon(ilObject::_getIcon("", "big", "src"), "");
$this->tpl->setTitle($lng->txt("search"));
ilUtil::infoPanel();
}
示例5: prepareOutput
/**
* prepare output
*/
protected function prepareOutput()
{
global $ilLocator, $tpl, $ilUser;
$this->tpl->getStandardTemplate();
// administration prepare output
if (strtolower($_GET["baseClass"]) == "iladministrationgui") {
$this->addAdminLocatorItems();
$tpl->setLocator();
// ilUtil::sendInfo();
ilUtil::infoPanel();
$this->setTitleAndDescription();
if ($this->getCreationMode() != true) {
$this->setAdminTabs();
}
return false;
}
// set locator
$this->setLocator();
// catch feedback message
// ilUtil::sendInfo();
ilUtil::infoPanel();
// in creation mode (parent) object and gui object
// do not fit
if ($this->getCreationMode() == true) {
// repository vs. workspace
if ($this->call_by_reference) {
// get gui class of parent and call their title and description method
$obj_type = ilObject::_lookupType($_GET["ref_id"], true);
$class_name = $this->objDefinition->getClassName($obj_type);
$class = strtolower("ilObj" . $class_name . "GUI");
$class_path = $this->ctrl->lookupClassPath($class);
include_once $class_path;
$class_name = $this->ctrl->getClassForClasspath($class_path);
//echo "<br>instantiating parent for title and description";
$this->parent_gui_obj = new $class_name("", $_GET["ref_id"], true, false);
// the next line prevents the header action menu being shown
$this->parent_gui_obj->setCreationMode(true);
$this->parent_gui_obj->setTitleAndDescription();
}
} else {
// set title and description and title icon
$this->setTitleAndDescription();
// set tabs
$this->setTabs();
// BEGIN WebDAV: Display Mount Webfolder icon.
require_once 'Services/WebDAV/classes/class.ilDAVServer.php';
if (ilDAVServer::_isActive() && $ilUser->getId() != ANONYMOUS_USER_ID) {
$this->showMountWebfolderIcon();
}
// END WebDAV: Display Mount Webfolder icon.
// fileupload support
require_once './Services/FileUpload/classes/class.ilFileUploadUtil.php';
if (ilFileUploadUtil::isUploadAllowed($this->ref_id, $this->object->getType())) {
$this->enableDragDropFileUpload();
}
}
return true;
}
示例6: prepareSubGuiOutput
/**
* prepares ilias to get output rendered by sub gui class
*
* @global ilLocator $ilLocator
* @global ilTemplate $tpl
* @global ilObjUser $ilUser
* @return boolean
*/
private function prepareSubGuiOutput()
{
global $ilUser;
$this->tpl->getStandardTemplate();
// set locator
$this->setLocator();
// catch feedback message
ilUtil::infoPanel();
// set title and description and title icon
$this->setTitleAndDescription();
// BEGIN WebDAV: Display Mount Webfolder icon.
require_once 'Services/WebDAV/classes/class.ilDAVServer.php';
if (ilDAVServer::_isActive() && $ilUser->getId() != ANONYMOUS_USER_ID) {
$this->showMountWebfolderIcon();
}
// END WebDAV: Display Mount Webfolder icon.
}
示例7: __prepareOutput
function __prepareOutput()
{
// output objects
$this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
$this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
// output locator
$this->__setLocator();
// output message
if ($this->message) {
ilUtil::sendInfo($this->message);
}
// display infopanel if something happened
ilUtil::infoPanel();
}
示例8: __buildHeader
function __buildHeader()
{
if ($this->getMode() == self::LP_CONTEXT_PERSONAL_DESKTOP) {
$this->tpl->setTitle($this->lng->txt("learning_progress"));
// set locator
/*
$this->tpl->setVariable("TXT_LOCATOR", $this->lng->txt("locator"));
$this->tpl->touchBlock("locator_separator");
$this->tpl->touchBlock("locator_item");
//$this->tpl->setCurrentBlock("locator_item");
//$this->tpl->setVariable("ITEM", $this->lng->txt("personal_desktop"));
//$this->tpl->setVariable("LINK_ITEM",
// $this->ctrl->getLinkTargetByClass("ilpersonaldesktopgui"));
//$this->tpl->parseCurrentBlock();
$this->tpl->setCurrentBlock("locator_item");
$this->tpl->setVariable("ITEM", $this->lng->txt("learning_progress"));
$this->tpl->setVariable("LINK_ITEM",
$this->ctrl->getLinkTargetByClass('illearningprogressgui'));
$this->tpl->parseCurrentBlock();
*/
// display infopanel if something happened
ilUtil::infoPanel();
}
}
示例9: prepareThreadScreen
public function prepareThreadScreen(ilObjForum $a_forum_obj)
{
/**
* @var $tpl ilTemplate
* @var $lng ilLanguage
* @var $ilTabs ilTabsGUI
* @var $ilHelp ilHelpGUI
*/
global $tpl, $lng, $ilTabs, $ilHelp;
$ilHelp->setScreenIdComponent("frm");
$tpl->getStandardTemplate();
ilUtil::sendInfo();
ilUtil::infoPanel();
$tpl->setTitleIcon(ilObject::_getIcon("", "big", "frm"));
$ilTabs->setBackTarget($lng->txt('all_topics'), 'ilias.php?baseClass=ilRepositoryGUI&ref_id=' . $_GET['ref_id']);
// by answer view
$this->ctrl->setParameter($this, 'thr_pk', $this->objCurrentTopic->getId());
$this->ctrl->setParameter($this, 'pos_pk', $this->objCurrentPost->getId());
$this->ctrl->setParameter($this, 'viewmode', ilForumProperties::VIEW_TREE);
$ilTabs->addTarget('sort_by_posts', $this->ctrl->getLinkTarget($this, 'viewThread'));
// by date view
$this->ctrl->setParameter($this, 'viewmode', ilForumProperties::VIEW_DATE);
$this->ctrl->setParameter($this, 'thr_pk', $this->objCurrentTopic->getId());
$this->ctrl->setParameter($this, 'pos_pk', $this->objCurrentPost->getId());
$ilTabs->addTarget('order_by_date', $this->ctrl->getLinkTarget($this, 'viewThread'));
$this->ctrl->clearParameters($this);
if ($_SESSION['viewmode'] == 'date' || $_SESSION['viewmode'] == ilForumProperties::VIEW_DATE) {
$ilTabs->setTabActive('order_by_date');
} else {
$ilTabs->setTabActive('sort_by_posts');
}
/**
* @var $frm ilForum
*/
$frm = $a_forum_obj->Forum;
$frm->setForumId($a_forum_obj->getId());
}
示例10: showHeader
private function showHeader()
{
global $ilMainMenu, $ilTabs, $ilHelp;
$ilHelp->setScreenIdComponent("mail");
$ilMainMenu->setActive("mail");
// $this->tpl->getStandardTemplate();
$this->tpl->addBlockFile("CONTENT", "content", "tpl.adm_content.html");
$this->tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_mail_b.png"));
// display infopanel if something happened
ilUtil::infoPanel();
$ilTabs->addTarget('fold', $this->ctrl->getLinkTargetByClass('ilmailfoldergui'));
$this->ctrl->setParameterByClass('ilmailformgui', 'type', 'new');
$ilTabs->addTarget('compose', $this->ctrl->getLinkTargetByClass('ilmailformgui'));
$this->ctrl->clearParametersByClass('ilmailformgui');
$ilTabs->addTarget('mail_addressbook', $this->ctrl->getLinkTargetByClass('ilmailaddressbookgui'));
$ilTabs->addTarget('options', $this->ctrl->getLinkTargetByClass('ilmailoptionsgui'));
switch ($this->forwardClass) {
case 'ilmailformgui':
$ilTabs->setTabActive('compose');
break;
case 'ilmailaddressbookgui':
$ilTabs->setTabActive('mail_addressbook');
break;
case 'ilmailoptionsgui':
$ilTabs->setTabActive('options');
break;
case 'ilmailfoldergui':
default:
$ilTabs->setTabActive('fold');
break;
}
if (isset($_GET['message_sent'])) {
$ilTabs->setTabActive('fold');
}
if ('tree' != ilSession::get(self::VIEWMODE_SESSION_KEY)) {
$this->ctrl->setParameter($this, 'viewmode', 'tree');
$this->tpl->setTreeFlatIcon($this->ctrl->getLinkTarget($this), 'tree');
} else {
$this->ctrl->setParameter($this, 'viewmode', 'flat');
$this->tpl->setTreeFlatIcon($this->ctrl->getLinkTarget($this), 'flat');
}
$this->ctrl->clearParameters($this);
$this->tpl->setCurrentBlock("tree_icons");
$this->tpl->parseCurrentBlock();
}
示例11: displayHeader
/**
* display header and locator
*/
function displayHeader()
{
// output locator
$this->displayLocator();
// output message
if ($this->message) {
ilUtil::sendInfo($this->message);
}
ilUtil::infoPanel();
// $this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
// "");
$this->tpl->setTitle($this->lng->txt("bookmarks"));
}
示例12: showUserAgreement
/**
* show user agreement
*/
function showUserAgreement()
{
global $lng, $tpl, $ilUser;
require_once "./Services/User/classes/class.ilUserAgreement.php";
$tpl->addBlockFile("CONTENT", "content", "tpl.startup_screen.html", "Services/Init");
$tpl->setVariable("HEADER_ICON", ilUtil::getImagePath("HeaderIcon.png"));
$tpl->addBlockFile("STARTUP_CONTENT", "startup_content", "tpl.view_usr_agreement.html", "Services/Init");
$tpl->addBlockFile("STATUSLINE", "statusline", "tpl.statusline.html");
// ilUtil::sendInfo();
// display infopanel if something happened
ilUtil::infoPanel();
// language selection
$languages = $lng->getInstalledLanguages();
// #11237
if (sizeof($languages) > 1) {
$tpl->setVariable("TXT_CHOOSE_LANGUAGE", $lng->txt("choose_language"));
$tpl->setVariable("TXT_OK", $lng->txt("ok"));
$count = (int) round(count($languages) / 2);
$num = 1;
foreach ($languages as $lang_key) {
$tpl->setCurrentBlock("languages");
$tpl->setVariable("LANG_VAL_CMD", $this->ctrl->getCmd());
$tpl->setVariable("AGR_LANG_ACTION", $this->ctrl->getFormAction($this));
$tpl->setVariable("LANG_NAME", ilLanguage::_lookupEntry($lang_key, "meta", "meta_l_" . $lang_key));
$tpl->setVariable("LANG_ICON", $lang_key);
$tpl->setVariable("LANG_KEY", $lang_key);
$tpl->setVariable("BORDER", 0);
$tpl->setVariable("VSPACE", 0);
$tpl->parseCurrentBlock();
$num++;
}
}
$tpl->setCurrentBlock("content");
// display tabs
$tpl->setVariable("TXT_PAGEHEADLINE", $lng->txt("usr_agreement"));
$tpl->setVariable("TXT_PAGETITLE", "ILIAS3 - " . $lng->txt("usr_agreement"));
$tpl->setVariable("TXT_USR_AGREEMENT", ilUserAgreement::_getText());
if ($this->ctrl->getCmd() == "getAcceptance") {
if ($_POST["status"] == "accepted") {
$ilUser->writeAccepted();
ilUtil::redirect("index.php?target=" . $_GET["target"] . "&client_id=" . CLIENT_ID);
}
$tpl->setVariable("VAL_CMD", "getAcceptance");
$tpl->setVariable("AGR_LANG_ACTION", $this->ctrl->getFormAction($this));
$tpl->setCurrentBlock("get_acceptance");
$tpl->setVariable("FORM_ACTION", $this->ctrl->getFormAction($this));
$tpl->setVariable("ACCEPT_CHECKBOX", ilUtil::formCheckbox(0, "status", "accepted"));
$tpl->setVariable("ACCEPT_AGREEMENT", $lng->txt("accept_usr_agreement"));
$tpl->setVariable("TXT_SUBMIT", $lng->txt("submit"));
$tpl->parseCurrentBlock();
} else {
$tpl->setCurrentBlock("back");
$tpl->setVariable("BACK", $lng->txt("back"));
$tpl->setVariable("LINK_BACK", $this->ctrl->getLinkTargetByClass("ilstartupgui", "showLogin"));
$tpl->parseCurrentBlock();
}
$tpl->show();
}
示例13: prepareContentView
function prepareContentView()
{
// add template for content
$this->pd_tpl = new ilTemplate("tpl.usr_personaldesktop.html", true, true, "Services/PersonalDesktop");
$this->tpl->getStandardTemplate();
// display infopanel if something happened
ilUtil::infoPanel();
//$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"),
// $this->lng->txt("personal_desktop"));
$this->tpl->setTitleIcon(ilUtil::getImagePath("icon_pd_b.png"), "");
$this->tpl->setTitle($this->lng->txt("personal_desktop"));
$this->tpl->setVariable("IMG_SPACE", ilUtil::getImagePath("spacer.png", false));
}