added css style or add fields, added event tabs for member, created event menu under...
authorAnthony Talarico <talarico@gaslightmedia.com>
Thu, 25 Feb 2016 20:50:51 +0000 (15:50 -0500)
committerAnthony Talarico <talarico@gaslightmedia.com>
Thu, 25 Feb 2016 20:50:51 +0000 (15:50 -0500)
21 files changed:
activate.php
classes/data/dataCategories.php
css/admin.css [new file with mode: 0644]
js/admin.js [new file with mode: 0644]
models/admin/events/add.php [new file with mode: 0644]
models/admin/events/categories.php [new file with mode: 0644]
models/admin/events/index.php
models/admin/info/index.php [deleted file]
models/admin/member/events.php [new file with mode: 0644]
models/admin/members/events.php
setup/adminMenus.php
setup/adminTabs.php
setup/validActions.php
views/admin/events/add.html [new file with mode: 0644]
views/admin/events/categories.html [new file with mode: 0644]
views/admin/events/header.html [new file with mode: 0644]
views/admin/events/index.html
views/admin/events/more.html [deleted file]
views/admin/info/index.html [deleted file]
views/admin/member/events.html [new file with mode: 0644]
views/admin/members/events.html

index 00cd105..97ac9a9 100644 (file)
@@ -84,6 +84,15 @@ class glmMembersEventsPluginActivate
 
         // Set Roles and Capabilities for this plugin
         require_once(GLM_MEMBERS_EVENTS_PLUGIN_SETUP_PATH.'/rolesAndCapabilities.php');
