showCentralNewList() 정적인 공개 메소드

static public showCentralNewList ( )
예제 #1
0
 /**
  * Show the central global view
  **/
 static function showGlobalView()
 {
     $showticket = haveRight("show_all_ticket", "1");
     echo "<table class='tab_cadre_central'><tr>";
     echo "<td class='top'><br>";
     echo "<table >";
     if ($showticket) {
         echo "<tr><td class='top' width='450px'>";
         Ticket::showCentralCount();
         echo "</td></tr>";
     }
     if (haveRight("contract", "r")) {
         echo "<tr><td class='top' width='450px'>";
         Contract::showCentral();
         echo "</td></tr>";
     }
     echo "</table></td>";
     if (haveRight("logs", "r")) {
         echo "<td class='top' width='450px'>";
         //Show last add events
         Event::showForUser($_SESSION["glpiname"]);
         echo "</td>";
     }
     echo "</tr></table>";
     if ($_SESSION["glpishow_jobs_at_login"] && $showticket) {
         echo "<br>";
         Ticket::showCentralNewList();
     }
 }
예제 #2
0
 /**
  * Show the central global view
  **/
 static function showGlobalView()
 {
     $showticket = Session::haveRight("ticket", Ticket::READALL);
     $showproblem = Session::haveRight("problem", Problem::READALL);
     echo "<table class='tab_cadre_central'><tr class='noHover'>";
     echo "<td class='top' width='50%'>";
     echo "<table class='central'>";
     echo "<tr class='noHover'><td>";
     if ($showticket) {
         Ticket::showCentralCount();
     }
     if ($showproblem) {
         Problem::showCentralCount();
     }
     if (Contract::canView()) {
         Contract::showCentral();
     }
     echo "</td></tr>";
     echo "</table></td>";
     if (Session::haveRight("logs", READ)) {
         echo "<td class='top'  width='50%'>";
         //Show last add events
         Event::showForUser($_SESSION["glpiname"]);
         echo "</td>";
     }
     echo "</tr></table>";
     if ($_SESSION["glpishow_jobs_at_login"] && $showticket) {
         echo "<br>";
         Ticket::showCentralNewList();
     }
 }