/web/ca/self/site.php
PHP | 172 lines | 111 code | 59 blank | 2 comment | 2 complexity | 21ee7ab393e6d2e10f4de875c7a2aff2 MD5 | raw file
- <?php
- include 'gloo.inc' ;
- require_once ($_SERVER['GLOO_INC_DIR'].'class_loader.inc' );
- require_once ($_SERVER['GLOO_INC_DIR'].'session.inc' );
- require_once ($_SERVER['GLOO_INC_DIR'].'error.inc' );
-
- include($location->GLOO_PAGE_HEADER);
-
- $glooWeb = Gloo_Core_Web::getInstance();
-
- //ca/self/site.php
-
- $userParam = NULL ;
- if(array_key_exists('USER',$_GET)) {
- $userParam = $_GET['USER'];
- } else {
- trigger_error('Username not found in request',E_USER_ERROR);
- exit ;
- }
-
- $glooConfig = Gloo_Config::getInstance();
-
- ?>
-
-
-
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html><head><title> <?php echo $glooConfig->getFarmBuilderName(); ?> </title>
-
- <?php
- include($location->GLOO_META_TAGS);
- echo $glooWeb->loadCss(url::YUI_GRID_CSS) ;
- //give me default theme
- echo $glooWeb->loadCss(url::css('main.css'));
- echo $glooWeb->loadCss('/art/minimal/admin.css');
-
- echo $glooWeb->loadJS(url::JQUERY_MAIN_JS);
- echo $glooWeb->loadJS(url::JQUERY_VALIDATE_JS);
-
- ?>
-
- <script type="text/javascript">
- $(document).ready(function(){
- $("#ca_self_form").validate({
- errorLabelContainer: $("#ca_self_form div.error")
- });
-
- });
-
- </script>
-
-
-
- </head>
- <body>
- <div id="top-toolbar"> </div>
-
- <div id="custom-doc" class="yui-t1">
-
- <div id="hd" role="banner">
-
- <div id="header">
- <a href="<?php echo $glooConfig->getFarmURI(); ?>"><img src="<?php echo $glooConfig->getFarmLogoPath(); ?>" alt="logo" /> </a>
- <div id="description">
- <a href="<?php echo $glooConfig->getFarmURI(); ?>"> Back to <?php echo $glooConfig->getFarmName(); ?></a>
- >
- Create Website - Step 2
-
- </div>
-
- </div> <!-- header -->
-
- </div>
-
-
- <div id="bd" role="main">
- <div id="yui-main">
- <div class="yui-b">
- <div class="yui-g">
-
-
- <div id="content">
- <h2> Website name and contact email</h2>
-
- <?php
- $sticky = $glooWeb->getStickyMap('ca_self_form');
- $glooPageSection = 'ca_self_form';
- include ($_SERVER['GLOO_INC_DIR'].'script_message.inc');
- ?>
-
-
- <p class="help-text">
- Please select your website name and a contact email. One example of name
- is "Acme small business". Your email will be your used id.
-
- </p>
- <div class="box_top_bg">
- <div> <div> </div> </div>
- </div>
- <div id="form">
-
-
- <form id="ca_self_form" class="sform" action="/ca/self/frm/site.php" method="POST">
- <div class="error"> </div>
- <table cellspacing="5" class="formGroup">
- <tr>
- <td class="field"> Website name<span class="red-label">*</span> </td>
- <td> <input type="text" maxlength="100" name="title" class="required" title="Name is required" value="<?php echo $sticky->get('title'); ?>" /></td>
- </tr>
-
- <tr>
- <td class="field">Email<span class="red-label">*</span> </td>
- <td> <input type="text" name="email" maxlength="64" class="required email" title="Valid email is required" value="<?php echo $sticky->get('email'); ?>" /></td>
- </tr>
-
-
- <tr>
-
- <td> </td>
- <td id="bottomBar">
- <div class="submit">
- <div>
- <button type="submit" name="save" value="Save" onclick="this.setAttribute('value','Save');" ><span>Save</span></button>
- </div>
- </div>
-
- </td>
- </tr>
-
- </table>
- <input type="hidden" name="user" value="<?php echo $userParam; ?>" />
-
-
- </form>
-
- </div> <!-- form -->
- <div class="box_bottom_bg">
- <div> <div> </div> </div>
-
- </div>
- <p>
- Need help? Please contact
- <a HREF="mailto:<?php echo $glooConfig->getFarmAdminEmail(); ?>"> <?php echo $glooConfig->getFarmAdminEmail(); ?> </a>
- </p>
- </div> <!-- content -->
-
-
- </div>
- </div> <!-- block1 -->
- </div> <!-- yui-main -->
-
- <div class="yui-b">
-
- <div id="menu">
-
- </div>
- </div> <!-- block2 -->
-
- </div> <!-- bd -->
-
-
- </div> <!-- custom-doc -->
-
-
- <div id="ft" role="contentinfo"> <?php include($location->GLOO_PAGE_FOOTER); ?> </div>
-
- </body>
- </html>
-
-
-