From: Steve Sutton Date: Tue, 17 Oct 2017 12:16:26 +0000 (-0400) Subject: Adding two projects X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=a41899becf2c9be7ff073840aa20f03f36ab0b3a;p=prog%2FDash.git Adding two projects Adding visit escanaba and resort township projects. --- diff --git a/index.php b/index.php index b300380..65d635c 100644 --- a/index.php +++ b/index.php @@ -15,6 +15,15 @@ try { } catch(PDOException $e){ echo '
' . print_r($e, true) . '
'; } +/** + * 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',