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
Under the site/links/directory of the Lite e-commerce System (Enterprise entry-to-business website)
Easily implement picture substitution
1, List display file code introduction
Find the latest theme pictures
[HTML] view Plaincopyprint?
<esql module=base id=links>select we_id,img_url,link,name from Images_base where catalog=0 ORDER by created DESC limit> esql
Cycle through the list of themed pictures
[HTML] view Plaincopyprint?
<for objects=links end="@{links:getlength}">
<Tralign=Center><Td><ImgSrc="@{sys:path}@{links:img_url}"Width="@{double:730/3}"height="@{double:486/3}"Border=1style="Cursor:pointer"onclick="Window.Open (' @{sys:path}@{links:img_url} ', ' ', ' width=730,height=486 ')"alt="Full View">Td><Tdalign=Left><Ahref="@{links:link}"target=_blanktitle="@{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
[HTML] view Plaincopyprint?
<cHTML><Bag id=sys><we name=NodeID>a0.0 we>Bag>chtml>
<cHTML file="base/ac/checkacl.htm"/>
...
<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
[JavaScript] view Plaincopyprint?
function Dodel (RID)
{
if (doyou really want to delete the!confirm? ') {return;}
var str = ' @{sys:face}site/links/img0_del.chtml?reurl=site/links/img0.html&we_id= ' rid;
location.href= str;
}
All code
[HTML] view Plaincopyprint?
-
<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>
<cHTML file="base/ac/checkacl.htm"/>
<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 picture font >. th>tr< span class= "tag" >>
-
<tr align=< Span class= "Attribute-value" >center bgcolor= #ECECEC >
-
<th> pictures span class= "tag" >th><th > name and link th> <th width=40 > operation th>< Span class= "Tag-name" >tr>
<esql module=base id=links>select we_id,img_url,link,name from Images_base where catalog=0 ORDER by created DESC limit> esql
<for objects=links end="@{links:getlength}">
<Tralign=Center><Td><ImgSrc="@{sys:path}@{links:img_url}"Width="@{double:730/3}"height="@{double:486/3}"Border=1style="Cursor:pointer"onclick="Window.Open (' @{sys:path}@{links:img_url} ', ' ', ' width=730,height=486 ')"alt="Full View">Td><Tdalign=Left><Ahref="@{links:link}"target=_blanktitle="@{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 (do you really want to delete the!confirm? ') {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) under the site/links/directory for the light-open ecommerce system (Enterprise entry-to-business website)
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 not be regularly upgraded to provide you with more powerful and easy features, please pay attention to download the latest version
"Little Moe" related books recommended
The core secret of making money on the Internet. pdf
The successful way of Internet entrepreneurship. pdf
"Reprint from" http://coding.hongjuzi.net/share?id=900
"Reprint from"http://blog.csdn.net/tx18/article/details/46571799
Change the page Carousel theme pictures (1)---Open e-commerce system (Enterprise entry-level website)