本文整理汇总了PHP中html_table函数的典型用法代码示例。如果您正苦于以下问题:PHP html_table函数的具体用法?PHP html_table怎么用?PHP html_table使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_table函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: main_block
/**
*
*/
function main_block()
{
$main = html_div();
$main->set_id('content');
$title = html_h2('Se ha producido un error');
$title->set_tag_attribute('class', 'warncolor');
$main->add($title);
//Puede no estar definido el contexto
$width = Session::getContextValue('mainInterfaceWidth');
if (!isset($width)) {
$width = '100%';
}
$table = html_table($width, 0, 1, 0);
//Puede no estar definido el error
$error = $this->getViewVariable('str_error');
if (!isset($error)) {
$error = 'No error code was given';
}
$row = html_td('warncolor', '', $error);
$row->set_tag_attribute('align', 'center');
$table->add_row($row);
//Puede no estar definido la url de retorno
$url = $this->getViewVariable('str_url');
if (isset($url)) {
$row = html_td('', '', html_a($url, agt('Volver')));
$row->set_tag_attribute('align', 'center');
$table->add_row($row);
}
$main->add($table);
return $main;
}
示例2: main_block
/**
*
*/
function main_block()
{
$main = html_div();
$main->set_id("content");
$title = html_h2("Se ha producido un error");
$title->set_tag_attribute("class", "warncolor");
$main->add($title);
//Puede no estar definido el contexto
$width = Session::getContextValue("mainInterfaceWidth");
if (!isset($width)) {
$width = "100%";
}
$table = html_table($width, 0, 8, 0);
//Puede no estar definido el error
$error = $this->getViewVariable('str_error');
if (!isset($error)) {
$error = "No error code was given";
}
$row = html_td("warncolor", "", $error);
$row->set_tag_attribute("align", "center");
$table->add_row($row);
//Puede no estar definido la url de retorno
$url = $this->getViewVariable('str_url');
if (isset($url)) {
$row = html_td("", "", html_a($url, _('Volver')));
$row->set_tag_attribute("align", "center");
$table->add_row($row);
}
$main->add($table);
return $main;
}
示例3: form
/**
* Este metodo construye el formulario en sí.
*/
function form()
{
$ret_val = container();
$table =& html_table($this->_width, 0, 3);
$table->set_class("mainInterfaceWidth");
//$table->set_style("border: 1px solid");
$row = html_tr("");
$col1 = html_td("");
$col1->set_tag_attribute("align", "right");
$col1->add(html_b(agt("Idioma")));
$col2 = html_td("");
$col2->set_tag_attribute("align", "left");
$col2->add($this->element_form("miguel_lang"));
$row->add($col1, $col2);
$table->add($row);
$ret_val->add($table);
$ret_val->add(html_br(2));
$table =& html_table($this->_width, 0, 0);
$table->set_class("table100 main-info-cell");
$row = html_tr("");
$col1 = html_td("");
$col1->set_tag_attribute("align", "left");
$col1->add($this->element_form("Salir"));
$col2 = html_td("");
$col2->set_tag_attribute("align", "right");
$col2->add($this->element_form("Siguiente"));
$row->add($col1, $col2);
$table->add($row);
$ret_val->add($table);
return $ret_val;
}
示例4: form
/**
* Este metodo construye el formulario en sí.
*/
function form()
{
$ret_val = container();
$table =& html_table($this->_width, 0, 2);
$table->set_class("table100 main-info-cell");
$row0 = html_tr("");
$col0 = html_td("");
$col0->set_tag_attribute("align", "center");
$col0->set_tag_attribute("colspan", "2");
$col0->add($this->element_form("Licence"));
$row0->add($col0);
$table->add($row0);
$row00 = html_tr("");
$col00 = html_td("");
$col00->set_tag_attribute("align", "center");
$col00->set_tag_attribute("colspan", "2");
$col00->add(html_a(Util::app_urlPath('install/include/gpl_print.txt'), agt('Versión Imprimible')));
$row00->add($col00);
$table->add($row00);
$row = html_tr("");
$col1 = html_td("");
$col1->set_tag_attribute("align", "left");
$col1->add($this->element_form("Salir"));
$container = container();
$container->add($this->element_form("Regresar"));
$container->add($this->element_form("Acepto"));
$col2 = html_td("");
$col2->set_tag_attribute("align", "right");
$col2->add($container);
$row->add($col1, $col2);
$table->add($row);
$ret_val->add($table);
return $ret_val;
}
示例5: right_block
function right_block()
{
//$this->add(html_br());
$table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 1, 0);
$table->add_row(html_td('', '', $this->_getFileContent($this->getViewVariable('url'))));
return $table;
}
示例6: form
/**
* Este metodo construye el formulario en sÌ.
*/
function form()
{
$table =& html_table($this->_width, 0, 0, 0);
//$table->set_style("border: 1px solid");
$table->add_row($this->add_action("Regresar"), _HTML_SPACE);
return $table;
}
示例7: form
function form()
{
$table = html_table('100%', 0, 1, 3);
$elem = html_td('color1-bg', 'left', container(html_b('Ruta del archivo CSV'), $this->element_form('path'), $this->add_action('Procesar')));
$elem->set_id('identification');
$table->add_row($elem);
return $table;
}
示例8: main_block
function main_block()
{
$main = html_div();
$table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 1, 0);
$table->add_row($this->_block());
$main->add($table);
return $main;
}
示例9: form
function form()
{
$table =& html_table($this->_width, 0, 2, 2);
$this->set_form_tabindex('Modificar', '10');
$label = html_label('submit');
$label->add($this->element_form('Modificar'));
$table->add_row(html_td('', 'center', $label));
return $table;
}
示例10: form
function form()
{
$table =& html_table($this->_width, 0, 3);
$table->set_class("mainInterfaceWidth");
//$table->set_style("border: 1px solid");
$row = html_tr('ptabla03');
$row->add(html_td('ptabla02', '', $this->element_label('Nombre de la carpeta')), html_td('ptabla03', '', $this->element_form('Nombre de la carpeta')), html_td('', '', $this->element_form("Crear")));
$table->add_row($row);
//$table->add_row($this->element_form("Crear"), _HTML_SPACE);
return $table;
}
示例11: form
/**
* Este metodo construye el formulario en sÌ.
*/
function form()
{
$table =& html_table($this->_width, 0, 2, 2, 'center');
$item1 = html_td('', '', $this->element_form("valoracion"));
$item1->set_tag_attribute('align', 'center');
$item2 = html_td('', '', $this->element_form("aceptar"));
$item2->set_tag_attribute('align', 'center');
$table->add_row($item1);
$table->add_row($item2);
return $table;
}
示例12: form
function form()
{
$table =& html_table($this->_width, 0, 3);
$table->set_class("mainInterfaceWidth");
//$table->set_style("border: 1px solid");
$table->add_row($this->_tableRow("Nuevo nombre"));
$elem = html_td('ptabla03', '', container($this->element_form("Aceptar")));
$elem->set_tag_attribute('colspan', '9');
$table->add_row($elem);
return $table;
}
示例13: form
function form()
{
$table =& html_table($this->_width, 0, 2, 2);
$table->set_class('ptabla01');
$labelAdd = html_label('anadir');
$labelAdd->add($this->element_form('anadir'));
$tdAnadir = html_td('', 'left', $labelAdd);
$this->set_form_tabindex('anadir', '10');
$table->add_row($this->_showElement('name', '7', 'name', 'Nuevo submenú', 'name', 'left'), $tdAnadir);
return $table;
}
示例14: form
/**
* Este metodo construye el formulario que se va a mostrar en la Vista.
* Formatea la forma en que se va a mostrar al usuario los distintos elementos del formulario.
*/
function form()
{
//El formateo va a ser realizado sobre una tabla en la que cada fila es un campo del formulario
$table =& html_table($this->_width, 0, 2, 2);
$table->set_class('ptabla02');
$table->add_row($this->_showElement('nombre', '8', 'nombre', 'Nuevo Tema: ', 'nombre', 'left'));
$this->set_form_tabindex('Aceptar', '10');
$label = html_label('submit');
$label->add($this->element_form('Aceptar'));
$table->add_row(html_td('', 'left', $label));
return $table;
}
示例15: form
function form()
{
$table =& html_table($this->_width, 0, 3);
$table->set_class("mainInterfaceWidth");
//$table->set_style("border: 1px solid");
$table->add_row($this->_tableRow("Nombre del archivo"));
$this->set_form_tabindex("fileZip", '15');
$elem = html_td('ptabla03', '', container($this->element_form("fileZip"), _HTML_SPACE, $this->element_form("Aceptar")));
$elem->set_tag_attribute('colspan', '9');
$table->add_row($elem);
return $table;
}