+        wp_enqueue_script('jquery');
+        wp_enqueue_script('jquery-style');
+        wp_enqueue_script('jquery-ui-core');
+        wp_enqueue_script('jquery-ui-dialog');
+        wp_enqueue_script('jquery-ui-autocomplete');
+
+        // Jquery DatePicker
+        wp_enqueue_script('jquery-ui-datepicker');
+        wp_enqueue_style('jquery-style', 'http://ajax.googleapis.com/ajax/libs/jqueryui/1.11.4/themes/smoothness/jquery-ui.css');
     }
 
     /*
index d81cdf7..c39ce72 100644 (file)
@@ -176,7 +176,7 @@ class GlmDataEventsCategories extends GlmDataAbstract
     {
         return $r;
     }
-
+    
 }
 
 ?>
diff --git a/css/admin.css b/css/admin.css
new file mode 100644 (file)
index 0000000..bb6ebce
--- /dev/null
@@ -0,0 +1,31 @@
+/*
+To change this license header, choose License Headers in Project Properties.
+To change this template file, choose Tools | Templates
+and open the template in the editor.
+*/
+/* 
+    Created on : 15-Feb-2016, 1:53:23 PM
+    Author     : anthony
+*/
+
+
+#dateTimeLink, #location, #cost, #admin{
+    background: grey;
+    color: lawngreen;
+    display: block;
+}
+ #locationDetails, #costDetails, #adminDetails{
+    display: none;
+}
+#startTime, #startDate,#endDate, #endTime{
+    width: 15%;
+}
+//#endDate, #endTime{
+//    width: 15%;
+//}
+#timeZone{
+    width: 25%;
+}
+.titles{
+    
+}
\ No newline at end of file
diff --git a/js/admin.js b/js/admin.js
new file mode 100644 (file)
index 0000000..f9e21ed
--- /dev/null
@@ -0,0 +1,42 @@
+/* 
+ * To change this license header, choose License Headers in Project Properties.
+ * To change this template file, choose Tools | Templates
+ * and open the template in the editor.
+ */
+jQuery(document).ready( function () { 
+    jQuery("#startDate, #endDate").datepicker();
+    jQuery('#dateTimeLink, #location, #cost, #admin').click(function(e) {
+        e.preventDefault();
+        return false;
+    });
+    
+    jQuery("#dateTimeLink").click( function (){
+        if(jQuery("#dateTime").css("display") == "none"){
+            jQuery("#dateTime").slideDown(600) ;
+        } else {
+            jQuery("#dateTime").slideUp(600) ;
+        }
+    });
+    jQuery("#location").click( function (){
+        if(jQuery("#locationDetails").css("display") == "none"){
+            jQuery("#locationDetails").slideDown(600) ;
+        } else {
+            jQuery("#locationDetails").slideUp(600) ;
+        }
+    });
+     jQuery("#cost").click( function (){
+        if(jQuery("#costDetails").css("display") == "none"){
+            jQuery("#costDetails").slideDown(600) ;
+        } else {
+            jQuery("#costDetails").slideUp(600) ;
+        }
+    });
+      jQuery("#admin").click( function (){
+        if(jQuery("#adminDetails").css("display") == "none"){
+            jQuery("#adminDetails").slideDown(600) ;
+        } else {
+            jQuery("#adminDetails").slideUp(600) ;
+        }
+    });
+});
+
diff --git a/models/admin/events/add.php b/models/admin/events/add.php
new file mode 100644 (file)
index 0000000..08a96c8
--- /dev/null
@@ -0,0 +1,127 @@
+<?php
+/**
+ * Gaslight Media Members Database
+ * Admin Member User Profile
+ *
+ * PHP version 5.5
+ *
+ * @category glmWordPressPlugin
+ * @package  glmMembersDatabase
+ * @author   Chuck Scott <cscott@gaslightmedia.com>
+ * @license  http://www.gaslightmedia.com Gaslightmedia
+ * @release  index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
+ * @link     http://dev.gaslightmedia.com/
+ */
+
+// Load Contacts data abstract
+//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+
+class GlmMembersAdmin_events_add // extends GlmDataContacts
+{
+
+    /**
+     * WordPress Database Object
+     *
+     * @var $wpdb
+     * @access public
+     */
+    public $wpdb;
+    /**
+     * Plugin Configuration Data
+     *
+     * @var $config
+     * @access public
+     */
+    public $config;
+    /**
+     * Contact Info
+     *
+     * @var $contactInfo
+     * @access public
+     */
+    public $contactInfo = false;
+    /**
+     * Member ID
+     *
+     * @var $memberID
+     * @access public
+     */
+    public $memberID = false;
+    /**
+     * Contact ID
+     *
+     * @var $contactID
+     * @access public
+     */
+    public $contactID = false;
+
+
+    /*
+     * Constructor
+     *
+     * This contructor performs the work for this model. This model returns
+     * an array containing the following.
+     *
+     * 'status'
+     *
+     * True if successfull and false if there was a fatal failure.
+     *
+     * 'view'
+     *
+     * A suggested view name that the contoller should use instead of the
+     * default view for this model or false to indicate that the default view
+     * should be used.
+     *
+     * 'data'
+     *
+     * Data that the model is returning for use in merging with the view to
+     * produce output.
+     *
+     * @wpdb object WordPress database object
+     *
+     * @return array Array containing status, suggested view, and any data
+     */
+    public function __construct ($wpdb, $config)
+    {
+
+        // Save WordPress Database object
+        $this->wpdb = $wpdb;
+
+        // Save plugin configuration object
+        $this->config = $config;
+
+        /*
+         * Run constructor for the Contacts data class
+         *
+         * Note, the third parameter is a flag that indicates to the Contacts
+         * data class that it should flag a group of fields as 'view_only'.
+         */
+//        parent::__construct(false, false, true);
+
+
+    }
+
+    public function modelAction($actionData = false)
+    {
+
+        $displayData = 'Welcome to more information!<br>This is the Events Add-On "events" model with action "more" talking to you from inside WordPress.';
+
+        // Compile template data
+        $templateData = array(
+            'displayData' => $displayData
+        );
+
+        // Return status, any suggested view, and any data to controller
+        return array(
+                'status' => true,
+                'modelRedirect' => false,
+                'view' => 'admin/events/add.html',
+                'data' => $templateData
+        );
+
+    }
+
+
+}
+
+
diff --git a/models/admin/events/categories.php b/models/admin/events/categories.php
new file mode 100644 (file)
index 0000000..b099cbf
--- /dev/null
@@ -0,0 +1,125 @@
+<?php
+/**
+ * Gaslight Media Members Database
+ * Admin Member User Profile
+ *
+ * PHP version 5.5
+ *
+ * @category glmWordPressPlugin
+ * @package  glmMembersDatabase
+ * @author   Chuck Scott <cscott@gaslightmedia.com>
+ * @license  http://www.gaslightmedia.com Gaslightmedia
+ * @release  index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
+ * @link     http://dev.gaslightmedia.com/
+ */
+
+// Load Contacts data abstract
+//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+
+class GlmMembersAdmin_events_categories // extends GlmDataContacts
+{
+
+    /**
+     * WordPress Database Object
+     *
+     * @var $wpdb
+     * @access public
+     */
+    public $wpdb;
+    /**
+     * Plugin Configuration Data
+     *
+     * @var $config
+     * @access public
+     */
+    public $config;
+    /**
+     * Contact Info
+     *
+     * @var $contactInfo
+     * @access public
+     */
+    public $contactInfo = false;
+    /**
+     * Member ID
+     *
+     * @var $memberID
+     * @access public
+     */
+    public $memberID = false;
+    /**
+     * Contact ID
+     *
+     * @var $contactID
+     * @access public
+     */
+    public $contactID = false;
+
+
+    /*
+     * Constructor
+     *
+     * This contructor performs the work for this model. This model returns
+     * an array containing the following.
+     *
+     * 'status'
+     *
+     * True if successfull and false if there was a fatal failure.
+     *
+     * 'view'
+     *
+     * A suggested view name that the contoller should use instead of the
+     * default view for this model or false to indicate that the default view
+     * should be used.
+     *
+     * 'data'
+     *
+     * Data that the model is returning for use in merging with the view to
+     * produce output.
+     *
+     * @wpdb object WordPress database object
+     *
+     * @return array Array containing status, suggested view, and any data
+     */
+    public function __construct ($wpdb, $config)
+    {
+
+        // Save WordPress Database object
+        $this->wpdb = $wpdb;
+
+        // Save plugin configuration object
+        $this->config = $config;
+
+        /*
+         * Run constructor for the Contacts data class
+         *
+         * Note, the third parameter is a flag that indicates to the Contacts
+         * data class that it should flag a group of fields as 'view_only'.
+         */
+//        parent::__construct(false, false, true);
+
+
+    }
+
+    public function modelAction($actionData = false)
+    {
+
+        $displayData = 'Welcome to more information!<br>This is the Events Add-On "events" model with action "more" talking to you from inside WordPress.';
+
+        // Compile template data
+        $templateData = array(
+            'displayData' => $displayData
+        );
+
+        // Return status, any suggested view, and any data to controller
+        return array(
+                'status' => true,
+                'modelRedirect' => false,
+                'view' => 'admin/events/categories.html',
+                'data' => $templateData
+        );
+
+    }
+
+
+}
index 5c43a53..e33a297 100644 (file)
@@ -118,6 +118,38 @@ class GlmMembersAdmin_events_index // extends GlmDataContacts
                 'view' => 'admin/events/index.html',
                 'data' => $templateData
         );
