本文整理汇总了PHP中table::table_body_column_begin方法的典型用法代码示例。如果您正苦于以下问题:PHP table::table_body_column_begin方法的具体用法?PHP table::table_body_column_begin怎么用?PHP table::table_body_column_begin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类table
的用法示例。
在下文中一共展示了table::table_body_column_begin方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: while
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"));
}
if ($db->f("license_url") == "" || $db->f("license_url") == null) {
$tby->table_body_column(" ");
} else {
$tby->table_body_column_begin($db->f("license_url"));
echo "<a href=\"" . $db->f("license_url") . "\" target=\"_blank\">" . $db->f("license_url") . "</a>\n";
$tby->table_body_column_end();
}
/*----------*/
$tby->table_body_column_begin();
echo "<b><a href='" . $sess->url(basename($PHP_SELF)) . $sess->add_query(array("action" => "change", "id" => $db->f("license_id"), "name" => $db->f("license_name"), "ourl" => $db->f("license_url"))) . "'>" . $t->translate("Change") . "</a></b>";
/*----------*/
$tby->table_body_column_next();
echo "<b><a href='" . $sess->url(basename($PHP_SELF)) . $sess->add_query(array("action" => "delete", "id" => $db->f("license_id"), "name" => $db->f("license_name"), "ourl" => $db->f("license_url"))) . "'>" . $t->translate("Delete") . "</a></b>";
$tby->table_body_column_end();
$tby->table_row_end();
/*----------*/
}
if ($db->num_rows() > 0) {
$db->seek(0);
示例2: rawurldecode
}
}
}
}
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") . "'>";
$tbw->table_body_column_end();
echo "</form>";
示例3: while
$bx->box_body_begin();
/*---------------------------------------------------------- whole Table */
$query = "SELECT * FROM tblkeyword WHERE solutions_id='{$solu_id}' ORDER BY keyword_text";
$db->query($query);
/*-------------------*/
$tby->table_begin();
$tby->table_row_begin();
while ($db->next_record()) {
/*----------*/
if ($db->f("keyword_text") == "" || $db->f("keyword_text") == null) {
$tby->table_body_column(" ");
} else {
$tby->table_body_column($db->f("keyword_text"));
}
/*----------*/
$tby->table_body_column_begin();
echo "<b><a href='" . $sess->url(basename($PHP_SELF)) . $sess->add_query(array("action" => "change", "id" => $db->f("keyword_id"), "solu_id" => $solu_id)) . "'>" . $t->translate("Change") . "</a></b>";
echo "</td>";
/*----------*/
$tby->table_body_column_next();
echo "<b><a href='" . $sess->url(basename($PHP_SELF)) . $sess->add_query(array("action" => "delete", "id" => $db->f("keyword_id"), "solu_id" => $solu_id)) . "'>" . $t->translate("Delete") . "</a></b>";
$tby->table_body_column_end();
$tby->table_row_end();
/*----------*/
}
if ($db->num_rows() > 0) {
$db->seek(0);
}
$tby->table_end();
/*-------------------*/
// ADD, CHANGE, DELETE
示例4: box
}
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 = "*";
$where = "tblsolutions.username = auth_user.username AND tblsolutions.solutions_name != 'no_name'";
$tables = "tblsolutions,auth_user";