PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Mehmet Kidiman   Developbat PHP CRUD   index.php   Download  
File: index.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Developbat PHP CRUD
Show pages to manage table records using Bootstrap
Author: By
Last change:
Date: 3 years ago
Size: 1,431 bytes
 

Contents

Class file image Download
<?php
include('header.php');

echo
'<div class="row">';
echo
'<div class="col-md-12">';

//var_dump($relationTable);
//echo $relationTable['depo']['changedRow'];
echo '<ul class="list-group">';
foreach (
$tables as $table) {
   
//echo '<div class="col-md-2" style="height: 200px; width: 200px; border: black 3px solid; float: left; text-decoration: none; border-radius:25px; margin: 5px;">';


       
echo '
 <li class="list-group-item ">'
;
        echo
'<form id="' . $table[0] . '" action="tables.php" method="post">';
        echo
'<input type="hidden" name="table_name" value="' . $table[0] . '" ></input>';
        echo
'<button type="submit" class="btn btn-default " >' . $table[0]. ' <span class="badge badge-primary">'. countRows($connect, $table[0] ).'</span >';
        echo
'</form>';
       if(isset(
$relationTable[$table[0]])){
           echo
'<br /><font > Relation =
   '
. $relationTable[$table[0]]['changedRow'] .' to => <b>' . $relationTable[$table[0]]['secondTable'] . ' </b> . <i>' . $relationTable[$table[0]]['findRow'] . '</i> with <b>' . $relationTable[$table[0]]['secondTable'] . ' </b> . <i>' . $relationTable[$table[0]]['secondRow'] .'</i>
  </font>'
;
       }
        if(isset(
$imageColums[$table[0]])){
            echo
'<br/><font> Image Row = <b>'. $imageColums[$table[0]] .'</b> </font>';
        }

  echo
'</li >';


}
echo
'</ul>';

echo
'</div>';
echo
'</div>';
include(
'footer.php');