当前位置: 首页>>代码示例>>PHP>>正文


PHP A::goUrl方法代码示例

本文整理汇总了PHP中A::goUrl方法的典型用法代码示例。如果您正苦于以下问题:PHP A::goUrl方法的具体用法?PHP A::goUrl怎么用?PHP A::goUrl使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在A的用法示例。


在下文中一共展示了A::goUrl方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Action

 function Action($action)
 {
     $res = false;
     switch ($action) {
         case "add":
             $res = $this->Add();
             break;
         case "edit":
             $res = $this->Edit();
             break;
         case "del":
             $res = $this->Del();
             break;
         case "import":
             $res = $this->Import();
             break;
         case "delete":
             $res = $this->Delete();
             break;
         case "sortname":
             $res = $this->SortName();
             break;
     }
     if ($res) {
         A::goUrl("admin.php?mode=structures&item=" . ITEM);
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:27,代码来源:listdata.php

示例2: Action

 function Action($action)
 {
     $res = false;
     switch ($action) {
         case "add":
             $res = $this->Add();
             break;
         case "edit":
             $res = $this->Edit();
             break;
         case "del":
             $res = $this->Del();
             break;
         case "addurl":
             $res = $this->AddUrl();
             break;
         case "editurl":
             $res = $this->EditUrl();
             break;
         case "delurl":
             $res = $this->DelUrl();
             break;
     }
     if ($res) {
         A::goUrl("admin.php?mode=structures&item=" . ITEM, array('idv', 'tab'));
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:27,代码来源:vars.php

示例3: Action

 /**
  * Маршрутизатор действий.
  */
 function Action($action)
 {
     $res = false;
     switch ($action) {
         case "save":
             $res = $this->SavePage();
             break;
         case "fld_add":
             $res = $this->AddField();
             break;
         case "fld_edit":
             $res = $this->EditField();
             break;
         case "fld_del":
             $res = $this->DelField();
             break;
         case "delarch":
             $res = $this->delArch();
             break;
         case "delete":
             $res = $this->Delete();
             break;
     }
     if ($res) {
         A::goUrl("admin.php?mode=sections&item=" . SECTION, array('tab', 'page'));
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:30,代码来源:feedback.php

示例4: Action

 /**
  * Маршрутизатор действий.
  */
 function Action($action)
 {
     switch ($action) {
         case "savesections":
             $res = $this->SaveSections();
             break;
     }
     if (!empty($res)) {
         A::goUrl("admin.php?mode=sections&item=" . SECTION);
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:14,代码来源:archive.php

示例5: Action

 /**
  * Маршрутизатор действий.
  */
 function Action($action)
 {
     switch ($action) {
         case "indexall":
             $res = $this->indexAll();
             break;
     }
     if (!empty($res)) {
         A::goUrl("admin.php?mode=sections&item=" . SECTION);
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:14,代码来源:search.php

示例6: Action

 function Action($action)
 {
     $res = false;
     switch ($action) {
         case "save":
             $res = $this->Save();
             break;
     }
     if ($res) {
         A::goUrl("admin.php?mode=structures&item=" . ITEM, array('idcat'));
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:12,代码来源:cfields.php

示例7: Action

 /**
  * Маршрутизатор действий.
  */
 function Action($action)
 {
     switch ($action) {
         case "additem":
             $res = $this->AddItem();
             break;
         case "edititem":
             $res = $this->EditItem();
             break;
         case "delitem":
             $res = $this->DelItem();
             break;
         case "setsort":
             $res = $this->setSort();
             break;
         case "setrows":
             $res = $this->setRows();
             break;
         case "setactive":
             $res = $this->SetActive();
             break;
         case "setunactive":
             $res = $this->SetUnActive();
             break;
         case "delete":
             $res = $this->Delete();
             break;
         case "moveitems":
             $res = $this->MoveItems();
             break;
         case "save":
             $res = $this->Save();
             break;
         case "addimage":
             $res = $this->AddImage();
             break;
         case "isetmain":
             $res = $this->SetMainImage();
             break;
         case "idelete":
             $res = $this->DeleteImages();
             break;
         case "isave":
             $res = $this->SaveImages();
             break;
     }
     if (!empty($res)) {
         A::goUrl("admin.php?mode=sections&item=" . SECTION, array('idcat', 'idalb', 'tab', 'tab_albums', 'page'));
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:53,代码来源:gallery.php

示例8: Action

 function Action($action)
 {
     $res = false;
     switch ($action) {
         case "addcat":
             $res = $this->AddCategory();
             break;
         case "editcat":
             $res = $this->EditCategory();
             break;
         case "delcat":
             $res = $this->DelCategory();
             break;
         case "addbanner":
             $res = $this->AddBanner();
             break;
         case "editbanner":
             $res = $this->EditBanner();
             break;
         case "delbanner":
             $res = $this->DelBanner();
             break;
         case "setrows":
             $res = $this->setRows();
             break;
         case "setsort":
             $res = $this->setSort();
             break;
         case "seton":
             $res = $this->setOn();
             break;
         case "setoff":
             $res = $this->setOff();
             break;
         case "reset":
             $res = $this->Reset();
             break;
         case "delete":
             $res = $this->Delete();
             break;
     }
     if ($res) {
         A::goUrl("admin.php?mode=structures&item=" . ITEM, array('idcat', 'tab', 'page'));
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:45,代码来源:banners.php

示例9: Action

 function Action($action)
 {
     $res = false;
     switch ($action) {
         case "addrss":
             $res = $this->AddRSS();
             break;
         case "editrss":
             $res = $this->EditRSS();
             break;
         case "delrss":
             $res = $this->DelRSS();
             break;
     }
     if ($res) {
         A::goUrl("admin.php?mode=structures&item=" . ITEM);
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:18,代码来源:rss.php

示例10: Action

 /**
  * Маршрутизатор действий.
  */
 function Action($action)
 {
     switch ($action) {
         case "additem":
             $res = $this->AddItem();
             break;
         case "edititem":
             $res = $this->EditItem();
             break;
         case "delitem":
             $res = $this->DelItem();
             break;
         case "setsort":
             $res = $this->setSort();
             break;
         case "setrows":
             $res = $this->setRows();
             break;
         case "setfilter":
             $res = $this->setFilter();
             break;
         case "unfilter":
             $res = $this->unFilter();
             break;
         case "setactive":
             $res = $this->SetActive();
             break;
         case "setunactive":
             $res = $this->SetUnActive();
             break;
         case "delete":
             $res = $this->Delete();
             break;
         case "moveitems":
             $res = $this->MoveItems();
             break;
         case "save":
             $res = $this->Save();
             break;
     }
     if (!empty($res)) {
         A::goUrl("admin.php?mode=sections&item=" . SECTION, array('idcat', 'page', 'tab'));
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:47,代码来源:catalog.php

示例11: Action

 /**
  * Маршрутизатор действий.
  */
 function Action($action)
 {
     $res = false;
     switch ($action) {
         case "adddir":
             $res = $this->AddDir();
             break;
         case "addpage":
             $res = $this->AddPage();
             break;
         case "editdir":
             $res = $this->EditDir();
             break;
         case "editpage":
             $res = $this->EditPage();
             break;
         case "del":
             $res = $this->Del();
             break;
         case "delete":
             $res = $this->Delete();
             break;
         case "setrows":
             $res = $this->SetRows();
             break;
         case "setactive":
             $res = $this->SetActive();
             break;
         case "setunactive":
             $res = $this->SetUnActive();
             break;
         case "move":
             $res = $this->Move();
             break;
         case "cmove":
             $res = $this->CMove();
             break;
     }
     if ($res) {
         A::goUrl("admin.php?mode=sections&item=" . SECTION, array('page'));
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:45,代码来源:pages.php

示例12: MyOrdersPage

 /**
  * Формирование данных доступных в шаблоне страницы "мои заказы".
  */
 function MyOrdersPage()
 {
     if (!A::$AUTH->isLogin()) {
         A::goUrl(getSectionLink(SECTION));
     }
     $orders = array();
     $pager = new A_Pager(20);
     $pager->tab = "orders";
     $pager->query("SELECT * FROM " . SECTION . "_orders WHERE iduser=? ORDER BY date DESC", A::$AUTH->id);
     while ($row = $pager->fetchRow()) {
         if ($section = getSectionByModule('robopay')) {
             $row['paylink'] = getSectionLink($section) . "?action=pay&code=" . md5($section . $row['date']);
         }
         $row['pay'] = function_exists('pay_getname') ? pay_getname($row['pay']) : "Наличные";
         $row['basket'] = !empty($row['basket']) ? unserialize($row['basket']) : array();
         $row['sum'] = round($row['sum'], 2);
         $orders[] = $row;
     }
     $pager->free();
     $this->Assign("orders", $orders);
     $this->Assign("orders_pager", $pager);
     $this->AddNavigation(SECTION_NAME, getSectionLink(SECTION));
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:26,代码来源:shoplite.php

示例13: AddComment

 /**
  * Обработчик действия: Комментирование альбома.
  */
 function AddComment()
 {
     if (!getAccess("comment")) {
         return false;
     }
     if (empty($_REQUEST['captcha']) || md5(strtolower($_REQUEST['captcha'])) != A_Session::get('captcha')) {
         $this->errors['captcha'] = true;
         return false;
     }
     A_Session::unregister('captcha');
     $data = array();
     $data['date'] = time();
     $data['idsec'] = SECTION_ID;
     $data['iduser'] = A::$AUTH->id;
     $data['iditem'] = $this->idalb;
     $data['name'] = strip_tags($_REQUEST['name']);
     $data['bbcode'] = $_REQUEST['message'];
     $data['message'] = parse_bbcode($data['bbcode']);
     $data['active'] = A::$OPTIONS['cactive'] ? 'N' : 'Y';
     if (empty($data['name']) || empty($data['message'])) {
         return false;
     }
     if ($id = A::$DB->Insert(DOMAIN . "_comments", $data)) {
         $count = A::$DB->getCount(DOMAIN . "_comments", "idsec=" . SECTION_ID . " AND iditem={$this->idalb}");
         A::$DB->execute("UPDATE " . SECTION . "_albums SET comments={$count} WHERE id={$this->idalb}");
         $link = gallery_createItemLink($this->idalb, SECTION);
         if (!empty(A::$OPTIONS['cemail'])) {
             if (!empty(A::$OPTIONS['commenttpl'])) {
                 $item = A::$DB->getRowById($this->idalb, SECTION . "_albums");
                 $item['link'] = "http://" . HOSTNAME . $link;
                 $mail = new A_Mail(A::$OPTIONS['commenttpl'], "html");
                 $mail->Assign("item", $item);
                 $mail->Assign("comment", $data);
                 $mail->send(A::$OPTIONS['cemail']);
             }
         }
         if (A::$OPTIONS['cactive']) {
             A::goUrl($link . '?newcomment=1');
         } else {
             A::goUrl($link);
         }
     } else {
         return false;
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:48,代码来源:gallery.php

示例14:

<?php

/**
 * @project Astra.CMS
 * @link http://a-cms.ru/
 * @copyright 2010 "Астра Вебтехнологии"
 * @author Vitaly Hohlov <admin@a-cms.ru>
 * @package Plugins
 */
/**************************************************************************/
if (!empty($_GET['id'])) {
    if ($row = A::$DB->getRowById($_GET['id'], STRUCTURE)) {
        A::$DB->execute("UPDATE " . STRUCTURE . " SET clicks=clicks+1 WHERE id=" . (int) $_GET['id']);
        A::goUrl($row['url']);
    }
}
开发者ID:procivam,项目名称:s-mir-new,代码行数:16,代码来源:banners.php

示例15: sendMessage

 /**
  * Обработчик действия: Отправка сообщения.
  */
 function sendMessage()
 {
     if (empty($_REQUEST['captcha']) || md5(strtolower($_REQUEST['captcha'])) != A_Session::get('captcha')) {
         $this->errors['captcha'] = true;
         return false;
     }
     A_Session::unregister('captcha');
     $mail = new A_Mail(A::$OPTIONS['template'], "html");
     if (!empty($_REQUEST['email'])) {
         $mail->setFrom($_REQUEST['email'], !empty($_REQUEST['name']) ? $_REQUEST['name'] : '');
     }
     $mail->Assign("data", $_REQUEST);
     $fields = array();
     A::$DB->query("SELECT * FROM " . DOMAIN . "_fields WHERE item='" . SECTION . "' ORDER BY sort");
     while ($row = A::$DB->fetchRow()) {
         if ($row['type'] == "select" || $row['type'] == "mselect") {
             $row['options'] = loadList($row['property']);
             if ($row['type'] == "mselect") {
                 $row['value'] = array();
                 $values = isset($_REQUEST[$row['field']]) ? $_REQUEST[$row['field']] : array();
                 foreach ($values as $value) {
                     $row['value'][] = isset($row['options'][$value]) ? is_array($row['options'][$value]) ? $row['options'][$value]['name'] : $row['options'][$value] : "";
                 }
                 $row['value'] = implode(", ", $row['value']);
             } else {
                 $row['value'] = isset($_REQUEST[$row['field']]) ? (int) $_REQUEST[$row['field']] : 0;
                 $row['value'] = isset($row['options'][$row['value']]) ? $row['options'][$row['value']] : "";
                 if (is_array($row['value'])) {
                     $row['data'] = $row['value'];
                     $row['value'] = !empty($row['data']['name']) ? $row['data']['name'] : "";
                 }
             }
         } elseif ($row['type'] == "file") {
             if (isset($_FILES[$row['field']]['tmp_name']) && is_file($_FILES[$row['field']]['tmp_name'])) {
                 $mail->addAttachment($_FILES[$row['field']]['tmp_name'], $_FILES[$row['field']]['name'], $_FILES[$row['field']]['type']);
             }
         } else {
             $row['value'] = isset($_REQUEST[$row['field']]) ? strip_tags($_REQUEST[$row['field']]) : "";
         }
         if ($row['type'] == "float") {
             $row['value'] = round($row['value'], 2);
         }
         $row['name'] = $row['name_' . LANG];
         $fields[$row['field']] = $row;
     }
     A::$DB->free();
     $mail->Assign("fields", $fields);
     if (isset($fields['subject'])) {
         $mail->setSubject($fields['subject']['value']);
     }
     if (isset($_REQUEST['mailto']) && isset($fields['mailto']['options'][$_REQUEST['mailto']]['email'])) {
         $mail->send($fields['mailto']['options'][$_REQUEST['mailto']]['email']);
     } elseif (!empty(A::$OPTIONS['email'])) {
         $mail->send(A::$OPTIONS['email']);
     }
     $data = array('date' => time(), 'message' => $mail->getContent(), 'data' => serialize($fields));
     if (A::$AUTH->isLogin()) {
         $data['iduser'] = A::$AUTH->id;
     }
     if ($id = A::$DB->Insert(SECTION . "_arch", $data)) {
         A_Session::set(SECTION . "_id", $id);
         A::goUrl(getSectionLink(SECTION) . "message.html");
     } else {
         return false;
     }
 }
开发者ID:procivam,项目名称:s-mir-new,代码行数:69,代码来源:feedback.php


注:本文中的A::goUrl方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。