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

PHP html_table函数代码示例

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

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



在下文中一共展示了html_table函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:34,代码来源:base_verror.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:34,代码来源:miguel_verror.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:34,代码来源:miguel_selectlangform.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:37,代码来源:miguel_licenceform.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:7,代码来源:miguel_vpageviewer.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:10,代码来源:miguel_navform.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:8,代码来源:miguel_adduserlistForm.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:8,代码来源:miguel_vexit.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:9,代码来源:miguel_coursesubmitform.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:11,代码来源:miguel_newfolderform.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:14,代码来源:miguel_valorateform.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:11,代码来源:miguel_renameform.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:11,代码来源:miguel_newsubmenuform.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:16,代码来源:miguel_newtopicform.class.php


示例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;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:12,代码来源:miguel_submitfileform.class.php


示例16: add_info

 function add_info($arrActivities)
 {
     $table = html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 5);
     $title = html_td('ptabla01', '', 'Activities del curso');
     $title->set_tag_attribute('colspan', 3);
     $table->add_row($title);
     for ($i = 0; $i < count($arrActivities); $i++) {
         $table->add($this->add_activity($arrActivities[$i]['title'], $arrActivities[$i]['body'], $arrActivities[$i]['id'], $i));
     }
     $table->add_row($title);
     return $table;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:12,代码来源:miguel_vcourseactivities.class.php


示例17: form

 function form()
 {
     $table = html_table('50%', 0, 1, 3);
     $fila = html_tr();
     $elem = html_td('color1-bg', 'left', $this->element_form('name'), $this->add_action('Editar perfil'));
     $elem->set_id('identification');
     $fila->add($elem);
     $table->add_row($fila);
     unset($fila);
     unset($elem);
     return $table;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:12,代码来源:miguel_edituserprofileForm.class.php


示例18: form

 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     $table->set_class('ptabla02');
     $table->add_row($this->_showElement('title', '7', 'title', 'Concepto', 'title', 'left'));
     $table->add_row($this->_showElement('body', '8', 'body', 'Descripción', 'body', 'left'));
     $this->set_form_tabindex('Guardar', '10');
     $label = html_label('submit');
     $label->add($this->element_form('Guardar'));
     $table->add_row(html_td('', 'left', $label));
     return $table;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:12,代码来源:miguel_courseevaluationform.class.php


示例19: form

 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     $table->set_class('ptabla02');
     $table->add_row($this->_showElement('objectives', '7', 'objectives', 'Objetivos', 'objectives', 'left'));
     $table->add_row($this->_showElement('description', '8', 'description', 'Descripción', 'description', 'left'));
     $table->add_row($this->_showElement('contents', '9', 'contents', 'Contenidos', 'contents', 'left'));
     $this->set_form_tabindex('Guardar', '10');
     $label = html_label('submit');
     $label->add($this->element_form('Guardar'));
     $table->add_row(html_td('', 'left', $label));
     return $table;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:13,代码来源:miguel_coursecardform.class.php


示例20: form

 /**
  * Este metodo construye el formulario en sí.
  */
 function form()
 {
     $table =& html_table($this->_width, 0, 2, 2);
     //$table->set_style("border: 1px solid");
     $elem = html_td("colorLogin-bg", "", container("Nombre de usuario", html_br(), $this->element_form("Nombre de usuario")));
     $elem->set_id("identification");
     $table->add_row($elem);
     $elem = html_td("colorLogin-bg", "", container("Clave de acceso", html_br(), $this->element_form("Clave de acceso")));
     $elem->set_id("identification");
     $table->add_row($elem);
     $table->add_row($this->add_action("Entrar"), _HTML_SPACE);
     return $table;
 }
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:16,代码来源:miguel_authForm.class.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP html_tag函数代码示例发布时间:2022-05-15
下一篇:
PHP html_submit函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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