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


PHP js::closeColorbox方法代碼示例

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


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

示例1: close

 /**
  * Close a bug.
  * 
  * @param  int    $bugID 
  * @access public
  * @return void
  */
 public function close($bugID)
 {
     if (!empty($_POST)) {
         $this->bug->close($bugID);
         if (dao::isError()) {
             die(js::error(dao::getError()));
         }
         $actionID = $this->action->create('bug', $bugID, 'Closed', $this->post->comment);
         $this->sendmail($bugID, $actionID);
         if (isonlybody()) {
             die(js::closeColorbox('parent.parent'));
         }
         die(js::locate($this->createLink('bug', 'view', "bugID={$bugID}"), 'parent'));
     }
     $bug = $this->bug->getById($bugID);
     $productID = $bug->product;
     $this->bug->setMenu($this->products, $productID);
     $this->view->title = $this->products[$productID] . $this->lang->colon . $this->lang->bug->close;
     $this->view->position[] = html::a($this->createLink('bug', 'browse', "productID={$productID}"), $this->products[$productID]);
     $this->view->position[] = $this->lang->bug->close;
     $this->view->bug = $bug;
     $this->view->users = $this->user->getPairs('noletter');
     $this->view->actions = $this->action->getList('bug', $bugID);
     $this->display();
 }
開發者ID:laiello,項目名稱:zentaoms,代碼行數:32,代碼來源:control.php

示例2: activate

 /**
  * Activate a task.
  * 
  * @param  int    $taskID 
  * @access public
  * @return void
  */
 public function activate($taskID)
 {
     $this->commonAction($taskID);
     if (!empty($_POST)) {
         $this->loadModel('action');
         $changes = $this->task->activate($taskID);
         if (dao::isError()) {
             die(js::error(dao::getError()));
         }
         if ($this->post->comment != '' or !empty($changes)) {
             $actionID = $this->action->create('task', $taskID, 'Activated', $this->post->comment);
             $this->action->logHistory($actionID, $changes);
             $this->sendmail($taskID, $actionID);
         }
         if (isonlybody()) {
             die(js::closeColorbox('parent.parent'));
         }
         die(js::locate($this->createLink('task', 'view', "taskID={$taskID}"), 'parent'));
     }
     if (!isset($this->view->members[$this->view->task->finishedBy])) {
         $this->view->members[$this->view->task->finishedBy] = $this->view->task->finishedBy;
     }
     $this->view->title = $this->view->project->name . $this->lang->colon . $this->lang->task->activate;
     $this->view->position[] = $this->lang->task->activate;
     $this->display();
 }
開發者ID:laiello,項目名稱:zentaoms,代碼行數:33,代碼來源:control.php


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