本文整理汇总了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") . "'>";
示例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(" ");
$tby->table_head_column(" ");
$tby->table_row_next();
while ($db->next_record()) {
/*----------*/
if ($db->f("license_name") == "" || $db->f("license_name") == null) {
$tby->table_body_column(" ");
} else {
$tby->table_body_column($db->f("license_name"));
示例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 = "*";