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


PHP TPage::include_css方法代碼示例

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


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

示例1: __construct

 /**
  * Class constructor
  * Creates the page
  */
 function __construct()
 {
     parent::__construct();
     try {
         TTransaction::open("sample");
         $evento = new Agenda(R);
         $evento->nome = "Curso Adianti framework";
         $evento->lugar = "Progs Scholl alterado";
         $evento->descricao = "Curso basico";
         $evento->data_ev = date("Y-m-d");
         $evento->hora_ev = date("h:m:");
         $evento->store();
         TTransaction::close();
     } catch (Exception $e) {
         echo $e->getMessage();
     }
     TPage::include_css('app/resources/styles.css');
     $this->html = new THtmlRenderer('app/resources/wellcome.html');
     // define replacements for the main section
     $replace = array();
     // replace the main section variables
     $this->html->enableSection('main', $replace);
     // add the template to the page
     parent::add($this->html);
 }
開發者ID:cbsistem,項目名稱:Cursos,代碼行數:29,代碼來源:WellcomeView.class.php

示例2: __construct

 /**
  * Class Constructor
  * @param $type    Type of the message (info, error)
  * @param $message Message to be shown
  * @param $action  Action to process
  */
 public function __construct($type, $message, TAction $action = NULL)
 {
     $this->id = uniqid();
     if (!is_null($action)) {
         $this->action = '__adianti_load_page(\'' . $action->serialize() . '\');';
     }
     if (TPage::isMobile()) {
         $img = new TElement('img');
         $img->src = "lib/adianti/images/{$type}.png";
         $table = new TTable();
         $table->width = '250px';
         $table->bgcolor = '#E5E5E5';
         $table->style = "border-collapse:collapse";
         $row = $table->addRow();
         $row->addCell($img);
         $row->addCell($message);
         $table->show();
     } else {
         TPage::include_css('lib/adianti/include/tmessage/tmessage.css');
         // creates a pannel to show the dialog
         $painel = new TElement('div');
         $painel->{'class'} = 'tmessage';
         $painel->id = 'tmessage_' . $this->id;
         // creates a table for layout
         $table = new TTable();
         // creates a row for the icon and the message
         $row = $table->addRow();
         $row->addCell(new TImage("lib/adianti/images/{$type}.png"));
         $scroll = new TScroll();
         $scroll->setSize(350, 70);
         $scroll->add($message);
         $scroll->setTransparency(true);
         $cell = $row->addCell($scroll);
         // add the table to the pannel
         $painel->add($table);
         // show the pannel
         $painel->show();
         $script = new TElement('script');
         $script->{'type'} = 'text/javascript';
         $script->add(' $(function() {
             $( "#' . $painel->id . '" ).dialog({
                 height: 180,
                 width: 440,
                 stack: false,
                 zIndex: 3000,
                 modal: true,
                 buttons: {
                     OK: function() {
                         $( this ).dialog( "close" ); ' . $this->action . '
                     }
                 }
                 }).css("visibility", "visible");
                 
             	$( "#' . $painel->id . ' a" ).click(function () {
             	    window.open($(this).attr(\'href\'));
                 }); 
             });');
         $script->show();
     }
 }
開發者ID:enieber,項目名稱:adianti,代碼行數:66,代碼來源:TMessage.class.php

示例3: __construct

 /**
  * Class Constructor
  * @param  $value text label
  */
 public function __construct($type = 'plus')
 {
     TPage::include_css('app/lib/PComponetes/util/glyphicons.min.css');
     // create a new element
     $this->tag = new TElement('i');
     $this->tag->{'class'} = "glyphicon glyphicon-{$type}";
 }
開發者ID:jhonleandres,項目名稱:pecommerce,代碼行數:11,代碼來源:PIco.class.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     $this->datagrid = new TQuickGrid();
     $this->datagrid->setHeight(320);
     // define the CSS class
     $this->datagrid->class = 'customized-table';
     // import the CSS file
     parent::include_css('app/resources/custom-table.css');
     // add the columns
     $this->datagrid->addQuickColumn('ID', 'id', 'left', 50);
     $this->datagrid->addQuickColumn('Description', 'description', 'left', 250);
     $this->datagrid->addQuickColumn('Amount', 'amount', 'right', 140);
     $this->datagrid->addQuickColumn('Price', 'sale_price', 'right', 140);
     // add the actions
     $this->datagrid->addQuickAction('Delete', new TDataGridAction(array($this, 'onDelete')), 'id', 'ico_delete.png');
     // creates the datagrid model
     $this->datagrid->createModel();
     $form_back = new TQuickForm();
     $form_back->addQuickAction('Back', new TAction(array($this, 'onGoToCatalog')), 'ico_back.png');
     // wrap the page content using vertical box
     $vbox = new TVBox();
     $vbox->add(new TXMLBreadCrumb('menu.xml', 'ProductCatalogView'));
     $vbox->add($this->datagrid);
     $vbox->add($form_back);
     parent::add($vbox);
 }
