<?xml version="1.0" encoding="UTF8"?>
<items>
<main>
	<table>adv_items2</table>
	<order>item_id</order>
	<order_type>DESC</order_type>
	<increment>item_id</increment>
	<title>Реклама</title>
</main>
<item>
	<column>item_id</column>
	<title>ID</title>
	<type>increment</type>
	<view>
		<table>True</table>
		<form>False</form>
	</view>
</item>
<item>
	<column>itemname</column>
	<title>Имя</title>
	<type>text</type>
	<col>60</col>
	<view>
		<table>True</table>
		<form>True</form>
	</view>
	<hint>Заголовок стаьи</hint>
</item>
<item>
	<column>space_id</column>
	<title>Место</title>
	<type>lookup</type>
	<lookup>
		<table>adv_space2</table>
		<id>space_id</id>
		<column>spacename</column>
		<order>spacename</order>
	</lookup>
	<filter>True</filter>
	<view>
		<table>True</table>
		<form>True</form>
	</view>
</item>
<item>
	<column>adv_alias</column>
	<title>Фильтр</title>
	<type>text</type>
	<col>120</col>
	<view>
		<table>False</table>
		<form>True</form>
	</view>
	<hint>Заголовок стаьи</hint>
</item>
<item>
	<column>item_code</column>
	<title>Код</title>
	<type>textarea</type>
	<row>8</row>
	<col>80</col>
	<view>
		<table>False</table>
		<form>True</form>
	</view>
</item>
<item>
	<column>type_code</column>
	<title>PHP</title>
	<type>checkbox</type>
	<col>100</col>
	<view>
		<table>False</table>
		<form>True</form>
	</view>
</item>
<item>
	<column>adv_active</column>
	<title>Вкл</title>
	<type>checkbox</type>
	<col>60</col>
	<view>
		<table>True</table>
		<form>True</form>
	</view>
	<hint>Публиковать</hint>
</item>
<item>
	<column>adv_file</column>
	<title>файл баннер</title>
	<view>
		<table>True</table>
		<form>True</form>
	</view>	
	<type>file</type>
	<folder>pub/images/partners</folder>
</item>
<item>
	<column>adv_alt</column>
	<title>Альтернативный текст</title>
	<type>text</type>
	<col>60</col>
	<view>
		<table>False</table>
		<form>True</form>
	</view>
	<hint>Заголовок стаьи</hint>
</item>
<item>
	<column>adv_width</column>
	<title>ширина</title>
	<type>text</type>
	<col>10</col>
	<view>
		<table>False</table>
		<form>True</form>
	</view>
</item>
<item>
	<column>adv_height</column>
	<title>высота</title>
	<type>text</type>
	<col>10</col>
	<view>
		<table>False</table>
		<form>True</form>
	</view>
</item>
<item>
	<column>adv_link</column>
	<title>link</title>
	<type>text</type>
	<col>60</col>
	<view>
		<table>False</table>
		<form>True</form>
	</view>
</item>
<item>
	<column>start</column>
	<title>Start</title>
	<type>datetime</type>
	<view>
		<table>True</table>
		<form>True</form>
	</view>
</item>
<item>
	<column>end</column>
	<title>End</title>
	<type>datetime</type>
	<view>
		<table>True</table>
		<form>True</form>
	</view>
</item>
<item>
	<column>user_id</column>
	<title>М/н</title>
	<type>lookup</type>
	<lookup>
		<table>users</table>
		<id>user_id</id>
		<column>initials</column>
		<order>initials</order>
	</lookup>
	<view>
		<table>True</table>
		<form>False</form>
	</view>
	<filter>True</filter>
</item>
<item>
	<column>user_id</column>
	<type>user</type>
	<access>
		<groups>edition</groups>
	</access>
	<user_type>insert</user_type>
	<view>
		<table>False</table>
		<form>True</form>
	</view>
</item>
</items>