當前位置: 首頁>>代碼示例>>PHP>>正文


PHP table::table_begin方法代碼示例

本文整理匯總了PHP中table::table_begin方法的典型用法代碼示例。如果您正苦於以下問題:PHP table::table_begin方法的具體用法?PHP table::table_begin怎麽用?PHP table::table_begin使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在table的用法示例。


在下文中一共展示了table::table_begin方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: rawurldecode

            if (!$db->query($query)) {
                mysql_die($db);
            }
        }
    }
}
if ($action == "add") {
    // ADD
    $bran_id = rawurldecode($bran_id);
    /*-----------------------------------------------------------------------*/
    $bx->box_begin();
    $bx->box_title($t->translate("Add Branch"));
    $bx->box_body_begin();
    /*-----------------------------------------------------------------------*/
    echo "<form action='" . $sess->url(basename($PHP_SELF)) . "' method='POST'>";
    $tbw->table_begin();
    $tbw->table_row_begin();
    $tbw->table_body_column_begin();
    /*----------*/
    echo "<b>" . $t->translate("Branch") . ":</b>";
    $tbw->table_body_column_next(2);
    echo "<input type='text' size='40' maxlength='255' name='name' value=''>";
    $tbw->table_body_column_end();
    /*----------*/
    $tbw->table_row_next();
    $tbw->table_body_column("");
    $tbw->table_body_column_begin();
    echo "<input type='hidden' name='action' value='db_add'>";
    echo "<input type='hidden' name='bran_id' value='{$bran_id}'>";
    echo "<input type='hidden' name='leaves' value='{$leaves}'>";
    echo "<input type='submit' value='" . $t->translate("Add") . "'>";
開發者ID:BackupTheBerlios,項目名稱:sourcelines,代碼行數:31,代碼來源:admbranch.php

示例2: while

     /*----------*/
     $tbw->table_end();
     /*-------------------------------------------------------------------------------------*/
     $bx->box_body_end();
     $bx->box_end();
 } else {
     // TABLE
     /*------------------------------------------------------- BOX tbllicense */
     $bx->box_begin();
     $bx->box_title($t->translate("License Administration"));
     $bx->box_body_begin();
     /*------------------------------------------------------ gesamte Tabelle */
     $query = "SELECT * FROM tbllicense ORDER BY license_name ";
     $db->query($query);
     /*-------------------*/
     $tby->table_begin();
     $tby->table_row_begin();
     $tby->table_head_column_begin();
     echo "<b>" . $t->translate("Name") . "</b>\n";
     $tby->table_head_column_next();
     echo "<b>" . $t->translate("Homepage") . "</b>\n";
     $tby->table_head_column_end();
     $tby->table_head_column("&nbsp;");
     $tby->table_head_column("&nbsp;");
     $tby->table_row_next();
     while ($db->next_record()) {
         /*----------*/
         if ($db->f("license_name") == "" || $db->f("license_name") == null) {
             $tby->table_body_column("&nbsp;");
         } else {
             $tby->table_body_column($db->f("license_name"));
開發者ID:BackupTheBerlios,項目名稱:sourcelines,代碼行數:31,代碼來源:admlicense.php

示例3: box

    page_close();
    page_open(array("sess" => "SourceLines_Session", "auth" => "SourceLines_Auth", "perm" => "SourceLines_Perm"));
}
require "./include/header.inc";
/*----------Box-Definitionen----------*/
$bx = new box("100%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_body_font_color, $th_box_body_align);
$be = new box("80%", $th_box_frame_color, $th_box_frame_width, $th_box_title_bgcolor, $th_box_title_font_color, $th_box_title_align, $th_box_body_bgcolor, $th_box_error_font_color, $th_box_body_align);
$bs = new box("100%", $th_strip_frame_color, $th_strip_frame_width, $th_strip_title_bgcolor, $th_strip_title_font_color, $th_strip_title_align, $th_strip_body_bgcolor, $th_strip_body_font_color, $th_strip_body_align);
/*----------Table-Definitionen----------*/
$tbw = new table("100%", "0", "1", "4", $th_box_title_bgcolor, $th_box_title_font_color, "center", "top", $th_box_body_bgcolor, $th_box_body_font_color, "left", "top");
$tbf = new table("100%", "0", "1", "4", $th_box_title_bgcolor, $th_box_title_font_color, "center", "top", $th_box_body_bgcolor, $th_box_body_font_color, "left", "top");
?>

<!-- content -->
<?php 
$tbf->table_begin();
$tbf->table_row_begin();
$tbf->table_body_column_begin(1, "80%");
if (!isset($by)) {
    $by = "";
}
if (!isset($cnt)) {
    $cnt = 0;
}
$prev_cnt = $cnt + $config_show_solsperpage;
if ($cnt >= $config_show_solsperpage) {
    $next_cnt = $cnt - $config_show_solsperpage;
} else {
    $next_cnt = 0;
}
$columns = "*";
開發者ID:BackupTheBerlios,項目名稱:sourcelines,代碼行數:31,代碼來源:index.php


注:本文中的table::table_begin方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。