diff e2gallerypro/e2upload/outputxml.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
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/e2gallerypro/e2upload/outputxml.php	Mon Feb 22 08:02:39 2010 -0500
     1.3 @@ -0,0 +1,420 @@
     1.4 +<?php include('../e2config.php'); include ("password_protect.php"); ?>
     1.5 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     1.6 +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
     1.7 +<html xmlns="http://www.w3.org/1999/xhtml">
     1.8 +<head>
     1.9 +	<title>(E)2 Gallery Pro File Manager</title>
    1.10 +	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    1.11 +	<link rel="shortcut icon" href="http://e2interactive.com/favicon.ico" />
    1.12 +	<style type="text/css">
    1.13 +	body {
    1.14 +		font-size: 11px;
    1.15 +		font-family: Tahoma, sans-serif;
    1.16 +		background: #F1F1F1 url(images/bodybg.png) repeat-x top center;
    1.17 +	}	
    1.18 +	.dsep{
    1.19 +		clear:both;
    1.20 +		border-bottom: dotted 1px #999;
    1.21 +		margin:20px 0;
    1.22 +	}
    1.23 +	#maincontent img{
    1.24 +		margin: 0 10px 10px;
    1.25 +	}
    1.26 +	#container #header {
    1.27 +	background-image: url(images/adminheader.png);
    1.28 +	background-repeat: no-repeat;
    1.29 +	background-position: center top;
    1.30 +	width:750px;
    1.31 +	text-align: center;
    1.32 +	height: 87px;
    1.33 +	}
    1.34 +	#container {
    1.35 +		text-align: center;
    1.36 +		width: 750px;
    1.37 +		margin:0 auto;
    1.38 +	}
    1.39 +	#container #maincontent {
    1.40 +		text-align: left;
    1.41 +		padding: 10px 10px;
    1.42 +		border: dotted #CCC 1px;
    1.43 +		-moz-border-radius: 10px;
    1.44 +		-khtml-border-radius: 10px;
    1.45 +		-webkit-border-radius: 10px;
    1.46 +		border-radius: 10px;
    1.47 +		margin-top: 10px;
    1.48 +		background: #E1E1E1;
    1.49 +	}
    1.50 +	#container #navigation {
    1.51 +		height: 35px;
    1.52 +		padding: 0 10px;
    1.53 +	}
    1.54 +	#navigation #manage, #navigation #managexml, #navigation #outputxml, #navigation #seegallery {
    1.55 +		background-image: url(images/tab_bg.png);
    1.56 +		background-repeat: repeat-x;
    1.57 +		background-position: center top;
    1.58 +		height: 19px;
    1.59 +		float: left;
    1.60 +		padding: 5px 6px 0;
    1.61 +		margin: 1px 5px 5px;
    1.62 +		border-left: solid 1px #CCC;
    1.63 +		border-right: solid 1px #CCC;
    1.64 +		border-bottom: solid 1px #CCC;
    1.65 +		-moz-border-radius: 0 0 5px 5px;
    1.66 +		-webkit-border-bottom-left-radius: 5px;
    1.67 +		-webkit-border-bottom-right-radius: 5px;
    1.68 +		-khtml-border-bottom-left-radius: 5px;
    1.69 +		-khtml-border-bottom-right-radius: 5px;
    1.70 +		border-bottom-left-radius: 5px;
    1.71 +		border-bottom-right-radius: 5px;
    1.72 +		cursor:pointer;
    1.73 +	}
    1.74 +	 #navigation #logout{
    1.75 +		background-image: url(images/tab_bg.png);
    1.76 +		background-repeat: repeat-x;
    1.77 +		background-position: center top;
    1.78 +		height: 19px;
    1.79 +		float: right;
    1.80 +		padding: 5px 6px 0;
    1.81 +		margin: 1px 5px 5px;
    1.82 +		border-left: solid 1px #CCC;
    1.83 +		border-right: solid 1px #CCC;
    1.84 +		border-bottom: solid 1px #CCC;
    1.85 +		-moz-border-radius: 0 0 5px 5px;
    1.86 +		-webkit-border-bottom-left-radius: 5px;
    1.87 +		-webkit-border-bottom-right-radius: 5px;
    1.88 +		-khtml-border-bottom-left-radius: 5px;
    1.89 +		-khtml-border-bottom-right-radius: 5px;
    1.90 +		border-bottom-left-radius: 5px;
    1.91 +		border-bottom-right-radius: 5px;
    1.92 +		cursor:pointer;
    1.93 +	}
    1.94 +	#navigation a{
    1.95 +		text-decoration:none;
    1.96 +		color:#333;
    1.97 +	}
    1.98 +	#navigation a:hover{
    1.99 +		text-decoration:underline;
   1.100 +		color:#333;
   1.101 +	}
   1.102 +	.xmloutput{
   1.103 +		padding:15px;
   1.104 +		background: #FFF;
   1.105 +		margin:10px 3px;
   1.106 +	}
   1.107 +	#maincontent .textinput{
   1.108 +		width:550px;
   1.109 +		font:16px "Trebuchet MS", Verdana, Arial, sans-serif;
   1.110 +	}
   1.111 +	#maincontent .alrignright{
   1.112 +		float:right;
   1.113 +	}
   1.114 +	.floatleft{
   1.115 +		float:left;
   1.116 +		padding:0 15px;
   1.117 +	}
   1.118 +	.clear{
   1.119 +		clear:both;
   1.120 +	}
   1.121 +	.error{
   1.122 +		color:#990000;
   1.123 +		font-size:16px;
   1.124 +	}
   1.125 +	</style>
   1.126 +	
   1.127 +	<link rel="stylesheet" media="all" type="text/css" href="Css/FileManager.css" />
   1.128 +	<link rel="stylesheet" media="all" type="text/css" href="Css/Additions.css" />
   1.129 +
   1.130 +	<script type="text/javascript" src="js/mootools-core.js"></script>
   1.131 +	<script type="text/javascript" src="js/mootools-more.js"></script>
   1.132 +	
   1.133 +	<script type="text/javascript" src="Source/FileManager.js"></script>
   1.134 +	<script type="text/javascript" src="Source/Language/Language.en.js"></script>
   1.135 +	<script type="text/javascript" src="Source/Language/Language.de.js"></script>
   1.136 +	<script type="text/javascript" src="Source/Additions.js"></script>
   1.137 +	
   1.138 +	<script type="text/javascript" src="Source/Uploader/Fx.ProgressBar.js"></script>
   1.139 +	<script type="text/javascript" src="Source/Uploader/Swiff.Uploader.js"></script>
   1.140 +	
   1.141 +	<script type="text/javascript" src="Source/Uploader.js"></script>
   1.142 +	
   1.143 +	<script type="text/javascript">
   1.144 +		window.addEvent('domready', function(){
   1.145 +			/* Simple Example */
   1.146 +			var manager = new FileManager({
   1.147 +				url: 'manager.php',
   1.148 +				assetBasePath: 'Assets',
   1.149 +				language: 'en',
   1.150 +				uploadAuthData: {session: 'MySessionId'}
   1.151 +			});
   1.152 +			$('manage').addEvent('click', manager.show.bind(manager));
   1.153 +			
   1.154 +			/* XML upload*/
   1.155 +			var manager = new FileManager({
   1.156 +				url: 'managerxml.php',
   1.157 +				assetBasePath: 'Assets',
   1.158 +				language: 'en',
   1.159 +				uploadAuthData: {session: 'MySessionId'}
   1.160 +			});
   1.161 +			$('managexml').addEvent('click', manager.show.bind(manager));
   1.162 +
   1.163 +		});
   1.164 +	</script>
   1.165 +</head>
   1.166 +<body>
   1.167 +	<div id="container">
   1.168 +	<a href="index.php"><div id="header"></div></a>
   1.169 +	<div id="navigation">
   1.170 +		<div id="manage">Upload/Manage Images</div>
   1.171 +		<div id="managexml">Upload/Edit XML</div>
   1.172 +		<a href="outputxml.php"><div id="outputxml">Output XML</div></a>
   1.173 +        <a href="../"><div id="seegallery">See Gallery</div></a>
   1.174 +		<a href="?logout=1"><div id="logout">Log Out</div></a>
   1.175 +	</div>
   1.176 +	<div id="maincontent">
   1.177 +		<a href="xml/e2galleryproXMLsample.xml" class="alrignright">Download XML Sample File</a>
   1.178 +		<h2>Output XML for Image Gallery</h2>
   1.179 +		Create the xml for the image inside which folder?  Set the folder to look at to create the XML automagically. 
   1.180 +        <br />
   1.181 +		<br />
   1.182 +		Default file paths are:<br />
   1.183 +		<?php 
   1.184 +			function rp($path) { 
   1.185 +				$out=array(); 
   1.186 +				foreach(explode('/', $path) as $i=>$fold){ 
   1.187 +					if ($fold=='' || $fold=='.') continue; 
   1.188 +					if ($fold=='..' && $i>0 && end($out)!='..') array_pop($out); 
   1.189 +				else $out[]= $fold; 
   1.190 +				} return ($path{0}=='/'?'/':'').join('/', $out); 
   1.191 +			} 
   1.192 +		?>
   1.193 +		<strong>Gallery Path:</strong> Galleries/gallery1/
   1.194 +		<br />
   1.195 +		<strong>Large Path:</strong> Galleries/gallery1/large/ 
   1.196 +		<br />
   1.197 + 		<strong>Thumbnail Path:</strong> Galleries/gallery1/thumbs/
   1.198 +		<br /><br />
   1.199 +		<?php
   1.200 +			
   1.201 +			function getImages($path, $thumbPath) {
   1.202 +			 
   1.203 +			   $files = array();
   1.204 +			   $fileNames = array();
   1.205 +			   $i = 0;
   1.206 +			   $errorMessage='';
   1.207 +			   if (is_dir($path)) {
   1.208 +				   if ($dh = opendir($path)) {
   1.209 +					   while (($file = readdir($dh)) !== false) {
   1.210 +						   if ($file == "." || $file == ".." || $file == ".DS_Store") continue;
   1.211 +						   $fullpath = $path . "/" . $file;
   1.212 +						   $fkey = strtolower($file);
   1.213 +						   while (array_key_exists($fkey,$fileNames)) $fkey .= " ";
   1.214 +						   $a = stat($fullpath);
   1.215 +						   $files[$fkey]['size'] = $a['size'];
   1.216 +						   if ($a['size'] == 0) $files[$fkey]['sizetext'] = "-";
   1.217 +						   else if ($a['size'] > 1024) $files[$fkey]['sizetext'] = (ceil($a['size']/1024*100)/100) . " K";
   1.218 +						   else if ($a['size'] > 1024*1024) $files[$fkey]['sizetext'] = (ceil($a['size']/(1024*1024)*100)/100) . " Mb";
   1.219 +						   else $files[$fkey]['sizetext'] = $a['size'] . " bytes";
   1.220 +						   $files[$fkey]['name'] = $file;
   1.221 +						   $files[$fkey]['type'] = filetype($fullpath);
   1.222 +						   $fileNames[$i++] = $fkey;
   1.223 +					   }
   1.224 +					   closedir($dh);
   1.225 +				   } else {$errorMessage= true; echo "<strong class='error'>Cannot open directory:  $path | Fill out a valid Gallery Path</strong>";}
   1.226 +			   } else {$errorMessage= true; echo "<strong class='error'>Path is not a directory:  $path | Fill out a valid Gallery Path</strong>";}
   1.227 +			   sort($fileNames,SORT_STRING);
   1.228 +			   $sortedFiles = array();
   1.229 +			   $i = 0;
   1.230 +			   $photos = array();
   1.231 +			   $relativePath = rp( dirname($_SERVER['PHP_SELF']) );
   1.232 +			   if($errorMessage != true){
   1.233 +			   foreach($fileNames as $f) $sortedFiles[$i++] = $files[$f];
   1.234 +			   
   1.235 +			
   1.236 +				echo'Copy the below XML and create your XML file and upload it via the Upload XML button above:';
   1.237 +				echo'<a href="outputxml.php" class="alrignright">Reset Output</a><div class="clear"></div>';
   1.238 +				echo '<div class="xmloutput">';
   1.239 +				echo'&lt;gallery&gt;<br />';
   1.240 +				echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;'.$_GET['gallerytitle'].'&lt;/title&gt;<br />';
   1.241 +				echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;description&gt;'.$_GET['galleryDescription'].'&lt;/description&gt;<br />';
   1.242 +				echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;gallerypath&gt;'.$relativePath.'/'.$_GET['gallerypath'].'&lt;/gallerypath&gt; <br />';
   1.243 +				echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;largeimgpath&gt;'.$relativePath.'/'.$_GET['largepath'].'&lt;/largeimgpath&gt;<br />';
   1.244 +				echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;thumbpath&gt;'.$relativePath.'/'.$_GET['thumbpath'].'&lt;/thumbpath&gt;<br />';
   1.245 +				echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;mainthumb&gt;'.$relativePath.'/'.$_GET['gallerypath'].'&lt;/mainthumb&gt;<br />';
   1.246 +				echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;mainthumbsrc&gt;mainthumb.jpg&lt;/mainthumbsrc&gt;<br />';
   1.247 +			   $j = 0;
   1.248 +			   
   1.249 +				   foreach ($sortedFiles as $file) {
   1.250 +			   
   1.251 +						if($file['type']!='dir'&& $file['name']!='mainthumb.jpg'){
   1.252 +						// get image sizes 
   1.253 +						list($width, $height, $type, $attr) = getimagesize($path."/".$file['name'], $info);
   1.254 +						$size = $file['sizetext'];
   1.255 +						if(isset($info['APP13'])){
   1.256 +							$iptc = iptcparse($info['APP13']);
   1.257 +							$title = $iptc['2#005'][0];
   1.258 +							if(isset($iptc['2#120'][0])){
   1.259 +								$description = $iptc['2#120'][0];
   1.260 +								$description = str_replace("\r", "<br/>", $description);
   1.261 +								$description = addslashes($description);
   1.262 +							}
   1.263 +							if(isset($iptc['2#025'][0])){
   1.264 +								$keywords = $iptc['2#025'][0];
   1.265 +							}
   1.266 +							$author = $iptc['2#080'][0];
   1.267 +							$copyright = $iptc['2#116'][0];
   1.268 +							
   1.269 +						}else if(isset($info['APP0']) && !isset($info['APP13'])){
   1.270 +							$iptc = iptcparse($info['APP0']);
   1.271 +							$title = $iptc['2#005'][0];
   1.272 +							$description = $iptc['2#120'][0];
   1.273 +							$description = str_replace("\r", "<br/>", $description);
   1.274 +							$description = addslashes($description);
   1.275 +							$keywords = $iptc['2#025'][0];
   1.276 +							$author = $iptc['2#080'][0];
   1.277 +							$copyright = $iptc['2#116'][0];						
   1.278 +						}else{
   1.279 +							$title = '';
   1.280 +							$description = '';
   1.281 +							$description = '';
   1.282 +							$keywords = '';
   1.283 +							$author = '';
   1.284 +							$copyright = '';
   1.285 +						}
   1.286 +						
   1.287 +							
   1.288 +							array_push($photos, $width);
   1.289 +							array_push($photos, $height);
   1.290 +							
   1.291 +							//echo'<image Thumb="galleries/'.$thumbePath.'/thumbs/'.$file[name].'"  Large="galleries/'.$path."/".$file[name].'"  Caption="'.$title.'" Colour="000000">';
   1.292 +							//'<copy><![CDATA['.$title.']]></copy>';
   1.293 +							//echo'</image>';
   1.294 +							
   1.295 +							echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;item type="image"&gt;<br />';
   1.296 +							echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;title&gt;'.$title.'&lt;/title&gt;<br />';
   1.297 +							echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;author&gt;'.$author.'&lt;/author&gt;<br />';
   1.298 +							echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;copyright&gt;'.$copyright.'&lt;/copyright&gt;<br />';
   1.299 +							echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;description&gt;'.$description.'&lt;/description&gt;<br />';
   1.300 +							echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;src&gt;'.$file['name'].'&lt;/src&gt;<br />';
   1.301 +							echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;demensions width="'.$width.'" height="'.$height.'" /&gt;<br />';
   1.302 +							if(isset($_GET['largepath'])){
   1.303 +								$largePath = $_GET['largepath'];
   1.304 +								if(is_file($largePath."/".$file['name'])){
   1.305 +									list($largeWidth, $largeHeight, $largeType, $largeAttr) = getimagesize($largePath."/".$file['name'], $info);
   1.306 +									echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;large width="'.$largeWidth.'" height="'.$largeHeight.'" /&gt;<br />';
   1.307 +								}
   1.308 +							}
   1.309 +							if(isset($_GET['showforsale'])){
   1.310 +							$showforsale = $_GET['showforsale'];
   1.311 +							if($showforsale=='true'){
   1.312 +									if($_GET['currency']=="USD"){$currencySymbol='$';}else if($_GET['currency']=="EURO"){$currencySymbol='&euro;';}
   1.313 +								echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;sellprint type="'.$_GET['checkouttype'].'" currency="'.$_GET['currency'].'" currencysymbol="'.$currencySymbol.'"&gt;<br />';
   1.314 +								echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;price size="8x10"&gt;15&lt;/price&gt;<br />';
   1.315 +								echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;price size="11x14"&gt;25&lt;/price&gt;<br />';
   1.316 +								echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;price size="16x20"&gt;55&lt;/price&gt;<br />';
   1.317 +								echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;price size="20x24"&gt;65&lt;/price&gt;<br />';
   1.318 +								echo'&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/sellprint&gt;<br />';
   1.319 +								}
   1.320 +								echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;/item&gt;<br />';
   1.321 +								
   1.322 +								$j++;
   1.323 +							}
   1.324 +						}
   1.325 +					
   1.326 +					}
   1.327 +					echo'&nbsp;&nbsp;&nbsp;&nbsp;&lt;totalitems&gt;'.$j.'&lt;/totalitems&gt;<br />';
   1.328 +					echo'&lt;/gallery&gt;<br />';
   1.329 +					echo'</div>';
   1.330 +				}
   1.331 +			}
   1.332 +			if(isset($_GET['gallerypath'])&&isset($_GET['thumbpath'])){
   1.333 +				getImages($_GET['gallerypath'], $_GET['thumbpath'] );
   1.334 +			?>
   1.335 +            <a href="outputxml.php" class="alrignright">Reset Output</a><div class="clear"></div>
   1.336 +			<h2>Create New Gallery XML:</h2><br />
   1.337 +			<br />
   1.338 +			 <form name="form1" method="get" action="<?php echo $_SERVER['PHP_SELF'] ;?>"> 
   1.339 +				<label id="gallerytitle"><strong>Gallery Title</strong></label>
   1.340 +				<br />
   1.341 +				<input type="text" class="textinput" name="gallerytitle" value="" />
   1.342 +				<br /><br />
   1.343 +				<label id="galleryDescription"><strong>Gallery Description</strong> <small>(No Special Characters)</small></label>
   1.344 +				<br />
   1.345 +				<textarea name="galleryDescription" rows="4" class="textinput"></textarea>
   1.346 +				<br /><br />
   1.347 +				<label id="gallerypath"><strong>Gallery Path</strong></label>
   1.348 +				<br />
   1.349 +				<input type="text" class="textinput" name="gallerypath" value="Galleries/gallery1/" />
   1.350 +				<br /><br />
   1.351 +				<label id="thumbpath"><strong>Thumbnail Path</strong></label>
   1.352 +				<br />
   1.353 +				<input type="text" class="textinput" name="thumbpath" value="Galleries/gallery1/thumbs/" />
   1.354 +				<br /> <br />
   1.355 +                <label id="largepath"><strong>Large Path</strong></label>
   1.356 +				<br />
   1.357 +				<input type="text" class="textinput" name="largepath" value="Galleries/gallery1/large/" /> <br />
   1.358 +				<small>(Fill out path even if you uploaded no large images it will detect that they're not there. unless there is no large folder)</small>
   1.359 +				<br /> <br />
   1.360 +				<div class="floatleft"><h3>Sell Prints?</h3>
   1.361 +				<input type="radio" name="showforsale" id="true" value="true" align="absmiddle" /><label for="true">Yes</label> <input type="radio" id="false" name="showforsale" value="false" align="absmiddle" /><label for="false">No</label>
   1.362 +                <br /> <br /></div>
   1.363 +                <div class="floatleft"><h3>Checkout Type</h3>
   1.364 +                 <input type="radio" value="google" name="checkouttype" id="google" align="absmiddle" /><label for="google">Google Checkout</label>  <input type="radio" id="paypal" value="paypal" name="checkouttype" align="absmiddle" /><label for="paypal">Paypal</label>
   1.365 +				<br /> <br /></div>
   1.366 +				
   1.367 +                <div class="floatleft"><h3>Currency:</h3>
   1.368 +				<input type="radio" value="USD" name="currency" id="USD" align="absmiddle" /><label for="USD">USD</label>  <input type="radio" id="EURO" value="EURO" name="currency" align="absmiddle" /><label for="EURO">EURO</label>
   1.369 +				<br /> <br /></div>
   1.370 +				<div class="clear"></div>
   1.371 +				<input type="submit" name="submit" value="Output XML"> 
   1.372 +			</form>		
   1.373 +			<br />
   1.374 +			<?php
   1.375 +			}else{
   1.376 +			?>
   1.377 +            <form name="form1" method="get" action="<?php echo $_SERVER['PHP_SELF'] ;?>"> 
   1.378 +				<label id="gallerytitle"><strong>Gallery Title</strong></label>
   1.379 +				<br />
   1.380 +				<input type="text" class="textinput" name="gallerytitle" value="" />
   1.381 +				<br /><br />
   1.382 +				<label id="galleryDescription"><strong>Gallery Description</strong> <small>(No Special Characters)</small></label>
   1.383 +				<br />
   1.384 +				<textarea name="galleryDescription" rows="4" class="textinput"></textarea>
   1.385 +				<br /><br />
   1.386 +				<label id="gallerypath"><strong>Gallery Path</strong></label>
   1.387 +				<br />
   1.388 +				<input type="text" class="textinput" name="gallerypath" value="Galleries/gallery1/" />
   1.389 +				<br /><br />
   1.390 +				<label id="thumbpath"><strong>Thumbnail Path</strong></label>
   1.391 +				<br />
   1.392 +				<input type="text" class="textinput" name="thumbpath" value="Galleries/gallery1/thumbs/" />
   1.393 +				<br /> <br />
   1.394 +                <label id="largepath"><strong>Large Path</strong></label>
   1.395 +				<br />
   1.396 +				<input type="text" class="textinput" name="largepath" value="Galleries/gallery1/large/" /> <br />
   1.397 +				<small>(Fill out path even if you uploaded no large images it will detect that they're not there. unless there is no large folder)</small>
   1.398 +				<br /> <br />
   1.399 +				<div class="floatleft"><h3>Sell Prints?</h3>
   1.400 +				<input type="radio" name="showforsale" id="true" value="true" align="absmiddle" /><label for="true">Yes</label> <input type="radio" id="false" name="showforsale" value="false" align="absmiddle" /><label for="false">No</label>
   1.401 +                <br /> <br /></div>
   1.402 +                <div class="floatleft"><h3>Checkout Type</h3>
   1.403 +                 <input type="radio" value="google" name="checkouttype" id="google" align="absmiddle" /><label for="google">Google Checkout</label>  <input type="radio" id="paypal" value="paypal" name="checkouttype" align="absmiddle" /><label for="paypal">Paypal</label>
   1.404 +				<br /> <br /></div>
   1.405 +				
   1.406 +                <div class="floatleft"><h3>Currency:</h3>
   1.407 +				<input type="radio" value="USD" name="currency" id="USD" align="absmiddle" /><label for="USD">USD</label>  <input type="radio" id="EURO" value="EURO" name="currency" align="absmiddle" /><label for="EURO">EURO</label>
   1.408 +				<br /> <br /></div>
   1.409 +				<div class="clear"></div>
   1.410 +				<input type="submit" name="submit" value="Output XML"> 
   1.411 +			</form>		
   1.412 +			<?php
   1.413 +			}
   1.414 +			?>
   1.415 +			
   1.416 +			
   1.417 +			
   1.418 +
   1.419 +		<div class="dsep"></div>
   1.420 +	</div>
   1.421 +</div>
   1.422 +</body>
   1.423 +</html>
   1.424 \ No newline at end of file