Newer
Older
Falko Timme
committed
<?php
/*
Datatypes:
- INTEGER
- DOUBLE
- CURRENCY
- VARCHAR
- TEXT
- DATE
*/
// Name of the list
$liste["name"] = "directive_snippets";
Falko Timme
committed
// Database table
$liste["table"] = "directive_snippets";
Falko Timme
committed
// Index index field of the database table
$liste["table_idx"] = "directive_snippets_id";
Falko Timme
committed
// Search Field Prefix
$liste["search_prefix"] = "search_";
Falko Timme
committed
// Records per page
$liste["records_per_page"] = "15";
Falko Timme
committed
// Script File of the list
$liste["file"] = "directive_snippets_list.php";
Falko Timme
committed
// Script file of the edit form
$liste["edit_file"] = "directive_snippets_edit.php";
Falko Timme
committed
// Script File of the delete script
$liste["delete_file"] = "directive_snippets_del.php";
Falko Timme
committed
// Paging Template
$liste["paging_tpl"] = "templates/paging.tpl.htm";
Falko Timme
committed
// Enable auth
Falko Timme
committed
/*****************************************************
* Suchfelder
*****************************************************/
$liste["item"][] = array( 'field' => "active",
'datatype' => "VARCHAR",
'formtype' => "SELECT",
'op' => "=",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
$liste["item"][] = array( 'field' => "name",
'datatype' => "VARCHAR",
'formtype' => "TEXT",
'op' => "like",
'prefix' => "%",
'suffix' => "%",
'width' => "",
'value' => "");
$liste["item"][] = array( 'field' => "type",
'datatype' => "VARCHAR",
'formtype' => "SELECT",
'op' => "=",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('apache' => 'Apache', 'nginx' => 'nginx', 'php' => 'PHP', 'proxy' => 'Proxy'));
$liste["item"][] = array( 'field' => "customer_viewable",
'datatype' => "VARCHAR",
'formtype' => "SELECT",
'op' => "=",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array('y' => "<div id=\"ir-Yes\" class=\"swap\"><span>".$app->lng('yes_txt')."</span></div>", 'n' => "<div class=\"swap\" id=\"ir-No\"><span>".$app->lng('no_txt')."</span></div>"));
$liste["item"][] = array( 'field' => "master_directive_snippets_id",
'datatype' => "BOOLEAN",
'formtype' => "SELECT",
'op' => "IS",
'prefix' => "",
'suffix' => "",
'width' => "",
'value' => array(0 => $app->lng('select_directive_snippet_txt'), 1 => $app->lng('select_master_directive_snippet_txt')));