本文整理汇总了PHP中format_msgbox函数的典型用法代码示例。如果您正苦于以下问题:PHP format_msgbox函数的具体用法?PHP format_msgbox怎么用?PHP format_msgbox使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了format_msgbox函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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>";
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:30,代码来源:cdr-rates.php
示例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>";
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:26,代码来源:staff.php
示例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>";
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:30,代码来源:taxes.php
示例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>";
}
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:28,代码来源:phases.php
示例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>";
}
开发者ID:sanoousmane,项目名称:namedmanager,代码行数:27,代码来源:domains.php
示例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>");
}
}
}
开发者ID:claybbs,项目名称:namedmanager,代码行数:25,代码来源:domains-ajax.php
示例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>";
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:27,代码来源:traffic-types.php
示例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();
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:15,代码来源:journal.php
示例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>";
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:21,代码来源:db_backup.php
示例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>";
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:21,代码来源:user-staffaccess.php
示例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>";
}
开发者ID:kissingwolf,项目名称:namedmanager,代码行数:23,代码来源:groups.php
示例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>");
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:11,代码来源:portal.php
示例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>");
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:11,代码来源:delete.php
示例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>";
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:74,代码来源:timereg-day.php
示例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>");
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:12,代码来源:inc_invoices_forms.php
示例16: render_html
function render_html()
{
// heading
print "<h3>CUSTOMER SERVICE HISTORY</h3>";
print "<p>This page displays all the periods of this service, showing when the service was active and when it has been billed.</p>";
$this->obj_customer->service_render_summarybox();
if (!$this->obj_table->data_num_rows) {
format_msgbox("info", "<p>This service does not have any history - this is normal when the service has just recently been added.</p>");
} else {
// get the unit name if applicable
if (preg_match("/^[0-9]*\$/", $this->obj_customer->obj_service->data["units"])) {
$unitname = sql_get_singlevalue("SELECT name as value FROM service_units WHERE id='" . $this->obj_customer->obj_service->data["units"] . "'");
}
// run through all the data rows to make custom changes
for ($i = 0; $i < $this->obj_table->data_num_rows; $i++) {
// make the invoice number a hyperlink
if ($this->obj_table->data[$i]["code_invoice"] && user_permissions_get("accounts_ar_view")) {
$this->obj_table->data[$i]["code_invoice"] = "<a href=\"index.php?page=accounts/ar/invoice-view.php&id=" . $this->obj_table->data[$i]["invoiced_plan"] . "\">AR " . $this->obj_table->data[$i]["code_invoice"] . "</a>";
}
// tick the paid column if the invoice has been paid off completely
if (!empty($this->obj_table->data[$i]["invoiced"])) {
if ($this->obj_table->data[$i]["amount_total"] == $this->obj_table->data[$i]["amount_paid"]) {
$this->obj_table->data[$i]["paid"] = 1;
}
}
// provide service-type specific options for displaying and querying usage.
switch ($this->obj_table->data[$i]["service_type"]) {
case "phone_trunk":
case "phone_tollfree":
case "phone_single":
// display a "view call records" link which looks up the historical
// call data to fetch pricing
$this->obj_table->data[$i]["usage_summary"] = "<a href=\"index.php?page=customers/service-history-cdr.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "&id_service_period=" . $this->obj_table->data[$i]["id"] . "\">View Call Records</a>";
break;
case "data_traffic":
case "generic_with_usage":
if ($i == $this->obj_table->data_num_rows - 1) {
// if this is the most recent period, then add a check link next to the usage amount
$this->obj_table->data[$i]["usage_summary"] = $this->obj_table->data[$i]["usage_summary"] . " {$unitname} <a href=\"customers/services-checkusage-process.php?id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "\">(get latest)</a>";
} else {
// displau usage amount
$this->obj_table->data[$i]["usage_summary"] = $this->obj_table->data[$i]["usage_summary"] . " {$unitname}";
}
break;
}
// end of service type
}
// 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=customers/service-history.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "\">Export as CSV</a></p>";
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=pdf&page=customers/service-history.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "\">Export as PDF</a></p>";
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:54,代码来源:service-history.php
示例17: render_html
function render_html()
{
// heading
print "<h3>UNBILLED TIME</h3>";
print "<p>This page shows all time which has not yet been added to an invoice for any non-internal projects.</p>";
// display options form
$this->obj_table->render_options_form();
// display notice about limited access if suitable
if ($this->access_staff_ids) {
$sql_obj = new sql_query();
$sql_obj->string = "SELECT id FROM staff";
$sql_obj->execute();
$sql_obj->num_rows();
if (count($this->access_staff_ids) != $sql_obj->num_rows()) {
format_msgbox("info", "<p>Please note that the following list of unbilled hours only included the specific users whom you have been configured to view - to view all employees, ask your admin to enable the timekeeping_all_view permission.</p>");
print "<br>";
}
}
// Display table data
if (!$this->obj_table->data_num_rows) {
format_msgbox("info", "<p>There is currently no unbilled time matching your search filter options.</p>");
} else {
// time entry link
if ($this->obj_table->filter["filter_groupby"]["defaultvalue"] == "none") {
$structure = NULL;
$structure["id"]["column"] = "id";
$structure["date"]["column"] = "date";
$structure["employeeid"]["column"] = "employeeid";
$this->obj_table->add_link("tbl_lnk_view_timeentry", "timekeeping/timereg-day-edit.php", $structure);
}
// TODO:
// something about these two links below cause the table formatting to be slightly broken in the far right (empty?) column
// problem occurs with either link
//
// project time group
$structure = NULL;
$structure["id"]["column"] = "projectid";
$structure["groupid"]["column"] = "timegroupid";
$structure["column"] = "time_group";
$this->obj_table->add_link("tbl_lnk_groupid", "projects/timebilled-edit.php", $structure);
// project/phase ID
$structure = NULL;
$structure["id"]["column"] = "projectid";
$structure["column"] = "name_phase";
$this->obj_table->add_link("tbl_lnk_project", "projects/timebooked.php", $structure);
$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=timekeeping/unbilled.php\">Export as CSV</a></p>";
print "<p align=\"right\"><a class=\"button_export\" href=\"index-export.php?mode=pdf&page=timekeeping/unbilled.php\">Export as PDF</a></p>";
}
}
开发者ID:carriercomm,项目名称:amberdms-bs,代码行数:51,代码来源:unbilled.php
示例18: render_html
//.........这里部分代码省略.........
$this->obj_form->render_row("code_gl");
$this->obj_form->render_row("date_trans");
$this->obj_form->render_row("employeeid");
$this->obj_form->render_row("description");
$this->obj_form->render_row("description_useall");
$this->obj_form->render_row("notes");
print "</tr>";
/*
Transaction Rows
This section is the most complex part of the form, where we add new rows to the form
for each transactions.
*/
print "<tr class=\"header\">";
print "<td colspan=\"2\"><b>" . language_translate_string($_SESSION["user"]["lang"], "general_ledger_transaction_rows") . "</b></td>";
print "</tr>";
print "<tr>";
print "<td colspan=\"2\">";
// header
print "<table width=\"100%\">";
print "<tr>";
print "<td width=\"100%\" colspan=\"5\"><p>Enter all the parts of the transaction in the fields below. Because this is a double-entry accounting system, remember that you need to credit the source account and then debit the destination account, and that the totals for both the credit and debit accounts needs to match.</p></td>";
print "</tr>";
print "<tr>";
print "<td width=\"20%\"><b>Account</b></td>";
print "<td width=\"15%\"><b>Debit (dest)</b></td>";
print "<td width=\"15%\"><b>Credit (src)</b></td>";
print "<td width=\"15%\"><b>Source</b></td>";
print "<td width=\"35%\"><b>Description</b></td>";
print "</tr>";
// display all the rows
for ($i = 0; $i < $this->num_trans; $i++) {
if (isset($_SESSION["error"]["trans_" . $i . "-error"])) {
print "<tr class=\"form_error\">";
} else {
print "<tr class=\"table_highlight\">";
}
// account
print "<td width=\"20%\" valign=\"top\">";
$this->obj_form->render_field("trans_" . $i . "_account");
print "</td>";
// debit
print "<td width=\"15%\" valign=\"top\">";
$this->obj_form->render_field("trans_" . $i . "_debit");
print "</td>";
// credit
print "<td width=\"15%\" valign=\"top\">";
$this->obj_form->render_field("trans_" . $i . "_credit");
print "</td>";
// source
print "<td width=\"15%\" valign=\"top\">";
$this->obj_form->render_field("trans_" . $i . "_source");
print "</td>";
// description
print "<td width=\"35%\" valign=\"top\">";
$this->obj_form->render_field("trans_" . $i . "_description");
print "</td>";
print "</tr>";
}
/*
Totals Display
*/
print "<tr class=\"table_highlight\">";
// joining/filler columns
print "<td width=\"20%\"></td>";
// total debit
print "<td width=\"15%\">";
$this->obj_form->render_field("total_debit");
print "</td>";
// total credit
print "<td width=\"15%\">";
$this->obj_form->render_field("total_credit");
print "</td>";
// joining/filler columns
print "<td width=\"15%\"></td>";
print "<td width=\"35%\"></td>";
print "</tr>";
print "</table>";
print "</td>";
print "</tr>";
// hidden fields
$this->obj_form->render_field("id_transaction");
$this->obj_form->render_field("num_trans");
$this->obj_form->render_field("money_format");
// form submit
print "<tr class=\"header\">";
print "<td colspan=\"2\"><b>" . language_translate_string($_SESSION["user"]["lang"], "general_ledger_transaction_submit") . "</b></td>";
print "</tr>";
if (user_permissions_get("accounts_gl_write") && !$this->locked) {
$this->obj_form->render_row("submit");
}
// end table + form
print "</table>";
print "</form>";
if (!user_permissions_get("accounts_gl_write")) {
format_msgbox("locked", "<p>Sorry, you do not have permission to adjust this transaction&l
|
请发表评论