<?php
/*
 * @version			$Id: index.php 10381 2008-06-01 03:35:53Z $
 * @package			Carteasy
 * @copyright		Copyright (C) 2005 - 2011 Wlanium
 * @license			proprietary
 * @author			Thomas Bartelt
 * Carteasy is a web shop system
 */

include_once './core/main.class.php';

class Currency extends Main {

	protected $base_object;
	protected $db;

	public $list_table_config = array (
		'title' => 'Währung',
		'db_table' => 'currency',
		'list_fields' => array(
			array(
				'db_field' => 'name',
				'name' => 'Name',
				'sortable' => 1
			),
			array(
				'db_field' => 'iso',
				'name' => 'ISO',
				'sortable' => 1
			)
		),
		'search_fields' => array('name', 'iso'),
		'db_id_field' => 'id',
		'db_selectable_field' => 'name',
		'edit_link' => 'index.php?admin_modul=admin_object_edit&object=Currency&object_id=',
		'toolbar' => array(
			'delete' => '0',
			'new' => 'index.php?admin_modul=admin_object_edit&object=Currency',
			'copy' => 0,
			'select_all' => 1,
			'edit' => 0,
			'actions' => 0,
			'filter' => 0,
			'search' => 1
		),
		'edit_title' => 'Währung',
		'edit_fields' => array (
			array(
				'name' => 'Allgemein',
				'type' => 'form_title'
			),
			array(
				'db_field' => 'name',
				'name' => 'Name',
				'type' => 'text'
			),
			array(
				'db_field' => 'iso',
				'name' => 'ISO',
				'type' => 'text'
			)
		),
		'edit_mandatory_fields' => array('name', 'iso'),
		'edit_toolbar' => array(
			'close' => 'index.php?admin_modul=admin_object_list&object=Currency',
			'copy' => 0,
			'undo' => 0,
			'redo' => 0,
			'save' => 1,
			'send' => 0,
			'delete' => 0
		),
	);

	function __construct($base_object) {
		$this->base_object = $base_object;
		$this->db = Registry::get('base')->db;
	}

}

?>