開發者ID:jfrank1500,項目名稱:curso_php,代碼行數:27,代碼來源:CartManagementView.class.php

示例5: __construct

 /**
  * Constructor method
  */
 public function __construct()
 {
     parent::__construct();
     // load the styles
     TPage::include_css('app/resources/styles.css');
     // define two actions
     $action1 = new TAction(array($this, 'onAction1'));
     $action2 = new TAction(array($this, 'onAction2'));
     // create a quick form with two action buttons
     $form = new TQuickForm();
     $form->addQuickAction('Action 1', $action1, 'ico_view.png');
     $form->addQuickAction('Action 2', $action2, 'ico_view.png');
     try {
         // create the HTML Renderer
         $this->html = new THtmlRenderer('app/resources/content.html');
         // define replacements for the main section
         $replace = array();
         $replace['name'] = 'Test name';
         $replace['address'] = 'Test address';
         // replace the main section variables
         $this->html->enableSection('main', $replace);
         // Table wrapper (form and HTML)
         $table = new TTable();
         $table->addRow()->addCell(new TXMLBreadCrumb('menu.xml', __CLASS__));
         $table->addRow()->addCell($form);
         $table->addRow()->addCell($this->html);
         parent::add($table);
     } catch (Exception $e) {
         new TMessage('error', $e->getMessage());
     }
 }
開發者ID:jfrank1500,項目名稱:curso_php,代碼行數:34,代碼來源:TemplateViewAdvancedView.class.php

示例6: __construct

 public function __construct($width = 500, $height = 400)
 {
     parent::__construct('div');
     $this->id = "PPanelGrupe" . uniqid();
     $this->style = "\nborder:1px solid #000;\nwidth :{$width}px;\nheight :{$height}px;\n";
     TPage::include_css('app/lib/PComponetes/util/fieldset.css');
     $this->code = array();
 }
開發者ID:cbsistem,項目名稱:PComponetes,代碼行數:8,代碼來源:PPanelGrupe.class.php

示例7: __construct

 public function __construct($banco, $model, $criteria, $timer)
 {
     TPage::include_css('app/lib/PComponetes/util/css/bootstrap.css');
     $this->datagrid = new TQuickGrid();
     $this->datagrid->class = "table table-hover";
     $this->timer = new PTimer($banco, $model, $criteria, $timer);
     $this->time = $timer;
 }
開發者ID:jhonleandres,項目名稱:pecommerce,代碼行數:8,代碼來源:PDataGrid.php

示例8: __construct

 /**
  * Class Constructor
  * @param  $value text label
  */
 public function __construct($value, $type = 'default')
 {
     TPage::include_css('app/lib/PComponetes/util/label.min.css');
     // set the label's content
     $this->setValue($value);
     $this->setType($type);
     // create a new element
     $this->tag = new TElement('a');
     $this->tag->{'class'} = $this->type;
 }
開發者ID:cbsistem,項目名稱:PComponetes,代碼行數:14,代碼來源:PLink.php

