Hi, friends, it worked!
The code is here:
<cfquery datasource="TPVWDDB" name="getFolder">
SELECT *
FROM folder_t
WHERE memID = '#session.memID#'
</cfquery>
<cfform action="dirAct.cfm" method="POST" enablecab="Yes">
<cftree name="FolderList" width="470" bold="No" italic="No" border="Yes" hscroll="Yes" vscroll="Yes" required="No" completepath="No" appendkey="Yes" highlighthref="Yes">
<cfloop query="getFolder">
<cftreeitem display="#fd_name#" value="#fd_id#" parent="#fd_parent#" img="image/fclosed.jpg" imgopen="image/fopen.jpg">
<cfquery datasource="TPVWDDB" name="getFile">
SELECT *
FROM file_t
WHERE fdID = '#fd_id#'
</cfquery>
<cfloop query="getFile">
<cftreeitem display="#file_name#" value="#fileID#" parent="#fdID#" img="image/dot.jpg">
</cfloop>
</cfloop>
</cftree>
<input type="Submit" value="Submit">
</cfform>
At first, I did like this:
<cftreeitem query="getFolder" display="fd_name" value="fd_id" parent="fd_parent" img="image/fclosed.jpg" imgopen="image/fopen.jpg">, and I didn't use <cfloop>, but it cannot work the way I want.
So far, I am still quite not sure what is the different I use <cfloop> and query property in <cftreeitem>, but anyway, it worked finally!
But here, I still got some problems, how can I pass the folder/file value to the next page if I want to do some operations on that folder/file?
Sorry, I feel quite clumsy at ColdFusion.
I could say nothing but thanks to you guys' generous help. Thank you very mush!
Albert