Subversion Repositories SmartDukaan

Rev

Rev 6875 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
6848 kshitij.so 1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
<html>
3
<head>
4
	<script type="text/javascript" src="/js/jquery-1.4.2.js"></script>
5
    <script type="text/javascript" src="/js/jquery.validate.js"></script>
6
	<script type="text/javascript">
7
     function showHide(option) {
8
     if (option.value == 'True') {
9
         document.getElementById('image-map-div').style.display = 'block';
10
        }
11
        else{
12
        document.getElementById('image-map-div').style.display = 'none';
13
        }
14
     }
15
    </script>
16
	<script type="text/javascript">
17
	$(function() {
18
	$('#add-map').live('click', function(){
19
		$('<br/><br/><label>Coordinates : </label> <input id="mapCoordinates" name = "mapCoordinates" type = "textbox"/>'
20
				+'<br/><br/><label>Link : </label> <input id="mapLink" name = "mapLink" type = "textbox"/>').appendTo('#image-map-container');
21
	 });
22
	});
23
	</script>
24
		<style type="text/css">
25
		* { font-family: Verdana; font-size: 96%; }
26
		label {
27
    float: left;
28
    width: 150px;
29
}
30
    #image-map-div {
31
     display:none;
32
    }
33
select {
34
    width: 100px;
35
}
36
		</style>
37
<title>Upload Banner</title>
38
</head>
39
<body>
40
<h2>New Banner</h2>
41
<div style="padding-bottom: 20px;" id="upload-form">
42
<form id="uploadFileToMyFolder" name="userImage" action="/user-image" enctype="multipart/form-data" method="post">
43
	  <label for="isActive">Active / InActive : </label>
44
      <select name="isActive"><option selected="selected" value="False">InActive</option><option value="True">Active</option></select>
45
      <br></br>
46
	  <label for="imagePath">Image Path : </label>
47
	  <input name="userImage" id="file" type="file">
48
	  <br></br>
49
	  <label for="bannerName">Banner Name : </label>
50
      <input id="bannerName" name="bannerName" type="text"/>
51
      <br></br>
52
	  <label for="imageName">Image Name : </label>
53
      <input id="imageName" name="imageName" type="text"/>
54
      <br></br>
55
      <label for="link">Link : </label>
56
      <input id="link" name="link" type="text"/>
57
	  <br></br>
58
      <label for="priority">Priority : </label>
59
      <select name="priority">
60
		#foreach( $val in [1..10] )
61
			#if ($val == 1)
62
				<option value='$val' selected="selected">$val</option>
63
			#else
64
				<option value='$val'>$val</option>
65
			#end	
66
		#end
67
		</select>
68
	  <br></br>
69
	  <label for="hasMap">Add Map : </label>
70
      <select name="hasMap" id="has_Map" onchange="showHide(this)"><option selected="selected" value="False">No</option><option value="True">Yes</option></select>
71
      <br></br>
72
	  <div id = "image-map-div" align = "left">
73
				<h3>Map Details</h5>
74
                <div id = "image-map-container">
75
    				<label>Coordinates : </label>
76
    				<input id="mapCoordinates" name = "mapCoordinates" type = "textbox"/>
77
					<br></br>
78
    				<label>Link : </label>
79
    				<input id="mapLink" name = "mapLink" type = "textbox"/>
80
                </div>
81
				<img id = "add-map" src = "/images/add.png" />
82
            </div>
83
	  <br>
84
	  <input style="margin-top: 8px;" name="upload" value="Upload" type="submit">
85
</form>
86
</div>
87
</body>
88
</html>