Change the page Carousel theme picture (4, delete)---Light open e-commerce system (Enterprise entry-level business website)

Source: Internet
Author: User

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 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 picture (4, delete)---Light open e-commerce system (Enterprise entry-level business 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.