Mercurial > judyates
comparison e2gallerypro/e2upload/index.php @ 3:3f6b44aa6b35 judyates
[svn r4] added ability to buy stuff, from a Prints page, but it doesn't work well with the css, and it also has not been fitted into the perl make system.
author | rlm |
---|---|
date | Mon, 22 Feb 2010 08:02:39 -0500 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
2:670229c4eb4b | 3:3f6b44aa6b35 |
---|---|
1 <?php include('../e2config.php'); include ("password_protect.php"); ?> | |
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | |
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
4 <html xmlns="http://www.w3.org/1999/xhtml"> | |
5 <head> | |
6 <title>(E)2 Gallery Pro File Manager</title> | |
7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
8 <link rel="shortcut icon" href="http://e2interactive.com/favicon.ico" /> | |
9 <style type="text/css"> | |
10 body { | |
11 font-size: 11px; | |
12 font-family: Tahoma, sans-serif; | |
13 background: #F1F1F1 url(images/bodybg.png) repeat-x top center; | |
14 } | |
15 .dsep{ | |
16 clear:both; | |
17 border-bottom: dotted 1px #999; | |
18 margin:20px 0; | |
19 } | |
20 #maincontent img{ | |
21 margin: 0 10px 10px; | |
22 } | |
23 #container #header { | |
24 background-image: url(images/adminheader.png); | |
25 background-repeat: no-repeat; | |
26 background-position: center top; | |
27 width:750px; | |
28 text-align: center; | |
29 height: 87px; | |
30 } | |
31 #container { | |
32 text-align: center; | |
33 width: 750px; | |
34 margin:0 auto; | |
35 } | |
36 #container #maincontent { | |
37 text-align: left; | |
38 padding: 10px 10px; | |
39 border: dotted #CCC 1px; | |
40 -moz-border-radius: 10px; | |
41 -khtml-border-radius: 10px; | |
42 -webkit-border-radius: 10px; | |
43 border-radius: 10px; | |
44 margin-top: 10px; | |
45 background: #E1E1E1; | |
46 } | |
47 #container #navigation { | |
48 height: 35px; | |
49 padding: 0 10px; | |
50 } | |
51 #navigation #manage, #navigation #managexml, #navigation #outputxml, #navigation #seegallery { | |
52 background-image: url(images/tab_bg.png); | |
53 background-repeat: repeat-x; | |
54 background-position: center top; | |
55 height: 19px; | |
56 float: left; | |
57 padding: 5px 6px 0; | |
58 margin: 1px 5px 5px; | |
59 border-left: solid 1px #CCC; | |
60 border-right: solid 1px #CCC; | |
61 border-bottom: solid 1px #CCC; | |
62 -moz-border-radius: 0 0 5px 5px; | |
63 -webkit-border-bottom-left-radius: 5px; | |
64 -webkit-border-bottom-right-radius: 5px; | |
65 -khtml-border-bottom-left-radius: 5px; | |
66 -khtml-border-bottom-right-radius: 5px; | |
67 border-bottom-left-radius: 5px; | |
68 border-bottom-right-radius: 5px; | |
69 cursor:pointer; | |
70 } | |
71 #navigation #logout{ | |
72 background-image: url(images/tab_bg.png); | |
73 background-repeat: repeat-x; | |
74 background-position: center top; | |
75 height: 19px; | |
76 float: right; | |
77 padding: 5px 6px 0; | |
78 margin: 1px 5px 5px; | |
79 border-left: solid 1px #CCC; | |
80 border-right: solid 1px #CCC; | |
81 border-bottom: solid 1px #CCC; | |
82 -moz-border-radius: 0 0 5px 5px; | |
83 -webkit-border-bottom-left-radius: 5px; | |
84 -webkit-border-bottom-right-radius: 5px; | |
85 -khtml-border-bottom-left-radius: 5px; | |
86 -khtml-border-bottom-right-radius: 5px; | |
87 border-bottom-left-radius: 5px; | |
88 border-bottom-right-radius: 5px; | |
89 cursor:pointer; | |
90 } | |
91 #navigation a{ | |
92 text-decoration:none; | |
93 color:#333; | |
94 } | |
95 #navigation a:hover{ | |
96 text-decoration:underline; | |
97 color:#333; | |
98 } | |
99 </style> | |
100 | |
101 <link rel="stylesheet" media="all" type="text/css" href="Css/FileManager.css" /> | |
102 <link rel="stylesheet" media="all" type="text/css" href="Css/Additions.css" /> | |
103 | |
104 <script type="text/javascript" src="js/mootools-core.js"></script> | |
105 <script type="text/javascript" src="js/mootools-more.js"></script> | |
106 | |
107 <script type="text/javascript" src="Source/FileManager.js"></script> | |
108 <script type="text/javascript" src="Source/Language/Language.en.js"></script> | |
109 <script type="text/javascript" src="Source/Language/Language.de.js"></script> | |
110 <script type="text/javascript" src="Source/Additions.js"></script> | |
111 | |
112 <script type="text/javascript" src="Source/Uploader/Fx.ProgressBar.js"></script> | |
113 <script type="text/javascript" src="Source/Uploader/Swiff.Uploader.js"></script> | |
114 | |
115 <script type="text/javascript" src="Source/Uploader.js"></script> | |
116 | |
117 <script type="text/javascript"> | |
118 window.addEvent('domready', function(){ | |
119 /* Simple Example */ | |
120 var manager = new FileManager({ | |
121 url: 'manager.php', | |
122 assetBasePath: 'Assets', | |
123 language: 'en', | |
124 uploadAuthData: {session: 'MySessionId'} | |
125 }); | |
126 $('manage').addEvent('click', manager.show.bind(manager)); | |
127 | |
128 /* XML upload*/ | |
129 var manager = new FileManager({ | |
130 url: 'managerxml.php', | |
131 assetBasePath: 'Assets', | |
132 language: 'en', | |
133 uploadAuthData: {session: 'MySessionId'} | |
134 }); | |
135 $('managexml').addEvent('click', manager.show.bind(manager)); | |
136 | |
137 }); | |
138 </script> | |
139 </head> | |
140 <body> | |
141 <div id="container"> | |
142 <div id="header"></div> | |
143 <div id="navigation"> | |
144 <div id="manage">Upload/Manage Images</div> | |
145 <div id="managexml">Upload/Edit XML</div> | |
146 <a href="outputxml.php"><div id="outputxml">Output XML</div></a> | |
147 <a href="../"><div id="seegallery">See Gallery</div></a> | |
148 <a href="?logout=1"><div id="logout">Log Out</div></a> | |
149 </div> | |
150 <div id="maincontent"> | |
151 <h2>Gallery Information</h2> | |
152 <?php | |
153 if($myPHPVersion=="4"){ | |
154 require('../php/xmlparse.v4.php'); | |
155 }else{ | |
156 require('../php/xmlparse.v5.php'); | |
157 } | |
158 //Get the XML document loaded into a variable | |
159 $xml = file_get_contents('../'.$e2xmlurl); | |
160 | |
161 //Set up the parser object | |
162 $parser = new XMLParser($xml); | |
163 | |
164 //Work the magic... | |
165 $parser->Parse(); | |
166 $i=1; | |
167 $k=0; | |
168 $l=0; | |
169 foreach($parser->document->gallery as $gallery){ | |
170 if($i!=1){ | |
171 echo'<div class="dsep"></div>'; | |
172 } | |
173 foreach($gallery->item as $item){ | |
174 $l++; | |
175 $finalnum=$l-1; | |
176 } | |
177 echo | |
178 "<img src='".$gallery->mainthumb[0]->tagData."".$gallery->mainthumbsrc[0]->tagData."' align='left' /> | |
179 <strong>Gallery ".$i.":</strong> ".$gallery->title[0]->tagData." | |
180 <br /> | |
181 <strong>Description</strong> | |
182 <br /> | |
183 ".$gallery->description[0]->tagData." | |
184 "; | |
185 $i++; | |
186 foreach($gallery->item as $item){ | |
187 $k++; | |
188 } | |
189 } | |
190 ?> | |
191 <div class="dsep"></div> | |
192 </div> | |
193 </div> | |
194 </body> | |
195 </html> |