Altogether 4 documents:
- List display files: site/links/img0.html
- Add picture file: site/links/img0_add.html
- Add Save picture file: site/links/img0_add_up1.chtml
- Delete picture file: site/links/img0_del.chtml
in the Light Open e-commerce system (Enterprise entry-level business website) under the site/links/directory
Easily implement picture substitution
1, List display file code introduction
Find the latest theme pictures
<esql module=base id=links>select we_id,img_url,link,name from Images_base where catalog=0 order by created Desc Lim It 10</esql>
Cycle through the list of themed pictures
<for objects=links end= "@{links:getlength}" ><tr align=center><td></td><td align=left><a href=" @ {Links:link} "Target=_blank title=" @{links:link} ">@{links:name}</a></td><td><if x=" @{sys: Cando} "><a href=" Javascript:dodel (' @{links:we_id} '); x=true>[Delete]</a></if></td></ Tr></for>
List effect
Click to open the leaflet effect
Authority judgment
<chtml><bag id=sys><we name=nodeid>a0.0</we></bag></chtml><!--Column node-- <chtml file= "base/ac/checkacl.htm"/><!--introduce permission check file-->...<if x= "@{sys:cando}" ><a href= " Javascript:dodel (' @{links:we_id} '); "x=true>[Delete]</a></if>....<center><if x=" @{sys:canDo} "><a href=" @{sys:face}site/links/img0_add.html "x=true>[add]</a></if></center>
Delete Hint JS function
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;}
All code
<link href= "@{sys:path}site/links/a.css" rel= "stylesheet" type= "Text/css"/><chtml><bag id=sys> <we name=nodeid>a0.0</we></bag></chtml><!--Column node--><chtml file= "base/ac/ Checkacl.htm "/><!--introduce permission check file--><chtml><table width=90% align=center border=1 cellpadding=" 3 " cellspacing= "0" style= "border-collapse:collapse;font-size:12px" ><tr><th colspan=3>.<font class= listtitle> Theme Pictures </font>.</th></tr> <tr align=center bgcolor= #ECECEC > <th> pictures </th& gt;<th> name and link </th><th width=40> operation </th></tr><esql Module=base Id=links>Select we _id,img_url,link,name from Images_base where catalog=0 order by created desc limit 10</esql><for objects=links en D= "@{links:getlength}" ><tr align=center><td></td><td Align=left><a href= "@{links:link}" Target=_blank title= "@{links:link}" >@{links:name}</a></td><td><if x= "@{sys:cando}" ><a href= "Javascript:dodel (' @{links:we_id} ');" x=true>[Delete]</a></if></td ></tr></for></table><br><center><if x= "@{sys:cando}" ><a href= "@{sys: Face}site/links/img0_add.html "x=true>[Add]</a></if></center></chtml><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>
(file: site/links/img0.html) in the
Light Open e-commerce system (Enterprise entry-level business website) under the site/links/ directory
Easy to download resources for Internet development Platform
Development 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 pictures (1)---Open e-commerce system (Enterprise entry-level website)