当前位置: 首页>>代码示例>>PHP>>正文


PHP html_div函数代码示例

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


在下文中一共展示了html_div函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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


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