--- /dev/null
+<div align="center">\r
+<table>\r
+<tr><td>Title: </td><td>[[title]]</td></tr>\r
+<tr><td>Caption: </td><td>[[caption]]</td></tr>\r
+</table>\r
+<hr>\r
+[[image]]\r
+</div>
\ No newline at end of file
--- /dev/null
+/****** List View CSS ******/\r
+\r
+#pictures {\r
+ width: 750px;\r
+}\r
+\r
+.picture {\r
+ padding: 5px;\r
+ border-style: solid;\r
+ border-width: thin;\r
+ border-color: #779;\r
+ background-color: white;\r
+\r
+ display:table-cell;display:inline-table;display:inline-block;\r
+}\r
+\r
+.pictureframe {\r
+ padding: 5px;\r
+\r
+ display:table-cell;display:inline-table;display:inline-block;\r
+}\r
+\r
+.picturediv {\r
+ display: inline;\r
+ width: 150px;\r
+ height: 200px;\r
+}\r
+\r
+.inline {\r
+ display: inline;\r
+}\r
+\r
+/***** Single View CSS *****/\r
+\r
+.caption {\r
+ font-style: italic;\r
+}\r
+\r
+#singleimage {\r
+ width: 700px;\r
+}
\ No newline at end of file
--- /dev/null
+var maxHeight = 550;\r
+var maxListHeight = 120;\r
+\r
+function init() {\r
+ if (document.getElementById("singleimage")) single();\r
+ /*else if (document.getElementById("pictures")) list();*/\r
+}\r
+\r
+function list() {\r
+ imageDivs = document.getElementsByName("listimage");\r
+ for (i=0; i < imageDivs.length; i++) {\r
+ currentHeight = imageDivs[i].offsetHeight;\r
+ currentWidth = imageDivs[i].offsetWidth;\r
+ \r
+ if (currentHeight > maxListHeight) {\r
+ ratio = maxListHeight / currentHeight;\r
+ imageDivs[i].style.width = (currentWidth*ratio) + 'px';\r
+ imageDivs[i].style.height = (currentHeight*ratio) + 'px';\r
+ imageDivs[i].firstChild.style.height = '100%';\r
+ imageDivs[i].firstChild.style.width = '100%';\r
+ }\r
+ }\r
+}\r
+\r
+function single() {\r
+ var imageDiv = document.getElementById("singleimage");\r
+\r
+ if (imageDiv) {\r
+ currentHeight = imageDiv.offsetHeight;\r
+ currentWidth = imageDiv.offsetWidth;\r
+ \r
+ if (currentHeight > maxHeight) {\r
+ ratio = maxHeight / currentHeight;\r
+ imageDiv.style.width = (currentWidth*ratio) + 'px';\r
+ imageDiv.style.height = (currentHeight*ratio) + 'px';\r
+ \r
+ }\r
+ }\r
+}\r
+\r
+window.onload = init;
\ No newline at end of file
--- /dev/null
+<div class="picturediv">\r
+<table class="pictureframe"><tr><td>\r
+<table class="picture">\r
+<tr><td><div name="listimage">[[image]]</div></td></tr>\r
+<tr><td align="right">##edit## ##delete## ##approve##</td></tr>\r
+</table>\r
+</td></tr></table>\r
+</div>\r
--- /dev/null
+</div></div>
\ No newline at end of file
--- /dev/null
+<div align="center">\r
+<div align="center" id="pictures">
\ No newline at end of file
--- /dev/null
+<preset>
+
+<settings>
+<intro></intro>
+<comments>0</comments>
+<ratings>0</ratings>
+<participants>3</participants>
+<requiredentries>0</requiredentries>
+<requiredentriestoview>0</requiredentriestoview>
+<maxentries>0</maxentries>
+<rssarticles>0</rssarticles>
+<approval>0</approval>
+<scale>0</scale>
+<assessed>0</assessed>
+<assessedpublic></assessedpublic>
+<defaultsort>0</defaultsort>
+<defaultsortdir>0</defaultsortdir>
+<editany>0</editany>
+</settings>
+
+<field>
+<type>picture</type>
+<name>image</name>
+<param1>100%</param1>
+<param2>100%</param2>
+<param3>2097152</param3>
+<param4>120</param4>
+</field>
+
+<field>
+<type>text</type>
+<name>title</name>
+</field>
+
+<field>
+<type>text</type>
+<name>caption</name>
+</field>
+
+</preset>
\ No newline at end of file
--- /dev/null
+<div align="center"><table><tr><td valign="top" align="right">image:</td><td>[[image]]</td></tr><tr><td valign="top" align="right">title:</td><td>[[title]]</td></tr><tr><td valign="top" align="right">caption:</td><td>[[caption]]</td></tr></table></div>
\ No newline at end of file
--- /dev/null
+<div align="center">\r
+<table id="single">\r
+<tr><td align="center"><h3>[[title]]</h3></td></tr>\r
+<tr><td align="center"><div id="singleimage">[[image]]</div></td></tr>\r
+<tr><td align="center"><span class="caption">[[caption]]</span></td></tr>\r
+<tr><td align="center">##Edit## ##More## ##Delete## ##Approve##</td></tr>\r
+</table>\r
+</div>
\ No newline at end of file
+++ /dev/null
-<?xml version="1.0"?>
-
-<settings>
- <comments>1</comments>
- <ratings>1</ratings>
-</settings>
-
-<field>
- <type>text</type>
- <name>Name</name>
- <description>The name of this image</description>
-</field>
-
-<field>
- <type>textarea</type>
- <name>Description</name>
- <description>Information about your image</description>
-</field>
-
-<field>
- <type>picture</type>
- <name>Image</name>
- <description>Your uploaded image</description>
- <param1></param1>
- <param2></param2>
- <param4>100</param4>
- <param5>100</param5>
-</field>