list.xml

来自「基于PHP和MYSQL的计算机辅助设备维修管理系统」· XML 代码 · 共 50 行

XML
50
字号
<form>
	
	<title>{CATEGORY_NAME} - Equipment</title>
	<width>540</width>
	<border>true</border>
	
	<fields>
		<_count header="No" width="30" align="center" />
		<product_name header="Name" align="left" />
	</fields>

	<header>
		<titles>true</titles>
		<buttons>

			<return onclick="" button="return" >
				<location>index.php?sub=categories&cat_parent={PRODUCT_CAT}</location>
			</return>
		</buttons>
	</header>

	<buttons>
		<details onclick="" button="details" >
			<location>index.php?sub=products&action=details&product_id={PRODUCT_ID}</location>
		</details>

	</buttons>

	<vars>
		<category_name import="$GLOBALS[category_name]" type="eval" />
		<product_cat import="$_GET[product_cat]" type="eval" />
	</vars>

	<SQL>
		<vars>
			<sql_page type="page"/>
			<sql_items type="form" var="items" />
			<sql_table import="$this->tables['products']" type="eval"/>
			<cat import="$_GET[product_cat]" type="eval"/>
			<sql_condition import="WHERE product_cat='{CAT}'" type="var"/>
	
		</vars>
		<query>SELECT * FROM `{SQL_TABLE}` {SQL_CONDITION} LIMIT {SQL_PAGE},{SQL_ITEMS}</query>
		<count table="{SQL_TABLE}" condition="{SQL_CONDITION}" />

	</SQL>

	<items>10</items>

</form>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?