<form>
	<title>FAQ</title>
	<border>true</border>

	<alternance>true</alternance>
	<valternance>true</valternance>

	<skin>Pink</skin>

	<order>
		<restricted></restricted>
		<drag>true</drag>
		<field>item_order</field>
		<mode>ASC</mode>
		<button></button>
	</order>

	<vars>
		<module_id type="eval" import="$_GET[module_id]" />
	</vars>

	<fields>

		<_count header="No." width="20" align="right" suffix="."/>


		<item_title header="Title"/>
	
		<button_delete type="button" width="44" align="center" onclick="" button="/small/delete" protected="promo_default">
			<location>{SELF.URI.DELETE}</location>
		</button_delete>

		<button_details type="button" width="44" align="center" onclick="" icon="edit">
			<location>{SELF.URI.EDIT}</location>
		</button_details>

	</fields>

	<header>
		<titles>true</titles>
		<buttons>
			<add button="addnew">
				<location>{SELF.URI.ADD}</location>
			</add>
		</buttons>
	</header>

	<items>50</items>

	<sql>
		<vars>

			<table type="table"/>
			<table_lang type="table_lang"/>

			<page type="page"/>
			<items type="form" var="items"/>
			<module_id type="eval" import="$_GET[module_id];" />
			<lang_id type="eval" import="$_GET[lang_id];" />


			<condition type="var" import="WHERE p.module_id={MODULE_ID} and p.item_id=l.item_id AND l.lang_id={LANG_ID} " />

			<order type="var" import="item_order" />
			<order_mode type="var" import="ASC" />

		</vars>
		<query>select * from {TABLE} as p,{TABLE_LANG} as l {CONDITION} ORDER BY {ORDER} {ORDER_MODE} LIMIT {PAGE} , {ITEMS} </query>
		<count table="{TABLE} as p,{TABLE_LANG} as l " condition="{CONDITION}" />

	</sql> 


</form>