--- /dev/null
+<?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
--- /dev/null
+<?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 .
+'"' ?>>