本文整理汇总了PHP中box::box_title方法的典型用法代码示例。如果您正苦于以下问题:PHP box::box_title方法的具体用法?PHP box::box_title怎么用?PHP box::box_title使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类box
的用法示例。
在下文中一共展示了box::box_title方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: box
# Form for deleting docs
#
# This program is free software. You can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 or later of the GPL.
######################################################################
page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
require "header.inc";
$bx = new box("", $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);
?>
<!-- content -->
<?php
if ($perm->have_perm("editor") || $perm->have_perm("admin")) {
$bx->box_begin();
$bx->box_title($t->translate("Delete an entry"));
$bx->box_body_begin();
## Dokument soll gelöscht werden, hier die Datenüberprüfung
if ($status == 'do_new') {
if ($Del) {
$db->query("UPDATE DOKUMENT SET STATUS='D' WHERE ID={$ID}");
$newentry = $t->translate("Entry status set to deleted");
}
}
## doc soll gelöscht werden
if ($status == 'edit_new' or $error_ar) {
$db->query("SELECT * FROM DOKUMENT WHERE ID={$ID}");
$db->next_record();
$eintrag[ANGELEGTVON] = $db->f("ANGELEGTVON");
$eintrag[SPRACHE] = $db->f("SPRACHE");
$eintrag[TYP] = $db->f("TYP");
示例2: box
@page_close();
page_open(array("sess" => "DocsWell_Session", "auth" => "DocsWell_Auth", "perm" => "DocsWell_Perm"));
}
require "header.inc";
$bx = 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_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);
?>
<!-- content -->
<?php
if ($config_perm_admlang != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admlang))) {
$be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
$bx->box_begin();
$bx->box_title($t->translate("Document Language Administration"));
$bx->box_body_begin();
// Insert a new Language
$bs->box_strip($t->translate("Insert Language"));
echo "<form action=\"" . $sess->url("inslang.php") . "\" method=\"POST\">\n";
echo "<table border=0 cellspacing=0 cellpadding=3 width=100%>\n";
echo "<tr><td align=right width=30%>" . $t->translate("New Language") . " (100):</td><td width=70%><input type=\"TEXT\" name=\"language\" size=40 maxlength=100>\n";
echo "</td></tr>\n";
echo "<tr><td> </td>\n";
echo "<td><input type=\"submit\" value=\"" . $t->translate("Insert") . "\">";
echo "</td></tr>\n";
echo "</form>\n";
echo "</table>\n";
echo "<BR>\n";
// Rename Language
$bs->box_strip($t->translate("Rename Language"));
示例3: array
<!-- content -->
<?php
if ($config_perm_watch != "all" && (!isset($perm) || !$perm->have_perm($config_perm_watch))) {
$be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
$username = $auth->auth["uname"];
htmlp_form_action("watchset.php", array(), "POST");
echo "\n";
$db3->query("SELECT * FROM prog_ability_watch WHERE username='{$username}'");
if ($db3->next_record()) {
$exists = 1;
} else {
$exists = 0;
}
$bx->box_begin();
$bx->box_title($t->translate("Set your Developers Watch"));
$bx->box_body_begin();
echo "<table border=0 width=100% align=center cellspacing=0 cellpadding=3>\n";
echo "<tr><td align=center><B>" . $t->translate("Which programming experiences you like to watch?") . "</B></td></tr><tr><td>\n";
echo "<center><table border=0>\n";
$db->query("SELECT * from prog_abilities WHERE translation='{$la}'");
$count = 0;
while ($db->next_record()) {
$count++;
$ability_code = $db->f("code");
$colname = $db->f("colname");
if ($count == 1) {
echo "<tr>\n";
}
echo "<td align=right>" . $db->f("ability") . "</td><td>\n";
htmlp_select("ability[" . $ability_code . "]");
示例4: box
$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);
?>
<!-- content -->
<?php
if ($config_perm_admfaq != "all" && (!isset($perm) || !$perm->have_perm($config_perm_admfaq))) {
$be->box_full($t->translate("Error"), $t->translate("Access denied"));
} else {
if (isset($delete)) {
if ($delete == 1) {
$query = "SELECT * FROM faq WHERE faqid='{$faqid}' AND language='{$la}'";
$db->query($query);
$db->next_record();
faqshow($db);
$bx->box_begin();
$bx->box_title($t->translate("Do you really want to delete this FAQ? There is no way for undeletion."));
$bx->box_body_begin();
echo "<table><tr><td>\n";
echo "<form action=\"" . $sess->self_url() . "\" method=\"POST\">\n";
echo "<input type=\"hidden\" name=\"faqid\" value=\"" . $db->f("faqid") . "\">\n";
echo "<input type=\"hidden\" name=\"delete\" value=\"2\">\n";
echo "<input type=\"hidden\" name=\"modify\" value=\"0\">\n";
echo "<input type=\"submit\" value=\"" . $t->translate("Yes, Delete") . "\">\n";
echo "</form></td><td>\n";
echo "<form action=\"" . $sess->self_url() . "\" method=\"POST\">\n";
echo "<input type=\"hidden\" name=\"faqid\" value=\"" . $db->f("faqid") . "\">\n";
echo "<input type=\"hidden\" name=\"modify\" value=\"1\">\n";
echo "<input type=\"hidden\" name=\"delete\" value=\"0\">\n";
echo "<input type=\"submit\" value=\"" . $t->translate("No, Just Modify") . "\">\n";
echo "</form></td></tr></table>\n";
$bx->box_body_end();
示例5: COUNT
}
if (isset($del_format)) {
// Formaqt in database and we want to delete it
if (!strcmp($del_format, "warning")) {
// You've got another chance before it's deleted
// We inform the administrator how many
// docs will be affected by this deletion
$db->query("SELECT ID FROM FORMATDEF WHERE NAME='{$format}'");
$db->next_record();
$formatid = $db->f("ID");
$db->query("SELECT COUNT(*) FROM FORMAT WHERE FORMATID='{$formatid}'");
$db->next_record();
$number_of_docs = $db->f("COUNT(*)");
$be->box_full($t->translate("Warning!"), $t->translate("If you press another time the Delete-button you will alter") . " {$number_of_docs} " . $t->translate("documants that have actually format") . " {$format}");
$bx->box_begin();
$bx->box_title($t->translate("Delete Format"));
$bx->box_body_begin();
echo "<form action=\"" . $sess->self_url() . "\" method=\"POST\">\n";
echo "<table border=0 cellspacing=0 cellpadding=3>\n";
echo "<tr><td align=right>" . $t->translate("Format") . ":</td><td>\n";
echo $format;
echo "</td></tr>\n";
echo "<tr><td> </td>\n";
echo "<input type=\"hidden\" name=\"format\" value=\"{$format}\">\n";
echo "<input type=\"hidden\" name=\"del_format\" value=\"too_late\">\n";
echo "<td><input type=\"submit\" value=\"" . $t->translate("Delete") . "\">";
echo "</td></tr>\n";
echo "</form>\n";
echo "</table>\n";
$bx->box_body_end();
$bx->box_end();
示例6:
if (!isset($leaves)) {
$leaves = ":1:";
}
if (isset($addid)) {
$leaves .= ":{$addid}:";
}
if (isset($delid)) {
$leaves = str_replace(":{$delid}:", "", $leaves);
}
if ($action == "db_set") {
// DB SET
$query = "UPDATE tblsolutions SET category_id='{$cate_id}' WHERE solutions_id='{$solu_id}'";
$db->query($query);
}
/*------------------------------------------------------- BOX tbllicense */
$bx->box_begin();
$bx->box_title($t->translate("Select Category of Solution"));
$bx->box_body_begin();
/*----------------------------------------------------------- whole Tree */
category_tree(0, 0, $cate_id);
/*-----------------------------------------------------------------------*/
$bx->box_body_end();
$bx->box_end();
/*-----------------------------------------------------------------------*/
echo "<p align='center'><b>[<a href='" . $sess->url("newsolutions.php") . $sess->add_query(array("solu_id" => $solu_id)) . "'>" . $t->translate("Back to your solution") . "</a>]</b>";
?>
<!-- end content -->
<?php
require "footer.inc";
@page_close();
示例7: tbllicense
} else {
if ($action == "db_add") {
// DB ADD
$query = "INSERT tbllicense(license_name,license_url) VALUES('{$name}','{$lurl}')";
$db->query($query);
}
}
}
if ($action == "change") {
// CHANGE
$id = rawurldecode($id);
$name = rawurldecode($name);
$ourl = rawurldecode($ourl);
/*-------------------------------------------------------------------------------------*/
$bx->box_begin();
$bx->box_title($t->translate("Change License"));
$bx->box_body_begin();
/*-------------------------------------------------------------------------------------*/
echo "<form action='" . $sess->url(basename($PHP_SELF)) . "' method='POST'>\n";
$tbw->table_begin();
$tbw->table_row_begin();
$tbw->table_body_column_begin();
/*----------*/
echo "<b>" . $t->translate("License") . ":</b>";
$tbw->table_body_column_next(2);
echo "<input type='text' size='40' maxlength='255' name='name' value='{$name}'>\n";
$tbw->table_body_column_end();
/*----------*/
$tbw->table_row_next();
$tbw->table_body_column_begin();
echo "<b>" . $t->translate("Homepage") . ":</b>";
示例8: box
require 'include/header.inc';
require 'include/faqlib.inc';
$bx = 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_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);
start_content();
if ($config_perm_admfaq != 'all' && (!isset($perm) || !$perm->have_perm($config_perm_admfaq))) {
$be->box_full($t->translate('Error'), $t->translate('Access denied'));
} else {
if (isset($delete)) {
if ($delete == 1) {
$query = "SELECT * FROM faq WHERE faqid='{$faqid}' AND " . "language='{$la}'";
$db->query($query);
$db->next_record();
faqshow($db);
$bx->box_begin();
$bx->box_title($t->translate('Do you really want to ' . 'delete this FAQ? ' . 'There is no way for undeletion.'));
$bx->box_body_begin();
$bx->box_columns_begin(2);
$bx->box_column('left', '76%', '', '<b>' . $db->f('question') . '</b><p>' . $db->f('answer'));
$bx->box_column('right', '12%', '', html_form_action('PHP_SELF') . html_form_hidden('modify', 0) . html_form_hidden('delete', 2) . html_form_hidden('faqid', $db->f('faqid')) . html_form_submit($t->translate('Yes, Delete'), 'Delete') . html_form_end() . html_form_action('PHP_SELF') . html_form_hidden('modify', 1) . html_form_hidden('delete', 0) . html_form_hidden('faqid', $db->f('faqid')) . html_form_submit($t->translate('No, just modify'), 'modify') . html_form_end());
$bx->box_columns_end();
$bx->box_body_end();
$bx->box_end();
}
if ($delete == 2) {
// We remove it from our DB
$db->query("DELETE FROM faq WHERE faqid='{$faqid}' AND " . "language='{$la}'");
if ($db->affected_rows() < 1) {
$be->box_full($t->translate('Error'), $t->translate('Database Error'));
} else {
$bx->box_full($t->translate('Frequently Asked Questions ' . 'Administration'), $t->translate('The FAQ has been deleted'));
示例9: box
require 'include/header.inc';
require 'include/docolib.inc';
$bx = 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_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);
start_content();
if ($config_perm_admdoco != 'all' && (!isset($perm) || !$perm->have_perm($config_perm_admdoco))) {
$be->box_full($t->translate('Error'), $t->translate('Access denied'));
} else {
if (isset($delete)) {
if ($delete == 1) {
$query = "SELECT * FROM doco WHERE docoid='{$docoid}' " . "AND language='{$la}'";
$db->query($query);
$db->next_record();
doco_show($db);
$bx->box_begin();
$bx->box_title($t->translate('Do you really want to delete ' . 'this Page Documentation entry?'));
$bx->box_body_begin();
$bx->box_columns_begin(2);
$bx->box_column('left', '76%', '', $t->translate('There is no way for undeletion.'));
$bx->box_column('right', '12%', '', html_form_action('PHP_SELF') . html_form_hidden('modify', 0) . html_form_hidden('delete', 2) . html_form_hidden('docoid', $db->f('docoid')) . html_form_submit($t->translate('Yes, Delete')) . html_form_end() . html_form_action('PHP_SELF') . html_form_hidden('modify', 1) . html_form_hidden('delete', 0) . html_form_hidden('docoid', $db->f('docoid')) . html_form_submit($t->translate('No, just modify')) . html_form_end());
$bx->box_columns_end();
$bx->box_body_end();
$bx->box_end();
}
if ($delete == 2) {
// We remove it from our DB
$db->query("DELETE FROM doco WHERE docoid='{$docoid}' " . "AND language='{$la}'");
if ($db->affected_rows() < 1) {
$be->box_full($t->translate('Error'), $t->translate('Database Error'));
} else {
$bx->box_full($t->translate('Page Documentation ' . 'Administration'), $t->translate('The documentation for that ' . 'page has been deleted'));
示例10: box
page_open(array("sess" => "DevCounter_Session", "auth" => "DevCounter_Auth", "perm" => "DevCounter_Perm"));
}
require "./include/header.inc";
$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("", $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);
$db2 = new DB_DevCounter();
$db3 = new DB_DevCounter();
?>
<!-- content -->
<?php
if (empty($auth->auth["uname"])) {
$be->box_full($t->translate("Not logged in"), $t->translate("Please login first"));
} else {
$bx->box_begin();
$bx->box_title($t->translate("Personal Data"));
$bx->box_body_begin();
echo "<table border=0 width=100% align=center cellspacing=0 cellpadding=3>\n";
htmlp_form_action("insert.php", "", "POST");
echo "\n";
$username = $auth->auth["uname"];
htmlp_form_hidden("username", $username);
echo "<tr><td align=right width=30%>" . $t->translate("Username") . ":</td><td width=70%> {$username}\n";
echo "<tr><td align=right width=30%>" . $t->translate("Nationality") . ":</td><td width=70%>\n";
htmlp_select("nationality");
echo "\n";
select_country(999);
htmlp_select_end();
echo "</td></tr>\n";
echo "<tr><td align=right width=30%>" . $t->translate("Country you currently live in") . ":</td><td width=70%>\n";
htmlp_select("actual_country");
示例11: box
$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);
$db2 = new DB_DevCounter();
?>
<!-- content -->
<?php
$counter = 0;
if (empty($auth->auth["uname"])) {
$be->box_full($t->translate("Not logged in"), $t->translate("Please login first"));
} else {
$username = $auth->auth["uname"];
$db->query("SELECT * FROM requests WHERE reqid='{$reqid}' AND username='{$username}'");
if ($db->num_rows() == 1) {
$db->next_record();
$bx->box_begin();
$bx->box_title($t->translate("edit request"));
$bx->box_body_begin();
htmlp_form_action("req_manage.php", "", "POST");
htmlp_form_hidden("option", "edit");
htmlp_form_hidden("reqid", $reqid);
echo $t->translate("Subject") . ":<BR>";
$reqsubject = $db->f("reqsubject");
htmlp_input_text("reqsubject", 50, 75, $reqsubject);
htmlp_form_submit($t->translate("Send"), "");
echo "<BR>\n";
echo $t->translate("Related to which Project") . ":<BR>";
htmlp_select("projectname");
$devprojectname = $db->f("projectname");
$db2->query("SELECT * FROM os_projects WHERE username='{$username}'");
while ($db2->next_record()) {
if ($devprojectname == $db2->f("projectname")) {
示例12: rawurldecode
$db->query($query);
}
}
}
if ($action == "change") {
// CHANGE
$id = rawurldecode($id);
$keyword = rawurldecode($keyword);
$solu_id = rawurldecode($solu_id);
$db_chg = new DB_SourceLines();
$query = "SELECT * FROM tblkeyword WHERE keyword_id = '{$id}' AND solutions_id = '{$solu_id}'";
$db_chg->query($query);
$db_chg->next_record();
/*-----------------------------------------------------------------------*/
$bx->box_begin();
$bx->box_title($t->translate("Change keyword"));
$bx->box_body_begin();
/*-----------------------------------------------------------------------*/
echo "<form action='" . $sess->url(basename($PHP_SELF)) . "' method='POST'>";
$tbw->table_begin();
// keyword
$tbw->table_row_begin();
$tbw->table_body_column_begin();
echo "<b>" . $t->translate("Keyword") . ":</b>";
$tbw->table_body_column_next(2);
echo "<input type='text' size='40' maxlength='128' name='keyword' value='" . $db_chg->f("keyword_text") . "'>";
$tbw->table_body_column_end();
// buttons
$tbw->table_row_next();
$tbw->table_body_column(" ");
$tbw->table_body_column_begin();
示例13: tbllanguage
if ($action == "db_add") {
// DB_ADD
$query = "INSERT tbllanguage(language_name) VALUES('{$name}') ";
if (!$db->query($query)) {
mysql_die($db);
}
}
}
}
if ($action == "change") {
// CHANGE
$id = rawurldecode($id);
$name = rawurldecode($name);
/*-----------------------------------------------------------------------*/
$bx->box_begin();
$bx->box_title($t->translate("Change Language"));
$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("Language") . ":</b>";
$tbw->table_body_column_next(2);
echo "<input type='text' size='40' maxlength='128' name='name' value='{$name}'>";
$tbw->table_body_column_end();
// buttons
$tbw->table_row_next();
$tbw->table_body_column("");
$tbw->table_body_column_begin();
echo "<input type='hidden' name='id' value='{$id}'>";
示例14: mailuser
if ($ml_notify) {
$message = "Username: {$username}\n";
$message .= "Realname: {$realname}\n";
$message .= "E-Mail: {$email_usr}\n";
mailuser("admin", "New User has registered", $message);
}
$bx->box_full($t->translate("User Registration"), $msg);
$reg = 1;
break;
default:
break;
}
}
if (!$reg) {
$bx->box_begin();
$bx->box_title($t->translate("Register as a new User"));
$bx->box_body_begin();
?>
<table border=0 cellspacing=0 cellpadding=3>
<tr>
<form method="post" action="<?php
$sess->pself_url();
?>
">
<td align=right><?php
echo $t->translate("Username");
?>
:</td><td><input type="text" name="username" size=20 maxlength=32 value=""></td>
</tr>
<tr valign=middle align=left>
<td align=right><?php
示例15: COUNT
// URL is a blank line
$be->box_full($t->translate('Error'), $t->translate('New URL not specified'));
}
}
if (isset($del_license)) {
// License in database and we want to delete it
if (!strcmp($del_license, 'warning')) {
// You've got another chance before it's deleted ;-)
// We inform the administrator how many
// projects will be affected by this deletion
$db->query("SELECT COUNT(*) FROM developing WHERE " . "license='{$license}'");
$db->next_record();
$number_of_projects = $db->f('COUNT(*)');
$be->box_full($t->translate('Warning!'), $t->translate('If you press another time the ' . 'Delete-button you will alter') . ' ' . $number_of_projects . ' ' . $t->translate('projects that have ' . 'actually license') . ' ' . $license);
$bx->box_begin();
$bx->box_title($t->translate('Delete License'));
$bx->box_body_begin();
$bx->box_columns_begin(2);
$bx->box_column('left', '76%', '', '<b>' . $t->translate('License') . '</b>: ' . $license);
$bx->box_column('right', '12%', '', html_form_action('PHP_SELF') . html_form_hidden('license', $license) . html_form_hidden('del_license', 'too_late') . html_form_submit($t->translate('Delete')) . html_form_end());
$bx->box_columns_end();
$bx->box_body_end();
$bx->box_end();
$bx->box_body_end();
$bx->box_end();
} else {
$db->query("DELETE from licenses WHERE license='{$license}'");
$bx->box_full($t->translate('Administration'), $t->translate('Deletion succesfully completed.'));
}
} else {
if (empty($new_license) && empty($new_url) && empty($del_license)) {