Batch upload image management system (ASP)

Source: Internet
Author: User

If you cannot see the article, go to my QQ space and check my QQ number: 362315062

 

Batch upload image management system (ASP)

After more than two months of hard work, I finally wrote the system into it, taking a lot of steps in the middle and constantly correcting and modifying it. Now I will share my achievements with you, because the system company uses it, it cannot post code. If anyone wants it, it will take some time! You can also write it by yourself. I will paste the main control address.

First, I will post it to you. Let's take a look at it first:

My system is divided into three sections:

1. First, the background section

This is the background. It looks very simple. In fact, it is very complicated. It achieves recursive addition of background sections and can be added infinitely (of course, theoretically, you have nothing to do with adding so many sections ), you can modify, add, or delete a plate, and then view the added image.

2. The following figure shows how to add the image Section. This is the core of the entire system. I have not seen ASP provide this function for batch image uploading. I wanted to write it myself. The idea is too complicated. This control is open source, I paste the address (http://www.access2008.cn/update)

This is the page for adding list images. The interface is very vivid, powerful, and has a lot of troubleshooting functions. Of course, there is also a lot of error functions, using a flash control, I suggest you do not modify the background code for ASP + flash, or change the background code if you are not familiar with it. Otherwise, there will be a lot of trouble. You can see that the link above is missing, of course, it is used for redirection (nonsense). The key is the third "image mode". Hey, you can conclude that this interface also has an image-based upload interface (haha, more nonsense ).

 

Pretty. I'm talking about controls. Although beautiful women are also beautiful, we focus on technology. This is the image list interface, which is more vivid and more vivid,

The Troubleshooting function is very powerful. You can automatically create folders in the background. But there is a problem here.

 

As you can see, there is a problem with the encoding style below. My encoding style is gb2312. However, the encoding style of the control is UTF-8, therefore, this problem occurs after the upload, and will be corrected in the future.

Another bigger problem is that this control can only be uploaded and cannot be written to the database. As a result, we only upload images, but cannot process data, any development requires data processing. As I mentioned above, I don't want to modify the code for ASP + flash, because it's useless for you to change the code. I only know a little bit about flash, however, I have found a way to break down. As a saying goes, programmers only need to have this kind of thinking. I will show you how to turn around.

Is it very beautiful? Here I first use the FSO control of ASP to read all the images in the folder, then write them directly to the database, and then display them on this page, then we can process the images. Here I am using a lot of JS technology and jquery technology, so I suggest you learn more.

This is the effect of moving the mouse up. You can edit and delete it. clicking Delete will pop up a prompt, and it will not be pasted. Click OK to delete it. If you cancel the operation, it will not be deleted.

Click Edit and the Edit page appears. This is the core of this forum.

A very beautiful jquery control will close the home page and display the prompt page. This is equivalent to having an IFRAME in the page and passing parameters to it. This is very important, because many of the following functions use this technology to get twice the result with half the effort, you can write parameters in it, click OK, and it will be saved to the database, because the image information already exists in the database, the submitted changes are not inserted.

Another point to note is the delivery of classification. Because my images are saved by category, classification is always passed through, but not all of these pages are ASP and static pages, so I used a JS function, which is the code:

Function
Shides (){
Function request (paras ){
VaR url = location. href;
VaR
Parastring = URL. substring (URL. indexof ("? ") + 1, URL. Length). Split ("&");

VaR paraobj = {}
For (I = 0; j = parastring [I]; I ++ ){

Paraobj [J. substring (0, J. indexof ("="). tolowercase ()] =
J. substring (J. indexof ("=") + 1, J. Length );
}
VaR returnvalue =
Paraobj [paras. tolowercase ()];
If (typeof (returnvalue) = "undefined "){

Return "";
} Else {
Return returnvalue;
}
}

 

When using the request ("the parameter name you want to pass"), it is not the same as ASP, but it must be noted that this is not ASP, but JS, it must be written in Js.

The batch upload I wrote is finished here. Of course, there are still many problems in the development process. I did not write this because I forgot to post the main idea, if you are interested, you can study it together. The rest is beautifying, and all the code will be posted when the company can publish it. It's done!

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.