Adding two projects
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 17 Oct 2017 12:16:26 +0000 (08:16 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 17 Oct 2017 12:16:26 +0000 (08:16 -0400)
Adding visit escanaba and resort township projects.

index.php

index b300380..65d635c 100644 (file)
--- a/index.php
+++ b/index.php
@@ -15,6 +15,15 @@ try {
 } catch(PDOException $e){
     echo '<pre>' . print_r($e, true) . '</pre>';
 }
+/**
+ * getProjectTaskById
+ *
+ * @param mixed $pid Project id
+ * @param mixed $dbh Database handle
+ *
+ * @access public
+ * @return void
+ */
 function getProjectTaskById( $pid, $dbh )
 {
     if ( $pid ) {
@@ -63,6 +72,18 @@ function getProjectTaskById( $pid, $dbh )
     }
     return json_encode($data);
 }
+
+/** $projectArray
+ *
+ * Add to the array to add a project into glmdb Dash.
+ * format:
+ * array(
+ *     'id'    => 4152,
+ *     'name'  => 'Coldwater',
+ *     'sName' => 'coldwater',
+ *     'data'  => getProjectTaskById(4152, $dbh)
+ * )
+ */
 $projectArray = array(
     array(
         'id'    => 4152,
@@ -82,6 +103,19 @@ $projectArray = array(
         'sName' => 'meetingsmi',
         'data'  => getProjectTaskById(4159, $dbh)
     ),
+    array(
+        'id'    => 4154,
+        'name'  => 'Visit Escanaba',
+        'sName' => 'escanaba',
+        'data'  => getProjectTaskById(4154, $dbh)
+
+    ),
+    array(
+        'id'    => 4166,
+        'name'  => 'Resort Township',
+        'sName' => 'township',
+        'data'  => getProjectTaskById(4166, $dbh)
+    ),
     array(
         'id'    => 4074,
         'name'  => 'Michigan Trail Maps',