<?xml version="1.0" encoding="utf-8"?>
<!--
	/**************************************************************************\
	* Simple Groupware 0.724                                                   *
	* http://www.simple-groupware.de                                           *
	* Copyright (C) 2002-2011 by Thomas Bley                                   *
	* ------------------------------------------------------------------------ *
	*  This program is free software; you can redistribute it and/or           *
	*  modify it under the terms of the GNU General Public License Version 2   *
	*  as published by the Free Software Foundation; only version 2            *
	*  of the License, no later version.                                       *
	*                                                                          *
	*  This program is distributed in the hope that it will be useful,         *
	*  but WITHOUT ANY WARRANTY; without even the implied warranty of          *
	*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the            *
	*  GNU General Public License for more details.                            *
	*                                                                          *
	*  You should have received a copy of the GNU General Public License       *
	*  Version 2 along with this program; if not, write to the Free Software   *
	*  Foundation, Inc., 59 Temple Place - Suite 330, Boston,                  *
	*  MA  02111-1307, USA.                                                    *
	\**************************************************************************/
-->
<table modulename="{t}Files{/t}" default_view="display" orderby="filename" order="asc" limit="20" enable_new="true" enable_edit="true" enable_delete="true" enable_empty="true" enable_asset_rights="full">
  <view name="display" displayname="{t}Display{/t}">
  </view>
  <view name="details" displayname="{t}Details{/t}" tfield_1="filename" show_preview="true">
  </view>

  <field name="filedata" displayname="{t}File{/t}" simple_type="files" simple_file_size="20M" required="true">
	<linktext value="%index.php?folder=@folder@&amp;view=details&amp;item[]=@id@&amp;subitem=@subitem@&amp;iframe=1"/>
  </field>
  <field name="filename" displayname="{t}Subject{/t}" simple_type="text" required="true">
  </field>
  <field name="description" displayname="{t}Description{/t}" simple_type="textarea">
	<notin views="display" />
  </field>
  <field name="project" displayname="{t}Project{/t}" simple_type="select" simple_size="1">
    <INDEX/>
	<notin views="display" />
	<data function="dbselect|simple_projects|projectname,projectname||projectname asc|10"/>
  </field>
  <field name="lastmodified" displayname="{t}Modified{/t}" simple_type="datetime">
    <filter views="all" function="shortdateformat" />
	<onlyin views="display|details"/>
  </field>
  <field name="created" displayname="{t}Created{/t}" simple_type="datetime">
    <filter views="all" function="shortdateformat" />
	<onlyin views="display|details"/>
  </field>
  <field name="status" displayname="{t}Status{/t}" simple_type="select" simple_size="1">
	<data title="{t}Default{/t}" values="{t}confirmed{/t}|{t}checked{/t}|{t}unconfirmed{/t}|{t}to be checked{/t}|{t}canceled{/t}"/>
	<data title="{t}Lookup{/t}" function="dbselect|simple_statuses|statusname,statusname|stattype='files'|statusname asc|10"/>
  </field>
  <field name="category" displayname="{t}Category{/t}" simple_type="select" simple_size="1">
	<data function="dbselect|simple_categories|categoryname,categoryname|cattype='files'|categoryname asc|10"/>
  </field>  
</table>