'displayData' => $displayData
);
- // Return status, any suggested view, and any data to controller
- return array(
- 'status' => true,
- 'modelRedirect' => false,
- 'view' => 'admin/events/index.html',
- 'data' => $templateData
- );
-
+// // Return status, any suggested view, and any data to controller
+// return array(
+// 'status' => true,
+// 'modelRedirect' => false,
+// '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);
+ require_once(GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataCategories.php');
+ $Categories = new GlmDataEventsCategories($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');
+//
+// // Check for required Event Categories
+ require_once(GLM_MEMBERS_EVENTS_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');
+//
+ require_once(GLM_MEMBERS_EVENTS_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');
+ require_once(GLM_MEMBERS_EVENTS_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');
+ require_once(GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataRecurrences.php');
$Recurrences = new GlmDataEventsRecurrences($this->wpdb, $this->config);
$recurrencesStats = $Recurrences->getStats();
$haveRecurrences = ($recurrencesStats > 0);
- require_once(GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/Times.php');
+ require_once(GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataTimes.php');
$Times = new GlmDataEventsTimes($this->wpdb, $this->config);
$timesStats = $Times->getStats();
$haveTimes = ($timesStats > 0);
+
+ // 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/index.html',
+ 'data' => $templateData
+ );
}
-<!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>
+{include file='admin/events/header.html'}
+<div class="wrap">
+ <div id="glm-admin-content-container">
+ <div class="topic-row">
+ <form action="" method="post">
+ <table>
+ <tbody><tr>
+ <td>Add New Category:</td>
+ <td><input name="topic" value=""></td>
+ <td><input name="Action" value="Add Topic" type="hidden"><input value="Create Category" type="submit"></td>
+ </tr>
+ </tbody></table>
+ </form>
+ </div>
+ </div>
+</div>
\ No newline at end of file