+        
+          // Check for required Categories
+        require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCategories.php');
+        $Categories = new GlmDataCategories($this->wpdb, $this->config);
+        $categoriesStats = $Categories->getStats();
+        $haveCategories = ($categoriesStats > 0);
+        
+          // Check for required Event Categories
+        require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataEventCategories.php');
+        $eventCategories = new GlmDataEventsEventCategories($this->wpdb, $this->config);
+        $eventCategoriesStats = $eventCategories->getStats();
+        $eventHaveCategories = ($eventCategoriesStats > 0);
+        
+        require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataEvents.php');
+        $Events = new GlmDataEvents($this->wpdb, $this->config);
+        $eventsStats = $Events->getStats();
+        $haveEvents = ($eventsStats > 0);
+        
+        require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataLocations.php');
+        $Locations = new GlmDataEventsLocations($this->wpdb, $this->config);
+        $locationsStats = $Locations->getStats();
+        $haveLocations = ($locationsStats > 0);
+        
+        require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/Recurrences.php');
+        $Recurrences = new GlmDataEventsRecurrences($this->wpdb, $this->config);
+        $recurrencesStats = $Recurrences->getStats();
+        $haveRecurrences = ($recurrencesStats > 0);
+        
+        require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/Times.php');
+        $Times = new GlmDataEventsTimes($this->wpdb, $this->config);
+        $timesStats = $Times->getStats();
+        $haveTimes = ($timesStats > 0);
 
     }
 
