• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP CGlobal类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: ManageBookingVipForm

 function ManageBookingVipForm()
 {
     Form::Form('ManageBookingVipForm');
     CGlobal::$website_title = "Quản trị booking vip";
     $this->link_css('style/aznet/ui.datepicker.css');
     $this->link_js('javascript/jquery/ui.datepicker.js');
 }
开发者ID:duynhan07,项目名称:elink,代码行数:7,代码来源:ManageBookingVip.php


示例2: ZoneEditForm

 function ZoneEditForm()
 {
     Form::Form('ZoneEditForm');
     if (Url::get('cmd') == 'edit') {
         CGlobal::$website_title = 'Sửa Nhóm Danh mục';
         $id = (int) Url::get('id', 0);
         if ($id) {
             $this->cat_zone = DB::select('category_zone', 'id=' . $id);
         }
         if (!$this->cat_zone) {
             Url::redirect_current();
         }
         //$re = DB::query("SELECT c.id, c.name FROM (SELECT zoneid, catid FROM category_zone_cat WHERE zoneid=$id) AS z LEFT JOIN category AS c ON c.id=z.catid");
         $re = DB::query("SELECT catid FROM category_zone_cat WHERE zoneid={$id} ORDER BY position");
         if ($re) {
             while ($cat = mysql_fetch_assoc($re)) {
                 //$this->cats[$cat['id']] = $cat;
                 if ($this->cats != '') {
                     $this->cats .= ',';
                 }
                 $this->cats .= $cat['catid'];
             }
         }
     } else {
         CGlobal::$website_title = 'Thêm Nhóm Danh mục';
         $this->cat_zone = array('name' => '', 'brief_name' => '', 'position' => 1, 'status' => 0, 'class' => 'fashion');
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:28,代码来源:ZoneEdit.php


示例3: RegisterForm

 function RegisterForm()
 {
     $this->link_css('style/register.css');
     // $this->link_js('style/platform/js/register.js');
     Form::Form('Register');
     CGlobal::$website_title = " Sign up";
 }
开发者ID:hqd276,项目名称:bigs,代码行数:7,代码来源:register.php


示例4: SearchSphinxForm

 function SearchSphinxForm()
 {
     Form::Form('SearchResultForm');
     $this->link_css('style/listItem.css');
     $keywords = AZLib::getParam('keywords');
     if ($keywords != '') {
         CGlobal::$website_title = "{$keywords} - Tìm bởi " . WEB_NAME;
         CGlobal::$meta_desc = "Tìm kiếm nội dung liên quan tới {$keywords} - Tìm bởi " . WEB_NAME;
     } else {
         CGlobal::$website_title = "Trang tìm kiếm sản phẩm";
         CGlobal::$meta_desc = "Trang tìm kiếm sản phẩm";
     }
     $this->search_catid = (int) Url::get('search_catid', -1);
     if ($this->search_catid <= 0 || !isset(CGlobal::$allCategories[$this->search_catid]) || CGlobal::$allCategories[$this->search_catid]['status'] == 'HIDE') {
         $this->search_catid = 0;
     }
     if ($this->search_catid) {
         $curCategory = CGlobal::$allCategories[$this->search_catid];
         if ($curCategory['parent_id'] && isset(CGlobal::$allCategories[$curCategory['parent_id']])) {
             $parent_cat = CGlobal::$allCategories[$curCategory['parent_id']];
             $this->search_top_catid = $curCategory['parent_id'];
             $this->search_sec_catid = $this->search_catid;
         } else {
             $this->search_top_catid = $this->search_catid;
         }
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:27,代码来源:sphinx_search.php


示例5: __construct

 function __construct()
 {
     Form::Form('HeaderForm');
     if (User::have_permit(ADMIN_LOGO)) {
         $this->link_css('style/aznet/ui.datepicker.css');
         $this->link_js('javascript/jquery/ui.datepicker.js');
     }
     if (User::is_login() && User::level()) {
         $this->link_header("<script>MM_preloadImages('style/images/newCart/icon_del.gif','style/images/newCart/Mua.png');</script>");
     }
     // session session_id()
     CGlobal::$cart_sess_id = isset($_COOKIE['cart_sess_id']) ? $_COOKIE['cart_sess_id'] : '';
     if (CGlobal::$cart_sess_id) {
         AZLib::my_setcookie('cart_sess_id', session_id(), time() + 3600 * 24 * 365);
     }
     $this->link_js(FOLDER_JS . 'jquery.min.js');
     $this->link_js(FOLDER_JS . 'jquery-ui.js');
     $this->link_js(FOLDER_JS . 'jcarousellite_1.0.1c4.js');
     $this->link_js(FOLDER_JS . 'ui/jquery.ui.core.js');
     $this->link_js(FOLDER_JS . 'ui/jquery.ui.widget.js');
     $this->link_js(FOLDER_JS . 'ui/jquery.ui.tabs.js');
     $this->link_js('static/lightbox/js/jquery.lightbox-0.5.js');
     $this->link_js('static/adgallery/jquery.ad-gallery.js');
     $this->link_css(FOLDER_CSS . 'menu.css@lang=vi-vn.css');
     $this->link_css(FOLDER_CSS . 'sanpham.css@lang=vi-vn.css');
     $this->link_css(FOLDER_CSS . 'style.css@lang=vi-vn.css');
     $this->link_css(FOLDER_CSS . 'style_new.css@lang=vi-vn.css');
     $this->link_css(FOLDER_CSS . 'tintuc.css@lang=vi-vn.css');
     $this->link_css(FOLDER_CSS . 'trangchu.css@lang=vi-vn.css');
     $this->link_css(FOLDER_CSS . 'custom.css');
     $this->link_css(FOLDER_CSS . 'home.css');
     $this->link_css(FOLDER_CSS . 'base/jquery.ui.all.css');
     $this->link_css('static/lightbox/css/jquery.lightbox-0.5.css');
     $this->link_css('static/adgallery/jquery.ad-gallery.css');
 }
开发者ID:duynhan07,项目名称:elink,代码行数:35,代码来源:header.php


示例6: FilterForm

 function FilterForm()
 {
     Form::Form('FilterForm');
     CGlobal::$website_title = 'Thuộc tính chuyên mục';
     $fgroup_id = (int) Url::get('fgroup_id', 0);
     if ($fgroup_id) {
         $this->filter_group = DB::select('filter_group', 'id=' . $fgroup_id);
     }
     if (!$this->filter_group) {
         Url::redirect_current();
     }
     #############################################################################
     #Remove filter_group khỏi danh mục
     $catid_remove = (int) Url::get('catid_remove', 0);
     if ($catid_remove) {
         Category::remove_cat_group_filer($catid_remove, $fgroup_id);
         Url::redirect_current(array('cmd', 'fgroup_id'));
     }
     #Remove filter_group khỏi danh mục
     #############################################################################
     #############################################################################
     #Xóa filter
     $f_del = (int) Url::get('f_del', 0);
     if ($f_del) {
         $this->filter = DB::select('filter', 'id=' . $f_del);
         if ($this->filter && $this->filter['fgid'] == $this->filter_group['id']) {
             DB::delete("filter", "id={$f_del}");
         }
         AZLib::getFilters(1);
         Url::redirect_current(array('cmd', 'fgroup_id'));
     }
     #Xóa filter
     #############################################################################
 }
开发者ID:duynhan07,项目名称:elink,代码行数:34,代码来源:Filter.php


示例7: AddContentForm

 function AddContentForm()
 {
     Form::Form('AddContentForm');
     CGlobal::$website_title = "Thêm nội dung Spam";
     $this->link_css('style/manage_item.css');
     $this->spam_content = array('des' => '', 'subject' => '', 'content' => '', 'status' => 0);
 }
开发者ID:duynhan07,项目名称:elink,代码行数:7,代码来源:AddContent.php


示例8: PublicSurveyAdmin

 function PublicSurveyAdmin($row)
 {
     Module::Module($row);
     CGlobal::$website_title = AZNet::$page['title'];
     if (User::is_admin()) {
         $cmd = Url::get('cmd', 'list');
         switch ($cmd) {
             case 'delete':
                 $this->add_form(new DeleteSurveyForm());
                 break;
             case 'edit':
                 $this->add_form(new EditSurveyForm());
                 break;
             case 'add':
                 $this->add_form(new AddSurveyForm());
                 break;
             case 'publish':
             case 'unpublish':
                 $this->add_form(new SubmitLink());
                 break;
             default:
                 $this->add_form(new ListSurveyForm());
                 break;
         }
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:26,代码来源:class.php


示例9: FeedbackAdmin

 function FeedbackAdmin($row)
 {
     Module::Module($row);
     CGlobal::$website_title = AZNet::$page['title'];
     if (User::is_admin()) {
         $cmd = Url::get('cmd');
         switch ($cmd) {
             case 'delete':
                 $this->add_form(new DeleteFeedBackForm());
                 break;
             case 'exam':
                 $this->add_form(new ExmamFeedBackForm());
                 break;
             case 'unexam':
                 $this->add_form(new UnexmamFeedBackForm());
                 break;
             case 'reply':
                 require_once "forms/FeedbackReply.php";
                 $this->add_form(new FeedbackReplyForm());
                 break;
             default:
                 require_once "forms/FeedbackAdmin.php";
                 $this->add_form(new FeedbackAdminForm());
                 break;
         }
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:27,代码来源:class.php


示例10: AdminNewsCategoryDetail

 function AdminNewsCategoryDetail()
 {
     Form::Form('AdminNewsCategoryDetail');
     //$this->link_css('style/chonmon_block.css');
     //$this->link_js('javascript/chonmon_block.js');
     CGlobal::$website_title = "Quản trị Danh mục Tin tức";
 }
开发者ID:hqd276,项目名称:bigs,代码行数:7,代码来源:detail.php


示例11: AdminRoleForm

 function AdminRoleForm()
 {
     $this->link_css('style/admin/role.css');
     $this->link_js('javascript/admin/role.js');
     Form::Form('AdminRoleForm');
     CGlobal::$website_title = "Quản trị Phân Quyền";
 }
开发者ID:hqd276,项目名称:bigs,代码行数:7,代码来源:AdminRoleForm.php


示例12: ForgotPasswordForm

 function ForgotPasswordForm()
 {
     $this->link_js('javascript/jquery/packed/jquery.validate.js');
     $this->link_css('style/forgot_password.css');
     Form::Form('ForgotPasswordForm');
     CGlobal::$website_title = "Reset Password";
 }
开发者ID:hqd276,项目名称:bigs,代码行数:7,代码来源:forgot_password.php


示例13: AddBookingVipForm

 function AddBookingVipForm()
 {
     Form::Form('AddBookingVipForm');
     CGlobal::$website_title = "Thêm booking VIP";
     $this->link_css('style/aznet/ui.datepicker.css');
     $this->link_js('javascript/jquery/ui.datepicker.js');
 }
开发者ID:duynhan07,项目名称:elink,代码行数:7,代码来源:AddBookingVip.php


示例14: CartAdminForm

 function CartAdminForm()
 {
     Form::Form('CartAdminForm');
     CGlobal::$website_title = "Quản lý đơn hàng";
     $this->link_css("style/aznet/ui.datepicker.css");
     $this->link_js("javascript/jquery/ui.datepicker.js");
 }
开发者ID:duynhan07,项目名称:elink,代码行数:7,代码来源:CartAdmin.php


示例15: ManageUserLock

 function ManageUserLock($row)
 {
     CGlobal::$website_title = 'Quản lý thành viên bị khóa';
     Module::Module($row);
     if (User::have_permit(ADMIN_USER)) {
         switch (Url::get('cmd')) {
             case 'unban_nick':
                 $id = (int) Url::get('id', 0);
                 $user_id = (int) Url::get('user_id', 0);
                 if ($id) {
                     DB::update('user', array('block_time' => 0), 'id="' . $user_id . '"');
                     DB::update('user_lock', array('unlock_time' => TIME_NOW, 'unlock_user' => User::user_name()), 'id = ' . $id);
                     User::getUser($id, 0, 1);
                 }
                 Url::redirect_url(Url::build_all(array('chk_id', 'del_all', 'cmd', 'id', 'lock_die_all', 'hd_ac')));
                 break;
             default:
                 require_once 'forms/ManageUserLock.php';
                 $this->add_form(new ListUserLockForm());
                 break;
         }
     } else {
         Url::access_denied();
     }
 }
开发者ID:duynhan07,项目名称:elink,代码行数:25,代码来源:class.php


示例16: SendMailForm

 function SendMailForm()
 {
     $this->link_css('style/admin/role.css');
     $this->link_js('javascript/admin/mail.js');
     Form::Form('SendMailForm');
     CGlobal::$website_title = "Gửi mail Discount";
 }
开发者ID:hqd276,项目名称:bigs,代码行数:7,代码来源:Send.php


示例17: AdminUserForm

 function AdminUserForm()
 {
     $this->link_css('style/admin/role.css');
     $this->link_js('javascript/admin/role.js');
     CGlobal::$website_title = "Danh sách Quản trị";
     Form::Form('AdminUserForm');
 }
开发者ID:hqd276,项目名称:bigs,代码行数:7,代码来源:AdminUserForm.php


示例18: Map

 function Map($row)
 {
     Module::Module($row);
     CGlobal::$website_title = AZNet::$page['title'];
     require_once "forms/MapView.php";
     $this->add_form(new MapViewForm());
 }
开发者ID:duynhan07,项目名称:elink,代码行数:7,代码来源:class.php


示例19: __construct

 function __construct()
 {
     Form::Form('ContactForm');
     $this->link_css('style/contact.css');
     $this->link_js('javascript/default/support.js');
     CGlobal::$website_title = 'Liên hệ';
 }
开发者ID:hqd276,项目名称:bigs,代码行数:7,代码来源:contact.php


示例20: ListItem

 function ListItem($row)
 {
     Module::Module($row);
     CGlobal::$website_title = AZLib::titlePath(CGlobal::$curCategory);
     require_once 'forms/ListItem.php';
     $this->add_form(new ListItemForm());
 }
开发者ID:duynhan07,项目名称:elink,代码行数:7,代码来源:class.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP CGridColumn类代码示例发布时间:2022-05-23
下一篇:
PHP CFunctions类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap