本文整理汇总了PHP中html_br函数的典型用法代码示例。如果您正苦于以下问题:PHP html_br函数的具体用法?PHP html_br怎么用?PHP html_br使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_br函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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());
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}