diff --git a/models/admin/info/index.php b/models/admin/info/index.php
deleted file mode 100644 (file)
index 4c61edb..0000000
+++ /dev/null
@@ -1,125 +0,0 @@
-<?php
-/**
- * Gaslight Media Members Database
- * Admin Member User Profile
- *
- * PHP version 5.5
- *
- * @category glmWordPressPlugin
- * @package  glmMembersDatabase
- * @author   Chuck Scott <cscott@gaslightmedia.com>
- * @license  http://www.gaslightmedia.com Gaslightmedia
- * @release  index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
- * @link     http://dev.gaslightmedia.com/
- */
-
-// Load Contacts data abstract
-//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
-
-class GlmMembersAdmin_info_index // extends GlmDataContacts
-{
-
-    /**
-     * WordPress Database Object
-     *
-     * @var $wpdb
-     * @access public
-     */
-    public $wpdb;
-    /**
-     * Plugin Configuration Data
-     *
-     * @var $config
-     * @access public
-     */
-    public $config;
-    /**
-     * Contact Info
-     *
-     * @var $contactInfo
-     * @access public
-     */
-    public $contactInfo = false;
-    /**
-     * Member ID
-     *
-     * @var $memberID
-     * @access public
-     */
-    public $memberID = false;
-    /**
-     * Contact ID
-     *
-     * @var $contactID
-     * @access public
-     */
-    public $contactID = false;
-
-
-    /*
-     * Constructor
-     *
-     * This contructor performs the work for this model. This model returns
-     * an array containing the following.
-     *
-     * 'status'
-     *
-     * True if successfull and false if there was a fatal failure.
-     *
-     * 'view'
-     *
-     * A suggested view name that the contoller should use instead of the
-     * default view for this model or false to indicate that the default view
-     * should be used.
-     *
-     * 'data'
-     *
-     * Data that the model is returning for use in merging with the view to
-     * produce output.
-     *
-     * @wpdb object WordPress database object
-     *
-     * @return array Array containing status, suggested view, and any data
-     */
-    public function __construct ($wpdb, $config)
-    {
-
-        // Save WordPress Database object
-        $this->wpdb = $wpdb;
-
-        // Save plugin configuration object
-        $this->config = $config;
-
-        /*
-         * Run constructor for the Contacts data class
-         *
-         * Note, the third parameter is a flag that indicates to the Contacts
-         * data class that it should flag a group of fields as 'view_only'.
-         */
-//        parent::__construct(false, false, true);
-
-
-    }
-
-    public function modelAction($actionData = false)
-    {
-
-        $displayData = 'This is the Sample Add-On "Info" model talking to you from inside WordPress.';
-
-        // Compile template data
-        $templateData = array(
-            'displayData' => $displayData
-        );
-
-        // Return status, any suggested view, and any data to controller
-        return array(
-                'status' => true,
-                'modelRedirect' => false,
-                'view' => 'admin/info/index.html',
-                'data' => $templateData
-        );
-
-    }
-
-
-}
diff --git a/models/admin/member/events.php b/models/admin/member/events.php
new file mode 100644 (file)
index 0000000..f27ef43
--- /dev/null
@@ -0,0 +1,123 @@
+<?php
+/**
+ * Gaslight Media Members Database
+ * Admin Member User Profile
+ *
+ * PHP version 5.5
+ *
+ * @category glmWordPressPlugin
+ * @package  glmMembersDatabase
+ * @author   Chuck Scott <cscott@gaslightmedia.com>
+ * @license  http://www.gaslightmedia.com Gaslightmedia
+ * @release  index.php,v 1.0 2014/10/31 19:31:47 cscott Exp $
+ * @link     http://dev.gaslightmedia.com/
+ */
+
+// Load Contacts data abstract
+//require_once(GLM_MEMBERS_CONTACTS_PLUGIN_CLASS_PATH.'/data/dataContacts.php');
+
+class GlmMembersAdmin_member_events // extends GlmDataContacts
+{
+    /**
+     * WordPress Database Object
+     *
+     * @var $wpdb
+     * @access public
+     */
+    public $wpdb;
+    /**
+     * Plugin Configuration Data
+     *
+     * @var $config
+     * @access public
+     */
+    public $config;
+    /**
+     * Contact Info
+     *
+     * @var $contactInfo
+     * @access public
+     */
+    public $contactInfo = false;
+    /**
+     * Member ID
+     *
+     * @var $memberID
+     * @access public
+     */
+    public $memberID = false;
+    /**
+     * Contact ID
+     *
+     * @var $contactID
+     * @access public
+     */
+    public $contactID = false;
+
+
+    /*
+     * Constructor
+     *
+     * This contructor performs the work for this model. This model returns
+     * an array containing the following.
+     *
+     * 'status'
+     *
+     * True if successfull and false if there was a fatal failure.
+     *
+     * 'view'
+     *
+     * A suggested view name that the contoller should use instead of the
+     * default view for this model or false to indicate that the default view
+     * should be used.
+     *
+     * 'data'
+     *
+     * Data that the model is returning for use in merging with the view to
+     * produce output.
+     *
+     * @wpdb object WordPress database object
+     *
+     * @return array Array containing status, suggested view, and any data
+     */
+    public function __construct ($wpdb, $config)
+    {
+
+        // Save WordPress Database object
+        $this->wpdb = $wpdb;
+
+        // Save plugin configuration object
+        $this->config = $config;
+
+        /*
+         * Run constructor for the Contacts data class
+         *
+         * Note, the third parameter is a flag that indicates to the Contacts
+         * data class that it should flag a group of fields as 'view_only'.
+         */
+//        parent::__construct(false, false, true);
+
+
+    }
+
+    public function modelAction($actionData = false)
+    {
+
+        $displayData = 'This is the Events "Members" "Events" model talking to you from inside WordPress.';
+
+        // Compile template data
+        $templateData = array(
+            'displayData' => $displayData
+        );
+
+        // Return status, any suggested view, and any data to controller
+        return array(
+                'status' => true,
+                'modelRedirect' => false,
+                'view' => 'admin/member/events.html',
+                'data' => $templateData
+        );
+    }
+
+
+}
index 9f69514..b57b1bf 100644 (file)
@@ -18,7 +18,6 @@
 
 class GlmMembersAdmin_members_events // extends GlmDataContacts
 {
-
     /**
      * WordPress Database Object
      *
index 94e95e1..4749178 100644 (file)
 
 // Add a main menu item
 add_menu_page(
-    'GLM events',                                       // Page Title
-    'GLM events',                                       // Menu Title
+    'GLM Events',                                       // Page Title
+    'GLM Events',                                       // Menu Title
     'glm-members-members',                              // Capability
     'glm-members-admin-menu-events',                    // Menu Slug
     function() {$this->controller('events');},          // Called function
     false,                                              // Icon URL
     '92'                                                // Menu Position
 );
-
-add_submenu_page(
+    add_submenu_page(
     'glm-members-admin-menu-events',                    // Parent slug
-    'events',                                           // Page title
-    'events',                                           // Menu Title
+    'Add Event',                                             // Page title
+    'Add Event',                                             // Menu Title
     'glm_members_members',                              // Capability required
-    'glm-members-admin-menu-events-events',             // Menu slug
-    function() {$this->controller('events');}
+    'glm-members-admin-menu-events-add',               // Menu slug
+    function() {$this->controller('add');}
+);
+    add_submenu_page(
+    'glm-members-admin-menu-events',                    // Parent slug
+    'Event Categories',                                           // Page title
+    'Event Categories',                                           // Menu Title
+    'glm_members_members',                              // Capability required
+    'glm-members-admin-menu-events-categories',             // Menu slug
+    function() {$this->controller('categories');}
 );
 
 add_submenu_page(
-    'glm-members-admin-menu-events',                    // Parent slug
-    'Info',                                             // Page title
-    'Info',                                             // Menu Title
+    'glm-members-admin-menu-members',                    // Parent slug
+    'Events',                                             // Page title
+    'Events',                                             // Menu Title
     'glm_members_members',                              // Capability required
-    'glm-members-admin-menu-events-info',               // Menu slug
-    function() {$this->controller('info');}
+    'glm-members-admin-menu-members-events',               // Menu slug
+    function() {$this->controller('events');}
 );
index e3cb1a7..e90461d 100644 (file)
  *
  */
 
-add_filter('glm-member-db-add-tab-for-members',
+//add_filter('glm-member-db-add-tab-for-members',
+//    function($addOnTabs) {
+//        $newTabs = array(
+//            array(
+//                'text' => 'Events',
+//                'menu' => 'members',
+//                'action' => 'events'
+//            ),
+//        );
+//        $addOnTabs = array_merge($addOnTabs, $newTabs);
+//        return $addOnTabs;
+//    }
+//);
+add_filter('glm-member-db-add-tab-for-member',
     function($addOnTabs) {
         $newTabs = array(
             array(
                 'text' => 'Events',
-                'menu' => 'members',
+                'menu' => 'member',
                 'action' => 'events'
-            )
+            ),
+          
         );
         $addOnTabs = array_merge($addOnTabs, $newTabs);
         return $addOnTabs;
     }
 );
 
+add_filter('glm-member-db-add-tab-for-events',
+    function($addOnTabs) {
+        $newTabs = array(
+            array(
+                'text' => 'Add Event',
+                'menu' => 'events',
+                'action' => 'add'
+            ),
+          
+        );
+        $addOnTabs = array_merge($addOnTabs, $newTabs);
+        return $addOnTabs;
+    }
+);
+
+add_filter('glm-member-db-add-tab-for-events',
+    function($addOnTabs) {
+        $newTabs = array(
+            array(
+                'text' => 'Event Categories',
+                'menu' => 'events',
+                'action' => 'categories'
+            ),
+          
+        );
+        $addOnTabs = array_merge($addOnTabs, $newTabs);
+        return $addOnTabs;
+    }
+);
\ No newline at end of file
index c3c218d..50b75f0 100644 (file)
 
 $glmMembersEventsAddOnValidActions = array(
     'adminActions' => array(
-        'members' => array(
+        'members' => GLM_MEMBERS_EVENTS_PLUGIN_SLUG,
+        'event'=> GLM_MEMBERS_EVENTS_PLUGIN_SLUG,
+        'member' => array(
             'events' => GLM_MEMBERS_EVENTS_PLUGIN_SLUG,
         ),
         'events' => array(
             'index' => GLM_MEMBERS_EVENTS_PLUGIN_SLUG,
             'more' => GLM_MEMBERS_EVENTS_PLUGIN_SLUG,
+            'add' => GLM_MEMBERS_EVENTS_PLUGIN_SLUG,
+            'categories' => GLM_MEMBERS_EVENTS_PLUGIN_SLUG
         ),
-        'info' => array(
-            'index' => GLM_MEMBERS_EVENTS_PLUGIN_SLUG
-        )
     ),
     'frontActions' => array(
 /*
diff --git a/views/admin/events/add.html b/views/admin/events/add.html
new file mode 100644 (file)
index 0000000..2a39099
--- /dev/null
@@ -0,0 +1,57 @@
+{include file='admin/events/header.html'}
+   
+               <a id="dateTimeLink" href="#"> Date and Time </a>
+                    <div id="dateTime">
+                        <form id="dateTimeForm">
+                            <input type="checkbox"> All Day<br>
+                            <input type="checkbox"> No End Time <br>
+                            <span> Start Date</span>
+                            <input id="startDate" type="text">
+                            <span> Start Time </span>
+                            <input id="startTime" type="text">
+                            <span> End Date</span>
+                            <input id="endDate" type="text">
+                            <span> End Time</span>
+                            <input id="endTime" type="text">
+                            <input type="checkbox"> Repeating<br>
+                            <input type="checkbox"> Exclude <br>
+                            <span> Time Zone</span>
+                            <select id="timeZone"> </select>
+                        </form>
+                    </div>
+                     <a id="location" href="#"> Location Details </a>
+                    <div id="locationDetails">
+                    <form id="locationDetailsForm">
+                       <span> Venue Name</span>
+                        <input id="VenueName" type="text">
+                        <span> Address </span>
+                        <input id="address" type="text">
+                       
+                        </form>
+                    </div>
+                     <a id="cost" href="#"> Cost and tickets </a>
+                    <div id="costDetails">
+                    <form id="costDetailsForm">
+                       <span> Cost</span>
+                        <input id="costInput" type="text">
+                        <input type="checkbox"> Free event<br>
+                        <span> Url </span>
+                        <input id="website" type="text">
+                        </form>
+                    </div>
+                    <a id="admin" href="#"> Admin Contact Info </a>
+                    <div id="adminDetails">
+                    <form id="adminDetailsForm">
+                        <span> Contact Name</span>
+                        <input id="contactName" type="text">
+                        <span> Contact Phone</span>
+                        <input id="contactPhone" type="text">
+                        <span> Contact Email</span>
+                        <input id="contactEmail" type="text">
+                        <span> Contact Website</span>
+                        <input id="contactURL" type="text">
+                        </form>
+                    </div>
+    </body>
+
+
diff --git a/views/admin/events/categories.html b/views/admin/events/categories.html
new file mode 100644 (file)
index 0000000..c627c24
--- /dev/null
@@ -0,0 +1,16 @@
+<!DOCTYPE html>
+<!--
+To change this license header, choose License Headers in Project Properties.
+To change this template file, choose Tools | Templates
+and open the template in the editor.
+-->
+<html>
+    <head>
+        <title>TODO supply a title</title>
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    </head>
+    <body>
+        <div>TODO write content</div>
+    </body>
+</html>
diff --git a/views/admin/events/header.html b/views/admin/events/header.html
new file mode 100644 (file)
index 0000000..27b3a1c
--- /dev/null
@@ -0,0 +1,11 @@
+<div class="wrap">
+    <h2>All Members</h2>
+    <h2 class="nav-tab-wrapper">
+        <a href="{$thisURL}?page={$thisPage}&glm_action=index" class="nav-tab{if $thisAction==index} nav-tab-active{/if}">All Events</a>
+<!--        <a href="{$thisURL}?page={$thisPage}&glm_action=add" class="nav-tab{if $thisAction==list} nav-tab-active{/if}">Add Event</a>-->
+{foreach $addOnTabs as $a}
+        <a href="{$thisURL}?page=glm-members-admin-menu-members-{$a.menu}&glm_action={$a.action}" class="nav-tab{if $thisAction==$a.action} nav-tab-active{/if}">{$a.text}</a>
+{/foreach}        
+    </h2>
+    <div id="glm-admin-content-container">
+    
\ No newline at end of file
index 8523cba..e18433a 100644 (file)
@@ -1,3 +1,4 @@
+{include file='admin/events/header.html'}
 <div class="wrap">
     <div id="glm-admin-content-container">
         <h3>Events Model</h3>
diff --git a/views/admin/events/more.html b/views/admin/events/more.html
deleted file mode 100644 (file)
index 2276047..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<div class="wrap">
-    <div id="glm-admin-content-container">
-        <h3>Events Model - More Information</h3>
-        <p>{$displayData}</p>
-    </div>
-</div>
diff --git a/views/admin/info/index.html b/views/admin/info/index.html
deleted file mode 100644 (file)
index eab9b97..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-<div class="wrap">
-    <div id="glm-admin-content-container">
-        <h3>Info Sub-menu Model</h3>
-        <p>{$displayData}</p>
-    </div>
-</div>
\ No newline at end of file
diff --git a/views/admin/member/events.html b/views/admin/member/events.html
new file mode 100644 (file)
index 0000000..53fcb2d
--- /dev/null
@@ -0,0 +1,21 @@
+<!DOCTYPE html>
+<!--
+To change this license header, choose License Headers in Project Properties.
+To change this template file, choose Tools | Templates
+and open the template in the editor.
+-->
+<html>
+    <head>
+        <title>TODO supply a title</title>
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    </head>
+    <body>
+        <div>TODO write content</div>
+           <form action="{$thisURL}?page={$thisPage}" method="post" enctype="multipart/form-data">
+               <input type='text' name='title'>
+            <input type="submit" class="button glm-button submit" value="submit">
+            <input type="hidden" name="option" value="submit">
+            <div class="button glm-button right">Update</div> </form>
+    </body>
+</html>
index c28034c..c627c24 100644 (file)
@@ -1,6 +1,16 @@
-{include file='admin/members/header.html'}
-    
-    <h3>Members Events Tab</h3>
-    <p>{$displayData}</p>
-        
-{include file='admin/footer.html'}
+<!DOCTYPE html>
+<!--
+To change this license header, choose License Headers in Project Properties.
+To change this template file, choose Tools | Templates
+and open the template in the editor.
+-->
+<html>
+    <head>
+        <title>TODO supply a title</title>
+        <meta charset="UTF-8">
+        <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    </head>
+    <body>
+        <div>TODO write content</div>
+    </body>
+</html>