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


PHP base::subHeader方法代碼示例

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


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

示例1: signup

 public function signup()
 {
     $this->exportJS("\$('#docNav').hide();");
     $data = base::subHeader("Create an Account", "Add your Company to the Support System");
     $data .= base::begin();
     $data .= base::pageHeader("Before you Begin", "You are about to create an account. If your company is already in our system, please have your company administrator add your account. You will only be able to add your company once.");
     $elements = [];
     $elements[] = ['type' => 'input', 'var' => 'user_name', 'text' => 'Full Name:', 'comment' => 'Main contact for account'];
     $elements[] = ['type' => 'input', 'var' => 'user_email', 'text' => 'E-mail Address:', 'comment' => 'Also your login to this system'];
     $elements[] = ['type' => 'password', 'var' => 'user_password', 'text' => 'Password:'];
     $elements[] = ['type' => 'input', 'var' => 'user_phone', 'text' => 'Phone Number (and Extension):', 'comment' => 'xxx.xxx.xxxx ext. xxx'];
     $elements[] = ['type' => 'input', 'var' => 'user_title', 'text' => 'Your Title:', 'comment' => 'Leave blank if individual'];
     $span = [];
     $span[] = ['span' => 6, 'elements' => $elements];
     $elements = [];
     $elements[] = ['type' => 'input', 'var' => 'company_name', 'text' => 'Company Name:', 'comment' => 'If individual leave this blank'];
     $elements[] = ['type' => 'input', 'var' => 'company_address', 'text' => 'Address:', 'comment' => 'Where to mail invoices if required?'];
     $elements[] = ['type' => 'input', 'var' => 'company_address2', 'text' => 'Address Line 2:', 'comment' => 'Suite, etc.'];
     $elements[] = ['type' => 'input', 'var' => 'company_city', 'text' => 'City:'];
     $elements[] = ['type' => 'input', 'var' => 'company_state', 'text' => 'State:'];
     $elements[] = ['type' => 'input', 'var' => 'company_zip', 'text' => 'Zip:'];
     $span[] = ['span' => 6, 'elements' => $elements];
     $form = form::init()->spanElements($span)->id('createAccount')->post('/login/')->render();
     $button = button::init()->formid('createAccount')->text('Create My Account')->addStyle('post')->addStyle('btn-primary')->icon('fire')->message('Creating Account..')->postVar('createAccount')->render();
     $save = "<div class='pull-right'>{$button}</div>";
     $data .= widget::init()->icon('share-alt')->span(12)->header('Account Details')->content($form)->footer($save)->render();
     $this->export($data);
 }
開發者ID:carriercomm,項目名稱:atikit,代碼行數:28,代碼來源:login.php

示例2: __construct

 public function __construct()
 {
     parent::__construct();
     $data = base::subHeader("Billing Administration", "Update your Records and Download Invoices");
     $data .= base::begin();
     $this->export($data);
 }
開發者ID:carriercomm,項目名稱:atikit,代碼行數:7,代碼來源:billing.php

示例3: main

 public function main()
 {
     $data = base::subHeader("Open Incidents", "Create, Update or View your Open Tickets");
     $data .= base::begin();
     if ($this->isProvidingCompany()) {
         $data .= $this->providerMain();
     } else {
         $data .= $this->customerMain();
     }
     $this->export($data);
 }
開發者ID:carriercomm,項目名稱:atikit,代碼行數:11,代碼來源:index.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     if (!$this->isProvidingCompany()) {
         // Only accessible by provider
         $this->reloadTarget();
     }
     $data = base::subHeader("Client List", "View/Create/List Clients");
     $data .= base::begin();
     $this->export($data);
 }
開發者ID:carriercomm,項目名稱:atikit,代碼行數:11,代碼來源:clients.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     if (!$this->isAdmin()) {
         die;
     }
     $data = base::subHeader("aTikit Admin", "Modify Users, Clients, Queues and Access Levels");
     $data .= base::begin(true);
     $data .= base::crumbs([['url' => '#', 'text' => 'Admin']]);
     $this->export($data);
 }
開發者ID:carriercomm,項目名稱:atikit,代碼行數:11,代碼來源:admin.php

示例6: processAccept

 public function processAccept($content)
 {
     $sow = $this->query("SELECT * from sows WHERE sow_hash='{$content['hash']}'")[0];
     if (!$sow) {
         $this->reloadTarget();
     }
     $ticket = $this->query("SELECT id,company_id FROM tickets WHERE id='{$sow['ticket_id']}'")[0];
     $uid = $this->returnFieldFromTable("id", "users", "company_id='{$ticket['company_id']}'");
     $now = time();
     $this->query("UPDATE sows SET sow_accepted = true, sow_acceptuid='{$uid}', sow_acceptts='{$now}'");
     $this->export(base::subHeader("Statement Accepted", "Your statement has been accepted."));
     $this->export(base::pageHeader("Statement Accepted", "The statement has been accepted and is ready for work to begin."));
     $this->notifyProvider("Statement Accepted", $this->getUserByID($uid) . " accepted the Statement of Work for Ticket #{$ticket['id']} and is ready for work to be completed.", "/ticket/{$ticket['id']}/");
     $this->mailProvider("Statement of Work Accepted", $this->getUserByID($uid) . " accepted the Statement of Work for Ticket #{$ticket['id']} and is ready for work to be completed.", $ticket['queue_id']);
 }
開發者ID:carriercomm,項目名稱:atikit,代碼行數:15,代碼來源:accept.php

示例7: showTicket

 public function showTicket($content)
 {
     $id = $content['view'];
     $ticket = $this->query("SELECT * from tickets WHERE id='{$id}'")[0];
     $this->pageTitle = "#{$id} - {$ticket['ticket_title']}";
     if ($this->isProvidingCompany()) {
         if (!$ticket || !$this->isMyQueue($ticket['queue_id']) || !$this->isMyTicket($ticket)) {
             $this->reloadTarget();
         }
     } else {
         if (!$ticket || !$this->isMyTicket($ticket)) {
             $this->reloadTarget();
         }
     }
     // Access Granted at this point.
     $data = base::subHeader($this->getCompanyById($ticket['company_id']), $ticket['ticket_title']);
     $data .= base::begin();
     $this->export($data);
     $this->showTicketDetails($ticket);
 }
開發者ID:carriercomm,項目名稱:atikit,代碼行數:20,代碼來源:ticket.php


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