updates for new projects
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 13 Feb 2017 16:42:16 +0000 (11:42 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 13 Feb 2017 16:42:16 +0000 (11:42 -0500)
dash/app.js
fetchTask.php
index.html

index 59171cb..81316f7 100644 (file)
@@ -67,7 +67,7 @@ $(document).ready(function(){
         el: '#crawfordList',
         collection: crawfordTasks});
 
-    // Crowford County
+    // Charlevoix Library
     var chxlibraryTasks = new Tasks([
     ]);
     chxlibraryTasks.url = prefixUrl + '/Dash/fetchTask.php';
@@ -76,4 +76,22 @@ $(document).ready(function(){
         el: '#chxlibraryList',
         collection: chxlibraryTasks});
 
+    // Bibco
+    var bibcoTasks = new Tasks([
+    ]);
+    bibcoTasks.url = prefixUrl + '/Dash/fetchTask.php';
+    bibcoTasks.fetch({cache: false, async:true, data: {pid: 4079, t: bTime}});
+    var bibcoList = new TaskListView({
+        el: '#bibcoList',
+        collection: bibcoTasks});
+
+    // Turkeyville
+    var turkeyvilleTasks = new Tasks([
+    ]);
+    turkeyvilleTasks.url = prefixUrl + '/Dash/fetchTask.php';
+    turkeyvilleTasks.fetch({cache: false, async:true, data: {pid: 4085, t: bTime}});
+    var turkeyvilleList = new TaskListView({
+        el: '#turkeyvilleList',
+        collection: turkeyvilleTasks});
+
 });
index 6a96f60..78fae94 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 try {
     $dbh = new PDO(
-        'pgsql: host=ds4 dbname=glmdb user=postgres',
+        'pgsql: host=ds4.gaslightmedia.com dbname=glmdb user=postgres',
         null,
         null,
         array(
@@ -51,7 +51,7 @@ try {
         case 'in_progress':
             $task['status'] = 'In Progress';
             break;
-        case 'complate':
+        case 'complete':
             $task['status'] = 'Complete';
             break;
         }
index 6c80ed4..089b697 100644 (file)
             </div><!-- /.container-fluid -->
         </nav>
         <div class="container">
+            <div class="row">
+
+                <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
+                    <h3><a href="../project.php?pid=4079" target="_blank">Beaver Island Boat Company</a></h3>
+                    <table id="bibcoList"
+                        class="table table-condensed table-striped table-bordered table-hover">
+                        <thead>
+                            <tr>
+                                <th>Employee</th>
+                                <th>Status</th>
+                                <th>Task Name</th>
+                                <th>Deadline</th>
+                            </tr>
+                        </thead>
+                    </table>
+                </div>
 
+                <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">
+                    <h3><a href="../project.php?pid=4085" target="_blank">Turkeyville</a></h3>
+                    <table id="turkeyvilleList"
+                        class="table table-condensed table-striped table-bordered table-hover">
+                        <thead>
+                            <tr>
+                                <th>Employee</th>
+                                <th>Status</th>
+                                <th>Task Name</th>
+                                <th>Deadline</th>
+                            </tr>
+                        </thead>
+                    </table>
+                </div>
+
+            </div>
             <div class="row">
 
                 <div class="col-xs-12 col-sm-12 col-md-6 col-lg-6">