📄 list.xml
字号:
<form>
<subtitle>Administrators Notes</subtitle>
<fields>
<_count header="No" suffix="." width="30" align="center" />
<note_title header="Title" align="left" />
<note_post_date header="Date" type="date" params="M j, Y" align="center" width="100" />
</fields>
<header>
<titles>true</titles>
<buttons>
<delete onclick="" button="addnew" >
<location>index.php?mod=myprofile&sub=myprofile.notes&action=add¬e_relation={RELATION}&returnurl={CURRENT_PAGE}</location>
</delete>
</buttons>
</header>
<vars>
<relation import="$_GET['user_id']" type="eval" />
</vars>
<buttons>
<delete onclick="" button="delete" >
<location>javascript:if(confirm('Are you sure you want to delete this record ?')) window.location='index.php?mod=myprofile&sub=myprofile.notes&action=delete¬e_id={NOTE_ID}&returnURL={CURRENT_PAGE}'</location>
</delete>
<details onclick="" button="details" >
<location>index.php?mod=myprofile&sub=myprofile.notes&action=det¬e_id={NOTE_ID}&returnurl={CURRENT_PAGE}</location>
</details>
</buttons>
<SQL>
<vars>
<relation import="$_GET['user_id']" type="eval" />
<sql_table import="$this->tables['notes']" type="eval"/>
<sql_condition import="WHERE note_relation='{RELATION}' " type="var"/>
</vars>
<query>SELECT * FROM `{SQL_TABLE}` {SQL_CONDITION} ORDER BY note_post_date DESC</query>
</SQL>
<items>100</items>
</form>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -