本文整理汇总了PHP中html_div函数的典型用法代码示例。如果您正苦于以下问题:PHP html_div函数的具体用法?PHP html_div怎么用?PHP html_div使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_div函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: 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("bibliography/index.php"), agt('Catálogo'), null, "_top");
$link->set_tag_attribute('class', '');
$item1 = html_td('', '', $link);
$item1->set_tag_attribute('width', '20%');
$link = html_a(Util::format_URLPath("bibliography/index.php", 'status=ref'), agt('Referencias bibliográficas'), null, "_top");
$link->set_tag_attribute('class', '');
$item2 = html_td('', '', $link);
$item2->set_tag_attribute('width', '20%');
$link = html_a(Util::format_URLPath("bibliography/index.php", 'status=link'), agt('Enlaces de interés'), 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_vnewuserprofile.class.php
示例2: 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("userManager/index.php", 'status=new&pid=' . $this->getViewVariable('pid')), agt('Registrar'), null, "_top");
$link->set_tag_attribute('class', '');
$item1 = html_td('', '', $link);
$item1->set_tag_attribute('width', '20%');
$link = html_a(Util::format_URLPath("userManager/index.php", 'status=list&pid=' . $this->getViewVariable('pid')), agt('Ficha'), null, "_top");
$link->set_tag_attribute('class', '');
$item2 = html_td('', '', $link);
$item2->set_tag_attribute('width', '20%');
$link = html_a(Util::format_URLPath("userManager/index.php", 'status=del&pid=' . $this->getViewVariable('pid')), agt('Baja'), 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_vusermanager.class.php
示例3: 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
示例4: 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
示例5: 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
示例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: msg
function msg()
{
if (isset($_POST["id"])) {
//redirect search by id
header("Location: http://" . $_SERVER['HTTP_HOST'] . "/menu.php/message/search/" . $_POST["id"]);
die;
}
// search message template
include_once "template/search.tpl";
// leave message template
include_once "template/form.tpl";
// list everyone's msg
html_div(100, 0, "#812919", 30);
echo "Message Board";
html_div_end();
html_div(100, 40, "#ffffff", 15);
for ($id = 1; $id < 50; $id++) {
if (file_exists("./message/" . $id . ".txt")) {
// print message from file
$file = fopen("./message/" . $id . ".txt", "r");
$fsize = filesize("./message/" . $id . ".txt");
$message = fread($file, $fsize);
html_div(100, 0, "#812919", 20);
echo "Message ID: " . $id . "<br>";
html_div_end();
html_div(100, 0, "#ffffff", 20);
// print message
echo $message . "<br>";
html_div_end();
}
}
html_div_end();
}
开发者ID:sidney0830,项目名称:NS_finalProject,代码行数:33,代码来源:message.php
示例8: search
function search()
{
//search form
if (isset($_POST["id"])) {
//search by id
header("Location: http://" . $_SERVER['HTTP_HOST'] . "/menu.php/db/id/" . $_POST["id"]);
die;
}
if (isset($_POST["name"])) {
//search by name
header("Location: http://" . $_SERVER['HTTP_HOST'] . "/menu.php/db/name/" . $_POST["name"]);
die;
}
//include search engine template
include_once "template/db_id.tpl";
include_once "template/db_name.tpl";
//list pokeDex
html_div(100, 0, "#812919", 30);
echo "PokeDex";
html_div_end();
$query = "SELECT * FROM pm_list";
mysql_query("SET NAMES UTF8");
$result = mysql_query($query);
html_div(100, 25, "#ffffff", 15);
while ($row = mysql_fetch_assoc($result)) {
html_div(100, 10, "#ffffff", 20);
echo $row["id"] . " " . $row["name"];
html_div_end();
}
html_div_end();
}
开发者ID:sidney0830,项目名称:NS_finalProject,代码行数:31,代码来源:db.php
示例9: 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
示例10: right_block
function right_block()
{
$main = html_div();
$main->set_id("content");
$course_name = $this->getViewVariable('course_name');
$main->add(agt('miguel_userSubscriptionOk') . ' -> ' . $course_name);
return $main;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:8,代码来源:miguel_vintro.class.php
示例11: right_block
function right_block()
{
$div = html_div();
$titulo = html_p(agt('miguel_ContactDetail'));
$titulo->set_tag_attribute('class', 'ptabla01');
$div->add($titulo);
$div->add($this->_contactDetail());
return $div;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:9,代码来源:miguel_vdetail.class.php
示例12: form_action
/**
* This method is called ONLY after ALL validation has
* passed. This is the method that allows you to
* do something with the data, say insert/update records
* in the DB.
*/
function form_action()
{
$success = true;
$result = new SwimResult();
$result->PurgeResults();
$this->set_action_message(html_div(sprintf('ft-%s-msg', $result->getAffectedRows() == 0 ? 'warning' : 'note'), sprintf('%d record%s purged from Results database.', $result->getAffectedRows(), $result->getAffectedRows() == 1 ? '' : 's')));
unset($result);
return $success;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:15,代码来源:results.forms.class.php
示例13: right_block
function right_block()
{
$ret_val = container();
$div = html_div();
$titulo = html_p(agt('miguel_NewCourse'));
$titulo->set_tag_attribute('class', 'ptabla01');
$div->add($titulo);
$div->add($this->addForm('newCourse', 'miguel_newCourseForm'));
$ret_val->add($div);
return $ret_val;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:11,代码来源:miguel_vnewcourse.class.php
示例14: main_block
/**
* We override this method to automatically
* break up the main block into a
* left block and a right block
*
* @param TABLEtag object.
*/
function main_block()
{
$main = html_div();
$main->set_id("content");
$table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 1, 0);
$table->set_class("simple");
//Authentication
$table->add_row($this->_block());
$main->add($table);
return $main;
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:18,代码来源:miguel_vauthstep1.class.php
示例15: content_block
function content_block()
{
// Add the InfoTableCSS so the tables look right
$this->add_head_css(new DefaultGUIDataListCSS());
$container = container();
$results = new SwimResultsAdminDataList("Swim Results", '100%', "swimmer_name, swim_date");
$div = html_div();
$div->set_id("resultsgdl");
$div->add($results);
$container->add($div);
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:12,代码来源:results.php
示例16: content_block
function content_block()
{
// Add the InfoTableCSS so the tables look right
$this->add_head_css(new DefaultGUIDataListCSS());
$container = container();
$swimmers = new SwimmersDataList("Swimmers", '100%', "swimmerid");
$div = html_div();
$div->set_id("swimmersgdl");
$div->add($swimmers);
$container->add($div);
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:12,代码来源:swimmers.php
示例17: content_block
function content_block()
{
// Add the InfoTableCSS so the tables look right
$this->add_head_css(new DefaultGUIDataListCSS());
$container = container();
$sdifqueue = new SDIFQueueDataList("SDIF Queue", '100%', "sdifrecordid");
$div = html_div();
$div->set_id("sdifqueuegdl");
$div->add($sdifqueue);
$container->add($div);
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:12,代码来源:queue.php
示例18: 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
示例19: 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 eventid is the argument which must be
// dealt with differently for GET and POST operations
if (array_key_exists("eventid", $scriptargs)) {
$eventid = $scriptargs["eventid"];
} else {
if (array_key_exists("_eventid", $scriptargs)) {
$eventid = $scriptargs["_eventid"];
} else {
if (array_key_exists(FT_DB_PREFIX . "radio", $scriptargs)) {
$eventid = $scriptargs[FT_DB_PREFIX . "radio"][0];
} else {
$eventid = null;
}
}
}
// Need better error handling but for now just die!
if (is_null($eventid)) {
die('Bad Event Id: ' . basename(__FILE__) . '::' . __LINE__);
}
$container = container();
$e = explode('-', $eventid);
//$it = new SwimMeetInfoTable('Swim Meet Details', '500') ;
//$it->setSwimMeetId($eventid) ;
//$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', null, null, null, sprintf('event_gender="%s" AND event_age_code="%s"
AND stroke_code="%s" AND event_distance="%s"', $e[0], $e[1], $e[2], $e[3]));
$swimresults->set_save_vars(array('eventid' => $eventid));
$div = html_div();
$div->set_id("swimresultsgdl");
$div->add($swimresults);
$container->add($div);
$container->add(FlipTurnGUIButtons::getBackHomeButtons());
return $container;
}
开发者ID:rjoverph,项目名称:flip-turn,代码行数:44,代码来源:results_event.php
示例20: main_block
function main_block()
{
$wrapper_div = html_div('');
$table = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 0, 0);
$elem1 = html_td('', '', html_img(Theme::getThemeImagePath("esquina.gif"), 37, 39, 0, ''));
$elem1->set_tag_attribute('width', '1%');
$elem2 = html_td('', '', '');
$elem2->set_tag_attribute('width', '96%');
$elem3 = html_td('', '', '');
$elem3->set_tag_attribute('width', '3%');
$row = html_tr();
$row->add($elem1);
$row->add($elem2);
$row->add($elem3);
$table->add_row($row);
$row = html_tr();
$space = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif")));
$space->set_tag_attribute('width', '3%');
$row->add($space);
//Preparamos contenido
$content = html_td('', '', $this->content());
$content->set_tag_attribute('width', '94%');
$row->add($content);
$row->add($space);
$table->add_row($row);
$marco = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 0, 0);
$mc_cont = html_td('plomoizda', '', $table);
$mc_cont->set_tag_attribute('valign', 'top');
$marco->add_row($mc_cont);
//add the main body
$wrapper_div->add($marco);
//linea fondo
$linea = html_table(Session::getContextValue("mainInterfaceWidth"), 0, 0, 0);
$yellowLine = html_tr();
$yellowLine->set_tag_attribute('bgcolor', '#FFCC33');
//$yellowLine->set_tag_attribute('valign','top');
$line = html_td('', '', html_img(Theme::getThemeImagePath("invisible.gif"), 10, 10));
$line->set_tag_attribute('colspan', '3');
$yellowLine->add($line);
$linea->add_row($yellowLine);
$wrapper_div->add($linea);
$this->add($wrapper_div);
}
开发者ID:BackupTheBerlios,项目名称:migueloo,代码行数:43,代码来源:miguel_vresume.class.php
注:本文中的html_div函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论