Skip to content
directive_snippets.list.php 2.37 KiB
Newer Older
<?php

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



// Name of the list
$liste["name"]     = "directive_snippets";
$liste["table"]    = "directive_snippets";

// Index index field of the database table
$liste["table_idx"]   = "directive_snippets_id";
$liste["search_prefix"]  = "search_";
$liste["records_per_page"]  = "15";
$liste["file"]    = "directive_snippets_list.php";
$liste["edit_file"]   = "directive_snippets_edit.php";
$liste["delete_file"]  = "directive_snippets_del.php";
$liste["paging_tpl"]  = "templates/paging.tpl.htm";
$liste["auth"]    = "yes";


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

$liste["item"][] = array( 'field'  => "active",
	'datatype' => "VARCHAR",
	'formtype' => "SELECT",
	'op'  => "=",
	'prefix' => "",
	'suffix' => "",
	'width'  => "",
Marius Cramer's avatar
Marius Cramer committed
	'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'  => "",
Marius Cramer's avatar
Marius Cramer committed
	'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')));