Index: trunk/CHANGELOG
===================================================================
--- trunk/CHANGELOG	(revision 1040)
+++ trunk/CHANGELOG	(revision 1041)
@@ -12,6 +12,8 @@
 
 ------------------------------------- 2.8.0 -------------------------------------
 07-July-2009 Matthias Gallas
+#	Fixed some minor bugs in argos_theme (Thanks to Argos)
+#	Fixed bugs in admin additons for argos_theme (Thanks to Argos)
 !	Updated Version Number in upgrade_script to 2.8RC1
 !	Updated FCKEditor Modul Version Number to 2.89
 +	added in FCKEditor Advisory Relation to Links (thanks to Luisehahne)
Index: trunk/wb/admin/media/browse.php
===================================================================
--- trunk/wb/admin/media/browse.php	(revision 1040)
+++ trunk/wb/admin/media/browse.php	(revision 1041)
@@ -30,10 +30,11 @@
 
 // Include the WB functions file
 require_once(WB_PATH.'/framework/functions.php');
+include ('parameters.php');
 
 // Byte convert for filesize
 function byte_convert($bytes) {
-	$symbol = array('B', 'KB', 'MB', 'GB', 'TB');
+	$symbol = array(' bytes', ' KB', ' MB', ' GB', ' TB');
 	$exp = 0;
 	$converted_value = 0;
 	if( $bytes > 0 ) {
@@ -90,6 +91,10 @@
 	exit(0);
 }
 
+if ($_SESSION['GROUP_ID'] != 1 && $pathsettings['global']['admin_only']) { // Only show admin the settings link
+	$template->set_var('DISPLAY_SETTINGS', 'hide');
+}
+
 // Workout the parent dir link
 $parent_dir_link = ADMIN_URL.'/media/browse.php?dir='.$directory.'&up=1';
 // Workout if the up arrow should be shown
@@ -142,6 +147,7 @@
 											'LINK' => "browse.php?dir=$directory/$link_name",
 											'LINK_TARGET' => '',
 											'ROW_BG_COLOR' => $row_bg_color,
+											'FT_ICON' => THEME_URL.'/images/folder_16.png',
 											'FILETYPE_ICON' => THEME_URL.'/images/folder_16.png',
 											'MOUSEOVER' => '',
 											'IMAGEDETAIL' => '',
@@ -179,13 +185,14 @@
 			$imgdetail = '';
 			$icon = THEME_URL.'/images/blank.gif';
 			$tooltip = '';
-			$pathsettings['global']['show_thumbs'] = '';
+			
+			
 			if (!$pathsettings['global']['show_thumbs']) {
 				$info = getimagesize(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$name);
 				if ($info[0]) {
-					$imgdetail = fsize(filesize(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$name)).', '.$info[0].'x'.$info[1].'px';
+					$imgdetail = fsize(filesize(WB_PATH.MEDIA_DIRECTORY.$directory.'/'.$name)).'<br /> '.$info[0].' x '.$info[1].' px';
 					$icon = 'thumb.php?t=1&img='.$directory.'/'.$name;
-					$tooltip = ShowTip('thumb.php?t=2&img='.$directory.'/'.$name,$imgdetail);
+					$tooltip = ShowTip('thumb.php?t=2&img='.$directory.'/'.$name);
 				}
 			}
 			$template->set_var(array(
@@ -195,7 +202,7 @@
 											'LINK' => WB_URL.MEDIA_DIRECTORY.$directory.'/'.$name,
 											'LINK_TARGET' => '_blank',
 											'ROW_BG_COLOR' => $row_bg_color,
-											'ICON' => $icon,
+											'FT_ICON' => $icon,
 											'FILETYPE_ICON' => THEME_URL.'/images/files/'.$filetypeicon.'.png',
 											'MOUSEOVER' => $tooltip, 
 											'IMAGEDETAIL' => $imgdetail,
@@ -255,7 +262,7 @@
 function ShowTip($name,$detail='') {
 $ext = strtolower(end(explode(".", $name)));
 if (strpos('.gif.jpg.jpeg.png.bmp.',$ext) )
-	return 'onmouseover="overlib(\'<img src=\\\''.$name.'\\\' width=\\\'200\\\'><br/><center>'.$detail.'</center>\',VAUTO, WIDTH, 200)" onmouseout="nd()" ' ;
+	return 'onmouseover="overlib(\'<img src=\\\''.$name.'\\\' maxwidth=\\\'200\\\' maxheight=\\\'200\\\'>\',VAUTO, WIDTH)" onmouseout="nd()" ' ;
 else
 	return '';
 }
@@ -262,7 +269,7 @@
 
 function fsize($size) {
    if($size == 0) return("0 Bytes");
-   $filesizename = array(" Bytes", "kB", "MB", "GB", "TB");
+   $filesizename = array(" bytes", " kB", " MB", " GB", " TB");
    return round($size/pow(1024, ($i = floor(log($size, 1024)))), 1) . $filesizename[$i];
 }
 ?>
\ No newline at end of file
Index: trunk/wb/admin/media/upload.php
===================================================================
--- trunk/wb/admin/media/upload.php	(revision 1040)
+++ trunk/wb/admin/media/upload.php	(revision 1041)
@@ -33,6 +33,9 @@
 
 // Print admin header
 require('../../config.php');
+include_once('resize_img.php');
+include_once('parameters.php');
+
 require_once(WB_PATH.'/framework/class.admin.php');
 require_once(WB_PATH.'/include/pclzip/pclzip.lib.php');	// Required to unzip file.
 $admin = new admin('Media', 'media_upload');
@@ -47,6 +50,7 @@
 
 // Create relative path of the target location for the file
 $relative = WB_PATH.$target.'/';
+$resizepath = str_replace('/','_',$target);
 
 // Find out whether we should replace files or give an error
 if($admin->get_post('overwrite') != '') {
@@ -95,6 +99,15 @@
 					change_mode($relative.$filename);
 				}
 			}
+			
+			if(file_exists($relative.$filename)) {
+				if ($pathsettings[$resizepath]['width'] || $pathsettings[$resizepath]['height'] ) {
+					$rimg=new RESIZEIMAGE($relative.$filename);
+					$rimg->resize_limitwh($pathsettings[$resizepath]['width'],$pathsettings[$resizepath]['height'],$relative.$filename);
+					$rimg->close();
+				}
+			}
+				
 			// store file name of first file for possible unzip action
 			if ($count == 1) {
 				$filename1 = $relative . $filename;
Index: trunk/wb/admin/media/overlib.js
===================================================================
--- trunk/wb/admin/media/overlib.js	(revision 1040)
+++ trunk/wb/admin/media/overlib.js	(revision 1041)
@@ -36,10 +36,10 @@
 // Settings you want everywhere are set here. All of this can also be
 // changed on your html page or through an overLIB call.
 ////////
-if (typeof ol_fgcolor=='undefined') var ol_fgcolor="#CCCCFF";
-if (typeof ol_bgcolor=='undefined') var ol_bgcolor="#333399";
+if (typeof ol_fgcolor=='undefined') var ol_fgcolor="#ffffff";
+if (typeof ol_bgcolor=='undefined') var ol_bgcolor="#cccccc";
 if (typeof ol_textcolor=='undefined') var ol_textcolor="#000000";
-if (typeof ol_capcolor=='undefined') var ol_capcolor="#FFFFFF";
+if (typeof ol_capcolor=='undefined') var ol_capcolor="#000000";
 if (typeof ol_closecolor=='undefined') var ol_closecolor="#9999FF";
 if (typeof ol_textfont=='undefined') var ol_textfont="Verdana,Arial,Helvetica";
 if (typeof ol_captionfont=='undefined') var ol_captionfont="Verdana,Arial,Helvetica";
@@ -49,10 +49,10 @@
 if (typeof ol_closesize=='undefined') var ol_closesize="1";
 if (typeof ol_width=='undefined') var ol_width="200";
 if (typeof ol_border=='undefined') var ol_border="1";
-if (typeof ol_cellpad=='undefined') var ol_cellpad=2;
+if (typeof ol_cellpad=='undefined') var ol_cellpad=7;
 if (typeof ol_offsetx=='undefined') var ol_offsetx=10;
 if (typeof ol_offsety=='undefined') var ol_offsety=10;
-if (typeof ol_text=='undefined') var ol_text="Default Text";
+if (typeof ol_text=='undefined') var ol_text="";
 if (typeof ol_cap=='undefined') var ol_cap="";
 if (typeof ol_sticky=='undefined') var ol_sticky=0;
 if (typeof ol_background=='undefined') var ol_background="";
Index: trunk/wb/templates/argos_theme/info.php
===================================================================
--- trunk/wb/templates/argos_theme/info.php	(revision 1040)
+++ trunk/wb/templates/argos_theme/info.php	(revision 1041)
@@ -12,7 +12,7 @@
  * @author     Jurgen Nijhuis (Argos Media) & Ruud Eisinga
  * @copyright  GNU General Public License
  * @license    http://www.gnu.org/licenses/gpl.html
- * @version    2.80
+ * @version    1.1
  * @platform   Website Baker 2.8
  *
  * Website Baker is free software; you can redistribute it and/or modify
@@ -30,7 +30,7 @@
 $template_directory			= 'argos_theme';
 $template_name				= 'argos_theme';
 $template_function			= 'theme';
-$template_version			= '2.80';
+$template_version			= '1.1';
 $template_platform			= '2.8';
 $template_author			= 'Jurgen Nijhuis (Argos Media) & Ruud Eisinga';
 $template_license			= '<a href="http://www.gnu.org/licenses/gpl.html">GNU General Public License</a>';
Index: trunk/wb/templates/argos_theme/images/flags/index.php
===================================================================
--- trunk/wb/templates/argos_theme/images/flags/index.php	(revision 1040)
+++ trunk/wb/templates/argos_theme/images/flags/index.php	(revision 1041)
@@ -12,7 +12,7 @@
  * @author     Jurgen Nijhuis (Argos Media) & Ruud Eisinga
  * @copyright  GNU General Public License
  * @license    http://www.gnu.org/licenses/gpl.html
- * @version    2.80
+ * @version    1.1
  * @platform   Website Baker 2.8
  *
  * Website Baker is free software; you can redistribute it and/or modify
Index: trunk/wb/templates/argos_theme/images/index.php
===================================================================
--- trunk/wb/templates/argos_theme/images/index.php	(revision 1040)
+++ trunk/wb/templates/argos_theme/images/index.php	(revision 1041)
@@ -12,7 +12,7 @@
  * @author     Jurgen Nijhuis (Argos Media) & Ruud Eisinga
  * @copyright  GNU General Public License
  * @license    http://www.gnu.org/licenses/gpl.html
- * @version    2.80
+ * @version    1.1
  * @platform   Website Baker 2.8
  *
  * Website Baker is free software; you can redistribute it and/or modify
Index: trunk/wb/templates/argos_theme/languages/index.php
===================================================================
--- trunk/wb/templates/argos_theme/languages/index.php	(revision 1040)
+++ trunk/wb/templates/argos_theme/languages/index.php	(revision 1041)
@@ -12,7 +12,7 @@
  * @author     Jurgen Nijhuis (Argos Media) & Ruud Eisinga
  * @copyright  GNU General Public License
  * @license    http://www.gnu.org/licenses/gpl.html
- * @version    2.80
+ * @version    1.1
  * @platform   Website Baker 2.8
  *
  * Website Baker is free software; you can redistribute it and/or modify
Index: trunk/wb/templates/argos_theme/theme.css
===================================================================
--- trunk/wb/templates/argos_theme/theme.css	(revision 1040)
+++ trunk/wb/templates/argos_theme/theme.css	(revision 1041)
@@ -81,7 +81,7 @@
 .pages_list .icon_col td img {display:block;border-style:none;float:left;padding-right:7px;}
 .pages_list table {width:900px;}
 .pages_list table td {}
-.pages_list ul {margin:0;font-weight:normal;}
+.pages_list ul {margin:0;font-weight:normal;padding: 0;}
 .pages_list ul li {list-style-type:none;margin:2px 0;}
 
 table.pages_view {width:900px;background-color:#f0f0f0;}
@@ -92,8 +92,8 @@
 .page_list_show li {display:block;}
 img.page_list_rights {border:none;float:left;margin:0;}
 
-.header_list_page_title {width:414px;padding-left: 24px;text-align:left;}
-.header_list_menu_title {width:326px;text-align:left;}
+.header_list_page_title {width:396px;text-align:left;}
+.header_list_menu_title {width:328px;text-align:left;}
 .header_list_actions {text-align:left;}
 
 .list_page_title {width:350px;text-align:left;}
Index: trunk/wb/templates/argos_theme/icons/index.php
===================================================================
--- trunk/wb/templates/argos_theme/icons/index.php	(revision 1040)
+++ trunk/wb/templates/argos_theme/icons/index.php	(revision 1041)
@@ -12,7 +12,7 @@
  * @author     Jurgen Nijhuis (Argos Media) & Ruud Eisinga
  * @copyright  GNU General Public License
  * @license    http://www.gnu.org/licenses/gpl.html
- * @version    2.80
+ * @version    1.1
  * @platform   Website Baker 2.8
  *
  * Website Baker is free software; you can redistribute it and/or modify
Index: trunk/wb/templates/argos_theme/index.php
===================================================================
--- trunk/wb/templates/argos_theme/index.php	(revision 1040)
+++ trunk/wb/templates/argos_theme/index.php	(revision 1041)
@@ -12,7 +12,7 @@
  * @author     Jurgen Nijhuis (Argos Media) & Ruud Eisinga
  * @copyright  GNU General Public License
  * @license    http://www.gnu.org/licenses/gpl.html
- * @version    2.80
+ * @version    1.1
  * @platform   Website Baker 2.8
  *
  * Website Baker is free software; you can redistribute it and/or modify
Index: trunk/wb/templates/argos_theme/templates/header.htt
===================================================================
--- trunk/wb/templates/argos_theme/templates/header.htt	(revision 1040)
+++ trunk/wb/templates/argos_theme/templates/header.htt	(revision 1041)
@@ -21,7 +21,7 @@
 	  <br />
       <br />
       <span class="version">CMS version {VERSION}</span><br/>
-      <span class="version">Admin version 1.0</span>
+      <span class="version">Admin version 1.1</span>
 	 </div>
     <a href="{ADMIN_URL}" title="{TITLE_START}">
     <h1>{WEBSITE_TITLE} - {TEXT_ADMINISTRATION}</h1>
Index: trunk/wb/templates/argos_theme/templates/index.php
===================================================================
--- trunk/wb/templates/argos_theme/templates/index.php	(revision 1040)
+++ trunk/wb/templates/argos_theme/templates/index.php	(revision 1041)
@@ -12,7 +12,7 @@
  * @author     Jurgen Nijhuis (Argos Media) & Ruud Eisinga
  * @copyright  GNU General Public License
  * @license    http://www.gnu.org/licenses/gpl.html
- * @version    2.80
+ * @version    1.1
  * @platform   Website Baker 2.8
  *
  * Website Baker is free software; you can redistribute it and/or modify
Index: trunk/wb/templates/argos_theme/templates/media_browse.htt
===================================================================
--- trunk/wb/templates/argos_theme/templates/media_browse.htt	(revision 1040)
+++ trunk/wb/templates/argos_theme/templates/media_browse.htt	(revision 1041)
@@ -26,7 +26,7 @@
 <tr style="background-color: #{ROW_BG_COLOR};">
 	<td width="18" style="padding-left: 10px;">
 		<a href="{LINK}" target="{LINK_TARGET}">
-			<img {MOUSEOVER} src="{ICON}" class="{DISPLAY_ICON}" border="0" alt="" />
+			<img {MOUSEOVER} src="{FT_ICON}" class="{DISPLAY_ICON}" border="0" alt="" />
 		</a>
 	</td>
 	<td><a {MOUSEOVER} href="{LINK}" target="{LINK_TARGET}">{NAME}</a><br /><small>{IMAGEDETAIL}</small></td>
Index: trunk/wb/templates/argos_theme/templates/media.htt
===================================================================
--- trunk/wb/templates/argos_theme/templates/media.htt	(revision 1040)
+++ trunk/wb/templates/argos_theme/templates/media.htt	(revision 1041)
@@ -1,10 +1,23 @@
-<!-- Adapted by Jurgen Nijhuis / Argos Media - 2009/05/25 -->
-
 <!-- BEGIN main_block -->
-
-<table>
+<script language="javascript" type="text/javascript">
+function toggle() {
+	var check = document.getElementById("file2");
+	if (check.style.visibility == "visible") {
+		for (i=2; i<=10; i++) {
+			document.getElementById("file" + i).style.visibility = "hidden";
+		}
+		document.getElementById("delzip").style.display = "inline";
+	} else {
+		for (i=2; i<=10; i++) {
+			document.getElementById("file" + i).style.visibility = "visible";
+		}
+		document.getElementById("delzip").style.display = "none";
+	}
+}
+</script>
+<table cellpadding="0" cellspacing="0" border="0">
   <tr>
-    <td width="400" valign="top">
+    <td width="300" valign="top" align="left">
 	<h2>{HEADING_UPLOAD_FILES}</h2>
       <form name="upload" action="upload.php" method="post" enctype="multipart/form-data" class="{DISPLAY_UPLOAD}">
         <table cellpadding="3" cellspacing="0" border="0" width="100%">
@@ -24,29 +37,44 @@
         </table>
         <table cellpadding="3" cellspacing="0" border="0" width="100%">
           <tr>
-            <td width="50%" align="left"><input type="file" size="49" name="file1" /> </td>
+		  	<td valign="top">
+				<input type="checkbox" name="unzip" id="unzip"  onClick="toggle();" />
+				<label for="unzip">{TEXT_UNZIP_FILE}</label>
+				<span id="delzip" style="display: none;"><br />
+				<input type="checkbox" name="delzip" id="deletezip" />
+				<label for="deletezip">{TEXT_DELETE_ZIP}</label></span>
+			</td>
           </tr>
           <tr>
-            <td width="50%" align="left"><input type="file" size="49" name="file2" /> </td>
+            <td width="50%" align="left"><input type="file" size="33" name="file1" /> </td>
           </tr>
           <tr>
-            <td width="50%" align="left"><input type="file" size="49" name="file3" /> </td>
+            <td width="50%" align="left"><input type="file" size="33" name="file2" id="file2" style="visibility: visible;" /> </td>
           </tr>
           <tr>
-            <td width="50%" align="left"><input type="file" size="49" name="file4" /> </td>
+            <td width="50%" align="left"><input type="file" size="33" name="file3" id="file3" style="visibility: visible;" /> </td>
           </tr>
           <tr>
-            <td width="50%" align="left"><input type="file" size="49" name="file5" /> </td>
+            <td width="50%" align="left"><input type="file" size="33" name="file4" id="file4" style="visibility: visible;" /> </td>
           </tr>
+          <tr>
+            <td width="50%" align="left"><input type="file" size="33" name="file5" id="file5" style="visibility: visible;" /> </td>
+          </tr>
 		  <tr>
-            <td width="50%" align="left"><input type="file" size="49" name="file6" /> </td>
+            <td width="50%" align="left"><input type="file" size="33" name="file6" id="file6" style="visibility: visible;" /> </td>
           </tr>
           <tr>
-            <td width="50%" align="left"><input type="file" size="49" name="file7" /> </td>
+            <td width="50%" align="left"><input type="file" size="33" name="file7" id="file7" style="visibility: visible;" /> </td>
           </tr>
           <tr>
-            <td width="50%" align="left"><input type="file" size="49" name="file8" /> </td>
+            <td width="50%" align="left"><input type="file" size="33" name="file8" id="file8" style="visibility: visible;" /> </td>
           </tr>
+		  <tr>
+            <td width="50%" align="left"><input type="file" size="33" name="file9" id="file9" style="visibility: visible;" /> </td>
+          </tr>
+          <tr>
+            <td width="50%" align="left"><input type="file" size="33" name="file10" id="file10" style="visibility: visible;" /> </td>
+          </tr>
         </table>
 
         <table cellpadding="3" cellspacing="0" border="0" width="100%">
@@ -63,7 +91,7 @@
 please set the class below to "hide", else to "show".
 <--->
       <div class="show">
-	  	<hr>
+	  <br /><br />
         <form name="create" action="create.php" method="post" class="{DISPLAY_CREATE}">
           <h2>{HEADING_CREATE_FOLDER}</h2>
           <table cellpadding="3" cellspacing="0" border="0" width="100%">
@@ -94,13 +122,14 @@
       </div>
       <!-- END main_block -->
     </td>
-    <td width="480" valign="top" align="right">
-	<h2>{HEADING_BROWSE_MEDIA}</h2>
+	<td width="10">&nbsp;</td>
+    <td width="580" valign="top" align="right">
+	<h2 style="padding-left:3px;">{HEADING_BROWSE_MEDIA}</h2>
 	<span class="{DISPLAY_SETTINGS}" style="margin-bottom:2px;">{OPTIONS}:&nbsp;
 	<a href="setparameter.php" target="browse">{CHANGE_SETTINGS}</a>&nbsp;&nbsp;|&nbsp;
 	<a href="browse.php?dir={CURRENT_DIR}" target="browse">{TEXT_RELOAD}</a>
 	</span>
-	<iframe name="browse" width="100%" height="500" src="browse.php" scrolling="yes" frameborder="0" style="border:1px solid #333;"></iframe>
+	<iframe name="browse" width="99%" height="550" src="browse.php" scrolling="yes" frameborder="0" style="border:1px solid #333;"></iframe>
     </td>
   </tr>
 </table>
