Exemplo n.º 1
0
 function index()
 {
     $this->view->setTitle("Входящая почта");
     $mailClass = new Model_Mail();
     $mails = $mailClass->getMails();
     $this->view->mail_index(array("mails" => $mails, "mailbox" => "Входящая почта"));
 }
Exemplo n.º 2
0
 public function index()
 {
     $this->view->setTitle("Почта");
     $this->view->setLeftContent($this->view->render("left_mail", array("folders" => $this->folders, "enableCheck" => $this->enableCheck)));
     $mailClass = new Model_Mail();
     $obj = false;
     if (isset($_GET["folder"])) {
         $mailClass->getSortsByFolderId($_GET["folder"]);
         $mails = $mailClass->getMailsSort();
     } else {
         if (isset($_GET["oid"])) {
             $obj = true;
             $mails = $mailClass->getObjMails($_GET["oid"]);
             $this->view->setMainContent("<p class='title'>Просмотр почтовой переписки: " . $mailClass->getContact() . "</p>");
         } else {
             $mails = $mailClass->getMails();
         }
     }
     $this->view->mail_index(array("mails" => $mails, "obj" => $obj));
     $this->view->showPage();
 }