Pick (
change the page carousel theme picture 1)
Files: Forms in Site/links/img0.html (line 11th, last TD)
<td><if x= "@{sys:cando}" ><a href= "Javascript:dodel (' @{links:we_id} ');" x=true>[Delete]</a> </if></td>
and 16 to 23 lines of deletion hint JS function (parameter is reurl and picture we_id)
<script>function Dodel (RID) {if (!confirm (') Do you want to delete it? ') {return;} var str = ' @{sys:face}site/links/img0_del.chtml?reurl=site/links/img0.html&we_id= ' +rid;location.href= str;} </script>
Click "[delete]" and make sure to jump to file
site/links/img0_del.chtml(in the
Light Open e-commerce system (Enterprise entry-level business website) under the site/links/directory)
Judging Permissions(Safety first)
<chtml><bag id=sys><we name=nodeid>a0.0</we></bag></chtml><chtml file= " Base/ac/checkacl.htm "/><!--introduce permission check file--><chtml><if x=" @{sys:cando} "Else=1><we x=true> ... </we><script>alert ("You don't have permission!"); location.href= ' @{sys:face}@{ppage:reurl} ' </script></if></chtml>
query picture Uri
<esql module=base id=link>select img_url from images_base where we_id= ' @{ppage:we_id} ' </esql>
Delete a picture
<if x= "@{link:img_url}" Else=1><we/><file act=del>@{link:img_url}</file></if>
Delete a record in a table
<esql module=base act=edit>delete from images_base where we_id= ' @{ppage:we_id} ' </ESql>
prompt and return after success
<script>alert ("Delete succeeded!"); location.href= ' @{sys:face}@{ppage:reurl} ' </script>
All Code
(file: site/links/img0_del.chtml) in the Light Open e-commerce system (Enterprise entry-level business website) under the site/links/directory
easy to download resources for Internet development PlatformDevelopment example: Light Open Enterprise Entry-level e-commerce website , free download: http://download.csdn.net/detail/tx18/8818883
Light open platform will be upgraded to provide you with more powerful and easy features, please pay attention to Download the latest version
Change the page Carousel theme picture (4, delete)---Light open e-commerce system (Enterprise entry-level business website)