<?php
	require_once("config/connect.php");
	require_once("config/pageConfig.php");
	require_once("global_functions.php");
	check_login('', '', 'ENABLERKEY_ADMIN_ARTIKEL_ARTEN');
?>
<head>
	<title>SITPOS Artikelarten</title>
	
	<?php echo META_DATA_ADMIN; ?>

		<style type="text/css">
		<?php include 'include/main.css'; ?>
		<?php include 'include/menue.css'; ?>
		
		a.pme-navigation-0, a.pme-navigation-1, a.pme-navigation-0:hover, a.pme-navigation-1:hover, td.pme-navigation-0, td.pme-navigation-1 {width:160px; }
		.pme-main {width:auto !important; }
		</style>
</head>
<body>
	<div id="wrapper_admin" class="wrapper_admin">
<?php

/*
 * IMPORTANT NOTE: This generated file contains only a subset of huge amount
 * of options that can be used with phpMyEdit. To get information about all
 * features offered by phpMyEdit, check official documentation. It is available
 * online and also for download on phpMyEdit project management page:
 *
 * http://platon.sk/projects/main_page.php?project_id=5
 *
 * This file was generated by:
 *
 *                    phpMyEdit version: 5.7.1
 *       phpMyEdit.class.php core class: 1.204
 *            phpMyEditSetup.php script: 1.50
 *              generating setup script: 1.50
 */

// MySQL host name, user name, password, database, and table
menue_anzeigen();

$opts['hn'] = SQL_HOST;
$opts['un'] = SQL_USER;
$opts['pw'] = SQL_PW;
$opts['db'] = SQL_DB;
$opts['tb'] = 'artikel_art';

// Name of field which is the unique key
$opts['key'] = 'id';

// Type of key field (int/real/string/date etc.)
$opts['key_type'] = 'int';

// Sorting field(s)
$opts['sort_field'] = array('id');

// Number of records to display on the screen
// Value of -1 lists all records in a table
$opts['inc'] = 15;

// Options you wish to give the users
// A - add,  C - change, P - copy, V - view, D - delete,
// F - filter, I - initial sort suppressed
// $opts['options'] = 'ACPVDF';
$opts['options'] = 'ACPVD';

// Number of lines to display on multiple selection filters
$opts['multiple'] = '4';

// Navigation style: B - buttons (default), T - text links, G - graphic links
// Buttons position: U - up, D - down (default)
$opts['navigation'] = 'UG';

$opts['buttons']['L']['up'] = array('<<','<','add','>','>>','goto_combo');
$opts['buttons']['F']['up'] = $opts['buttons']['L']['up'];

// Display special page elements
$opts['display'] = array(
	'form'  => true,
	'query' => true,
	'sort'  => true,
	'time'  => true,
	'tabs'  => true
);

// Set default prefixes for variables
$opts['js']['prefix']               = 'PME_js_';
$opts['dhtml']['prefix']            = 'PME_dhtml_';
$opts['cgi']['prefix']['operation'] = 'PME_op_';
$opts['cgi']['prefix']['sys']       = 'PME_sys_';
$opts['cgi']['prefix']['data']      = 'PME_data_';

/* Get the user's default language and use it if possible or you can
   specify particular one you want to use. Refer to official documentation
   for list of available languages. */
$opts['language'] = 'DE-UTF8';

	$opts['fdd']['id'] = array(
	  'name'     => 'ID',
	  'select'   => 'T',
	  'options'  => '', // auto increment
	  'maxlen'   => 3,
	  'default'  => '0',
	  'sort'     => true
	);
	$opts['fdd']['bezeichnung'] = array(
	  'name'     => 'Name',
	  'select'   => 'T',
	  'maxlen'   => 32,
	  'sort'     => true
	);
	$opts['fdd']['anzeigen'] = array(
	  'name'     => 'Anzeigen',
	  'select'   => 'D',
	   'values'   => array('ja'=>'Ja','nein'=>'Nein'),
	   'maxlen'   => 8,
	  'sort'     => true
	);
	$opts['fdd']['reihung'] = array(
	  'name'     => 'Anzeige Reihenfolge',
	  'select'   => 'T',
	  'maxlen'   => 5,								// postfix already done by " sitPos_replaceComma"
	  'sort'     => true
	);
	
	
	// Now important call to phpMyEdit
	require_once 'phpmyedit/phpMyEdit.class.php';
	new phpMyEdit($opts);

?>
</div>  <!-- end of wrapper div -->
</body>