當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Reminder::showListForCentral方法代碼示例

本文整理匯總了PHP中Reminder::showListForCentral方法的典型用法代碼示例。如果您正苦於以下問題:PHP Reminder::showListForCentral方法的具體用法?PHP Reminder::showListForCentral怎麽用?PHP Reminder::showListForCentral使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Reminder的用法示例。


在下文中一共展示了Reminder::showListForCentral方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

} else {
    Html::helpHeader(__('Home'), $_SERVER['PHP_SELF'], $_SESSION["glpiname"]);
    echo "<table class='tab_cadre_postonly'><tr class='noHover'>";
    echo "<td class='top' width='50%'><br>";
    echo "<table class='central'>";
    if (Session::haveRight('ticket', CREATE)) {
        echo "<tr class='noHover'><td class='top'>";
        Ticket::showCentralCount(true);
        echo "</td></tr>";
        echo "<tr class='noHover'><td class='top'>";
        Ticket::showCentralList(0, "survey", false);
        echo "</td></tr>";
    }
    if (Session::haveRight("reminder_public", READ)) {
        echo "<tr class='noHover'><td class='top'>";
        Reminder::showListForCentral(false);
        echo "</td></tr>";
    }
    if (Session::haveRight("rssfeed_public", READ)) {
        echo "<tr class='noHover'><td class='top'>";
        RSSFeed::showListForCentral(false);
        echo "</td></tr>";
    }
    echo "</table></td>";
    echo "<td class='top' width='50%'><br>";
    echo "<table class='central'>";
    // Show KB items
    if (Session::haveRight('knowbase', KnowbaseItem::READFAQ)) {
        echo "<tr class='noHover'><td class='top'>";
        KnowbaseItem::showRecentPopular("popular");
        echo "</td></tr>";
開發者ID:btry,項目名稱:glpi,代碼行數:31,代碼來源:helpdesk.public.php

示例2: showMyView

 /**
  * Show the central personal view
  **/
 static function showMyView()
 {
     global $DB, $CFG_GLPI;
     $showticket = Session::haveRight("show_all_ticket", "1") || Session::haveRight("show_assign_ticket", "1");
     $showproblem = Session::haveRight("show_all_problem", "1") || Session::haveRight("show_my_problem", "1");
     echo "<table class='tab_cadre_central'>";
     if (Session::haveRight("config", "w")) {
         $logins = User::checkDefaultPasswords();
         $user = new User();
         if (!empty($logins)) {
             $accouts = array();
             foreach ($logins as $login) {
                 $user->getFromDBbyName($login);
                 $accounts[] = $user->getLink();
             }
             $message = sprintf(__('For security reasons, please change the password for the default users: %s'), implode(" ", $accounts));
             echo "<tr><th colspan='2'>";
             Html::displayTitle($CFG_GLPI['root_doc'] . "/pics/warning.png", $message, $message);
             echo "</th></tr>";
         }
         if (file_exists(GLPI_ROOT . "/install/install.php")) {
             echo "<tr><th colspan='2'>";
             $message = sprintf(__('For security reasons, please remove file: %s'), "install/install.php");
             Html::displayTitle($CFG_GLPI['root_doc'] . "/pics/warning.png", $message, $message);
             echo "</th></tr>";
         }
     }
     if ($DB->isSlave() && !$DB->first_connection) {
         echo "<tr><th colspan='2'>";
         Html::displayTitle($CFG_GLPI['root_doc'] . "/pics/warning.png", __('MySQL replica: read only'), __('MySQL replica: read only'));
         echo "</th></tr>";
     }
     echo "<tr><td class='top'><table class='central'>";
     echo "<tr><td>";
     if (Session::haveRight('validate_request', 1) || Session::haveRight('validate_incident', 1)) {
         Ticket::showCentralList(0, "tovalidate", false);
     }
     if (Ticket::isAllowedStatus(Ticket::SOLVED, Ticket::CLOSED)) {
         Ticket::showCentralList(0, "toapprove", false);
     }
     Ticket::showCentralList(0, "rejected", false);
     Ticket::showCentralList(0, "requestbyself", false);
     Ticket::showCentralList(0, "observed", false);
     if ($showticket) {
         Ticket::showCentralList(0, "process", false);
         Ticket::showCentralList(0, "waiting", false);
     }
     if ($showproblem) {
         Problem::showCentralList(0, "process", false);
     }
     echo "</td></tr>";
     echo "</table></td>";
     echo "<td class='top'><table class='central'>";
     echo "<tr><td>";
     Planning::showCentral(Session::getLoginUserID());
     Reminder::showListForCentral();
     if (Session::haveRight("reminder_public", "r")) {
         Reminder::showListForCentral(false);
     }
     echo "</td></tr>";
     echo "</table></td></tr></table>";
 }
開發者ID:geldarr,項目名稱:hack-space,代碼行數:65,代碼來源:central.class.php

示例3: showMyView

 /**
  * Show the central personal view
  *
  *
  **/
 static function showMyView()
 {
     global $LANG, $DB;
     $showticket = haveRight("show_all_ticket", "1") || haveRight("show_assign_ticket", "1");
     echo "<table class='tab_cadre_central'>";
     if ($DB->isSlave() && !$DB->first_connection) {
         echo "<tr><th colspan='2'><br>";
         displayTitle(GLPI_ROOT . "/pics/warning.png", $LANG['setup'][809], $LANG['setup'][809]);
         echo "</th></tr>";
     }
     echo "<tr><td class='top'><table>";
     if (haveRight('validate_ticket', 1)) {
         echo "<tr><td class='top' width='450px'><br>";
         Ticket::showCentralList(0, "tovalidate", false);
         echo "</td></tr>";
     }
     echo "<tr><td class='top' width='450px'>";
     Ticket::showCentralList(0, "toapprove", false);
     echo "</td></tr>";
     echo "<tr><td class='top' width='450px'>";
     Ticket::showCentralList(0, "requestbyself", false);
     echo "</td></tr>";
     if ($showticket) {
         echo "<tr><td class='top' width='450px'>";
         Ticket::showCentralList(0, "process", false);
         echo "</td></tr>";
         echo "<tr><td class='top' width='450px'>";
         Ticket::showCentralList(0, "waiting", false);
         echo "</td></tr>";
     }
     echo "</table></td>";
     echo "<td class='top'><table><tr>";
     echo "<td class='top' width='450px'><br>";
     Planning::showCentral(getLoginUserID());
     echo "</td></tr>";
     echo "<tr><td class='top' width='450px'>";
     Reminder::showListForCentral();
     echo "</td></tr>";
     if (haveRight("reminder_public", "r")) {
         echo "<tr><td class='top' width='450px'>";
         Reminder::showListForCentral($_SESSION["glpiactive_entity"]);
         $entities = array_reverse(getAncestorsOf("glpi_entities", $_SESSION["glpiactive_entity"]));
         foreach ($entities as $entity) {
             Reminder::showListForCentral($entity, true);
         }
         foreach ($_SESSION["glpiactiveentities"] as $entity) {
             if ($entity != $_SESSION["glpiactive_entity"]) {
                 Reminder::showListForCentral($entity, false);
             }
         }
         echo "</td></tr>";
     }
     echo "</table></td></tr></table>";
 }
開發者ID:ryukansent,項目名稱:Thesis-SideB,代碼行數:59,代碼來源:central.class.php

示例4: showMyView

 /**
  * Show the central personal view
  **/
 static function showMyView()
 {
     global $DB, $CFG_GLPI;
     $showticket = Session::haveRightsOr("ticket", array(Ticket::READMY, Ticket::READALL, Ticket::READASSIGN));
     $showproblem = Session::haveRightsOr('problem', array(Problem::READALL, Problem::READMY));
     echo "<table class='tab_cadre_central'>";
     if (Session::haveRight("config", UPDATE)) {
         $logins = User::checkDefaultPasswords();
         $user = new User();
         if (!empty($logins)) {
             $accouts = array();
             foreach ($logins as $login) {
                 $user->getFromDBbyName($login);
                 $accounts[] = $user->getLink();
             }
             $message = sprintf(__('For security reasons, please change the password for the default users: %s'), implode(" ", $accounts));
             echo "<tr><th colspan='2'>";
             Html::displayTitle($CFG_GLPI['root_doc'] . "/pics/warning.png", $message, $message);
             echo "</th></tr>";
         }
         if (file_exists(GLPI_ROOT . "/install/install.php")) {
             echo "<tr><th colspan='2'>";
             $message = sprintf(__('For security reasons, please remove file: %s'), "install/install.php");
             Html::displayTitle($CFG_GLPI['root_doc'] . "/pics/warning.png", $message, $message);
             echo "</th></tr>";
         }
     }
     if ($_SESSION['glpi_use_mode'] == Session::DEBUG_MODE) {
         if (!DBMysql::isMySQLStrictMode()) {
             echo "<tr><th colspan='2'>";
             $message = __('MySQL strict mode is not enabled');
             Html::displayTitle($CFG_GLPI['root_doc'] . "/pics/warning.png", $message, $message);
             echo "</th></tr>";
         }
     }
     if ($DB->isSlave() && !$DB->first_connection) {
         echo "<tr><th colspan='2'>";
         Html::displayTitle($CFG_GLPI['root_doc'] . "/pics/warning.png", __('MySQL replica: read only'), __('MySQL replica: read only'));
         echo "</th></tr>";
     }
     echo "<tr class='noHover'><td class='top' width='50%'><table class='central'>";
     echo "<tr class='noHover'><td>";
     if (Session::haveRightsOr('ticketvalidation', TicketValidation::getValidateRights())) {
         Ticket::showCentralList(0, "tovalidate", false);
     }
     if ($showticket) {
         if (Ticket::isAllowedStatus(Ticket::SOLVED, Ticket::CLOSED)) {
             Ticket::showCentralList(0, "toapprove", false);
         }
         Ticket::showCentralList(0, "survey", false);
         Ticket::showCentralList(0, "rejected", false);
         Ticket::showCentralList(0, "requestbyself", false);
         Ticket::showCentralList(0, "observed", false);
         Ticket::showCentralList(0, "process", false);
         Ticket::showCentralList(0, "waiting", false);
     }
     if ($showproblem) {
         Problem::showCentralList(0, "process", false);
     }
     echo "</td></tr>";
     echo "</table></td>";
     echo "<td class='top'  width='50%'><table class='central'>";
     echo "<tr class='noHover'><td>";
     Planning::showCentral(Session::getLoginUserID());
     Reminder::showListForCentral();
     if (Session::haveRight("reminder_public", READ)) {
         Reminder::showListForCentral(false);
     }
     echo "</td></tr>";
     echo "</table></td></tr></table>";
 }
開發者ID:JULIO8,項目名稱:respaldo_glpi,代碼行數:74,代碼來源:central.class.php

示例5: array_reverse

 echo "<table>";
 if (haveRight('create_ticket', 1)) {
     echo "<tr><td class='top' width='450px'>";
     Ticket::showCentralCount(true);
     echo "</td></tr>";
 }
 if (haveRight("reminder_public", "r")) {
     echo "<tr><td class='top' width='450px'>";
     Reminder::showListForCentral($_SESSION["glpiactive_entity"]);
     $entities = array_reverse(getAncestorsOf("glpi_entities", $_SESSION["glpiactive_entity"]));
     foreach ($entities as $entity) {
         Reminder::showListForCentral($entity, true);
     }
     foreach ($_SESSION["glpiactiveentities"] as $entity) {
         if ($entity != $_SESSION["glpiactive_entity"]) {
             Reminder::showListForCentral($entity, false);
         }
     }
     echo "</td></tr>";
 }
 echo "</table></td>";
 echo "<td class='top' width='450px'><br>";
 echo "<table>";
 // Show KB items
 if (haveRight("faq", "r")) {
     echo "<tr><td class='top' width='450px'>";
     KnowbaseItem::showRecentPopular($CFG_GLPI['root_doc'] . '/front/helpdesk.faq.php', "popular", 1);
     echo "</td></tr>";
     echo "<tr><td class='top' width='450px'><br>";
     KnowbaseItem::showRecentPopular($CFG_GLPI['root_doc'] . '/front/helpdesk.faq.php', "recent", 1);
     echo "</td></tr>";
開發者ID:ryukansent,項目名稱:Thesis-SideB,代碼行數:31,代碼來源:helpdesk.public.php


注:本文中的Reminder::showListForCentral方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。