本文整理汇总了PHP中html_br函数的典型用法代码示例。如果您正苦于以下问题:PHP html_br函数的具体用法?PHP html_br怎么用?PHP html_br使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_br函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: content_block
function content_block()
{
// Build the FormProcessor, and add the
// form content object that the FormProcessor
// will use.
//
$container = container();
// Create the form
if ($this->user_is_logged_in()) {
$form = new FlipTurnAdminLogoutForm("Admin Flip Turn Logout", null, 350);
} else {
$form = new FlipTurnAdminLoginForm("Admin Flip Turn Login", null, 350);
}
// Create the form processor
$fp = new FormProcessor($form);
// Don't display the form again if processing was successful.
$fp->set_render_form_after_success(false);
// Add the Form Processor to the container.
// If the Form Processor was succesful, display
// some a welcome message.
if ($fp->is_action_successful()) {
// Redirect to Member page on successful login
//die($_SERVER['PHP_SELF']) ;
$url = 'http://' . $_SERVER['HTTP_HOST'] . '/index.php';
header("Location: {$url}");
exit;
$container->add(html_br(2), $fp);
} else {
$container->add($fp);
}
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:32,代码来源:login-logout.php
示例2: content_block
function content_block()
{
// Build the FormProcessor, and add the
// form content object that the FormProcessor
// will use.
//
$container = container();
// Create the form
$form = new FlipTurnEditHomePageForm("Home Edit", null, '100%');
// Create the form processor
$fp = new FormProcessor($form);
// Don't display the form again if processing was successful.
$fp->set_render_form_after_success(false);
// Add the Form Processor to the container.
// If the Form Processor was succesful, display
// some statistics about the uploaded file.
if ($fp->is_action_successful()) {
//$container->add($form->get_action_message()) ;
// Add the Form Processor to the container.
$container->add(html_br(2), $fp);
} else {
$container->add($fp);
}
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:25,代码来源:home_edit.php
示例3: content_block
function content_block()
{
// Build the FormProcessor, and add the
// form content object that the FormProcessor
// will use.
//
$container = container();
// Create the form
$form = new ResultsQueuePurgeForm("Purge Results Queue", $_SERVER['PHP_SELF'], 600);
// Create the form processor
$fp = new FormProcessor($form);
// Don't display the form again if processing was successful.
$fp->set_render_form_after_success(false);
// Add the Form Processor to the container.
// If the Form Processor was succesful, display
// some statistics about the uploaded file.
if ($fp->is_action_successful()) {
//$container->add($form->get_action_message()) ;
// Add the Form Processor to the container.
$container->add(html_br(2), $fp);
} else {
$container->add($fp);
}
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:25,代码来源:queue_purge.php
示例4: add_mainMenu
function add_mainMenu()
{
$div = html_div('');
$div->add(html_br());
$table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0);
$row = html_tr();
$blank = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"), 10, 10));
//$blank->set_tag_attribute('colspan','4');
$image = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"), 20, 14));
$image->set_tag_attribute('align', 'right');
$image->set_tag_attribute('width', '40%');
$link = html_a(Util::format_URLPath("entityManager/index.php", 'submit=new'), agt('Registrar entidad'), null, "_top");
$link->set_tag_attribute('class', '');
$item1 = html_td('', '', $link);
$item1->set_tag_attribute('width', '20%');
$link = html_a(Util::format_URLPath("entityManager/index.php", 'submit=ficha entidad'), agt('Ficha entidad'), null, "_top");
$link->set_tag_attribute('class', '');
$item2 = html_td('', '', $link);
$item2->set_tag_attribute('width', '20%');
$link = html_a(Util::format_URLPath("entityManager/index.php", 'submit=del&entity=' . $this->getViewVariable('id')), agt('Baja entidad'), null, "_top");
$link->set_tag_attribute('class', '');
$item3 = html_td('', '', $link);
$item3->set_tag_attribute('width', '20%');
$row->add($blank);
$row->add($image);
$row->add($item1);
$row->add($item2);
$row->add($item3);
$table->add_row($row);
$div->add($table);
return $div;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:32,代码来源:miguel_ventitymanager.class.php
示例5: content_block
function content_block()
{
// Build the FormProcessor, and add the
// form content object that the FormProcessor
// will use.
//
$container = container();
$sdifqueue = new SDIFResultsQueue();
if (!$sdifqueue->ValidateQueue()) {
$msgs = $sdifqueue->get_status_message();
foreach ($msgs as $msg) {
$container->add($this->status_message($msg['msg'], $msg['severity']));
}
return $container;
}
// Create the form
$form = new SDIFQueueProcessForm("Process SDIF Queue", $_SERVER['PHP_SELF'], 600);
// Create the form processor
$fp = new FormProcessor($form);
// Don't display the form again if processing was successful.
$fp->set_render_form_after_success(false);
// Add the Form Processor to the container.
// If the Form Processor was succesful, display
// some statistics about the uploaded file.
if ($fp->is_action_successful()) {
//$container->add($form->get_action_message()) ;
// Add the Form Processor to the container.
$container->add(html_br(2), $fp);
} else {
$container->add($fp);
}
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:33,代码来源:queue_process.php
示例6: content_block
function content_block()
{
// Build the FormProcessor, and add the
// form content object that the FormProcessor
// will use.
//
$container = container();
// Create the form
$form = new SwimmerAddForm("Add Swimmer", null, 600);
// Create the form processor
$fp = new FormProcessor($form);
// Don't display the form again if processing was successful.
$fp->set_render_form_after_success(false);
// Add the Form Processor to the container.
// If the Form Processor was succesful, display
// some statistics about the uploaded file.
if ($fp->is_action_successful()) {
// Add the InfoTableCSS so the tables look right
$this->add_head_css(new DefaultGUIDataListCSS());
$swimmers = new SwimmersDataList("Swimmers", '100%', "swimmerid");
$div = html_div();
$div->set_id("swimmersgdl");
$div->add($swimmers);
$container->add($div);
// Add the Form Processor to the container.
$container->add(html_br(2), $fp);
} else {
$container->add($fp);
}
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:31,代码来源:swimmer_add.php
示例7: load_to
messages.id="' . $id . '" and
messages_to.person="' . $_SESSION['userid'] . '"
';
$db->select($query);
if ($db->num_rows == 1) {
$this->data = $db->data[0];
}
}
function load_to()
{
global $db;
$query = 'person.id,
person.first_name,
person.last_name
from messages_to
left join person on
messages_to.person=person.id
where messages_to.message="' . $this->data['id'] . '"';
$db->select($query);
$this->to = $db->data;
}
function format()
{
$fdata = $this->data;
$fdata['text_html'] = html_br($fdata['text']);
$fdata['created_html'] = local_date($fdata['created'], 'ymdHi');
$fdata['author_first_name_html'] = mask_html($fdata['author_first_name']);
$fdata['author_last_name_html'] = mask_html($fdata['author_last_name']);
$to_list = array();
$seperator = array();
foreach ($this->to as $i => $to) {
$to['first_name'] = mask_html($to['first_name']);
$to['last_name'] = mask_html($to['last_name']);
$to['seperator'] = $seperator;
$seperator = array(array());
开发者ID:BackupTheBerlios,项目名称:infoschool-svn,代码行数:35,代码来源:class.php
示例8: add_mainMenu
function add_mainMenu()
{
$div = html_div('');
$div->add(html_br());
$table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 0, 0);
$row = html_tr();
$blank = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"), 10, 10));
//$blank->set_tag_attribute('colspan','4');
$image = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"), 20, 14));
$image->set_tag_attribute('align', 'right');
$image->set_tag_attribute('width', '40%');
$link = html_a(Util::format_URLPath("profileManager/index.php", 'submit=new'), agt('Nuevo perfil'), null, "_top");
$link->set_tag_attribute('class', '');
$item1 = html_td('', '', $link);
$item1->set_tag_attribute('width', '20%');
/*$link = html_a(Util::format_URLPath("profileManager/index.php",'submit=del'), agt('Baja perfil'), null, "_top");
$link->set_tag_attribute('class', '');
$item2 = html_td('', '', $link);
$item2->set_tag_attribute('width', '20%');
*/
$row->add($blank);
$row->add($image);
$row->add($item1);
//$row->add($item2);
$table->add_row($row);
$div->add($table);
return $div;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:28,代码来源:miguel_vprofile.class.php
示例9: 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
示例10: 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
示例11: content_block
function content_block()
{
// Build the FormProcessor, and add the
// form content object that the FormProcessor
// will use.
//
$container = container();
// This allows passing arguments eithers as a GET or a POST
$scriptargs = array_merge($_GET, $_POST);
// The swimteamid is the argument which must be
// dealt with differently for GET and POST operations
if (array_key_exists("swimteamid", $scriptargs)) {
$swimteamid = $scriptargs["swimteamid"];
} else {
if (array_key_exists("_swimteamid", $scriptargs)) {
$swimteamid = $scriptargs["_swimteamid"];
} else {
if (array_key_exists(FT_DB_PREFIX . "radio", $scriptargs)) {
$swimteamid = $scriptargs[FT_DB_PREFIX . "radio"][0];
} else {
$swimteamid = null;
}
}
}
// Create the form
//$form = new SwimTeamUpdateForm("Update Swim Team", $_SERVER['PHP_SELF'], 600) ;
$form = new SwimTeamUpdateForm("Update Swim Team", null, 600);
$form->setSwimTeamId($swimteamid);
// Create the form processor
$fp = new FormProcessor($form);
// Don't display the form again if processing was successful.
$fp->set_render_form_after_success(false);
// Update the Form Processor to the container.
// If the Form Processor was succesful, display
// some statistics about the uploaded file.
if ($fp->is_action_successful()) {
// Add the InfoTableCSS so the tables look right
$this->add_head_css(new DefaultGUIDataListCSS());
$swimteams = new SwimTeamsDataList("Swim Teams", '100%', "swimteamid");
$div = html_div();
$div->set_id("swimteamsgdl");
$div->add($swimteams);
$container->add($div);
// Update the Form Processor to the container.
$container->add(html_br(2), $fp);
} else {
$container->add($fp);
}
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:50,代码来源:swimteam_update.php
示例12: 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()
{
$table =& html_table($this->_width, 0, 2, 2, 'center');
$label = html_label("comentario");
$label->add(container(agt('Añadir comentario'), html_br(), $this->element_form("Comentario")));
$elem = html_td('ptabla03', '', $label);
$table->add_row($elem);
$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,代码行数:19,代码来源:miguel_commentform.class.php
示例13: form
function form()
{
$table = html_table('25%', 0, 1, 3);
$elem = html_td('color1-bg', 'center', container(html_b('Nombre del nuevo usuario'), html_br(), $this->element_form('name')));
$elem->set_id('identification');
$table->add_row($elem);
$elem = html_td('color1-bg', 'center', container(html_b('Clave de acceso'), html_br(), $this->element_form('pass')));
$elem->set_id('identification');
$table->add_row($elem);
$elem = html_td('color1-bg', 'center', container(html_b('Confirmar clave de acceso'), html_br(), $this->element_form('pass_confirm')));
$elem->set_id('identification');
$table->add_row($elem);
$table->add_row(html_td('', 'center', $this->add_hidden_action('Procesar', 'add_user')));
return $table;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:15,代码来源:miguel_adduserForm.class.php
示例14: get_element
function get_element()
{
$container = html_table('100%', 0, 0, 0);
$row = html_tr();
$count = count($this->_data_list);
for ($x = 0; $x <= $count - 1; $x++) {
list($name, $value) = each($this->_data_list[$x]);
$elem = container();
$elem->add($this->_get_index_element($x), html_br(), html_img($this->_img_list[$x]));
$col = html_td('', '', $elem);
$col->set_tag_attribute('align', 'center');
$row->add($col);
}
$container->add_row($row);
return $container;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:16,代码来源:base_FEImgRadioGroup.class.php
示例15: format
function format($show_menu = false)
{
$data = $this->data;
$data['start_html'] = local_datetime_title($data['start']);
$data['end_html'] = local_datetime_title($data['end']);
$data['text_html'] = html_br($data['text']);
$data['menu'] = array();
if ($show_menu && is_admin()) {
if ($data['active']) {
$activate = 'Deactivate';
} else {
$activate = 'Activate';
}
$menu['activate'] = $activate;
$data['menu'][] = $menu;
}
$data['input_start'] = datetime_input('news_data[start]', $data['start']);
$data['input_end'] = datetime_input('news_data[end]', $data['end']);
$this->data = $data;
}
开发者ID:BackupTheBerlios,项目名称:infoschool-svn,代码行数:20,代码来源:class_news.php
示例16: right_block
function right_block()
{
$ret_val = container();
$hr = html_hr();
$hr->set_tag_attribute('noshade');
$hr->set_tag_attribute('size', 2);
$ret_val->add($hr);
$div = html_div('ul-big');
$div->add(html_img(Util::app_URLPath('../var/themes/Miguel/image/menu/addcourse.png'), 0, 0, 0, ''));
$div->add(html_b('Nuevo Curso Adicionado'));
$div->add(html_br(2));
$ret_val->add($div);
$div1 = html_div();
$div1->add(agt('El curso se ha adicionado correctamente en la base de datos.'));
$div1->add(html_br(2));
$div1->add(agt('NOMBRE DEL CUSRSO'), ' : ', $this->getViewVariable('courseName'));
$div1->add(html_br(2), agt('DESCRIPCION'), ' : ', $this->getViewVariable('courseDescription'));
$div1->add(new FormProcessor(new miguel_resultNewCourseForm(), 'resultNewCourse', Util::format_URLPath('main/index.php')));
$ret_val->add($div1);
return $ret_val;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:21,代码来源:miguel_vresultnewcourse.class.php
示例17: content_block
function content_block()
{
// Add the InfoTableCSS so the tables look right
$this->add_head_css(new DefaultGUIDataListCSS());
// This allows passing arguments eithers as a GET or a POST
$scriptargs = array_merge($_GET, $_POST);
// The swimmeetid is the argument which must be
// dealt with differently for GET and POST operations
if (array_key_exists("swimmeetid", $scriptargs)) {
$swimmeetid = $scriptargs["swimmeetid"];
} else {
if (array_key_exists("_swimmeetid", $scriptargs)) {
$swimmeetid = $scriptargs["_swimmeetid"];
} else {
if (array_key_exists(FT_DB_PREFIX . "radio", $scriptargs)) {
$swimmeetid = $scriptargs[FT_DB_PREFIX . "radio"][0];
} else {
$swimmeetid = null;
}
}
}
$container = container();
$it = new SwimMeetInfoTable('Swim Meet Details', '500');
$it->setSwimMeetId($swimmeetid);
$it->BuildInfoTable(false);
$container->add($it, html_br(2));
// Complex order by clause to make sure DQ and NS are shown
// after valid times.
$swimresults = new SwimResultsDataList('Results', '100%', 'event_number,
case when finals_time_ft = 0.0 then 1 else 0 end,
finals_time_ft');
$swimresults->set_save_vars(array('swimmeetid' => $swimmeetid));
$div = html_div();
$div->set_id("swimresultsgdl");
$div->add($swimresults);
$container->add($div);
$container->add(FlipTurnGUIButtons::getBackHomeButtons());
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:39,代码来源:swimmeet_results.php
示例18: right_block
function right_block()
{
//Crea el contenedor del right_block
$main = container();
$main->add(html_br());
$status = $this->getViewVariable('status');
switch ($status) {
case 'showForm':
$main->add($this->addForm('courseCard', 'miguel_coursecardform'));
break;
case 'update':
case 'show':
default:
$arrCourseCard = $this->getViewVariable('arrCourseCard');
$tableInfo = $this->add_info($arrCourseCard['objectives'], $arrCourseCard['description'], $arrCourseCard['contents']);
$main->add($tableInfo);
$tableForm = $this->addForm('courseCard', 'miguel_coursesubmitform');
$main->add($tableForm);
break;
}
return $main;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:22,代码来源:miguel_vcoursecard.class.php
示例19: right_block
function right_block()
{
//Crea el contenedor del right_block
$main = container();
$main->add(html_br());
$status = $this->getViewVariable('status');
switch ($status) {
case 'showForm':
$main->add($this->addForm('courseActivities', 'miguel_courseactivitiesform'));
break;
case 'update':
case 'new':
default:
$arrCourseActivities = $this->getViewVariable('arrCourseActivities');
$tableInfo = $this->add_info($arrCourseActivities);
$main->add($tableInfo);
$tableForm = $this->addForm('courseActivities', 'miguel_coursesubmitform');
$main->add($tableForm);
break;
}
return $main;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:22,代码来源:miguel_vcourseactivities.class.php
示例20: right_block
function right_block()
{
$ret_val = container();
$div = html_div();
$div->add(html_br());
$titulo = html_p('Tablón de anuncios');
$titulo->set_class('ptabla01');
$div->add($titulo);
$status = $this->getViewVariable('status');
switch ($status) {
case 'menu':
default:
$table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 2, 2);
$table->add_row(html_td('ptabla02', '', $this->icon_link(Util::format_URLPath('notice/index.php', 'status=new'), Theme::getThemeImagePath('boton_siguiente.gif'), 'Nuevo Mensaje')));
$table->add_row(html_td('ptabla02', '', $this->icon_link(Util::format_URLPath('notice/index.php', 'status=list'), Theme::getThemeImagePath('boton_siguiente.gif'), 'Ver Mensajes')));
$div->add($table);
$ret_val->add($div);
break;
case 'new':
$ret_val->add($div);
$ret_val->add($this->addForm('notice', 'miguel_noticeForm'));
break;
case 'list':
$notice_array = $this->getViewVariable('notice_array');
$table =& html_table(Session::getContextValue('mainInterfaceWidth'), 0, 2, 2);
$table->add($this->add_noticeHead());
for ($i = 0; $i < count($notice_array); $i++) {
$table->add($this->add_notice($notice_array[$i]['notice.author'], $notice_array[$i]['notice.subject'], $notice_array[$i]['notice.time'], $notice_array[$i]['notice.notice_id']));
}
$div->add($table);
$ret_val->add($div);
break;
case 'show':
$ret_val->add($this->add_noticeDetails());
break;
}
return $ret_val;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:38,代码来源:miguel_vnotice.class.php
注:本文中的html_br函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论