本文整理汇总了PHP中format_msgbox函数的典型用法代码示例。如果您正苦于以下问题:PHP format_msgbox函数的具体用法?PHP format_msgbox怎么用?PHP format_msgbox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了format_msgbox函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render_html
function render_html()
{
// heading
print "<h3>CDR RATE TABLES</h3><br>";
print "<p>This page contains the different phone call rate tables that have been configured. You can define as many different call rates tables as you like, typically this is done when using different call providers to deliver services when they charge at different rates.</p>";
// display options form
$this->obj_table->render_options_form();
// display table
if (!count($this->obj_table->columns)) {
format_msgbox("important", "<p>Please select some valid options to display.</p>");
} elseif (!$this->obj_table->data_num_rows) {
format_msgbox("important", "<p>There are no rate tables in the database that match the filters.</p>");
} else {
// links
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_details", "services/cdr-rates-view.php", $structure);
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_items", "services/cdr-rates-items.php", $structure);
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_delete", "services/cdr-rates-delete.php", $structure);
// display the table
$this->obj_table->render_table_html();
// display CSV/PDF download link
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=csv&page=services/cdr_rates.php\">Export as CSV</a></p>";
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=pdf&page=services/cdr_rates.php\">Export as PDF</a></p>";
}
}
示例2: render_html
function render_html()
{
// heading
print "<h3>STAFF LIST</h3><br><br>";
// display options form
$this->obj_table->render_options_form();
// display data
if (!count($this->obj_table->columns)) {
format_msgbox("important", "<p>Please select some valid options to display.</p>");
} elseif (!$this->obj_table->data_num_rows) {
format_msgbox("info", "<p>You currently have no staff in your database.</p>");
} else {
// links
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_details", "hr/staff-view.php", $structure);
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_timesheet", "hr/staff-timebooked.php", $structure);
// display the table
$this->obj_table->render_table_html();
// display CSV/PDF download link
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=csv&page=hr/staff.php\">Export as CSV</a></p>";
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=pdf&page=hr/staff.php\">Export as PDF</a></p>";
}
}
示例3: render_html
function render_html()
{
// heading
print "<h3>TAXES</h3>";
print "<p>This page list all the taxes added to the system.</p>";
// display table
if (!count($this->obj_table->columns)) {
format_msgbox("important", "<p>Please select some valid options to display.</p>");
} elseif (!$this->obj_table->data_num_rows) {
format_msgbox("info", "<p>You currently have no taxes in your database.</p>");
} else {
// view link
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("view", "accounts/taxes/view.php", $structure);
// tax collected link
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("collected", "accounts/taxes/tax_collected.php", $structure);
// tax paid link
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("paid", "accounts/taxes/tax_paid.php", $structure);
// display the table
$this->obj_table->render_table_html();
// display CSV/PDF download link
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=csv&page=accounts/taxes/taxes.php\">Export as CSV</a></p>";
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=pdf&page=accounts/taxes/taxes.php\">Export as PDF</a></p>";
}
}
示例4: render_html
function render_html()
{
// heading
print "<h3>PROJECT PHASES</h3>";
print "<p>All projects need to have at least one project phase, which staff can then use to book time to. A typical usage example is to have different phases\n\t\tfor different sections of work on the project - eg: \"design phase\", \"implementation phase\" and \"testing phase\".</p>";
print "<p>You can check what time has been booked to the phases, by using the \"Timebooked\" button on the menu above.</p>";
if (!$this->obj_table->data_num_rows) {
format_msgbox("important", "<p>You currently have no phases belonging to this project.<br><br><a class=\"button\" href=\"index.php?page=projects/phase-edit.php&id=" . $this->id . "\">Add a new phase to the project</a></p>");
} else {
if (user_permissions_get("projects_write")) {
// edit link
$structure = NULL;
$structure["id"]["value"] = $this->id;
$structure["phaseid"]["column"] = "id";
$this->obj_table->add_link("edit", "projects/phase-edit.php", $structure);
// delete link
$structure = NULL;
$structure["id"]["value"] = $this->id;
$structure["phaseid"]["column"] = "id";
$this->obj_table->add_link("delete", "projects/phase-delete.php", $structure);
}
// display the table
$this->obj_table->render_table_html();
if (user_permissions_get("projects_write")) {
print "<p><a class=\"button\" href=\"index.php?page=projects/phase-edit.php&id=" . $this->id . "\">Add a new phase to the project</a></p>";
}
}
}
示例5: render_html
function render_html()
{
// title + summary
print "<h3>DOMAINS</h3>";
print "<p>List of domains managed by this server:</p>";
// table data
if (!$this->obj_table->data_num_rows) {
format_msgbox("important", "<p>There are currently no domain names configured.</p>");
} else {
// details link
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_details", "domains/view.php", $structure);
// domain records
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_records", "domains/records.php", $structure);
// delete link
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_delete", "domains/delete.php", $structure);
// display the table
$this->obj_table->render_table_html();
}
// add link
print "<p><a class=\"button\" href=\"index.php?page=domains/add.php\">Add New Domain</a></p>";
}
示例6: render_html
function render_html()
{
// table data
if (!$this->obj_table->data_num_rows and !$_GET["domain_name"]) {
format_msgbox("important", "<p>There are currently no domain names configured.</p>");
} else {
// details link
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_details", "domains/view.php", $structure);
// domain records
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_records", "domains/records.php", $structure);
// delete link
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_delete", "domains/delete.php", $structure);
// display the table
$this->obj_table->render_table_html();
if (!$this->obj_table->data_num_rows) {
format_msgbox("important", "<p>No match on domain names with current filter expression.</p>");
}
}
}
示例7: render_html
function render_html()
{
// heading
print "<h3>DATA TRAFFIC TYPES</h3><br>";
print "<p>When billing data traffic services with differing prices/caps for specific traffic types - for example, national vs international traffic, the different traffic types will need to be defined here - once defined, services can have these traffic types assigned and configured with per-service data caps or unlimited options.</p>";
// display options form
$this->obj_table->render_options_form();
// display table
if (!count($this->obj_table->columns)) {
format_msgbox("important", "<p>Please select some valid options to display.</p>");
} elseif (!$this->obj_table->data_num_rows) {
format_msgbox("important", "<p>There are no traffic types in the database that match the filters.</p>");
} else {
// links
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_details", "services/traffic-types-view.php", $structure);
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_delete", "services/traffic-types-delete.php", $structure);
// display the table
$this->obj_table->render_table_html();
// display CSV/PDF download link
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=csv&page=services/traffic-types.php\">Export as CSV</a></p>";
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=pdf&page=services/traffic-types.php\">Export as PDF</a></p>";
}
}
示例8: render_html
function render_html()
{
// Title + Summapy
print "<h3>INVOICE JOURNAL</h3><br>";
print "<p>The journal is a place where you can put your own notes, files and view the history of this invoice.</p>";
if (user_permissions_get("accounts_ap_write")) {
print "<p><a class=\"button\" href=\"index.php?page=accounts/ap/journal-edit.php&type=text&id=" . $this->id . "\">Add new journal entry</a> <a class=\"button\" href=\"index.php?page=accounts/ap/journal-edit.php&type=file&id=" . $this->id . "\">Upload File</a></p>";
} else {
format_msgbox("locked", "<p>Note: your permissions limit you to read-only access to the journal</p>");
}
// display options form
$this->obj_journal->render_options_form();
// display the journal
$this->obj_journal->render_journal();
}
示例9: render_html
function render_html()
{
// Title + Summary
print "<h3>DATABASE BACKUP</h3><br>";
print "<p>This page allows an administrator to perform an export of the entire MySQL database and download it as a file. This feature\n\t\t\tensures that no matter who runs your instance of the Amberdms Billing System, your data can always be retrieved.</p>";
print "<p>The file generated is a standard SQL file compressed with gzip, it can be easily restored using the MySQL command line or\n\t\t\tvia a utility such as phpmyadmin.</p>";
// report on usage
$sql_obj = new sql_query();
$usage = $sql_obj->stats_diskusage();
format_msgbox("info", "<p>Estimated download size: " . format_size_human($usage) . " (before compression)</p>");
// run check for file-system based journal files
$sql_obj = new sql_query();
$sql_obj->string = "SELECT id FROM file_uploads WHERE file_location != 'db' LIMIT 1";
$sql_obj->execute();
if ($sql_obj->num_rows()) {
format_msgbox("important", "<p>Some of the files stored in the journal have been saved to the filesystem rather than the MySQL database. This backup will provide a copy of the database, but you will also need to download the contents of the data/ directory.</p>");
}
// export link
print "<br>";
print "<a class=\"button\" href=\"admin/db_backup-process.php\">Export Database</a>";
}
示例10: render_html
function render_html()
{
// Title + Summary
print "<h3>USER STAFF ACCESS RIGHTS</h3><br>";
print "<p>The Amberdms Billing System allows user accounts to be in charge of multiple staff members\n\t\t\t- what this means, is that you can configure which staff members the user can act on behalf\n\t\t\tof when entering time, invoices or other records.</p>";
print "<p>This feature is useful for doing things such as assigning a secretary to be able to fill\n\t\t\tin timesheet for both themselves and their manager, or allowing accounting staff to be\n\t\t\table to edit all staff member's timesheets in order to correct mistakes at billing time.</p>";
// display table
if (!$this->obj_table->data_num_rows) {
format_msgbox("info", "<p>This user currently has no staff access rights.</p>");
} else {
// edit link
$structure = NULL;
$structure["id"]["value"] = $this->id;
$structure["staffid"]["column"] = "staffid";
$this->obj_table->add_link("full details", "user/user-staffaccess-edit.php", $structure);
// display the table
$this->obj_table->render_table_html();
}
// add link
print "<p><a class=\"button\" href=\"index.php?page=user/user-staffaccess-add.php&id=" . $this->id . "\">Add new staff access rights</a></p>";
}
示例11: render_html
function render_html()
{
// title + summary
print "<h3>NAME SERVERS</h3>";
print "<p>NamedManager provides group management functions to allow isolation of different groups of Name Servers, so that specific domains can be pushed to specific hosts. This page allows configuration of these domain zones.</p>";
// table data
if (!$this->obj_table->data_num_rows) {
format_msgbox("important", "<p>There are no defined groups.</p>");
} else {
// details link
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_details", "servers/group-view.php", $structure);
// delete link
$structure = NULL;
$structure["id"]["column"] = "id";
$this->obj_table->add_link("tbl_lnk_delete", "servers/group-delete.php", $structure);
// display the table
$this->obj_table->render_table_html();
}
// add link
print "<p><a class=\"button\" href=\"index.php?page=servers/group-add.php\">Add New Server Group</a></p>";
}
示例12: render_html
function render_html()
{
// title
print "<h3>CUSTOMER PORTAL OPTIONS</h3><br>";
print "<p>There are various options for the customer portal which can be configured and defined here, such as the customer's login password.</p>";
// display the form
$this->obj_form->render_form();
if (!user_permissions_get("customers_write")) {
format_msgbox("locked", "<p>Sorry, you do not have permission to edit this customer</p>");
}
}
示例13: render_html
function render_html()
{
// Title + Summary
print "<h3>PROJECT DELETE</h3><br>";
print "<p>This page allows you to delete an unwanted project.</p>";
// display the form
$this->obj_form->render_form();
if ($this->locked) {
format_msgbox("locked", "<p>This project now has time booked to it and can not be deleted. If the project has been finished, you can close it by setting the End Date field on the details page.</p>");
}
}
示例14: render_html
function render_html()
{
// title + summary
print "<h3>TIME REGISTRATION - " . date("l d F Y", mktime(0, 0, 0, $this->date_split[1], $this->date_split[2], $this->date_split[0])) . "</h3><br>";
// links
$date_previous = mktime(0, 0, 0, $this->date_split[1], $this->date_split[2] - 1, $this->date_split[0]);
$date_previous = date("Y-m-d", $date_previous);
$date_next = mktime(0, 0, 0, $this->date_split[1], $this->date_split[2] + 1, $this->date_split[0]);
$date_next = date("Y-m-d", $date_next);
print "<p><b>";
print "<a class=\"button\" href=\"index.php?page=timekeeping/timereg-day.php&date={$date_previous}&employeeid=" . $this->employeeid . "\"><< Previous Day</a>";
if ($this->config_timesheet_booktofuture == "disabled") {
if (time_date_to_timestamp($date_next) < time()) {
print " <a class=\"button\" href=\"index.php?page=timekeeping/timereg-day.php&date={$date_next}&employeeid=" . $this->employeeid . "\">Next Day >></a>";
}
} else {
print " <a class=\"button\" href=\"index.php?page=timekeeping/timereg-day.php&date={$date_next}&employeeid=" . $this->employeeid . "\">Next Day >></a>";
}
print "</b></p><br>";
// Employee selection form
//
// we use a custom form display method here, since the normal form
// class will draw a fully styled form in a table.
//
if ($this->employeeid) {
print "<table class=\"table_highlight\" width=\"100%\"><tr><td width=\"100%\">";
} else {
print "<table class=\"table_highlight_important\" width=\"100%\"><tr><td width=\"100%\">";
}
print "<form method=\"get\" action=\"index.php\">";
print "<p><b>Select an employee to view:</b></p>";
$this->obj_form_employee->render_field("employeeid");
$this->obj_form_employee->render_field("date");
$this->obj_form_employee->render_field("page");
$this->obj_form_employee->render_field("submit");
print "</form>";
print "</td></tr></table><br>";
if ($this->employeeid) {
if (!$this->obj_table_day->data_num_rows) {
format_msgbox("info", "<p><b>There is currently no time registered to this day.</b></p>");
} else {
if (user_permissions_staff_get("timereg_write", $this->employeeid)) {
// edit link
$structure = NULL;
$structure["id"]["column"] = "id";
$structure["date"]["value"] = $this->date;
$this->obj_table_day->add_link("edit", "timekeeping/timereg-day-edit.php", $structure);
// delete link
$structure = NULL;
$structure["id"]["column"] = "id";
$structure["date"]["value"] = $this->date;
$structure["full_link"] = "yes";
$this->obj_table_day->add_link("delete", "timekeeping/timereg-day-delete-process.php", $structure);
}
// display table
$this->obj_table_day->render_table_html();
}
print "<table width=\"100%\">";
// add time link
if (user_permissions_staff_get("timereg_write", $this->employeeid)) {
print "<td align=\"left\" valign=\"top\"><p><a class=\"button\" href=\"index.php?page=timekeeping/timereg-day-edit.php&date=" . $this->date . "&employeeid=" . $this->employeeid . "\">Add new time entry</a></p></td>";
} else {
print "<p><i>You have read-only access to this employee and therefore can not add any more time.</i></p>";
}
// display CSV/PDF download link
if ($this->obj_table_day->data_num_rows) {
print "<td align=\"right\">";
print "<p><a class=\"button_export\" href=\"index-export.php?mode=csv&page=timekeeping/timereg-day.php&date=" . $this->date . "&employeeid=" . $this->employeeid . "\">Export as CSV</a></p>";
print "<p><a class=\"button_export\" href=\"index-export.php?mode=pdf&page=timekeeping/timereg-day.php&date=" . $this->date . "&employeeid=" . $this->employeeid . "\">Export as PDF</a></p>";
print "</td>";
}
print "</table>";
}
}
示例15: render_html
function render_html()
{
log_debug("invoice_form_delete", "Executing render_html()");
// display form
$this->obj_form->render_form();
// display any reasons to prevent deletion
if ($this->locked) {
format_msgbox("locked", "<p>This invoice has been locked and can no longer be removed.</p>");
} elseif ($this->amount_paid > 0) {
format_msgbox("info", "<p>Please note: this invoice has had payments made against it, deleting the invoice will delete all record of the payment.</p>");
}
}