From: Alex Sadleir Date: Sun, 29 Dec 2013 19:24:59 +0000 Subject: ajax table X-Git-Url: http://maxious.lambdacomplex.org/git/?p=dcaas.git&a=commitdiff&h=03bcaf149619f2d0fe73ba64c0970b3ccf1ebc3f --- ajax table --- --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,10 +2,13 @@ + + + @@ -14,16 +17,30 @@ + + + + + + + + + + + - + - - + + + + + + - + + + + + + + + + @@ -382,42 +474,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + --- /dev/null +++ b/about.php @@ -1,1 +1,2 @@ +Icon "Cloud Computing" designed by Andrew Forrester from the Noun Project --- a/config.php +++ b/config.php @@ -1,109 +1,111 @@ setAttribute(PDO::ATTR_ERRMODE, - PDO::ERRMODE_EXCEPTION); - } - catch(PDOException $e) { + $db->setAttribute(PDO::ATTR_ERRMODE, + PDO::ERRMODE_EXCEPTION); +} catch (PDOException $e) { // Print PDOException message echo $e->getMessage(); - } +} -function includeHeader($title) { -?> - - - - - - - - - +function includeHeader($title) +{ + ?> + + + + + + + + + - Starter Template for Bootstrap + Starter Template for Bootstrap - - - + - + + + + + - - + + - - - + + + - + - - -
-
-
-
+
+
+
getMessage(); - } -?> +function includeFooter() +{ + global $db; + try { + /************************************** + * Close db connections * + **************************************/ -
- - -getMessage(); + } + ?> + + + + +query("select count(*) from dcaas_services")->fetch(PDO::FETCH_NUM); +foreach ($db->query($query." limit $offset,".($page*$perPage), PDO::FETCH_ASSOC) as $row) { + $result['records'][] = $row; +} +$result['queryRecordCount'] = intval($total[0]); +$result['totalRecordCount'] = intval($total[0]); +echo json_encode($result); +?> --- /dev/null +++ b/img/icon_2567.svg @@ -1,1 +1,5 @@ - + + + + + --- /dev/null +++ b/img/license.txt @@ -1,1 +1,9 @@ +Thank you for using The Noun Project. This icon is licensed under Creative +Commons Attribution and must be attributed as: + Cloud Computing by Andrew Forrester from The Noun Project + +If you have a Premium Account or have purchased a license for this icon, you +don't need to worry about attribution! We will share the profits from your +purchase with this icon's designer. + --- a/index.php +++ b/index.php @@ -1,12 +1,36 @@ addTag("tag-cloud"); -$cloud->addTag("programming"); -echo $cloud->render(); -includeFooter(); ?> +
+
+
+ +
+

Hello, world!

+

This is a template for a simple marketing or informational website. It includes a large callout called a + jumbotron and three supporting pieces of content. Use it as a starting point to create something more + unique.

+ +

Learn more »

+ +
+
+ +
+ query("Select service_name from dcaas_services;") as $row) { + foreach (explode(" ", $row[0]) as $word) { + $cloud->addTag($word); + } + } + $cloud->setMinLength(4); + echo $cloud->render(); + echo "
"; + includeFooter(); + ?> + --- a/table.php +++ b/table.php @@ -1,56 +1,40 @@ -
-
-
+
+
+
-

Bootstrap starter template

+

Bootstrap starter template

-

Use this document as a way to quickly start any new project.
All you get is this text and a - mostly barebones HTML document.

+

Use this document as a way to quickly start any new project.
All you get is this text and a + mostly barebones HTML document.

-
- Year: - -
+ - - - \n"; - } else { - echo " \n"; - } - $row++; - } - fclose($handle); - } - ?> -
" . implode($data, "") . "
" . implode($data, "") . "
-
- + + +
acnabnservice_name
+