⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 add.xml

📁 基于PHP和MYSQL的计算机辅助设备维修管理系统
💻 XML
字号:
<form>
	<title>Add / Edit Task</title>
	<action>index.php?sub=tasks&action=store</action>
	<name>edit</name>
	<width>540</width>

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

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

		<save onclick="" button="saveall">
			<location>javascript:document.forms[0].submit();</location>
		</save>

	</buttons>

	<vars>
		<task_product import="$_GET[task_product] ? $_GET[task_product] : $_POST[task_product]" type="eval" />
	</vars>

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

	<fields>

		<task_id type="hidden" hidden="true"/>
		<task_user type="hidden" hidden="true"/>
		<task_product type="hidden" default="$_GET[task_product]" action="eval" />

		<task_name type="textbox" size="40:100" required="true" validate="A:1:100">
			<title>Name</title>
			<description>Enter the name for this task.</description>
		</task_name>

		<task_description type="textarea" size="40:4">
			<title>Description</title>
		</task_description>

		<date_enter type="date" now="true">
			<title>Save Date</title>
			<description>The date when this task was saved in database.</description>

			<fields>
				<month format="int" default="now" />
				<day format="int" default="now" />
				<year from="2004" to="2010" default="now"/>
			</fields>
		</date_enter>

		<task_date type="date" now="true">
			<title>Scheduled date</title>

			<fields>
				<month format="int" default="now" />
				<day format="int" default="now" />
				<year from="2004" to="2010" default="now"/>
			</fields>
		</task_date>

		<date_completed type="date" empty="true">
			<title>Complete Date</title>
			<description>Select the date when this task was completed.</description>

			<fields>
				<month format="int" empty="true" />
				<day format="int" empty="true" />
				<year from="2004" to="2010" empty="true" />
			</fields>
		</date_completed>

		<task_type type="droplist" required="true" validate="A:1:200" empty="true">
			<title>Type</title>
			<relation table="tasktype" id="type_id" text="type_name" />
		</task_type>

		<task_vendor type="droplist" required="true" validate="A:1:200" empty="true">
			<title>Vendor</title>
			<relation table="vendors" id="vendor_id" text="vendor_name" />
		</task_vendor>

		<task_comments type="textarea" size="40:4">
			<title>Comments</title>
		</task_comments>
	</fields>
</form>

⌨️ 快捷键说明

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