示例9: __construct

 /**
  * Class Constructor
  * @param $source Image path
  */
 public function __construct($type = 'danger', $msg = 'alerta', $titulo = "Alerta")
 {
     TPage::include_js('app/lib/PComponetes/util/js/bootstrap.js');
     TPage::include_css('app/lib/PComponetes/util/css/bootstrap.css');
     parent::__construct('div');
     $this->setType($type);
     $this->titulo = $titulo;
     $this->msg = $msg;
     $this->class = "alert alert-dismissable {$this->type} ";
     $this->role = "alert";
 }
開發者ID:jhonleandres,項目名稱:pecommerce,代碼行數:15,代碼來源:PAlert.php

示例10: __construct

 /**
  * Método construtor
  * @param $widths vetor contendo as larguras das colunas
  */
 public function __construct()
 {
     TPage::include_css('app/lib/PComponetes/util/table.min.css');
     // cria uma nova tabela
     $this->table = new TElement('table');
     $this->table->cellspacing = 0;
     $this->table->cellpadding = 0;
     $this->table->class = "ptable ptable-striped";
     $this->thead = new TElement('thead');
     $this->tbody = new TElement('tbody');
 }
開發者ID:jhonleandres,項目名稱:pecommerce,代碼行數:15,代碼來源:PTableWriteHTML.class.php

示例11: __construct

 /**
  * Class Constructor
  * @param  $name widget's name
  */
 public function __construct($name)
 {
     // executes the parent class constructor
     parent::__construct($name);
     $this->id = 'tcombo_' . uniqid();
     TPage::include_css('lib/adianti/include/tcombo/tcombo.css');
     // creates a <select> tag
     $this->tag = new TElement('select');
     $this->tag->{'class'} = 'tcombo';
     // CSS
 }
開發者ID:enieber,項目名稱:adianti,代碼行數:15,代碼來源:TCombo.class.php

示例12: __construct

 /**
  * Class constructor
  * Creates the page
  */
 function __construct()
 {
     parent::__construct();
     TPage::include_css('app/resources/styles.css');
     $this->html = new THtmlRenderer('app/resources/wellcome.html');
     // define replacements for the main section
     $replace = array();
     // replace the main section variables
     $this->html->enableSection('main', $replace);
     // add the template to the page
     parent::add($this->html);
 }
開發者ID:jhonleandres,項目名稱:pecommerce,代碼行數:16,代碼來源:WellcomeView.class.php

示例13: __construct

 /**
  * Class Constructor
  * @param $name Name of the widget
  */
 public function __construct($name)
 {
     parent::__construct($name);
     self::$counter++;
     $this->id = 'tdate_' . uniqid();
     $this->mask = 'yyyy-mm-dd';
     TPage::include_css('lib/adianti/include/tdate/tdate.css');
     $newmask = $this->mask;
     $newmask = str_replace('dd', '99', $newmask);
     $newmask = str_replace('mm', '99', $newmask);
     $newmask = str_replace('yyyy', '9999', $newmask);
     parent::setMask($newmask);
 }
開發者ID:jhonleandres,項目名稱:pecommerce,代碼行數:17,代碼來源:TDate.class.php

示例14: __construct

 /**
  * Class constructor
  * Creates the page
  */
 function __construct()
 {
     parent::__construct();
     TSession::freeSession();
     TPage::include_css('app/view/css/login.css');
     $this->html = new THtmlRenderer('app/view/frmLogin.html');
     // define replacements for the main section
     $replace = array();
     // replace the main section variables
     $this->html->enableSection('main', $replace);
     // add the template to the page
     parent::add($this->html);
 }
開發者ID:cbsistem,項目名稱:livro_adianti_3_0,代碼行數:17,代碼來源:Home.class.php

示例15: __construct

 /**
  * Class Constructor
  * @param  $name name of the field
  */
 public function __construct($name)
 {
     // define some default properties
     self::setEditable(TRUE);
     self::setName($name);
     self::setSize(200);
     // initialize validations array
     $this->validations = array();
     TPage::include_css('lib/adianti/include/tfield/tfield.css');
     // creates a <input> tag
     $this->tag = new TElement('input');
     $this->tag->{'class'} = 'tfield';
     // classe CSS
 }
開發者ID:enieber,項目名稱:adianti,代碼行數:18,代碼來源:TField.class.php


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