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

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?

    1. <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?

  1. <for objects=links end="@{links:getlength}">

  2. <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>  

  3. For>

List effect

Click to open the leaflet effect

Authority judgment

[HTML] view Plaincopyprint?

  1. <cHTML><Bag id=sys><we name=NodeID>a0.0 we>Bag>chtml>

  2. <cHTML file="base/ac/checkacl.htm"/>

  3. ...

  4. <if x="@{sys:cando}"><a href="Javascript:dodel (' @{links:we_id} ');" x=true>[Delete]a>if>

  5. ....

  6. <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?

    1. function Dodel (RID)

    2. {

    3. if (doyou really want to delete the!confirm?  ') {return;}

    4. var str = ' @{sys:face}site/links/img0_del.chtml?reurl=site/links/img0.html&we_id= ' rid;

    5. location.href= str;

    6. }

All code

[HTML] view Plaincopyprint?

  1. <link href= "@{sys:path}site/links/a.css"  rel=" stylesheet " type=" text/css "  />

  2. <cHTML><Bag id=sys><we name=NodeID>a0.0 we>Bag>chtml>

  3. <cHTML file="base/ac/checkacl.htm"/>

  4. <cHTML>

  5. <table width=90% align=Center border=1 cellpadding="3" cellspacing= "0" style= "border-collapse:collapse;font-size:12px">

  6. <tr>< th colspan=3 >. <font class= listtitle> theme picture font >. th>tr< span class= "tag" >>  

  7.    <tr align=< Span class= "Attribute-value" >center bgcolor= #ECECEC >

  8.      <th> pictures span class= "tag" >th><th > name and link th> <th width=40 > operation th>< Span class= "Tag-name" >tr>                  

  9. <esql module=base id=links>select we_id,img_url,link,name from Images_base where catalog=0 ORDER by created DESC limit> esql

  10. <for objects=links end="@{links:getlength}">

  11. <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>  

  12. For >

  13. Table><br>

  14. <Center><if x="@{sys:cando}"><a href="@{sys:face}  Site/links/img0_add.html " x=true>[Add"a>if>Center>

  15. cHTML>

  16. <script>

  17. function Dodel (RID)

  18. {

  19. If (do you really want to delete the!confirm? ') {return;}

  20. var str = ' @{sys:face}site/links/img0_del.chtml?reurl=site/links/img0.html&we_id= ' rid;

  21. location.href= str;

  22. }

  23. 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)

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.