本文整理汇总了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);
}
示例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();
}
}
示例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}";
}
示例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);
}
示例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());
}
}
示例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();
}
示例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;
}
示例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;
}
示例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";
}
示例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');
}
示例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
}
示例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);
}
示例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);
}
示例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);
}
示例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
}