function page_output()
 {
     $this->obj_customer = new customer_services();
     // fetch variables
     $this->obj_customer->id = @security_script_input('/^[0-9]*$/', $_GET["id_customer"]);
     $this->obj_customer->id_service_customer = @security_script_input('/^[0-9]*$/', $_GET["id_service_customer"]);
     $this->id_service_period = @security_script_input('/^[0-9]*$/', $_GET["id_service_period"]);
     // load service data
     $this->obj_customer->load_data_service();
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Return to Customer Services Page", "page=customers/services.php&id=" . $this->obj_customer->id . "");
     $this->obj_menu_nav->add_item("Service Details", "page=customers/service-edit.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     $this->obj_menu_nav->add_item("Service History", "page=customers/service-history.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "", TRUE);
     if (in_array($this->obj_customer->obj_service->data["typeid_string"], array("phone_single", "phone_tollfree", "phone_trunk"))) {
         $this->obj_menu_nav->add_item("CDR Override", "page=customers/service-cdr-override.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     }
     if ($this->obj_customer->obj_service->data["typeid_string"] == "phone_trunk") {
         $this->obj_menu_nav->add_item("DDI Configuration", "page=customers/service-ddi.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     }
     if ($this->obj_customer->obj_service->data["typeid_string"] == "data_traffic") {
         $this->obj_menu_nav->add_item("IPv4 Addresses", "page=customers/service-ipv4.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     }
     if (user_permissions_get("customers_write")) {
         $this->obj_menu_nav->add_item("Service Delete", "page=customers/service-delete.php&id_customer=" . $this->obj_customer->id . "&id_service_customer=" . $this->obj_customer->id_service_customer . "");
     }
 }
Example #2
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     $this->journalid = @security_script_input('/^[0-9]*$/', $_GET["journalid"]);
     $this->action = @security_script_input('/^[a-z]*$/', $_GET["action"]);
     $this->type = @security_script_input('/^[a-z]*$/', $_GET["type"]);
     // create customer object
     $this->obj_customer = new customer();
     $this->obj_customer->id = $this->id;
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Customer's Details", "page=customers/view.php&id=" . $this->id . "");
     if (sql_get_singlevalue("SELECT value FROM config WHERE name='MODULE_CUSTOMER_PORTAL' LIMIT 1") == "enabled") {
         $this->obj_menu_nav->add_item("Portal Options", "page=customers/portal.php&id=" . $this->id . "");
     }
     $this->obj_menu_nav->add_item("Customer's Journal", "page=customers/journal.php&id=" . $this->id . "", TRUE);
     $this->obj_menu_nav->add_item("Customer's Attributes", "page=customers/attributes.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Orders", "page=customers/orders.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Invoices", "page=customers/invoices.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Credit", "page=customers/credit.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Services", "page=customers/services.php&id=" . $this->id . "");
     if ($this->obj_customer->verify_reseller() == 1) {
         $this->obj_menu_nav->add_item("Reseller's Customers", "page=customers/reseller.php&id_customer=" . $this->obj_customer->id . "");
     }
     $this->obj_menu_nav->add_item("Delete Customer", "page=customers/delete.php&id=" . $this->id . "");
 }
Example #3
0
 function page_output()
 {
     // javascript: AJAX call to load product information
     $this->requires["javascript"][] = "include/accounts/javascript/invoice-items-edit.js";
     // customer object
     $this->obj_customer = new customer_orders();
     // fetch variables
     $this->obj_customer->id = @security_script_input('/^[0-9]*$/', $_GET["id_customer"]);
     $this->obj_customer->id_order = @security_script_input('/^[0-9]*$/', $_GET["id_order"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     if ($this->obj_customer->id_order) {
         // load order details
         $this->obj_customer->load_data();
         $this->obj_customer->load_data_order();
         // Nav Menu
         $this->obj_menu_nav->add_item("Return to Customer Orders Page", "page=customers/orders.php&id_customer=" . $this->obj_customer->id . "");
         $this->obj_menu_nav->add_item("Order Details", "page=customers/orders-view.php&id_customer=" . $this->obj_customer->id . "&id_order=" . $this->obj_customer->id_order . "", TRUE);
     } else {
         // Nav Menu
         $this->obj_menu_nav->add_item("Return to Customer Orders Page", "page=customers/orders.php&id_customer=" . $this->obj_customer->id . "");
         $this->obj_menu_nav->add_item("New Order", "page=customers/orders-view.php&id_customer=" . $this->obj_customer->id . "&id_order=" . $this->obj_customer->id_order . "", TRUE);
         // define some defaults
         if (empty($this->obj_customer->data_orders["type"])) {
             $this->obj_customer->data_orders["type"] = "product";
         }
     }
 }
Example #4
0
 function execute()
 {
     // filter pattern
     $filter = NULL;
     $filter["fieldname"] = "domain_name";
     $filter["type"] = "input";
     $filter["sql"] = "domain_name LIKE '%value%'";
     $filter["defaultvalue"] = security_script_input("/^[A-Za-z0-9\\.\\-]*\$/", $_GET["domain_name"]);
     // establish a new table object
     $this->obj_table = new table();
     $this->obj_table->language = $_SESSION["user"]["lang"];
     $this->obj_table->tablename = "name_servers";
     // define all the columns and structure
     $this->obj_table->add_column("standard", "domain_name", "domain_name");
     $this->obj_table->add_column("standard", "domain_serial", "soa_serial");
     $this->obj_table->add_column("standard", "domain_description", "domain_description");
     // defaults
     $this->obj_table->columns = array("domain_name", "domain_serial", "domain_description");
     // TODO: we should stop querying directly and use the domains class logic, this would also provide support for multiple backends.
     // use seporate zone database
     //$this->obj_table->sql_obj->session_init("mysql", $GLOBALS["config"]["ZONE_DB_HOST"], $GLOBALS["config"]["ZONE_DB_NAME"], $GLOBALS["config"]["ZONE_DB_USERNAME"], $GLOBALS["config"]["ZONE_DB_PASSWORD"]);
     // fetch all the domains
     $this->obj_table->sql_obj->prepare_sql_settable("dns_domains");
     $this->obj_table->sql_obj->prepare_sql_addfield("id", "");
     $this->obj_table->add_filter($filter);
     $this->obj_table->sql_obj->prepare_sql_addorderby("REVERSE(domain_name) LIKE 'apra%'");
     $this->obj_table->sql_obj->prepare_sql_addorderby("domain_description");
     $this->obj_table->sql_obj->prepare_sql_addorderby("domain_name");
     // load data
     $this->obj_table->generate_sql();
     $this->obj_table->load_data_sql();
 }
Example #5
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // create customer object
     $this->obj_customer = new customer();
     $this->obj_customer->id = $this->id;
     // define the navigation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Customer's Details", "page=customers/view.php&id=" . $this->id . "", TRUE);
     if (sql_get_singlevalue("SELECT value FROM config WHERE name='MODULE_CUSTOMER_PORTAL' LIMIT 1") == "enabled") {
         $this->obj_menu_nav->add_item("Portal Options", "page=customers/portal.php&id=" . $this->id . "");
     }
     $this->obj_menu_nav->add_item("Customer's Journal", "page=customers/journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Attributes", "page=customers/attributes.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Orders", "page=customers/orders.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Invoices", "page=customers/invoices.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Credit", "page=customers/credit.php&id_customer=" . $this->id . "");
     $this->obj_menu_nav->add_item("Customer's Services", "page=customers/services.php&id=" . $this->id . "");
     if ($this->obj_customer->verify_reseller() == 1) {
         $this->obj_menu_nav->add_item("Reseller's Customers", "page=customers/reseller.php&id_customer=" . $this->obj_customer->id . "");
     }
     if (user_permissions_get("customers_write")) {
         $this->obj_menu_nav->add_item("Delete Customer", "page=customers/delete.php&id=" . $this->id . "");
     }
     // required pages
     $this->requires["javascript"][] = "include/customers/javascript/addedit_customers.js";
     $this->requires["javascript"][] = "include/customers/javascript/addedit_customer_contacts.js";
     $this->requires["css"][] = "include/customers/css/addedit_customer.css";
 }
 function page_output()
 {
     // includes
     $this->requires["javascript"][] = "include/javascript/services.js";
     // load rate table
     $this->obj_rate_table = new cdr_rate_table();
     // fetch variables
     $this->obj_rate_table->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Rate Table Details", "page=services/cdr-rates-view.php&id=" . $this->obj_rate_table->id . "");
     $this->obj_menu_nav->add_item("Rate Table Items", "page=services/cdr-rates-items.php&id=" . $this->obj_rate_table->id . "", TRUE);
     if (user_permissions_get("services_write")) {
         $this->obj_menu_nav->add_item("Import Rates", "page=services/cdr-rates-import.php&id=" . $this->obj_rate_table->id . "");
         $this->obj_menu_nav->add_item("Delete Rate Table", "page=services/cdr-rates-delete.php&id=" . $this->obj_rate_table->id . "");
     }
     // fetch the operational mode
     if (isset($_GET["table_display_options"])) {
         if ($_GET["filter_search_summarise"] == "on") {
             $this->mode = "group";
         } else {
             $this->mode = "full";
         }
     } elseif (isset($_SESSION["form"]["cdr_rate_table_items"]["filters"]["filter_search_summarise"])) {
         if (empty($_SESSION["form"]["cdr_rate_table_items"]["filters"]["filter_search_summarise"])) {
             $this->mode = "full";
         } else {
             $this->mode = "group";
         }
     } else {
         $this->mode = "group";
     }
 }
Example #7
0
 function page_output()
 {
     $this->mode = @security_script_input('/^[0-9]*$/', $_GET["mode"]);
     if (!$this->mode) {
         $this->mode = 1;
     }
 }
Example #8
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Transaction Details", "page=accounts/gl/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Transaction", "page=accounts/gl/delete.php&id=" . $this->id . "", TRUE);
 }
 function page_output()
 {
     $this->obj_traffic_type = new traffic_types();
     // fetch variables
     $this->obj_traffic_type->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Traffic Type Details", "page=services/traffic-types-view.php&id=" . $this->obj_traffic_type->id . "");
     $this->obj_menu_nav->add_item("Delete Traffic Type", "page=services/traffic-types-delete.php&id=" . $this->obj_traffic_type->id . "", TRUE);
 }
Example #10
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Support Ticket Details", "page=support/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Support Ticket Journal", "page=support/journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Support Ticket", "page=support/delete.php&id=" . $this->id . "", TRUE);
 }
Example #11
0
 function execute()
 {
     $customer_id = @security_script_input('/^[0-9]*$/', $_GET["customerid"]);
     $this->obj_form_invoice = new invoice_form_details();
     $this->obj_form_invoice->type = "ar";
     $this->obj_form_invoice->invoiceid = 0;
     $this->obj_form_invoice->customer_id = $customer_id;
     $this->obj_form_invoice->processpage = "accounts/ar/invoice-edit-process.php";
     $this->obj_form_invoice->execute();
 }
 function page_output()
 {
     $this->obj_customer = new customer_services();
     // fetch variables
     $this->obj_customer->id = @security_script_input('/^[0-9]*$/', $_GET["id_customer"]);
     $this->obj_customer->id_service_customer = @security_script_input('/^[0-9]*$/', $_GET["id_service_customer"]);
     $this->id_service_period = @security_script_input('/^[0-9]*$/', $_GET["id_service_period"]);
     // load service data
     $this->obj_customer->load_data_service();
 }
Example #13
0
 function execute()
 {
     $customer_id = @security_script_input('/^[0-9]*$/', $_GET["customerid"]);
     $this->obj_form_credit = new credit_form_details();
     $this->obj_form_credit->type = "ar_credit";
     $this->obj_form_credit->credit_id = 0;
     $this->obj_form_credit->customer_id = $customer_id;
     $this->obj_form_credit->processpage = "accounts/ar/credit-edit-process.php";
     $this->obj_form_credit->execute();
 }
Example #14
0
 function page_output()
 {
     // fetch variables
     $this->id = security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("User's Details", "page=user/user-view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("User's Permissions", "page=user/user-permissions.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete User", "page=user/user-delete.php&id=" . $this->id . "", TRUE);
 }
Example #15
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Employee's Details", "page=hr/staff-view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Timesheet", "page=hr/staff-timebooked.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Employee's Journal", "page=hr/staff-journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Employee", "page=hr/staff-delete.php&id=" . $this->id . "", TRUE);
 }
Example #16
0
 function page_output()
 {
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Product Details", "page=products/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Product Journal", "page=products/journal.php&id=" . $this->id . "", TRUE);
     if (user_permissions_get("products_write")) {
         $this->obj_menu_nav->add_item("Delete Product", "page=products/delete.php&id=" . $this->id . "");
     }
 }
Example #17
0
 function page_output()
 {
     // initate object
     $this->obj_name_server_group = new name_server_group();
     // fetch variables
     $this->obj_name_server_group->id = security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Adjust Server Group", "page=servers/group-view.php&id=" . $this->obj_name_server_group->id . "", TRUE);
     $this->obj_menu_nav->add_item("Delete Server Group", "page=servers/group-delete.php&id=" . $this->obj_name_server_group->id . "");
 }
Example #18
0
 function page_output()
 {
     // init
     $this->obj_product_group = new product_groups();
     // fetch variables
     $this->obj_product_group->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Product Group Details", "page=products/groups-view.php&id=" . $this->obj_product_group->id . "");
     $this->obj_menu_nav->add_item("Delete Product Group", "page=products/groups-delete.php&id=" . $this->obj_product_group->id . "", TRUE);
 }
 function page_output()
 {
     $this->obj_rate_table = new cdr_rate_table();
     // fetch variables
     $this->obj_rate_table->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Rate Table Details", "page=services/cdr-rates-view.php&id=" . $this->obj_rate_table->id . "");
     $this->obj_menu_nav->add_item("Rate Table Items", "page=services/cdr-rates-items.php&id=" . $this->obj_rate_table->id . "");
     $this->obj_menu_nav->add_item("Import Rates", "page=services/cdr-rates-import.php&id=" . $this->obj_rate_table->id . "");
     $this->obj_menu_nav->add_item("Delete Rate Table", "page=services/cdr-rates-delete.php&id=" . $this->obj_rate_table->id . "", TRUE);
 }
Example #20
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Account Details", "page=accounts/charts/view.php&id=" . $this->id . "", TRUE);
     $this->obj_menu_nav->add_item("Account Ledger", "page=accounts/charts/ledger.php&id=" . $this->id . "");
     if (user_permissions_get("accounts_charts_write")) {
         $this->obj_menu_nav->add_item("Delete Account", "page=accounts/charts/delete.php&id=" . $this->id . "");
     }
 }
Example #21
0
 function page_output()
 {
     // initate object
     $this->obj_name_server = new name_server();
     // fetch variables
     $this->obj_name_server->id = security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Adjust Server Configuration", "page=servers/view.php&id=" . $this->obj_name_server->id . "");
     $this->obj_menu_nav->add_item("View Server-Specific Logs", "page=servers/logs.php&id=" . $this->obj_name_server->id . "", TRUE);
     $this->obj_menu_nav->add_item("Delete Server", "page=servers/delete.php&id=" . $this->obj_name_server->id . "");
 }
Example #22
0
 function page_output()
 {
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     $this->journalid = @security_script_input('/^[0-9]*$/', $_GET["journalid"]);
     $this->action = @security_script_input('/^[a-z]*$/', $_GET["action"]);
     $this->type = @security_script_input('/^[a-z]*$/', $_GET["type"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Product Details", "page=products/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Product Journal", "page=products/journal.php&id=" . $this->id . "", TRUE);
     $this->obj_menu_nav->add_item("Delete Product", "page=products/delete.php&id=" . $this->id . "");
 }
 function page_output()
 {
     // fetch vapiables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Invoice Details", "page=accounts/ap/invoice-view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Invoice Items", "page=accounts/ap/invoice-items.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Invoice Payments", "page=accounts/ap/invoice-payments.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Invoice Journal", "page=accounts/ap/journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Invoice", "page=accounts/ap/invoice-delete.php&id=" . $this->id . "", TRUE);
 }
Example #24
0
 function page_output()
 {
     // initate object
     $this->obj_domain = new domain();
     // fetch variables
     $this->obj_domain->id = security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Domain Details", "page=domains/view.php&id=" . $this->obj_domain->id . "");
     $this->obj_menu_nav->add_item("Domain Records", "page=domains/records.php&id=" . $this->obj_domain->id . "");
     $this->obj_menu_nav->add_item("Delete Domain", "page=domains/delete.php&id=" . $this->obj_domain->id . "", TRUE);
 }
Example #25
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Tax Details", "page=accounts/taxes/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Tax Ledger", "page=accounts/taxes/ledger.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Tax Collected", "page=accounts/taxes/tax_collected.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Tax Paid", "page=accounts/taxes/tax_paid.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Tax", "page=accounts/taxes/delete.php&id=" . $this->id . "", TRUE);
 }
Example #26
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Credit Details", "page=accounts/ar/credit-view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Credit Items", "page=accounts/ar/credit-items.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Credit Payment/Refund", "page=accounts/ar/credit-payments.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Credit Journal", "page=accounts/ar/credit-journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Export Credit Note", "page=accounts/ar/credit-export.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Credit", "page=accounts/ar/credit-delete.php&id=" . $this->id . "", TRUE);
 }
Example #27
0
 function page_output()
 {
     // fetch quote ID
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Quote Details", "page=accounts/quotes/quotes-view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Quote Items", "page=accounts/quotes/quotes-items.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Quote Journal", "page=accounts/quotes/journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Export Quote", "page=accounts/quotes/quotes-export.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Convert to Invoice", "page=accounts/quotes/quotes-convert.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Quote", "page=accounts/quotes/quotes-delete.php&id=" . $this->id . "", TRUE);
 }
Example #28
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Vendor's Details", "page=vendors/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Vendor's Journal", "page=vendors/journal.php&id=" . $this->id . "", TRUE);
     $this->obj_menu_nav->add_item("Vendor's Invoices", "page=vendors/invoices.php&id=" . $this->id . "");
     if (user_permissions_get("vendors_write")) {
         $this->obj_menu_nav->add_item("Delete Vendor", "page=vendors/delete.php&id=" . $this->id . "");
     }
 }
Example #29
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Project Details", "page=projects/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Project Phases", "page=projects/phases.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Timebooked", "page=projects/timebooked.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Timebilled/Grouped", "page=projects/timebilled.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Project Journal", "page=projects/journal.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Project", "page=projects/delete.php&id=" . $this->id . "", TRUE);
 }
Example #30
0
 function page_output()
 {
     // fetch variables
     $this->id = @security_script_input('/^[0-9]*$/', $_GET["id"]);
     // create chart object
     $this->obj_chart = new chart();
     $this->obj_chart->id = $this->id;
     // define the navigiation menu
     $this->obj_menu_nav = new menu_nav();
     $this->obj_menu_nav->add_item("Account Details", "page=accounts/charts/view.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Account Ledger", "page=accounts/charts/ledger.php&id=" . $this->id . "");
     $this->obj_menu_nav->add_item("Delete Account", "page=accounts/charts/delete.php&id=" . $this->id . "", TRUE);
 }