Login   Register  
PHP Classes
elePHPant
Icontem

File: index.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Frank Cauley  >  PHP CRUD generator  >  index.php  >  Download  
File: index.php
Role: Sample output
Content type: text/plain
Description: Auxiliary script
Class: PHP CRUD generator
Generate classes to manipulate MySQL table records
Author: By
Last change:
Date: 1 year ago
Size: 1,008 bytes
 

Contents

Class file image Download
<?php 
require_once("Class_.php"); 
require_once("../Class_crud.php");
 $crud = new crud; 
$crud->setTable("");
$crud->loadCrudArrays();
if(isset($_GET['sortfield']))
	{ 
	$crud->setListSortByFieldPointer($_GET['sortfield']);
	} 
if(isset($_GET['reverseSort'])) 
{ 
     if($_GET['reverseSort']=='DESC') 
 {  
		$crud->setListSortByFieldDirection('ASCND'); 
       }else{ 
    	$crud->setListSortByFieldDirection('DESC'); 
 } 
} 
?> <!--end php for now --> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<title>list  record</title> 
<h2> Gray and White Computing MySql Table Control Generation System</h2>
<img src="../companylogo.jpg" alt="Gray and White Logo" width="161" height="80" longdesc="  " > 
 </head> 
<body> 
 <?PHP 
$crud->constructListTable();
$crud->listRecords();
 ?> 
</table></body></html>