summaryrefslogtreecommitdiff
path: root/fs_selfservice/fri/modules/billing.module
diff options
context:
space:
mode:
authorivan <ivan>2008-03-17 02:48:15 +0000
committerivan <ivan>2008-03-17 02:48:15 +0000
commita2d1703dea6fd017bf19b4e43aa1594538ec6b60 (patch)
treebbc4d21b9547d4213e6176229ff450ea90d887e2 /fs_selfservice/fri/modules/billing.module
parent34ab52f564fec94959337e93eafa071b60a76f73 (diff)
first bits of working FRI! woop!
Diffstat (limited to 'fs_selfservice/fri/modules/billing.module')
-rw-r--r--fs_selfservice/fri/modules/billing.module81
1 files changed, 81 insertions, 0 deletions
diff --git a/fs_selfservice/fri/modules/billing.module b/fs_selfservice/fri/modules/billing.module
new file mode 100644
index 000000000..caa28b55a
--- /dev/null
+++ b/fs_selfservice/fri/modules/billing.module
@@ -0,0 +1,81 @@
+<?php
+
+/**
+ * @file
+ * Functions for the interface to the help page
+ */
+
+/**
+ * Class for help
+ */
+class billing {
+
+ /*
+ * rank (for prioritizing modules)
+ */
+ function rank() {
+
+ $rank = -2;
+ return $rank;
+ }
+
+ /*
+ * init
+ */
+ function init() {
+ }
+
+ /*
+ * Adds menu item to nav menu
+ *
+ * @param $args
+ * Common arguments
+ */
+ function navMenu($args) {
+
+ $ret .= "<p><small><small><a href='" . $_SESSION['ARI_ROOT'] . "?m=billing&f=display'>" . _("Billing") . "</a></small></small></p><br>";
+
+ return $ret;
+ }
+
+ /*
+ * Displays stats page
+ *
+ * @param $args
+ * Common arguments
+ */
+ function display($args) {
+
+ global $ARI_HELP_FEATURE_CODES;
+
+ $display = new Display();
+
+ // args
+ $m = getArgument($args,'m');
+ $q = getArgument($args,'q');
+
+ $displayname = $_SESSION['ari_user']['displayname'];
+ $extension = $_SESSION['ari_user']['extension'];
+
+ // build page content
+ $ret .= checkErrorMessage();
+
+ $header_text = _("Billing");
+ if (!$_SESSION['ari_user']['admin_help']) {
+ $header_text .= sprintf(_(" for %s (%s)"), $displayname, $extension);
+ }
+
+ // build page content
+ $ret .= checkErrorMessage();
+
+ $ret .= $display->displayHeaderText($header_text);
+ $ret .= $display->displayLine();
+
+ $ret .= 'Billing goes here';
+
+ return $ret;
+ }
+
+}
+
+?>