The rest of the commit
authorBen Klang <ben@alkaloid.net>
Thu, 30 Jun 2005 23:42:38 +0000 (23:42 +0000)
committerBen Klang <ben@alkaloid.net>
Thu, 30 Jun 2005 23:42:38 +0000 (23:42 +0000)
git-svn-id: https://svn.alkaloid.net/gpl/shout/trunk@40 06cd67b6-e706-0410-b29e-9de616bca6e9

lib/Users.php [new file with mode: 0644]
templates/common-header.inc [new file with mode: 0644]
templates/menu.inc [new file with mode: 0644]

diff --git a/lib/Users.php b/lib/Users.php
new file mode 100644 (file)
index 0000000..044a7d9
--- /dev/null
@@ -0,0 +1,43 @@
+<?php
+/**
+ * CreateStep1Form Class
+ *
+ * $Horde: whups/lib/Create.php,v 1.56 2005/01/03 14:35:44 jan Exp $
+ *
+ * Copyright 2001-2005 Robert E. Coyle <robertecoyle@hotmail.com>
+ *
+ * See the enclosed file LICENSE for license information (BSD). If you
+ * did not receive this file, see http://www.horde.org/licenses/bsdl.php.
+ *
+ * @author  Robert E. Coyle <robertecoyle@hotmail.com>
+ * @package Whups
+ */
+class SelectContextForm extends Horde_Form {
+
+    var $_useFormToken = false;
+
+    function CreateStep1Form(&$vars)
+    {
+        global $whups;
+
+        parent::Horde_Form($vars, _("Choose a context"));
+
+        $contexts = $shout->getContexts("customer");
+        if (count($contexts)) {
+            $contexts = &$this->addVariable(_("Context"), 'context', 'enum',
+                true, false, null, array($contexts, _("Choose:")));
+            if (!Auth::getAuth()) {
+                $this->addVariable(_("Your Email Address"), 'user_email',
+                    'email', true);
+            } else {
+                require_once 'Horde/Form/Action.php';
+                $contexts->setAction(Horde_Form_Action::factory('submit'));
+            }
+        } else {
+            $this->addVariable(_("Context"), 'context', 'invalid', true,
+                false, null, array(_("There are no contexts which you have
+permission to view.")));
+        }
+    }
+
+}
\ No newline at end of file
diff --git a/templates/common-header.inc b/templates/common-header.inc
new file mode 100644 (file)
index 0000000..58a1be4
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+     if (isset($language)) {
+     header('Content-type: text/html; charset=' . NLS::getCharset());
+     header('Vary: Accept-Language');
+     }
+     ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+          "DTD/xhtml1-transitional.dtd">
+<!--          Shout: Copyright 2005, Ben Klang.           -->
+<!-- Horde Project: http://horde.org/ | Shout: http://projects.alkaloid.net/ -->
+<!--          Horde Licenses: http://www.horde.org/licenses/           -->
+<?php echo !empty($language) ? '<html lang="' . strtr($language, '_', '-') .
+                                      '">' : '<html>' ?>
+        <head>
+            <?php
+
+                 $page_title = $GLOBALS['registry']->get('name');
+            if (!empty($title)) $page_title .= ' :: ' . $title;
+            if (!empty($refresh_time) && !empty($refresh_url)) {
+            echo "<meta http-equiv=\"refresh\"
+                        content=\"$refresh_time;url=$refresh_url\">\n";
+                }
+
+                Horde::includeScriptFiles();
+
+                ?>
+                <title><?php echo $page_title ?></title>
+                <?php echo Horde::stylesheetLink('shout') ?>
+</head>
+
+<body<?php if (Util::nonInputVar('bodyClass')) echo ' class="' . $bodyClass .
+'"' ?>>
diff --git a/templates/menu.inc b/templates/menu.inc
new file mode 100644 (file)
index 0000000..5c38df5
--- /dev/null
@@ -0,0 +1,5 @@
+<div id="menu">
+    <?php echo Shout::getMenu('string') ?>
+</div>
+<br />
+<?php $GLOBALS['notification']->notify(array('listeners' => 'status')) ?>
\ No newline at end of file