Skip to content
client.list.php 3.85 KiB
Newer Older
tbrehm's avatar
tbrehm committed
<?php

/*
	Datatypes:
	- INTEGER
	- DOUBLE
	- CURRENCY
	- VARCHAR
	- TEXT
	- DATE
*/



// Name of the list
$liste["name"] 			= "clients";
tbrehm's avatar
tbrehm committed

// Database table
$liste["table"] 		= "client";
tbrehm's avatar
tbrehm committed

// Index index field of the database table
$liste["table_idx"]		= "client_id";
tbrehm's avatar
tbrehm committed

// Search Field Prefix
$liste["search_prefix"] 	= "search_";

// Records per page
latham's avatar
latham committed
$liste["records_per_page"] 	= "15";
tbrehm's avatar
tbrehm committed

// Script File of the list
$liste["file"]			= "client_list.php";
tbrehm's avatar
tbrehm committed

// Script file of the edit form
$liste["edit_file"]		= "client_edit.php";
tbrehm's avatar
tbrehm committed

// Script File of the delete script
$liste["delete_file"]		= "client_del.php";

// Paging Template
$liste["paging_tpl"]		= "templates/paging.tpl.htm";

// Enable authe
$liste["auth"]			= "yes";
tbrehm's avatar
tbrehm committed


/*****************************************************
* Suchfelder
*****************************************************/

$liste["item"][] = array(   'field'     => "client_id",
                            'datatype'	=> "INTEGER",
                            'formtype'	=> "TEXT",
                            'op'	=> "=",
                            'prefix'	=> "",
                            'suffix'	=> "",
                            'width'	=> "",
                            'value'	=> "");

$liste["item"][] = array(   'field'     => "company_name",
                            'datatype'	=> "VARCHAR",
                            'formtype'	=> "TEXT",
                            'op'	=> "like",
                            'prefix'	=> "%",
                            'suffix'	=> "%",
                            'width'	=> "",
                            'value'	=> "");

$liste["item"][] = array(   'field'     => "contact_name",
                            'datatype'	=> "VARCHAR",
                            'formtype'	=> "TEXT",
                            'op'	=> "like",
                            'prefix'	=> "%",
                            'suffix'	=> "%",
                            'width'	=> "",
                            'value'	=> "");

$liste["item"][] = array(   'field'     => "customer_no",
                            'datatype'	=> "VARCHAR",
                            'formtype'	=> "TEXT",
                            'op'	=> "like",
                            'prefix'	=> "%",
                            'suffix'	=> "%",
                            'width'	=> "",
                            'value'	=> "");							

$liste["item"][] = array(   'field'     => "username",
                            'datatype'	=> "VARCHAR",
                            'formtype'	=> "TEXT",
                            'op'	=> "like",
                            'prefix'	=> "%",
                            'suffix'	=> "%",
                            'width'	=> "",
                            'value'	=> ""); 

$liste["item"][] = array(   'field'     => "city",
                            'datatype'	=> "VARCHAR",
                            'formtype'	=> "TEXT",
                            'op'	=> "like",
                            'prefix'	=> "%",
                            'suffix'	=> "%",
                            'width'	=> "",
                            'value'	=> "");

$liste["item"][] = array(   'field'     => "country",
                            'datatype'	=> "VARCHAR",
                            'formtype'	=> "SELECT",
                            'op'	=> "=",
                            'prefix'	=> "",
                            'suffix'	=> "",
                            'datasource'=> array (  'type'          => 'SQL',
                                                    'querystring'   => 'SELECT iso,printable_name FROM country ORDER BY iso ASC',
                                                    'keyfield'      => 'iso',
                                                    'valuefield'    => 'printable_name'
                                                ),
                            'width'	=> "",
                            'value'	=> "");
tbrehm's avatar
tbrehm committed

tbrehm's avatar
tbrehm committed
?>