diff 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
line wrap: on
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/e2gallerypro/e2upload/index.php	Mon Feb 22 08:02:39 2010 -0500
     1.3 @@ -0,0 +1,195 @@
     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 +	</style>
   1.103 +	
   1.104 +	<link rel="stylesheet" media="all" type="text/css" href="Css/FileManager.css" />
   1.105 +	<link rel="stylesheet" media="all" type="text/css" href="Css/Additions.css" />
   1.106 +
   1.107 +	<script type="text/javascript" src="js/mootools-core.js"></script>
   1.108 +	<script type="text/javascript" src="js/mootools-more.js"></script>
   1.109 +	
   1.110 +	<script type="text/javascript" src="Source/FileManager.js"></script>
   1.111 +	<script type="text/javascript" src="Source/Language/Language.en.js"></script>
   1.112 +	<script type="text/javascript" src="Source/Language/Language.de.js"></script>
   1.113 +	<script type="text/javascript" src="Source/Additions.js"></script>
   1.114 +	
   1.115 +	<script type="text/javascript" src="Source/Uploader/Fx.ProgressBar.js"></script>
   1.116 +	<script type="text/javascript" src="Source/Uploader/Swiff.Uploader.js"></script>
   1.117 +	
   1.118 +	<script type="text/javascript" src="Source/Uploader.js"></script>
   1.119 +	
   1.120 +	<script type="text/javascript">
   1.121 +		window.addEvent('domready', function(){
   1.122 +			/* Simple Example */
   1.123 +			var manager = new FileManager({
   1.124 +				url: 'manager.php',
   1.125 +				assetBasePath: 'Assets',
   1.126 +				language: 'en',
   1.127 +				uploadAuthData: {session: 'MySessionId'}
   1.128 +			});
   1.129 +			$('manage').addEvent('click', manager.show.bind(manager));
   1.130 +			
   1.131 +			/* XML upload*/
   1.132 +			var manager = new FileManager({
   1.133 +				url: 'managerxml.php',
   1.134 +				assetBasePath: 'Assets',
   1.135 +				language: 'en',
   1.136 +				uploadAuthData: {session: 'MySessionId'}
   1.137 +			});
   1.138 +			$('managexml').addEvent('click', manager.show.bind(manager));
   1.139 +
   1.140 +		});
   1.141 +	</script>
   1.142 +</head>
   1.143 +<body>
   1.144 +	<div id="container">
   1.145 +	<div id="header"></div>
   1.146 +	<div id="navigation">
   1.147 +		<div id="manage">Upload/Manage Images</div>
   1.148 +		<div id="managexml">Upload/Edit XML</div>
   1.149 +		<a href="outputxml.php"><div id="outputxml">Output XML</div></a>
   1.150 +        <a href="../"><div id="seegallery">See Gallery</div></a>
   1.151 +		<a href="?logout=1"><div id="logout">Log Out</div></a>
   1.152 +	</div>
   1.153 +	<div id="maincontent">
   1.154 +		<h2>Gallery Information</h2>
   1.155 +		<?php
   1.156 +			if($myPHPVersion=="4"){
   1.157 +				require('../php/xmlparse.v4.php');
   1.158 +			}else{
   1.159 +				require('../php/xmlparse.v5.php');
   1.160 +			}
   1.161 +			//Get the XML document loaded into a variable
   1.162 +			$xml = file_get_contents('../'.$e2xmlurl);
   1.163 +			
   1.164 +			//Set up the parser object
   1.165 +			$parser = new XMLParser($xml);
   1.166 +			
   1.167 +			//Work the magic...
   1.168 +			$parser->Parse();
   1.169 +			$i=1;
   1.170 +			$k=0;
   1.171 +			$l=0;
   1.172 +			foreach($parser->document->gallery as $gallery){
   1.173 +				if($i!=1){
   1.174 +					echo'<div class="dsep"></div>';
   1.175 +				}
   1.176 +				foreach($gallery->item as $item){
   1.177 +					$l++;
   1.178 +					$finalnum=$l-1;
   1.179 +				}
   1.180 +				echo 
   1.181 +				"<img src='".$gallery->mainthumb[0]->tagData."".$gallery->mainthumbsrc[0]->tagData."' align='left' />
   1.182 +				  <strong>Gallery ".$i.":</strong> ".$gallery->title[0]->tagData."
   1.183 +				  <br />
   1.184 +				  <strong>Description</strong>
   1.185 +				  <br />
   1.186 +				  ".$gallery->description[0]->tagData."
   1.187 +				";
   1.188 +				$i++;
   1.189 +				foreach($gallery->item as $item){
   1.190 +					$k++;
   1.191 +				}
   1.192 +			}
   1.193 +		?>
   1.194 +		<div class="dsep"></div>
   1.195 +	</div>
   1.196 +</div>
   1.197 +</body>
   1.198 +</html>
   1.199 \ No newline at end of file