From 3b5a092df12e386624414f32962bfd500fbabcbb Mon Sep 17 00:00:00 2001 From: William Harrington Date: Tue, 12 Feb 2019 15:57:59 -0600 Subject: Add A8 server build layout --- A8_srv_build/list.php | 253 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 253 insertions(+) create mode 100644 A8_srv_build/list.php (limited to 'A8_srv_build/list.php') diff --git a/A8_srv_build/list.php b/A8_srv_build/list.php new file mode 100644 index 0000000..0bac433 --- /dev/null +++ b/A8_srv_build/list.php @@ -0,0 +1,253 @@ + + + + + + + + + + + + + +'; +//echo '$_SESSION' . var_dump($_SESSION) . '
'; +//echo '$_POST' . var_dump($_POST) . '
'; +?> + + Add Record

+
+ Select columns:
+ />Configure + />Build + />Install + />Setup + />Notes + />URL
+ +
+ +prepare($sql); + $stmt->execute(); +} catch (PDOException $e) { + echo '
Have a big problem
'; + throw $e; + echo "$e->getMessage()"; +} + +if ($stmt->rowCount() > 0) { + + // Data received + + echo '
'; + + // Begin Table + $html_table = ''; + + // Table Header + $html_table .= ''; + $html_table .= ''; + if($con){$html_table .= '';} + if($bul){$html_table .= '';} + if($nst){$html_table .= '';} + if($set){$html_table .= '';} + if($not){$html_table .= '';} + if($url){$html_table .= '';} + $html_table .= ''; + + // Table Footer + $html_table .= ''; + $html_table .= ''; + if($con){$html_table .= '';} + if($bul){$html_table .= '';} + if($nst){$html_table .= '';} + if($set){$html_table .= '';} + if($not){$html_table .= '';} + if($url){$html_table .= '';} + $html_table .= ''; + + // Table Body + $html_table .= ''; + + // Table Rows + while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) { + $rowid = $row['id']; + $rowseq = $row['seq']; + $rownm = $row['name']; + $rowver = $row['version']; + if($con) { + $rowcfg = nl2br(str_replace(' ', ' ', $row['configure'])); + } + if($bul) { + $rowbld = nl2br(str_replace(' ', ' ', $row['build'])); + } + if($nst) { + $rownst = nl2br(str_replace(' ', ' ', $row['install'])); + } + if($set) { + $rowset = nl2br(str_replace(' ', ' ', $row['setup'])); + } + if($not) { + $rownot = nl2br(str_replace(' ', ' ', $row['notes'])); + } + if($url) { + $rowurl = nl2br(str_replace(' ', ' ', $row['url'])); + } + $html_table .= ''; + $html_table .= ""; + $html_table .= ''; + $html_table .= ''; + $html_table .= ''; + if($con){$html_table .= '';} + if($bul){$html_table .= '';} + if($nst){$html_table .= '';} + if($set){$html_table .= '';} + if($not){$html_table .= '';} + if($url){$html_table .= '';} + //$html_table .= ""; + $html_table .= ''; + $html_table .= ''; + } + + // End Table Body + $html_table .= ''; + + // End Table + $html_table .= '
A8-3800 CLFS Server
ACTIONSEQNAMEVERSIONCONFIGUREBUILDINSTALLSETUPNOTESURLDELETE
ACTIONSEQNAMEVERSIONCONFIGUREBUILDINSTALLSETUPNOTESURLDELETE
View'.$rowseq.''.($rownm).''.($rowver).''.($rowcfg).''.($rowbld).''.($rownst).''.($rowset).''.($rownot).''.($rowurl).'Delete
'; + + //Output Table + echo $html_table; + +} else { + // No Data received + echo '
No data found!
'; +} +?> + + Check All +
+ +

+ Valid HTML 4.01 Transitional +

+ + + + + -- cgit v1.2.3-54-g00ecf