Change the page Carousel theme Picture (2, add)---Light open e-commerce system (Enterprise entry-level business website)

Source: Internet
Author: User

Pick up a blog

File: Add button in site/links/img0.html (line 14th)

<center><if x= "@{sys:cando}" ><a href= "@{sys:face}site/links/img0_add.html" x=true>[add]</a ></if></center>
Effect

Click "[Add]" to go to file: site/links/img0_add.html (in the site/links/directory of the light- Open ecommerce system (Enterprise entry-to-business website)
Form

<form id=save action= "@{sys:face}site/links/img0_add_up1.chtml" onsubmit= "return false;" Target=_self Method=post Enctype= "Multipart/form-data" >...</form>
Name Field
<TR><TD width=88><font class=acttitle> name </font></td><td Width=700><INPUT size=36 name=name></td></tr>
Link Address field
<tr><td><font class=acttitle> link Address </font></td><td><input size=40 Name=LINK ></td></tr>
picture Field(Note the width and height of the picture)
<tr><td><font class=acttitle> Pictures </font></td><td><input Name=IMAGE size=32 Type=file> (730x486) </td></tr>
the address returned after saving(Hide properties)
<input type=hidden name=reurl value= "site/links/img0.html" >
Commit Action
<center><a href= "Javascript:dosubmit ();" title= "Submit!" >[Submit]</a></center>
JS script to submit a check
var save = document.forms[' Save '];function dosubmit () {if (save. name.value== "") {alert ("The name is not filled!"); Save. Name.focus (); return;} if (save. link.value== "") {Alert ("link address cannot be empty!"); Save. Link.focus (); return;} var str = save[' IMAGE '].value.tolowercase (), if (str!= "") {str = str.substring (str.length-4); if (str!= '. jpg ' && str!= '. gif ') {alert ("Only JPG or GIF image"); return;}} Else{alert ("must upload pictures!"); return;} Save.submit ();}
effect

All code

<link href= "@{sys:path}base/css/main.css" type= "Text/css" rel= "STYLESHEET" ><table width=90% align=center Border=1 cellpadding= "3" cellspacing= "0" style= "border-collapse:collapse;font-size:12px" ><tr><th Colspan=2>.<font class=listtitle> Add theme picture </font>.</th></tr><form Id=save action= "@{ Sys:face}site/links/img0_add_up1.chtml "onsubmit=" return false; "Target=_self method=post enctype=" multipart/ Form-data "><input type=hidden name=reurl value=" site/links/img0.html "><tr><td width=88>< Font class=acttitle> name      call &LT;/FONT&GT;&LT;/TD&GT;&LT;TD width=700><input size=36 Name=name></td></tr><tr><td><font class=acttitle> Link Address </font></td> <td><input size=40 Name=link></td></tr><tr><td><font class=acttitle> Chart      tablets </font></td><td><input name=image size=32 type=file> (730x486) </td></tr></form></table><br><center><a href= "Javascript:doSubmit (); title= "Submit!" >[commits]</a></center><script>var save = document.forms[' Save '];function dosubmit () {if (save. name.value== "") {alert ("The name is not filled!"); Save. Name.focus (); return;} if (save. link.value== "") {Alert ("link address cannot be empty!"); Save. Link.focus (); return;} var str = save[' IMAGE '].value.tolowercase (), if (str!= "") {str = str.substring (str.length-4); if (str!= '. jpg ' && str!= '. gif ') {alert ("Only JPG or GIF image"); return;}} Else{alert ("must upload pictures!"); return;} Save.submit ();} </script>
(file: site/links/img0_add.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 Picture (2, add)---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.