details.xml

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

XML
54
字号
<form>
	<title>Equipment Details</title>
	<action>index.php?sub=products&action=store</action>
	<name>edit</name>
	<width>540</width>

	<formtag>true</formtag>
	<border>true</border>
	
	<buttons>		
		<set>
			<header>true</header>
			<footer>true</footer>
		</set>

		<return onclick="" button="return" >
			<location>index.php?sub=products&product_cat={PRODUCT_CAT}</location>
		</return>

		<save onclick="" button="edit">
			<location>index.php?sub=products&action=edit&product_id={PRODUCT_ID}&product_cat={PRODUCT_CAT}</location>
		</save>

	</buttons>

	<redirect>index.php?sub=products&action=details&product_id={PRODUCT_ID}</redirect>

	<fields>

		<product_id type="hidden" hidden="true"/>
		<product_cat type="hidden" hidden="true" default="$_GET[product_cat]" action="eval"/>

		<product_name type="text">
			<title>Name</title>
		</product_name>

		<product_description type="text">
			<title>Description</title>
		</product_description>

		<product_vendors type="relation" subtype="multiple" >
			<title>Vendor(s)</title>

			<tree id="vendor_id" text="vendor_name" db_separator=",">
				<div width="340" height="150" />
				<separator>[img height='0' width='20']</separator>
			</tree>

			<relation table="vendors"/>			
		</product_vendors>

	</fields>
</form>

⌨️ 快捷键说明

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