📄 add.xml
字号:
<form>
<title>Add / Edit Equipment</title>
<action>index.php?sub=products&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={PRODUCT_ID}</location>
</return>
<save onclick="" button="saveall">
<location>javascript:document.forms[0].submit();</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="textbox" size="40:100" required="true" validate="A:1:100">
<title>Name</title>
<description>Enter the name for this equipment.</description>
</product_name>
<product_vendors type="droplist" subtype="multiple" >
<title>Vendor(s)</title>
<tree id="vendor_id" text="vendor_name" db_separator=",">
<separator>[img height='0' width='20']</separator>
</tree>
<relation table="vendors"/>
</product_vendors>
</fields>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -