示例#1
0
 function redirect($mess = null)
 {
     $param = array();
     if ($mess) {
         $param['mess'] = $mess;
     }
     header('Location: ' . ap::getUrl($param));
     die;
 }
示例#2
0
 function setAdditionalParams($arParams)
 {
     $ar = array();
     if (is_array($arParams)) {
         foreach ($arParams as $name => $value) {
             $ar[] = urlencode($name) . '=' . urlencode($value);
         }
         $this->getRootElement()->setAttribute('additionalParams', implode('&', $ar));
         $this->setFormAction(ap::getUrl($arParams));
     }
 }
示例#3
0
 function redirect($action, $id = null)
 {
     $param = array();
     switch ($action) {
         case 'remove':
             if ($id) {
                 $param['id'] = $id;
             }
             break;
     }
     if ($action) {
         $param['mess'] = $action;
     }
     header('Location: ' . ap::getUrl($param));
     die;
 }
示例#4
0
 function redirect($action, $id = null)
 {
     $param = array();
     if (trim($action)) {
         $param['mess'] = $action;
     }
     switch ($action) {
         case 'apply':
             if ($id) {
                 $param['id'] = '_s_' . $id;
             }
             break;
     }
     header('Location: ' . ap::getUrl($param));
     die;
 }
示例#5
0
 function redirect($mess = null)
 {
     $param = array();
     if (($action = $this->getAction()) && ($row = $this->getRow())) {
         switch ($action) {
             case 'apply_update':
             case 'apply_add':
                 $param['action'] = 'edit';
                 $param['row'] = $row;
         }
     }
     if ($page = param('page')) {
         $param['page'] = $page;
     }
     $this->setMessage($mess);
     header('Location: ' . ap::getUrl($param));
     die;
 }
示例#6
0
 function redirect($mess = null)
 {
     $param = array();
     if ($action = param('action')) {
         switch ($action) {
             case 'apply_update':
                 $param['action'] = 'edit';
                 $param['row'] = param('login');
                 break;
             case 'apply_add':
                 $param['action'] = 'edit';
                 $param['row'] = $this->getRow();
                 break;
         }
     }
     if ($mess) {
         $param['mess'] = $mess;
     }
     header('Location: ' . ap::getUrl($param));
     die;
 }
示例#7
0
 function redirect($mess = null)
 {
     $params = array('row' => $this->getRow());
     $this->setMessage($mess);
     header('Location: ' . ap::getUrl($params));
     die;
 }
示例#8
0
 function redirect($action, $id = null)
 {
     $param = array();
     switch ($action) {
         case 'edit':
             return;
         case 'add':
             break;
         case 'apply_add':
         case 'apply_update':
             if ($id) {
                 $param['action'] = 'edit';
                 $param['row'] = $id;
             }
             break;
     }
     header('Location: ' . ap::getUrl($param));
     die;
 }
示例#9
0
 function run()
 {
     global $_struct;
     header('Location: ' . ap::getUrl(array('id' => $_struct->getDefaultSectionId())));
     die;
 }
示例#10
0
 function redirect($mess = null)
 {
     header('Location: ' . ap::getUrl($mess ? array('mess' => $mess) : null));
     die;
 }
示例#11
0
 function redirect($mess = null, $param = array())
 {
     $this->setMessage($mess);
     header('Location: ' . ap::getUrl($param));
     die;
 }