Change the page Carousel theme pictures (1)---Open e-commerce system (Enterprise entry-level website)

Source: Internet
Author: User

Altogether 4 documents:

    1. List display files: site/links/img0.html
    2. Add picture file: site/links/img0_add.html
    3. Add Save picture file: site/links/img0_add_up1.chtml
    4. 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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.