ajax table
[dcaas.git] / table.php
blob:a/table.php -> blob:b/table.php
--- a/table.php
+++ b/table.php
@@ -2,17 +2,14 @@
 include("config.php");
 include("lib/tag-cloud/src/lotsofcode/TagCloud/TagCloud.php");
 
-includeHeader("title");
+includeHeader("DCaaS Service Catalogue");
 ?>
 
 <div class="starter-template">
     <br/>
     <br/>
 
-    <h1>Bootstrap starter template</h1>
-
-    <p class="lead">Use this document as a way to quickly start any new project.<br> All you get is this text and a
-        mostly barebones HTML document.</p>
+    <h1>DCaaS Service Catalogue</h1>
 
     <!--<div id="search-example-year-filter" style="float: left;">
         Year:
@@ -31,8 +28,13 @@
     </div>-->
 
 
-    <table id="my-table">
-                 <thead><th>acnabn</th><th>service_name</th></thead>
+    <table id="my-table" class="table table-striped">
+        <thead>
+        <th>trading_or_business_name</th>
+        <th>Service</th>
+        <th>service_category</th>
+        <th>service_sub_category</th>
+        </thead>
     </table>
 </div>
 
@@ -53,34 +55,34 @@
         }
     });
 
-   /* $('#search-example').dynatable({
-        features: {
-            paginate: false,
-            recordCount: false,
-            sorting: false
-        },
-        inputs: {
-            queries: $('#search-year')
-        }
-    });
+    /* $('#search-example').dynatable({
+     features: {
+     paginate: false,
+     recordCount: false,
+     sorting: false
+     },
+     inputs: {
+     queries: $('#search-year')
+     }
+     });
 
-    $('#search-function-example')
-        .bind('dynatable:init', function (e, dynatable) {
-            dynatable.queries.functions['max-price'] = function (record, queryValue) {
-                return parseFloat(record.price.replace(/,/, '')) <= parseFloat(queryValue);
-            };
-        })
-        .dynatable({
-            features: {
-                paginate: false,
-                recordCount: false,
-                sorting: false,
-                search: false
-            },
-            inputs: {
-                queries: $('#max-price')
-            }
-        }); */
+     $('#search-function-example')
+     .bind('dynatable:init', function (e, dynatable) {
+     dynatable.queries.functions['max-price'] = function (record, queryValue) {
+     return parseFloat(record.price.replace(/,/, '')) <= parseFloat(queryValue);
+     };
+     })
+     .dynatable({
+     features: {
+     paginate: false,
+     recordCount: false,
+     sorting: false,
+     search: false
+     },
+     inputs: {
+     queries: $('#max-price')
+     }
+     }); */
 
 </script>