Index: /extensions/cuise/admin/admin.inc.php
===================================================================
--- /extensions/cuise/admin/admin.inc.php	(revision 19989)
+++ /extensions/cuise/admin/admin.inc.php	(revision 19990)
@@ -36,5 +36,8 @@
 			   );
 			   
-    
+    $tabsheet->add( 'test',
+                l10n('test'),
+                $my_base_url.'&amp;tab=test'
+			   );
 			   
 	if (!isset($_GET['tab']))
@@ -69,6 +72,6 @@
       $FileCombiner = new  FileCombiner("tpl") ;
       $FileCombiner::clear_combined_files();
-    //  array_push($page['infos'],l10n('parent') . ":" . $_POST['compiled-templates']);
-      array_push($page['infos'], l10n('delete_compiled'));
+       array_push($page['infos'],l10n('parent') . ":" . $_POST['compiled-templates']);
+    //  array_push($page['infos'], l10n('delete_compiled'));
       $parent=$_POST['compiled-templates'];
       $save_options=true ;
@@ -80,35 +83,35 @@
 }
  $id=0;
-
-
+ $name_tpl = array("fondBG","fondBp","Menu_bar","thumbnail","Header" );
+$params = array_merge(unserialize($conf['cuise']));
 if (isset($_POST['default']) || !isset($params['chk_cuise_0'])   ){
  
   $params['parent']=  $parent ;
    $params['theme']=  'cuise' ;
-  $name=array("cbmt.gif","bpv.png","bp3.jpg","bph.png","header.png");
+  $name_img=array("cbmt.gif","bpv.png","bp3.jpg","bph.png","header.png");
   for($id=0;$id<$nb_template;$id++){
-  $params  = array_merge($params,array( 			
-						"bg_cuise_$id"			=> '#FFA800',
-						"bgho_cuise_$id"			=> '#0072FF',
-						"bd_cuise_$id"			=> '#4F4F4F',
-						"co_cuise_$id"		  => '#4F4F4F',
-            "coho_cuise_$id"		  => '#F4F4F4',
-            "img_cuise_$id"    =>   $name[$id],
-            "rayon_cuise_$id"    => '8px',
-            "chk_cuise_$id"      => '',
-            "chk_cuise_x_$id"      => '',
-            "chk_cuise_y_$id"      => '',
+        $params  = array_merge($params,array( 			
+						"bg_cuise_$id"			  => '#d4d4d4',
+						"bgho_cuise_$id"			=> '#A0A0A0',
+						"bd_cuise_$id"			  => '#4F4F4F',
+						"bdho_cuise_$id"			=> '#4F4F4F',
+            "bd_width_cuise_$id"	=> '0px',
+						"co_cuise_$id"		    => '#4F4F4F',
+            "coho_cuise_$id"		  => '#5f5f5f',
+            "img_cuise_$id"       => $name_img[$id],
+            "chk_cuise_x_$id"     => 'checked',
+            "chk_cuise_y_$id"     => '',
+            "rayon_cuise_$id"     => '8px',
+            "chk_cuise_$id"    => ''
            
             ));
             }
             $id=0;
-    array_push($page['warnings'], cl_print_var($params));
+   // array_push($page['warnings'], cl_print_var($params));
        $save_options=true ;
 
 }
-$params = array_merge(unserialize($conf['cuise']));
-
-
 if ($save_options==true) {
+// array_push($page['warnings'],  print_r($_POST,true));
   $i="0";  
   $New_params=array();
@@ -123,9 +126,11 @@
             "bgho_cuise_$i"			=> isset($_POST["bgho_cuise_$i"])?$_POST["bgho_cuise_$i"]:$params["bgho_cuise_$i"], 
 					  "bd_cuise_$i"			=> isset($_POST["bd_cuise_$i"])?$_POST["bd_cuise_$i"]:$params["bd_cuise_$i"], 
+						"bdho_cuise_$id"			=> isset($_POST["bdho_cuise_$i"])?$_POST["bdho_cuise_$i"]:$params["bdho_cuise_$i"], 
+            "bd_width_cuise_$id"	=> isset($_POST["bd_width_cuise_$i"])?$_POST["bd_width_cuise_$i"]:$params["bd_width_cuise_$i"], 
 					  "co_cuise_$i"		 => isset($_POST["co_cuise_$i"])?$_POST["co_cuise_$i"]:$params["co_cuise_$i"], 
 					  "coho_cuise_$i"		 => isset($_POST["coho_cuise_$i"])?$_POST["coho_cuise_$i"]:$params["coho_cuise_$i"], 
             "img_cuise_$i"    =>$img_src, 
             "rayon_cuise_$i"    => isset($_POST["rayon_cuise_$i"])?$_POST["rayon_cuise_$i"]:$params["rayon_cuise_$i"],    
-            "chk_cuise_$i"    => isset($_POST["chk_cuise_$i"])?"checked":"no",  
+            "chk_cuise_$i"      => isset($_POST["chk_cuise_$i"])?"checked":"no",  
             "chk_cuise_x_$i"    => isset($_POST["chk_cuise_x_$i"])?"checked":"no",       
             "chk_cuise_y_$i"    => isset($_POST["chk_cuise_y_$i"])?"checked":"no",      
@@ -141,5 +146,5 @@
   ));
   
-// array_push($page['warnings'],  print_r($params,true));
+//
   conf_update_param('cuise', pwg_db_real_escape_string(serialize($params)));
   array_push($page['infos'], l10n('Your configuration settings are saved'));
@@ -154,5 +159,5 @@
 $params = array_merge(unserialize($conf['cuise']));
 
-$name_tpl = array("fondBG","fondBp","fondHoriz","fondVert","Header" );
+
 
 
@@ -169,27 +174,36 @@
  
   get_list_theme();
-
-
+  $arguments="";
+   foreach ($params as $key => $value) {  
+  $value = str_replace("#", "_", $value);
+  
+  $arguments .=  "$key=$value&";
+  }
+  $arguments .="redraw=ok";
 $template->assign(array(
-             'root' => PHPWG_ROOT_PATH,
-            'theme' => PHPWG_THEME_PATH,
-             "classeRoot" =>  PHPWG_THEMES_PATH.'cuise/admin/classes/' ,
-            'parent'		=> $parent,
+            'THEME_CUISE_ABS'       => realpath(PHPWG_THEMES_PATH.'cuise/admin/'),
+            'root'                  => PHPWG_ROOT_PATH,
+            'theme'                 => PHPWG_THEME_PATH,
+             "classeRoot"           => PHPWG_THEMES_PATH.'cuise/admin/classes/' ,
+            'parent'		            => $parent,
              
-            'nb_template' => $nb_template,
-            'ind'			=> $id,
-            'name_tpl'			=> $name_tpl,
+            'nb_template'           => $nb_template,
+            'ind'			              => $id,
+            'name_tpl'			        => $name_tpl,
 						'selected_bg_cuise'			=> $params['bg_cuise_'.$id],
-            'selected_bgho_cuise'			=> $params['bgho_cuise_'.$id],
+            'selected_bgho_cuise'		=> $params['bgho_cuise_'.$id],
 						'selected_bd_cuise'			=> $params['bd_cuise_'.$id],
-						'selected_co_cuise'		=> $params['co_cuise_'.$id],
+            'selected_bdho_cuise'			=> $params['bdho_cuise_'.$id],
+            'selected_bd_width_cuise'			=> $params['bd_width_cuise_'.$id],
+
+						'selected_co_cuise'		  => $params['co_cuise_'.$id],
             'selected_coho_cuise'		=> $params['coho_cuise_'.$id],
             'selected_img_cuise'		=> $params['img_cuise_'.$id],
-'selected_x_cuise'		=> $params['chk_cuise_x_'.$id],
-'selected_y_cuise'		=> $params['chk_cuise_y_'.$id],
-            'selected_rayon_cuise'		=> $params['rayon_cuise_'.$id],
-
+            'selected_rayon_cuise'	=> $params['rayon_cuise_'.$id],
+
+            'selected_chk_x_cuise'	=> ($params['chk_cuise_x_'.$id]=="checked")?"checked":"",
+            'selected_chk_y_cuise'	=> ($params['chk_cuise_y_'.$id]=="checked")?"checked":"",
             'selected_chk_cuise'		=> ($params['chk_cuise_'.$id]=="checked")?"checked":"",
-            'params'		=> pwg_db_real_escape_string(serialize($params)),
+            'params'		=>   $arguments  
 
 						));
@@ -222,11 +236,11 @@
     }
   $arguments = $conf['cuise'];
-
+  
 $Css =css($theme_css); 
-
+ 
 $message  =$theme_css."<br>";
-//$message .= cl_print_var($Css)."<br>";
+$message .= cl_print_var($Css)."<br>";
 //$message .= cl_print_var($BGIMGcss)."<br>";
-$message .= cl_print_var($BGcolcss)."<br>";
+//$message .= cl_print_var($BGcolcss)."<br>";
 
    array_push($page['infos'], $message);
@@ -244,5 +258,8 @@
   $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
   break ;
-
+  case 'test':
+  $template->set_filenames(array('theme_admin_content' => dirname(__FILE__) . '/cuise_test.tpl'));
+  $template->assign_var_from_handle('ADMIN_CONTENT', 'theme_admin_content');
+  break ;
 }
 
@@ -279,5 +296,5 @@
     $replace = array('}|' ,''      ,''            ,''    ,''    ,''         );
   $string = preg_replace($order, $replace,$string); 
-  echo  ($string)."<br>"; 
+ 
     //  $string = preg_replace('#/\*.*?\*/#s',"",$string); 
        return $string;
@@ -285,8 +302,8 @@
     
  $ret =   file_get_contents ($mycssfile);  
-   echo $ret;
+ //  echo $ret;
 
   $string= remove_comments( $ret);
- echo  ($string);   
+// echo  ($string);   
 
     $newstr = explode('|',$ret);
@@ -305,5 +322,5 @@
 
    if($value){
-echo $value."<br>";
+ 
       $css2=Array();
       $key = explode("{",$value); 
@@ -327,5 +344,5 @@
                 if(preg_match("/url/",$key2[1])){
                    $head = preg_replace("#(.*)url.(.*?)\)(.*)#is", '$2', $key2[1]);   
-                   echo  $head." ".$key2[0]." ".$key_id."<br>";
+                   
                     $BGIMGcss[$head]=array_merge(array(
                     "head" => $head,
@@ -336,5 +353,5 @@
                   }elseif(preg_match("/(color)/",$key2[0])){ 
                       $head = preg_replace("#(.*)color.(.*?);(.*)#is", '$2', $key2[1]);
-                      echo  $head." ".$key2[0]." ".$key_id."<br>";
+                    
                      
                    $BGcolcss[$head]=array_merge(array(
@@ -355,6 +372,5 @@
      }   
 }
-echo cl_print_var($css);
-die();
+ 
              return $css;
         }
Index: /extensions/cuise/admin/classes/process.php
===================================================================
--- /extensions/cuise/admin/classes/process.php	(revision 19989)
+++ /extensions/cuise/admin/classes/process.php	(revision 19990)
@@ -45,5 +45,5 @@
   	    'thumbnail_dir'=>$root_img ,
 		    'thumbnail_url'=>$root_img ,
-		    'thumbnail_dimension'=>array("max_width"=>120,"max_height"=>120)		
+		    'thumbnail_dimension'=>array("max_width"=>940,"max_height"=>200)		
    		
 		);
Index: /extensions/cuise/admin/cuise_admin.tpl
===================================================================
--- /extensions/cuise/admin/cuise_admin.tpl	(revision 19989)
+++ /extensions/cuise/admin/cuise_admin.tpl	(revision 19990)
@@ -5,29 +5,5 @@
   	<script type="text/javascript" src="themes/cuise/admin/js/fileupload.js" ></script> 
     <link rel="stylesheet" href="themes/cuise/admin/theme.css" />
-<style type='text/css'>
-#result{ldelim}  width:auto;height:300px;
-float:right;
-right:0px;
-top:0px;
-overflow:auto;
-}
-.image{ldelim} width:55%;height:300px;
-        border:1px solid yellow;
-        min-height:300px;
-}
-.filemgt{ldelim}
-    z-index:2;
-    border:1px solid blue;
-    width:auto;
-    
-    right:0px;
-    min-height:400px;
-}
-.filemgt table td{ldelim}
-    border:1px solid green
-}
 
-
-</style>
     <script type="text/javascript">
 var process_script='{$classeRoot}process.php';
@@ -36,34 +12,4 @@
 var path_theme_images='{$theme}images/';
 
-jQuery(document).ready(function(){ldelim}
-jQuery('#fileInput').ajaxfileuploader({ldelim} 
-    SCRIPT: process_script,
-    PATH: path,
-    PATH_THEME: path_theme,
-    PATH_IMG:path_theme_images,
-    VALIDFORMAT:['jpeg','jpg','png','gif','bmp'],
-    MAXUPLOAD:9,
-    TABLEHEAD:{ldelim}
-        name:'name',
-        imgname:'image name',
-        operation:'Operation',
-       
-        }})
-});
-
-  jQuery.fn.ajaxfileuploader.defaults = {ldelim}
-    SCRIPT: process_script,
-    PATH: path,
-    PATH_THEME: path_theme,
-    PATH_IMG:path_theme_images,
-    ACTION: '',
-    VALIDFORMAT: ['jpeg', 'jpg', 'png', 'gif', 'bmp'],
-    MAXUPLOAD: 5,
-    TABLEHEAD:  {ldelim} name: 'name',
-      imgname: 'image name',
-      operation: 'Operation'
-     
-    }
-  }
 
 </script>
@@ -75,168 +21,134 @@
 <form action="" method="post">
 
-<fieldset  >
+<fieldset id="field_content" >
 	<legend>{'Color of theme'|@translate}</legend>
 	  <div id="textcolor">
-    <fieldset   ><legend>Select</legend>
-    {foreach from=$name_tpl item=name_1  name=t} 
-    <input type="submit" name="sel_tab" value="{$smarty.foreach.t.index}" ><span>{$name_1}</span> 
-    {/foreach}
+    <fieldset  id="selTab" >
+      <legend>Select</legend>
+      {foreach from=$name_tpl item=name_1  name=t} 
+      <input type="submit" name="sel_tab" value="{$smarty.foreach.t.index}" ><span>{$name_1}</span> 
+      {/foreach}
+    </fieldset>
+    <fieldset class="fld1" >
+        <legend>{$name_tpl.$ind}</legend>
+         <table> <tr >
+         <td >type</td>
+        <td style="width:50px" > </td>
+        <td>color</td>
+        <td>hover</td>
+        </tr>
+
+         <tr><td>{'Rayon'|@translate}:</td>
+          <td class="form-item">
+            <input type="text" id= "rayon_cuise" size=6 name="rayon_cuise_{$ind}" class="color" value="{$selected_rayon_cuise}" />
+          </td>
+	      <td> </td>
+        <td> </td>
+        </tr>
+
+        
+        <tr><td>{'Background'|@translate}:</td>
+        <td><input id= "chk_cuise" name="chk_cuise_{$ind}" type=checkbox  value="chk_cuise" {$selected_chk_cuise} /></td>
+           <td class="form-item">
+            <input type="text" id="bg_cuise" name="bg_cuise_{$ind}" class="colorwell" value="{$selected_bg_cuise}" />
+          </td> 
+    	    <td class="form-item">
+              <input type="text" id="bgho_cuise" name="bgho_cuise_{$ind}" class="colorwell" value="{$selected_bgho_cuise}" />
+          </td>
+          <td></td>
+          </tr>
+
+          <tr> <td>{'Border'|@translate}:</td>
+	        <td class="form-item">
+          <input type="text" id="bd_width" size="6" name="bd_width_cuise_{$ind}" class="text" value="{$selected_bd_width_cuise}" />            
+           </td>
+           <td><input type="text" id="bd_cuise" name="bd_cuise_{$ind}" class="colorwell" value="{$selected_bd_cuise}" />
+          </td>
+          <td class="form-item">
+          <input type="text" id="bdho_cuise" name="bdho_cuise_{$ind}" class="colorwell" value="{$selected_bdho_cuise}" />
+          </td>
+          </tr>
+          
+          <tr><td>{'Text color'|@translate}:</td>
+          <td></td>
+	        <td class="form-item">
+            
+            <input type="text" id="co_cuise" name="co_cuise_{$ind}" class="colorwell" value="{$selected_co_cuise}" />
+          </td>
+          <td class="form-item">
+           
+            <input type="text" id="coho_cuise"  name="coho_cuise_{$ind}" class="colorwell" value="{$selected_coho_cuise}" />
+          </td>
+          </tr>
+          </table>
+
+          <div class="form-item">
+            <label>{'Image'|@translate}:</label>
+              <label id="img_src" >{$theme}images/{$selected_img_cuise} </label> 
+              <p>
+               <label >{'repeat x'|@translate} </label> <input id="chk_cuise_x"  name="chk_cuise_x_{$ind}" type=checkbox value="chk_cuise_x" {$selected_chk_x_cuise} />
+              <label >{'repeat y'|@translate} </label> <input id="chk_cuise_y" name="chk_cuise_y_{$ind}" type=checkbox value="chk_cuise_y" {$selected_chk_y_cuise} />
+                
+        </div>
+	    <input type="submit" name="default" value="{'Default'|@translate}" >
+      
+  </fieldset>
+  <fieldset>
+      <input type="submit" name="compiled-templates" id="compiled-templates" value="{$parent}" >
+      <ul>
+        <li>{strip}{'Parent theme'|@translate}:&nbsp;
+            <select onchange="javascript:jQuery('#compiled-templates').val(this.value).click();">
+              {foreach from=$list_themes item=list_theme} 
+              <option value="{$list_theme.id}"   {if $list_theme.name==$parent }  selected="selected"  {/if } >                   {$list_theme.name} </option><br>
+              {/foreach}
+            </select>
+        {/strip}</li>
+      </ul>
+  </fieldset>
+  	   </div>
+
+ <fieldset id="fldres">
+	  <div id="picker"></div> 
+    <div id="test" class="image" ></div>
+    <div class="fondBG" style="min-height:100px" ><a href="">fondBG</a></div> 
+    <div class="fondBP"><a href="">fondBP</a></div> 
+    <div class="Menu_bar"><a href="">Menu_bar</a></div>
+    <div class="thumbnail"><a href="">thumbnail</a></div> 
+    
+ </fieldset>
+ 
+ 
+ {if $selected_chk_cuise!="checked"}	     <fieldset tyle="width:200px;align:left">
+           <div id="result"  classe="texture" >
+ </div>    
+
+   <input type="text" name="img_cuise_{$ind}" id='fileInputTxt' value="{$selected_img_cuise}" />
+	     <label>Upload</label>:<input type='file' size="60" value="{$theme}images/{$selected_img_cuise}" id='fileInput' >
+</field>
+{/if} 
 
 
-    </fieldset>
-    <fieldset class="fld1" ><legend>{$name_tpl.$ind}</legend>
+{footer_script}
 
-    	  <div class="form-item"><label>
-    {'Rayon'|@translate}:</label>
-    <input type="text" name="rayon_cuise_{$ind}" class="color" value="{$selected_rayon_cuise}" />
-    </div>
-
-	  <div class="form-item"><label>{'Background color'|@translate}:</label>
-    <input type="text" name="bg_cuise_{$ind}" class="colorwell" value="{$selected_bg_cuise}" />
-    </div>
-    	  <div class="form-item"><label>{'Background color hover'|@translate}:</label>
-    <input type="text" name="bgho_cuise_{$ind}" class="colorwell" value="{$selected_bgho_cuise}" />
-    </div>
-
-	  <div class="form-item">
-    <label>{'Border color'|@translate}:</label><input type="text" name="bd_cuise_{$ind}" class="colorwell" value="{$selected_bd_cuise}" />
-    </div>
-	  <div class="form-item">
-    <label>{'Text color'|@translate}:</label>
-    <input type="text" name="co_cuise_{$ind}" class="colorwell" value="{$selected_co_cuise}" />
-    </div>
- <div class="form-item">
-    <label>{'Text color hover'|@translate}:</label>
-    <input type="text" name="coho_cuise_{$ind}" class="colorwell" value="{$selected_coho_cuise}" />
-   </div>
+var process_script='{$classeRoot}process.php';
+var path='{$root}'
+var path_theme='{$theme}';
+var path_theme_images='{$theme}images/';
+var name_tpl = Array(
+ {foreach from=$name_tpl item=name_id name=t} 
+    '{$name_id}',
+    {/foreach}
+     'end'
+);
 
 
-   <div class="form-item">
-    <label>{'Image'|@translate}:</label>
-    
-<p>
-<label >{$theme}images/{$selected_img_cuise} </label> 
-<p>
-<label >{'repeat x'|@translate} </label> <input name="chk_cuise_x_{$ind}" type=checkbox value="chk_cuise_x" {$selected_chk_x_cuise} />
-
-
-<label >{'repeat y'|@translate} </label> <input name="chk_cuise_y_{$ind}" type=checkbox value="chk_cuise_y" {$selected_chk_y_cuise} />
-
- 
-<p>
-<p>
-<label >{'no background'|@translate} </label> <input name="chk_cuise_{$ind}" type=checkbox  value="chk_cuise" {$selected_chk_cuise} />
-   </div>
+{literal}{/literal}{/footer_script}
+</fieldset>  
+<fieldset>  
+<input type="submit" name="submit" id="send" value="{'Submit'|@translate}_{$ind}">
+<a href="themes/cuise/theme.css.php?{$params}" >Sauvegarde</a>
+</fieldset>  
+</form>
 
 
 
-
-    </fieldset>
-	  <p>  <input type="submit" name="default" value="{'Default'|@translate}" >
-  <input type="submit" name="compiled-templates" id="compiled-templates" value="{$parent}" >
-</p>
-<p>
-
-   <ul>
-   <li>{strip}{'Parent theme'|@translate}:&nbsp;
-
-<select onchange="javascript:jQuery('#compiled-templates').val(this.value).click();">
-
-{foreach from=$list_themes item=list_theme} 
-  <option value="{$list_theme.id}"   {if $list_theme.name==$parent }  selected="selected"  {/if } >{$list_theme.name} </option><br>
-{/foreach}
-
-</select>
-{/strip}</li>
-</ul>
-   </p>
-	  </div>
- 
-	  <div id="picker"></div> 
- 
-
-    <style>
-   #thePicturePage{ldelim}
-    background-color:{$selected_bg_cuise};
-    {if $selected_chk_cuise!="checked"}
-    background-image:url({$theme}images/{$selected_img_cuise}) ;
-    {else}
-      background-image:none ;
-{/if}
-      background-repeat: repeat-x;
-      float:right;
-      right:0px;
-      width:450px;
-      height:300px;
-      border:3px solid {$selected_bd_cuise};
-          
-     -moz-border-radius: {$selected_rayon_cuise} ;
-      border-radius: {$selected_rayon_cuise} {$selected_rayon_cuise}; 
-    
-    }  
-    #thePicturePage a:hover{ldelim}
-        color:{$selected_coho_cuise};  
-    }
-
-      #thePicturePage:hover{ldelim}
-          background-color:{$selected_bgho_cuise};
-          background-image:url({$theme}images/hover_{$selected_img_cuise}) ;
-          background-repeat: repeat-x;
-          
-      }
-    #theHeader a{ldelim}
-        color:{$selected_co_cuise};
-    }
-        #menubar a{ldelim}
-        color:{$selected_co_cuise};
-    }
-       .wrap1 , .wrap2 a{ldelim}
-        color:{$selected_co_cuise};
-    }
-    </style>
-
-
-    <div id="thePicturePage" class="image admin" > 
-        <div id="theHeader"   style="padding:100px" >
- <a name='test'  > {$theme}images/{$selected_img_cuise}</a> 
-        </div>
-
-        <div id="#menubar"   >
-         <dt>
-         test 1
-         </dt>
-          <dt>
-         test 2
-         </dt>
- 
-        </div>
-         <div class="wrap1" >
-
-         <div class="wrap2" >
-   
-        </div>
-    
-        </div>
-    </div>
-
- {if $selected_chk_cuise!="checked"}	  
-	   	 <label>Name</label>: 
-         <input type="text" name="img_cuise_{$ind}" id='fileInputTxt' value="{$selected_img_cuise}" />
-	     <label>Upload</label>:<input type='file' size="60" value="{$theme}images/{$selected_img_cuise}" id='fileInput' >
-         <div id="result" style="float:left" >
-       
-     </div>
-      
-
-     
-
-
-{/if}
-
-</fieldset>  
-{footer_script}{literal}
-
-{/literal}{/footer_script}
-<p><input type="submit" name="submit" id="send" value="{'Submit'|@translate}_{$ind}">
-</form>
-<a href="themes/cuise/theme.css.php?{$options}" >Sauvegarde</a>
Index: /extensions/cuise/admin/cuise_test.tpl
===================================================================
--- /extensions/cuise/admin/cuise_test.tpl	(revision 19990)
+++ /extensions/cuise/admin/cuise_test.tpl	(revision 19990)
@@ -0,0 +1,143 @@
+{html_head}
+  <script type="text/javascript" src="themes/cuise/admin/js/admin.js" ></script>
+      <link rel="stylesheet" href="themes/cuise/admin/theme.css" />
+{php}
+global $themeconf,$mytheme ,$fond_color,$conf ;  
+global $arguments;
+$mytheme = 'themes/'.$themeconf['name'].'/';
+$mycss="theme.css.php";
+load_conf_from_db();
+$params = array_merge(unserialize($conf['cuise']));
+ $keys="";
+  foreach($params as $ligne=>$id){ 
+    $id=str_replace("#","_",$id);
+    $keys .= $ligne ."=".$id ."&";    
+  }
+$args='?'.$keys."redraw=admin";
+if(file_exists( $mytheme."theme.css.css")){
+    $mycss="theme.css.css";
+    $args="";
+}
+{/php}
+
+<!-- **LOCAL** >HEADER> {php} echo $params['theme'];{/php} / {php} echo $params['parent']; {/php} -->
+<!-- link rel="stylesheet" type="text/css" href="themes/default/theme.css">
+<link rel="stylesheet" type="text/css" href="themes/default/print.css">
+<link rel="stylesheet" type="text/css" href="themes/{php} echo $params['parent']; {/php}/theme.css">
+<link rel="stylesheet" type="text/css" href="themes/{php} echo $params['theme'];{/php}/theme.css" -->
+<link rel="stylesheet" href="{php} echo  $mytheme.$mycss.$args;  {/php}"  type="text/css" /> 
+<!-- **LOCAL** >HEADER> --> 
+
+{/html_head}	
+
+<fileldset  ><legend>Rendu</legend>
+<span id="infos" > TEST </span>
+
+<fileldset id="admin" ><legend>Rendu</legend>
+<div id="thePicturePage"  > 
+ <div id="thePage" name="thePicturePage">
+    <div id="theHeader"   > <a name='test'  > {$theme}images/{$selected_img_cuise}</a>   </div>
+    <div id="menubar">
+      <dl id="mbCategories" >
+        <dt><a href="" class="pwg-state-default pwg-button menubarFilter"
+          title="n'afficher que les photos publiées récemment" rel="nofollow"><span class="pwg-icon pwg-icon-filter">
+          </span></a><a href="">Albums</a> </dt>
+        <dd>
+          <ul>
+            <li><a href="" title="2 photos dans cet album">Album Set</a>
+              <span class="menuInfoCat" title="2 photos dans cet album">[2]</span> </li>
+            <li><a href="" title="26 photos dans cet album">charlies</a>
+              <span class="menuInfoCat" title="26 photos dans cet album">[26]</span> </li>
+            <li><a href="" title="11 photos dans cet album">famille</a>
+              <span class="menuInfoCat" title="11 photos dans cet album">[11]</span> </li>
+            <li><a href="" title="6 photos dans cet album">haute_definition</a>
+              <span class="menuInfoCat" title="6 photos dans cet album">[6]</span> </li>
+            <li><a href="" title="1 photo dans cet album / 1383 photos dans 18 sous-albums">
+              Voyages</a> <span class="menuInfoCat" title="1 photo dans cet album / 1383 photos dans 18 sous-albums">             [1384]</span> </li>
+          </ul>
+          <p class="totalImages">
+            1854 photos</p>
+        </dd>
+      </dl>
+      <dl id="mbSpecials">
+        <dt>Spéciales</dt>
+        <dd>
+          <ul>
+            <li><a href="" title="afficher mes photos favorites">Mes favorites</a></li>
+            <li><a href="" title="afficher les photos les plus vues">Plus vues</a></li>
+            <li><a href="" title="afficher les photos les mieux notées">Mieux notées</a></li>
+            <li><a href="" title="afficher un ensemble de photos prises au hasard" rel="nofollow">Photos au hasard</a></li>
+            <li><a href="" title="afficher les photos les plus récentes"> Photos récentes</a></li>
+            <li><a href="" title="afficher les albums récemment mis à jour ou créés"> Albums récents</a></li>
+            <li><a href="" title="affichage année par année, mois par mois, jour par jour" rel="nofollow">Calendrier</a></li>
+          </ul>
+        </dd>
+      </dl>
+
+   </div> <!--menubar -->
+
+<div id="content" class="content contentWithMenu">
+<div class="titrePage">
+	<ul class="categoryActions">
+		<li><a href="" title="afficher à plat les photos des albums et des sous-albums" class="pwg-state-default pwg-button" rel="nofollow">
+    <span class="pwg-icon pwg-icon-category-view-flat">&nbsp;</span>
+    <span class="pwg-button-text">afficher à plat les photos des albums et des sous-albums</span></a>
+    </li>
+
+		<li><a href="" title="afficher un calendrier par date d'ajout" class="pwg-state-default pwg-button" rel="nofollow"><span class="pwg-icon pwg-icon-calendar">&nbsp;</span><span class="pwg-button-text">Calendrier</span></a></li>
+
+		<li><a href="" title="afficher un calendrier par date de création" class="pwg-state-default pwg-button" rel="nofollow"><span class="pwg-icon pwg-icon-camera-calendar">&nbsp;</span><span class="pwg-button-text">Calendrier</span></a></li>
+
+<li><a id="icon_gmaps"
+   class="button size28x28"
+   style="display:inline-block;background:url(plugins/GMaps/img/i28x28_1.png);width:28px;height:28px;"
+   title="Localiser la photo sur une carte"
+   href=''
+   onclick='$("#iGMapsIconContent").dialog("open"); return(false);'></a>
+</li>
+  
+   
+	</ul>
+
+<h2><a href="">Accueil</a></h2>
+</div> <!--  titrePage -->
+
+<ul class="thumbnailCategories">
+    <li class="even">
+      <div class="thumbnailCategory">
+        <div class="illustration">
+          <a href="">
+            <img src="themes/cuise/admin/images/20100907133435-b82907c5-th.jpg" alt="Album Set"
+              title="Album Set - montre les photos à la racine de cet album">
+          </a>
+        </div>
+        <div class="description">
+          <h3>
+            <a href="">Album Set</a>
+          </h3>
+          <div class="text">
+            <p class="Nb_images">
+              2 photos</p>
+          </div>
+        </div>
+      </div>
+    </li>
+</ul>
+
+<ul id="thumbnails" class="thumbnails">
+<li><span class="wrap1">
+<span class="wrap2">
+<a href=".">
+<img class="thumbnail" title="Photo  20100815 (14 visites, score 0.00) &#13;&#10;&#9;Bonjour&#13;&#10;TEST 12356 23456para..." alt="Photo  20100815" src="themes/cuise/admin/images/20110331152453-0fc233a9-th.jpg" ></a>
+</span><span class="thumbLegend">
+<span class="thumbName">Photo  20100815</span></span></span>
+</li>
+
+</ul>
+</div> <!--content-->
+  </div> <!-- thePage -->
+</div> <!-- thePicturePage -->
+
+
+</fieldset>
+</fieldset>
Index: /extensions/cuise/admin/cuise_texture.tpl
===================================================================
--- /extensions/cuise/admin/cuise_texture.tpl	(revision 19989)
+++ /extensions/cuise/admin/cuise_texture.tpl	(revision 19990)
@@ -12,5 +12,5 @@
 }
 .image{ldelim} width:55%;height:300px;
-        border:1px solid yellow;
+        border:5px solid grey;
         min-height:300px;
 }
@@ -78,8 +78,8 @@
 	    <fieldset >
         <fieldset >
-        <div id="result" class="texture">
+        <div id="result" class="texture" >
 
         </div>
-        <div id='queuearea' class="image texture">
+        <div id='queuearea' class="image texture" >
         
         </div> 
Index: /extensions/cuise/admin/img.html
===================================================================
--- /extensions/cuise/admin/img.html	(revision 19989)
+++ /extensions/cuise/admin/img.html	(revision 19990)
@@ -101,5 +101,7 @@
   </ul>
 </dd>	</dl>
-</div><div id="menuSwitcher"></div>
+</div>
+
+<div id="menuSwitcher"></div>
 
 <div id="content" class="content contentWithMenu">
@@ -118,25 +120,8 @@
 </li>
 <li><a href="map.php?/categories" title="afficher Accueil sur la carte" rel="nofollow" class="pwg-state-default pwg-button"><span class="pwg-icon pwg-icon-map">&nbsp;</span><span class="pwg-button-text">Carte</span></a></li><li><a id="themeSwitchLink" title="Thème de l'interface" class="pwg-state-default pwg-button" rel="nofollow"><span class="pwg-icon" style="background:url('./plugins/theme_switch/icon.png') center center no-repeat;">&nbsp;</span><span class="pwg-button-text">Thème de l'interface</span></a><div id="themeSwitchBox" class="switchBox"><div class="switchBoxTitle">Thème de l'interface</div><a rel="nofollow" href="index.php?/categories&amp;theme=blancmontxl" title="BlancMont XL"><img src="./themes/blancmontxl/screenshot.png" alt="BlancMont XL" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=cuise" title="Cuise"><img src="./themes/cuise/screenshot.png" alt="Cuise" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=stripped_cuise_bloc" title="Cuise stripped &amp; columns"><img src="./themes/stripped_cuise_bloc/screenshot.png" alt="Cuise stripped &amp; columns" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=dark" title="dark"><img src="./themes/dark/screenshot.png" alt="dark" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=elegant" title="elegant"><img src="./themes/elegant/screenshot.png" alt="elegant" class="theme-thumb"></a><br><a rel="nofollow" href="index.php?/categories&amp;theme=Float" title="Float"><img src="./themes/Float/screenshot.png" alt="Float" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=flop_mauve" title="flop_mauve"><img src="./themes/flop_mauve/screenshot.png" alt="flop_mauve" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=gally-cuise" title="Gally/Cuise"><img src="./themes/gally-cuise/screenshot.png" alt="Gally/Cuise" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=gally-grum-dark-II" title="Gally/Grum dark II"><img src="./themes/gally-grum-dark-II/screenshot.png" alt="Gally/Grum dark II" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=gally-minimalist" title="Gally/Minimalist"><img src="./themes/gally-minimalist/screenshot.png" alt="Gally/Minimalist" class="theme-thumb"></a><br><a rel="nofollow" href="index.php?/categories&amp;theme=hr_glass_xl" title="hr_glass_xl"><img src="./themes/hr_glass_xl/screenshot.png" alt="hr_glass_xl" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=kardon" title="Kardon"><img src="./themes/kardon/screenshot.png" alt="Kardon" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=montblancxl" title="Montblanc XL"><img src="./themes/montblancxl/screenshot.png" alt="Montblanc XL" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=OS_glass_clear" title="OS_glass_clear"><img src="./themes/OS_glass_clear/screenshot.png" alt="OS_glass_clear" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=Pure_freaky" title="Pure_freaky"><img src="./themes/Pure_freaky/screenshot.png" alt="Pure_freaky" class="theme-thumb"></a><br><a rel="nofollow" href="index.php?/categories&amp;theme=simple-black" title="Simple Black"><img src="./themes/simple-black/screenshot.png" alt="Simple Black" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=simple" title="Simple Grey"><img src="./themes/simple/screenshot.png" alt="Simple Grey" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=simple-white" title="Simple White"><img src="./themes/simple-white/screenshot.png" alt="Simple White" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=simpleng" title="SimpleNG"><img src="./themes/simpleng/screenshot.png" alt="SimpleNG" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=Slim" title="Slim"><img src="./themes/Slim/screenshot.png" alt="Slim" class="theme-thumb"></a><br><a rel="nofollow" href="index.php?/categories&amp;theme=stripped" title="stripped"><img src="./themes/stripped/screenshot.png" alt="stripped" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=stripped_black_bloc" title="Stripped &amp; Columns"><img src="./themes/stripped_black_bloc/screenshot.png" alt="Stripped &amp; Columns" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=Sylvia" title="Sylvia"><img src="./themes/Sylvia/screenshot.png" alt="Sylvia" class="theme-thumb"></a><a rel="nofollow" href="index.php?/categories&amp;theme=VerticalWhite" title="VerticalWhite"><img src="./themes/VerticalWhite/screenshot.png" alt="VerticalWhite" class="theme-thumb"></a></div></li>
-
-
-
-
-
-
 <li><a id="languageSwitchLink" title="Langue" class="pwg-state-default pwg-button" rel="nofollow"><span class="pwg-icon" style="background:url('language/fr_FR/fr_FR.jpg') center center no-repeat;">&nbsp;</span><span class="pwg-button-text">Langue</span></a><div id="languageSwitchBox" class="switchBox"><div class="switchBoxTitle">Langue</div><a rel="nofollow" href="index.php?/categories&amp;lang=pt_BR"><img class="flags" src="language/pt_BR/pt_BR.jpg" alt="Brasil [BR]"> Brasil </a><a rel="nofollow" href="index.php?/categories&amp;lang=cs_CZ"><img class="flags" src="language/cs_CZ/cs_CZ.jpg" alt="Česky [CZ]"> Česky </a><a rel="nofollow" href="index.php?/categories&amp;lang=da_DK"><img class="flags" src="language/da_DK/da_DK.jpg" alt="Dansk [DK]"> Dansk </a><br><a rel="nofollow" href="index.php?/categories&amp;lang=de_DE"><img class="flags" src="language/de_DE/de_DE.jpg" alt="Deutsch [DE]"> Deutsch </a><a rel="nofollow" href="index.php?/categories&amp;lang=en_UK"><img class="flags" src="language/en_UK/en_UK.jpg" alt="English [UK]"> English </a><a rel="nofollow" href="index.php?/categories&amp;lang=es_AR"><img class="flags" src="language/es_AR/es_AR.jpg" alt="Español [AR]"> Español </a><br><a rel="nofollow" href="index.php?/categories&amp;lang=fr_FR"><img class="flags" src="language/fr_FR/fr_FR.jpg" alt="Français [FR]"> Français </a><a rel="nofollow" href="index.php?/categories&amp;lang=hr_HR"><img class="flags" src="language/hr_HR/hr_HR.jpg" alt="Hrvatski [HR]"> Hrvatski </a><a rel="nofollow" href="index.php?/categories&amp;lang=it_IT"><img class="flags" src="language/it_IT/it_IT.jpg" alt="Italiano [IT]"> Italiano </a><br><a rel="nofollow" href="index.php?/categories&amp;lang=hu_HU"><img class="flags" src="language/hu_HU/hu_HU.jpg" alt="Magyar [HU]"> Magyar </a><a rel="nofollow" href="index.php?/categories&amp;lang=nl_NL"><img class="flags" src="language/nl_NL/nl_NL.jpg" alt="Nederlands [NL]"> Nederlands </a><a rel="nofollow" href="index.php?/categories&amp;lang=pl_PL"><img class="flags" src="language/pl_PL/pl_PL.jpg" alt="Polski [PL]"> Polski </a><br><a rel="nofollow" href="index.php?/categories&amp;lang=pt_PT"><img class="flags" src="language/pt_PT/pt_PT.jpg" alt="Português [PT]"> Português </a><a rel="nofollow" href="index.php?/categories&amp;lang=ro_RO"><img class="flags" src="language/ro_RO/ro_RO.jpg" alt="Română [RO]"> Română </a><a rel="nofollow" href="index.php?/categories&amp;lang=sr_RS"><img class="flags" src="language/sr_RS/sr_RS.jpg" alt="Srpski [SR]"> Srpski </a><br><a rel="nofollow" href="index.php?/categories&amp;lang=tr_TR"><img class="flags" src="language/tr_TR/tr_TR.jpg" alt="Türkçe [TR]"> Türkçe </a><a rel="nofollow" href="index.php?/categories&amp;lang=vi_VN"><img class="flags" src="language/vi_VN/vi_VN.jpg" alt="Vietnamese [VN]"> Vietnamese </a><a rel="nofollow" href="index.php?/categories&amp;lang=mk_MK"><img class="flags" src="language/mk_MK/mk_MK.jpg" alt="Македонски [MK]"> Македонски </a><br><a rel="nofollow" href="index.php?/categories&amp;lang=ru_RU"><img class="flags" src="language/ru_RU/ru_RU.jpg" alt="Русский [RU]"> Русский </a><a rel="nofollow" href="index.php?/categories&amp;lang=ar_SA"><img class="flags" src="language/ar_SA/ar_SA.jpg" alt="العربية [AR]"> العربية </a><a rel="nofollow" href="index.php?/categories&amp;lang=ja_JP"><img class="flags" src="language/ja_JP/ja_JP.jpg" alt="日本語 [JP]"> 日本語 </a><br><a rel="nofollow" href="index.php?/categories&amp;lang=zh_CN"><img class="flags" src="language/zh_CN/zh_CN.jpg" alt="﻿简体中文 [CN]"> ﻿简体中文 </a></div></li>
-
-
-
-
-
-
 	</ul>
-
 <h2><a href="http://192.168.1.25/cl.josse.free.fr/Galerie">Accueil</a></h2>
-
-
-
 </div>
-
 <ul class="thumbnailCategories">
 	<li class="even">
Index: /extensions/cuise/admin/index.php
===================================================================
--- /extensions/cuise/admin/index.php	(revision 19990)
+++ /extensions/cuise/admin/index.php	(revision 19990)
@@ -0,0 +1,33 @@
+<?php
+// +-----------------------------------------------------------------------+
+// | PhpWebGallery - a PHP based picture gallery                           |
+// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
+// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
+// +-----------------------------------------------------------------------+
+// | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
+// | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
+// | last modifier : $Author: rub $
+// | revision      : $Revision: 1912 $
+// +-----------------------------------------------------------------------+
+// | This program is free software; you can redistribute it and/or modify  |
+// | it under the terms of the GNU General Public License as published by  |
+// | the Free Software Foundation                                          |
+// |                                                                       |
+// | This program is distributed in the hope that it will be useful, but   |
+// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
+// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
+// | General Public License for more details.                              |
+// |                                                                       |
+// | You should have received a copy of the GNU General Public License     |
+// | along with this program; if not, write to the Free Software           |
+// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
+// | USA.                                                                  |
+// +-----------------------------------------------------------------------+
+
+// Recursive call
+$url = '../';
+header( 'Request-URI: '.$url );
+header( 'Content-Location: '.$url );
+header( 'Location: '.$url );
+exit();
+?>
Index: tensions/cuise/admin/index1.php
===================================================================
--- /extensions/cuise/admin/index1.php	(revision 19989)
+++ 	(revision )
@@ -1,33 +1,0 @@
-<?php
-// +-----------------------------------------------------------------------+
-// | PhpWebGallery - a PHP based picture gallery                           |
-// | Copyright (C) 2002-2003 Pierrick LE GALL - pierrick@phpwebgallery.net |
-// | Copyright (C) 2003-2007 PhpWebGallery Team - http://phpwebgallery.net |
-// +-----------------------------------------------------------------------+
-// | file          : $Id: index.php 1912 2007-03-16 06:30:07Z rub $
-// | last update   : $Date: 2007-03-16 07:30:07 +0100 (ven, 16 mar 2007) $
-// | last modifier : $Author: rub $
-// | revision      : $Revision: 1912 $
-// +-----------------------------------------------------------------------+
-// | This program is free software; you can redistribute it and/or modify  |
-// | it under the terms of the GNU General Public License as published by  |
-// | the Free Software Foundation                                          |
-// |                                                                       |
-// | This program is distributed in the hope that it will be useful, but   |
-// | WITHOUT ANY WARRANTY; without even the implied warranty of            |
-// | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU      |
-// | General Public License for more details.                              |
-// |                                                                       |
-// | You should have received a copy of the GNU General Public License     |
-// | along with this program; if not, write to the Free Software           |
-// | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, |
-// | USA.                                                                  |
-// +-----------------------------------------------------------------------+
-
-// Recursive call
-$url = '../';
-header( 'Request-URI: '.$url );
-header( 'Content-Location: '.$url );
-header( 'Location: '.$url );
-exit();
-?>
Index: /extensions/cuise/admin/js/admin.js
===================================================================
--- /extensions/cuise/admin/js/admin.js	(revision 19989)
+++ /extensions/cuise/admin/js/admin.js	(revision 19990)
@@ -1,4 +1,58 @@
 jQuery(document).ready(function () {
   var input = $("input:file").val();
+  var init_width;
+
+  if (jQuery('#fileInput').ajaxfileuploader) {
+    jQuery('#fileInput').ajaxfileuploader({
+      SCRIPT: process_script,
+      PATH: path,
+      PATH_THEME: path_theme,
+      PATH_IMG: path_theme_images,
+      VALIDFORMAT: ['jpeg', 'jpg', 'png', 'gif', 'bmp'],
+      MAXUPLOAD: 9,
+      TABLEHEAD: {
+        name: 'name',
+        imgname: 'image name',
+        operation: 'Operation'
+      }
+    }
+        )
+
+
+    jQuery.fn.ajaxfileuploader.defaults = {
+      SCRIPT: process_script,
+      PATH: path,
+      PATH_THEME: path_theme,
+      PATH_IMG: path_theme_images,
+      ACTION: '',
+      VALIDFORMAT: ['jpeg', 'jpg', 'png', 'gif', 'bmp'],
+      MAXUPLOAD: 5,
+      TABLEHEAD: { name: 'name',
+        imgname: 'image name',
+        operation: 'Operation'
+      }
+    }
+  }
+
+
+  jQuery(window).resize(function (i) {
+    if (jQuery("#picker").lenght > 0) {
+      init_left = jQuery("#picker").offset().left - jQuery("#field_content").offset().left;
+      init_left = jQuery("#picker").width() + init_left;
+      width = jQuery("#field_content").width() - init_left - 60;
+      marge = jQuery("#test").css("border");
+      jQuery("#test").width(width);
+      jQuery("#test").css({
+        float: "right",
+        right: "0px"
+      });
+    }
+  });
+
+
+  jQuery(".image").live('change', function (e) {
+
+    imgname = jQuery(".image").css("background-image");
+  });
 
   //===================================
@@ -16,5 +70,209 @@
 
   });
-
+  var text_id = "";
+  jQuery("*").mouseover(function (i) {
+    return;
+
+    id = jQuery(i.currentTarget).attr("id");
+    name = jQuery(i.currentTarget).attr("name");
+    var yourClass = i.currentTarget.className;
+    if (yourClass == "select") return;
+
+    current = jQuery(i.currentTarget);
+    jQuery("#infos").text(id);
+    if (text_id != "") {
+      jQuery(i.currentTarget).css("border", "solid 0px red");
+      jQuery("#infos").text(text_id);
+      text_id = "";
+    }
+
+    return;
+  });
+  jQuery("*").mouseout(function (i) {
+    return;
+    id = jQuery(i.currentTarget).attr("id");
+    name = jQuery(i.currentTarget).attr("name");
+    var yourClass = i.currentTarget.className;
+    if (yourClass == "select")
+      jQuery(i.currentTarget).css("border", "solid 0px red");
+
+    return;
+  });
+  jQuery(window).load(function (i) {
+    jQuery(window).resize();
+    options = Get_Options();
+
+
+
+    jQuery(".image").css(options.direct);
+    jQuery(".image a").css("color", options.direct.color);
+    jQuery(".image a:hover").css("color", options.Hover.color);
+    jQuery(".image:hover border-color").css("color", options.Hover.color);
+
+    jQuery("#selTab input").click(function (i) {
+      return;
+
+      id = jQuery(i.currentTarget).attr("id");
+      name = jQuery(i.currentTarget).attr("name");
+      if (name == "sel_tab") {
+        options = Get_Options();
+
+        switch (i.currentTarget.value) {
+          case "0":
+
+            break;
+          case "1":
+            break;
+          case "2":
+            break;
+          case "3":
+            break;
+          case "4":
+            break;
+        }
+
+
+        if (!options) return;
+        jQuery("." + name).css(options);
+        jQuery(".image").css(options.direct);
+        jQuery(".image").css(options.direct);
+        jQuery(".image a").css("color", options.direct.color);
+        jQuery(".image a:hover").css("color", options.Hover.color);
+        jQuery(".image:hover border-color").css("color", options.Hover.color);
+        return;
+      }
+
+
+      var yourClass = i.currentTarget.className;
+
+      if (text_id == "") {
+        text_id = id + " ," + yourClass + " ," + i.currentTarget.nodeName;
+        jQuery("#infos").text(text_id);
+      }
+
+
+    });
+
+  });
+  function Get_Options() {
+    options = { direct: {
+      rayon: jQuery("#rayon_cuise").val(),
+      chk_cuise: jQuery("#chk_cuise").val(),
+      backgroundColor: jQuery("#bg_cuise").val(),
+
+
+      backgroundImage: "url(" + jQuery("#img_src").text() + ")",
+
+      borderColor: jQuery("#bd_cuise").val(),
+      borderWidth: jQuery("#bd_width").val(),
+
+
+      //backgroundRepeat: jQuery("." + name).css('backgroundRepeat'),
+      backgroundPosition: "center center",
+
+      color: jQuery("#co_cuise").val()
+
+    }, Hover: {
+      backgroundColor: jQuery("#bgho_cuise").val(),
+      borderColor: jQuery("#bdho_cuise").val(),
+      color: jQuery("#coho_cuise").val()
+    }
+    }
+    return options;
+  }
+
+  jQuery("input").click(function (i) {
+    tg = i.target;
+    name_tpl = name_tpl;
+
+
+    n = jQuery(this).attr("name");
+    if (n == "sel_tab") return;
+
+    types = n.split("_");
+
+    if (n.lastIndexOf("_") < 0) return;
+    id = n.substring(n.lastIndexOf("_") + 1);
+    if (!isNaN(id)) {
+      name = name_tpl[id];
+      type = types[0];
+      new_val = jQuery(tg).val();
+      options = Get_Options();
+
+     
+      switch (type) {
+        case 'rayon':
+
+          options.direct['MozBorderRadius'] = new_val;
+          options.direct['borderRadius'] = new_val + " " + new_val;
+
+
+          break;
+
+        case 'bg':
+          options.direct['backgroundColor'] = new_val;
+          break;
+        case 'bgho':
+          name = name + "";
+          options.Hover['backgroundColor'] = new_val;
+          break;
+        case 'bd':
+
+          if (types[1] == 'width') {
+            options.direct['borderStyle'] = "Solid";
+            options.direct['borderWidth'] = new_val;
+          } else {
+            options.direct['borderColor'] = new_val;
+          }
+          break;
+        case 'bdho':
+          name = name + "";
+          options.Hover['borderColor'] = new_val;
+          break;
+        case 'co':
+          name = name + " a";
+          options.direct['color'] = new_val;
+          break;
+        case 'coho':
+          name = name + " a";
+          options.Hover['color'] = new_val;
+          break;
+
+        case 'chk':
+
+          switch (types[2]) {
+            case 'x':
+              options.direct['backgroundRepeat'] = 'repeat-x';
+              break;
+            case 'y':
+              options.direct['backgroundRepeat'] = 'repeat-y';
+              break;
+            case id:
+              img_src = jQuery("#img_src").text();
+              if (tg.checked) {
+                options.direct['backgroundImage'] = 'none';
+              } else {
+                options.direct['backgroundColor'] = 'Transparent';
+                options.direct['backgroundImage'] = "url(" + img_src + ")";
+                options.direct['backgroundPosition'] = "center center";
+              }
+              break;
+          }
+          break;
+
+
+      }
+
+
+      delta = parseInt(options['borderWidth']) * 2;
+      width = jQuery("#fldres").width() - jQuery("#picker").width() - 55;
+      width -= delta;
+      jQuery("#test").width(width);
+
+       jQuery("." + name).css( options.direct );
+      jQuery("." + name +":hover" ).css( "color",options.Hover.color );
+ 
+    }
+  });
 
 
@@ -24,23 +282,5 @@
   });
 
-  var f = jQuery.farbtastic('#picker');
-  var p = jQuery('#picker').css('opacity', 1);
-  var selected;
-  jQuery('.colorwell')
-      .each(function () {
-        f.linkTo(this);
-        $(this).css('opacity', 1);
-
-      })
-      .focus(function () {
-        if (selected) {
-          $(selected).css('opacity', 1).removeClass('colorwell-selected');
-        }
-        f.linkTo(this);
-        p.css('opacity', 1);
-        $(selected = this).css('opacity', 1).addClass('colorwell-selected');
-        col = $(selected = this).css("backgroundColor");
-
-      });
+
 });
 
Index: /extensions/cuise/admin/js/fileupload.js
===================================================================
--- /extensions/cuise/admin/js/fileupload.js	(revision 19989)
+++ /extensions/cuise/admin/js/fileupload.js	(revision 19990)
@@ -45,4 +45,5 @@
       jQuery("#fileInputTxt").val(name);
       jQuery(".image").css({ backgroundImage: "url(" + imgname + ")" });
+      jQuery(".image").trigger("change");
       return;
 
@@ -186,5 +187,25 @@
   jQuery(document).ready(function () {
     jQuery(window).load(function (i) {
-
+     if(!jQuery.farbtastic)  return ;
+
+     var f = jQuery.farbtastic('#picker');
+      var p = jQuery('#picker').css('opacity', 1);
+      var selected;
+      jQuery('.colorwell')
+      .each(function () {
+        f.linkTo(this);
+        $(this).css('opacity', 1);
+
+      })
+      .focus(function () {
+        if (selected) {
+          $(selected).css('opacity', 1).removeClass('colorwell-selected');
+        }
+        f.linkTo(this);
+        p.css('opacity', 1);
+        $(selected = this).css('opacity', 1).addClass('colorwell-selected');
+        col = $(selected = this).css("backgroundColor");
+
+      });
     });
   });
@@ -192,2 +213,3 @@
 
 
+
Index: /extensions/cuise/admin/maintain.inc.php
===================================================================
--- /extensions/cuise/admin/maintain.inc.php	(revision 19989)
+++ /extensions/cuise/admin/maintain.inc.php	(revision 19990)
@@ -12,16 +12,18 @@
     $params['theme'] = 'cuise' ;
 
-    $name_tpl=array("cbmt.gif","bpv.jpg","bp3.jpg","bph.png","header.png");
+    $name_img=array("cbmt.gif","bpv.jpg","bp3.jpg","bph.png","header.png");
   for($id=0;$id<$nb_template;$id++){
   		$params  = array_merge($params,array( 			
-						"bg_cuise_$id"			=> '#FFA800',
-						"bgho_cuise_$id"			=> '#0072FF',
-						"bd_cuise_$id"			=> '#4F4F4F',
-						"co_cuise_$id"		  => '#4F4F4F',
-            "coho_cuise_$id"		  => '#F4F4F4',
-            "img_cuise_$id"    =>   $name_tpl[$id],
-            "chk_cuise_x_$id"    => 'checked',
-            "chk_cuise_y_$id"    => '',
-            "rayon_cuise_$id"    => '8px',
+						"bg_cuise_$id"			  => '#d4d4d4',
+						"bgho_cuise_$id"			=> '#A0A0A0',
+						"bd_cuise_$id"			  => '#4F4F4F',
+						"bdho_cuise_$id"			=> '#4F4F4F',
+            "bd_width_cuise_$id"	=> '0px',
+						"co_cuise_$id"		    => '#4F4F4F',
+            "coho_cuise_$id"		  => '#5f5f5f',
+            "img_cuise_$id"       => $name_img[$id],
+            "chk_cuise_x_$id"     => 'checked',
+            "chk_cuise_y_$id"     => '',
+            "rayon_cuise_$id"     => '8px',
             "chk_cuise_$id"    => ''
             ));
Index: /extensions/cuise/admin/test.tpl
===================================================================
--- /extensions/cuise/admin/test.tpl	(revision 19990)
+++ /extensions/cuise/admin/test.tpl	(revision 19990)
@@ -0,0 +1,141 @@
+{html_head}
+<script type="text/javascript" src="themes/cuise/admin/js/admin.js" ></script>
+<link rel="stylesheet" href="themes/cuise/admin/theme.css" />
+{php}
+global $themeconf,$mytheme ,$fond_color,$conf ;  
+global $arguments;
+$mytheme = 'themes/'.$themeconf['name'].'/';
+$mycss="theme.css.php";
+load_conf_from_db();
+$params = array_merge(unserialize($conf['cuise']));
+ $keys="";
+  foreach($params as $ligne=>$id){ 
+    $id=str_replace("#","_",$id);
+    $keys .= $ligne ."=".$id ."&";    
+  }
+$args='?'.$keys."redraw=admin";
+if(file_exists( $mytheme."theme.css.css")){
+    $mycss="theme.css.css";
+    $args="";
+}
+{/php}
+
+<!-- **LOCAL** >HEADER> {php} echo $params['theme'];{/php} / {php} echo $params['parent']; {/php} -->
+<!-- link rel="stylesheet" type="text/css" href="themes/default/theme.css">
+<link rel="stylesheet" type="text/css" href="themes/default/print.css">
+<link rel="stylesheet" type="text/css" href="themes/{php} echo $params['parent']; {/php}/theme.css">
+<link rel="stylesheet" type="text/css" href="themes/{php} echo $params['theme'];{/php}/theme.css" -->
+<link rel="stylesheet" href="{php} echo  $mytheme.$mycss.$args;  {/php}"  type="text/css" /> 
+<!-- **LOCAL** >HEADER> --> 
+{/html_head}	
+
+<fileldset  ><legend>Rendu</legend>
+<span id="infos" > TEST </span>
+<fileldset id="admin" ><legend>Rendu</legend>
+<div id="thePicturePage"  > 
+ <div id="thePage" name="thePicturePage">
+    <div id="theHeader"   > <a name='test'  > {$theme}images/{$selected_img_cuise}</a>   </div>
+    <div id="menubar">
+      <dl id="mbCategories" >
+        <dt><a href="" class="pwg-state-default pwg-button menubarFilter"
+          title="n'afficher que les photos publiées récemment" rel="nofollow"><span class="pwg-icon pwg-icon-filter">
+          </span></a><a href="">Albums</a> </dt>
+        <dd>
+          <ul>
+            <li><a href="" title="2 photos dans cet album">Album Set</a>
+              <span class="menuInfoCat" title="2 photos dans cet album">[2]</span> </li>
+            <li><a href="" title="26 photos dans cet album">charlies</a>
+              <span class="menuInfoCat" title="26 photos dans cet album">[26]</span> </li>
+            <li><a href="" title="11 photos dans cet album">famille</a>
+              <span class="menuInfoCat" title="11 photos dans cet album">[11]</span> </li>
+            <li><a href="" title="6 photos dans cet album">haute_definition</a>
+              <span class="menuInfoCat" title="6 photos dans cet album">[6]</span> </li>
+            <li><a href="" title="1 photo dans cet album / 1383 photos dans 18 sous-albums">
+              Voyages</a> <span class="menuInfoCat" title="1 photo dans cet album / 1383 photos dans 18 sous-albums">             [1384]</span> </li>
+          </ul>
+          <p class="totalImages">
+            1854 photos</p>
+        </dd>
+      </dl>
+      <dl id="mbSpecials">
+        <dt>Spéciales</dt>
+        <dd>
+          <ul>
+            <li><a href="" title="afficher mes photos favorites">Mes favorites</a></li>
+            <li><a href="" title="afficher les photos les plus vues">Plus vues</a></li>
+            <li><a href="" title="afficher les photos les mieux notées">Mieux notées</a></li>
+            <li><a href="" title="afficher un ensemble de photos prises au hasard" rel="nofollow">Photos au hasard</a></li>
+            <li><a href="" title="afficher les photos les plus récentes"> Photos récentes</a></li>
+            <li><a href="" title="afficher les albums récemment mis à jour ou créés"> Albums récents</a></li>
+            <li><a href="" title="affichage année par année, mois par mois, jour par jour" rel="nofollow">Calendrier</a></li>
+          </ul>
+        </dd>
+      </dl>
+
+   </div> <!--menubar -->
+
+<div id="content" class="content contentWithMenu">
+<div class="titrePage">
+	<ul class="categoryActions">
+		<li><a href="" title="afficher à plat les photos des albums et des sous-albums" class="pwg-state-default pwg-button" rel="nofollow">
+    <span class="pwg-icon pwg-icon-category-view-flat">&nbsp;</span>
+    <span class="pwg-button-text">afficher à plat les photos des albums et des sous-albums</span></a>
+    </li>
+
+		<li><a href="" title="afficher un calendrier par date d'ajout" class="pwg-state-default pwg-button" rel="nofollow"><span class="pwg-icon pwg-icon-calendar">&nbsp;</span><span class="pwg-button-text">Calendrier</span></a></li>
+
+		<li><a href="" title="afficher un calendrier par date de création" class="pwg-state-default pwg-button" rel="nofollow"><span class="pwg-icon pwg-icon-camera-calendar">&nbsp;</span><span class="pwg-button-text">Calendrier</span></a></li>
+
+<li><a id="icon_gmaps"
+   class="button size28x28"
+   style="display:inline-block;background:url(plugins/GMaps/img/i28x28_1.png);width:28px;height:28px;"
+   title="Localiser la photo sur une carte"
+   href=''
+   onclick='$("#iGMapsIconContent").dialog("open"); return(false);'></a>
+</li>
+  
+   
+	</ul>
+
+<h2><a href="">Accueil</a></h2>
+</div> <!--  titrePage -->
+
+<ul class="thumbnailCategories">
+    <li class="even">
+      <div class="thumbnailCategory">
+        <div class="illustration">
+          <a href="">
+            <img src="themes/cuise/admin/images/20100907133435-b82907c5-th.jpg" alt="Album Set"
+              title="Album Set - montre les photos à la racine de cet album">
+          </a>
+        </div>
+        <div class="description">
+          <h3>
+            <a href="">Album Set</a>
+          </h3>
+          <div class="text">
+            <p class="Nb_images">
+              2 photos</p>
+          </div>
+        </div>
+      </div>
+    </li>
+</ul>
+
+<ul id="thumbnails" class="thumbnails">
+<li><span class="wrap1">
+<span class="wrap2">
+<a href="">
+<img class="thumbnail" title="Photo  20100815 (14 visites, score 0.00) &#13;&#10;&#9;Bonjour&#13;&#10;TEST 12356 23456para..." alt="Photo  20100815" src="themes/cuise/admin/images/20110331152453-0fc233a9-th.jpg" ></a>
+</span><span class="thumbLegend">
+<span class="thumbName">Photo  20100815</span></span></span>
+</li>
+
+</ul>
+</div> <!--content-->
+  </div> <!-- thePage -->
+</div> <!-- thePicturePage -->
+
+
+</fieldset>
+</fieldset>
Index: /extensions/cuise/admin/theme.css
===================================================================
--- /extensions/cuise/admin/theme.css	(revision 19989)
+++ /extensions/cuise/admin/theme.css	(revision 19990)
@@ -150,2 +150,51 @@
 }
 
+form{text-align:left;
+}
+ 
+#result {
+  width: 100%;
+  height: 200px;
+  float: right;
+  right: 0px;
+  top: 0px;
+  overflow: scroll;
+}
+.image{   
+        border:1px solid grey;
+        min-height:235px;
+}
+.image a{   
+      color: green;
+         
+}
+.image a:hover{   
+      color: blue;
+         
+}
+.filemgt{ 
+float:left;
+    z-index:2;
+    border:1px solid blue;
+    width:100%;
+    
+    left:0px;
+    min-height:400px;
+}
+.filemgt table td{ 
+    border:1px solid green
+}
+
+#thePage {
+  position: absolute;
+  margin:10px;
+  width: 80%;
+  height: inherit;
+  border: thin outset #CC0000;
+}
+#footer{
+ position: fixed;
+}
+#content{
+mini-height:100%;
+}
Index: /extensions/cuise/admin_theme.css.php
===================================================================
--- /extensions/cuise/admin_theme.css.php	(revision 19990)
+++ /extensions/cuise/admin_theme.css.php	(revision 19990)
@@ -0,0 +1,222 @@
+ <?php echo $prefix; ?> a {
+ color:red
+ }
+ *,.*{ 
+  background-image:none;
+  background-color:transparent ;
+   
+ }
+a{
+  color:<?php echo $fondBG_a ;?>;
+ }
+  a:hover{
+  color:<?php echo $fondBG_a_hover ;?>;
+ }
+
+  .browsePath{
+   background-image:none;
+  background-color:transparent ;
+ }
+
+  #imageHeaderBar, .titrePage{ 
+ height:32px;
+ }
+  #imageHeaderBar .browsePath,.titrePage{
+ padding-top:8px;
+ }
+  #theImageAndInfos{
+    background-image:none;
+  background-color:transparent ;
+ }
+ input[type='text'], input[type='password'], input[type='button'], input[type='submit'], input[type='reset'], input[type='file'], select, textarea{
+ background-color:<?php echo $fondBG_color;?> ;
+ color:<?php echo $fondBG_a ;?>;
+}
+  body{ 
+ background-color:<?php echo $fondBG_color;?> ;
+ background-image:<?php echo $fondBG ;?>;
+ color:<?php echo $fondBG_a ;?>;
+}
+
+ .titrePage,#imageHeaderBar{
+background-color:<?php echo $fondBp_color ;?>;
+background-image:<?php echo $fondBp ;?>; 
+ color:<?php echo $fondBp_a ;?>;
+}
+ .titrePage a,#imageHeaderBar a{
+ 
+ color:<?php echo $fondBp_a ;?>;
+}
+ .titrePage a:hover,#imageHeaderBar a:hover{
+ 
+ color:<?php echo $fondBp_a_hover ;?>;
+}
+/*===========================================================*/
+ #menubar{
+background-color:<?php echo $Menu_bar_color ;?>;
+background-image:<?php echo $Menu_bar ;?>; 
+    -moz-border-radius: <?php echo $Menu_bar_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$Menu_bar_rayon ;?>; 
+  background-position:  100px;
+}
+ #menubar:hover{
+  background-color:<?php echo $Menu_bar_color_hover ;?>;
+  background-image:<?php echo $Menu_bar_hover ;?>; 
+
+}
+ #menubar dd a{
+ color:<?php echo $Menu_bar_a ;?>;
+ 
+
+}
+ #menubar dd a:hover{
+  color:<?php echo $Menu_bar_a_hover ;?>;  
+}
+#menubar li a{ display:inline;
+}
+ #menubar dt{
+  background-color:<?php echo $fondBp_color ;?>;
+  background-image:<?php echo $fondBp ;?>;     
+   -moz-border-radius: <?php echo $thumbnail_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$thumbnail_rayon ;?>; 
+}
+ #menubar dt:hover,#menubar dt a:hover{
+  color:<?php echo $fondBp_a_hover ;?>;
+
+}
+#menubar dt,#menubar dt a{
+ color:<?php echo $fondBp_a ;?>;
+ 
+}
+
+
+ #menubar dl{
+  background-color:Transparent;
+  background-image:none; 
+}
+#menubar li {
+	list-style-position: inside;
+	list-style-image: url(images/small_bullet_0.png);
+}
+#menubar li li {
+	list-style-position: inside;
+	list-style-image: url(images/small_bullet_2.png);
+}
+#menubar li li li{
+	list-style-position: inside;
+	list-style-image: url(images/small_bullet_vert.png);
+}
+#menubar li li li li{
+	list-style-position: inside;
+	list-style-image: url(images/small_bullet_bleu.png);
+}
+
+
+/*========================================================*/
+ #content,.content{
+background-color:<?php echo $Menu_bar_color ;?>;
+background-image:<?php echo $Menu_bar ;?>; 
+  
+}
+ #content:hover{
+background-color:<?php echo $Menu_bar_color_hover ;?>;
+background-image:<?php echo $Menu_bar_hover ;?>; 
+ 
+
+}
+ #content a,.content a{
+  color:<?php echo $Menu_bar_a ;?>;
+  
+}
+ #content a:hover{
+  color:<?php echo $Menu_bar_a_hover ;?>;
+}
+
+ .thumbnailCategory{
+background-color:<?php echo $thumbnail_color ;?>;
+background-image:<?php echo $thumbnail ;?>; 
+}
+ .thumbnailCategory:hover{
+  background-color:<?php echo $thumbnail_color_hover ;?>;
+  background-image:<?php echo $thumbnail_hover ;?>; 
+}
+
+
+ #theHeader{
+background-color:<?php echo $bck_header_color ;?>;
+<?php if($bck_header!='none'){
+echo "height:200px;width:100%;";
+}
+
+
+
+?>
+background-image:<?php echo $bck_header ;?>;
+background-repeat: no-repeat;
+background-position: center middle;
+}
+
+ #imageInfos{ 
+background-image:<?php echo $Menu_bar ;?>; 
+background-position: center middle;
+}
+
+ #comments  {
+ background-color:<?php echo $thumbnail_color_hover ;?>;
+background-image:<?php echo $fondBp ;?>; 
+ 
+background-repeat: repeat-x;
+background-position: center middle;
+}
+ #pictureComments  {
+background-image:<?php echo $thumbnail ;?>; 
+background-repeat: repeat-x;
+background-position: center middle;
+}
+
+
+
+/******** stripped ********/
+ .categoryActions {
+<?php if(  $theme_parent =="stripped_black_bloc" ) 
+ echo "float:none;"; 
+?>
+ 
+}
+ #themeSwitchBox{width:420px;
+diplay:block;
+}
+.theme-thumb{ height:80px;width:80px;
+ 
+}
+
+.menuhidden .switchArrow		{ background-position: 0 0;}
+.menushown   .switchArrow		{ background-position: -16px 0;}
+.infohidden .switchArrow		{ background-position: -16px 0;}
+.infoshown   .switchArrow		{ background-position: 0 0;}
+.commentshidden .switchArrow	{ background-position: -48px 0;}
+.commentsshown   .switchArrow	{ background-position: -32px 0;}
+
+
+/*================================================================*/
+.thumbnailCategories .description{padding:5px;
+  background-image:<?php echo $thumbnail; ?> ;
+     -moz-border-radius: <?php echo $thumbnail_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$thumbnail_rayon ;?>; 
+  background-position: center center;
+}
+
+.thumbnails li, #thumbnails li,.thumbnailCategories li, #thumbnails ul{
+  background-image:<?php echo $thumbnail; ?> ;
+     -moz-border-radius: <?php echo $thumbnail_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$thumbnail_rayon ;?>; 
+   background-position: center center;
+}
+.thumbnails li:hover, #thumbnails li:hover,.thumbnailCategories li:hover,#thumbnails ul:hover{
+  background-image:<?php echo $thumbnail_hover; ?> ;
+     -moz-border-radius: <?php echo $thumbnail_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$thumbnail_rayon ;?>; 
+   background-position: 100px center;
+}
+.switchArrow				{ background-image:url(icon/arrows_black.png);}
+.switchArrow:hover 			{ background-image:url(icon/arrows_black_hover.png);}
Index: /extensions/cuise/js/theme.js
===================================================================
--- /extensions/cuise/js/theme.js	(revision 19989)
+++ /extensions/cuise/js/theme.js	(revision 19990)
@@ -1,4 +1,4 @@
 /* -----------------------------------------------------------------------------
-  GALLY-CUISE
+  cuise
   Template for Piwigo
   ------------------------------------------------------------------------------
@@ -8,9 +8,6 @@
   ------------------------------------------------------------------------------
   author: cljosse at piwigo.org
-  << May the Little SpaceFrog be with you >>
   ------------------------------------------------------------------------------
   Specific JS for the theme
-
-  see the release_notes.txt file for more informations
 ----------------------------------------------------------------------------- */
 
Index: /extensions/cuise/local_head.tpl
===================================================================
--- /extensions/cuise/local_head.tpl	(revision 19989)
+++ /extensions/cuise/local_head.tpl	(revision 19990)
@@ -19,14 +19,10 @@
     $keys .= $ligne ."=".$id ."&";    
   }
-$args='?'.$keys."redraw='ok'";
+$args='?'.$keys."redraw=ok";
 if(file_exists( $mytheme."theme.css.css")){
     $mycss="theme.css.css";
     $args="";
 }
-{/php}
-
-
-
- 
+{/php} 
 <!-- **LOCAL** >HEADER> {$themeconf.name} / {$themeconf.parent} -->
 <link rel="stylesheet" href="{php} echo  $mytheme.$mycss.$args;  {/php}"  type="text/css" /> 
Index: /extensions/cuise/ok_theme.css.php
===================================================================
--- /extensions/cuise/ok_theme.css.php	(revision 19990)
+++ /extensions/cuise/ok_theme.css.php	(revision 19990)
@@ -0,0 +1,218 @@
+ <?php echo $prefix; ?> a {
+ color:red
+ }
+ *,.*{ 
+  background-image:none;
+  background-color:transparent ;
+   
+ }
+ a{
+  color:<?php echo $fondBG_a ;?>;
+ }
+  a:hover{
+  color:<?php echo $fondBG_a_hover ;?>;
+ }
+
+ .browsePath{
+   background-image:none;
+  background-color:transparent ;
+ }
+
+ #imageHeaderBar, .titrePage{ 
+ height:32px;
+ }
+ #imageHeaderBar .browsePath,.titrePage{
+ padding-top:8px;
+ }
+ #theImageAndInfos{
+    background-image:none;
+  background-color:transparent ;
+ }
+input[type='text'], input[type='password'], input[type='button'], input[type='submit'], input[type='reset'], input[type='file'], select, textarea{
+ background-color:<?php echo $fondBG_color;?> ;
+ color:<?php echo $fondBG_a ;?>;
+}
+ body{ 
+ background-color:<?php echo $fondBG_color;?> ;
+ background-image:<?php echo $fondBG ;?>;
+ color:<?php echo $fondBG_a ;?>;
+}
+
+.titrePage,#imageHeaderBar{
+background-color:<?php echo $fondBp_color ;?>;
+background-image:<?php echo $fondBp ;?>; 
+ color:<?php echo $fondBp_a ;?>;
+}
+.titrePage a,#imageHeaderBar a{
+ 
+ color:<?php echo $fondBp_a ;?>;
+}
+.titrePage a:hover,#imageHeaderBar a:hover{
+ 
+ color:<?php echo $fondBp_a_hover ;?>;
+}
+/*===========================================================*/
+#menubar{
+background-color:<?php echo $Menu_bar_color ;?>;
+background-image:<?php echo $Menu_bar ;?>; 
+    -moz-border-radius: <?php echo $Menu_bar_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$Menu_bar_rayon ;?>; 
+  background-position:  100px;
+}
+#menubar:hover{
+  background-color:<?php echo $Menu_bar_color_hover ;?>;
+  background-image:<?php echo $Menu_bar_hover ;?>; 
+
+}
+#menubar dd a{
+ color:<?php echo $Menu_bar_a ;?>;
+ 
+
+}
+#menubar dd a:hover{
+  color:<?php echo $Menu_bar_a_hover ;?>;  
+}
+#menubar li a{ display:inline;
+}
+#menubar dt{
+  background-color:<?php echo $fondBp_color ;?>;
+  background-image:<?php echo $fondBp ;?>;     
+   -moz-border-radius: <?php echo $thumbnail_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$thumbnail_rayon ;?>; 
+}
+ #menubar dt:hover,#menubar dt a:hover{
+  color:<?php echo $fondBp_a_hover ;?>;
+
+}
+#menubar dt,#menubar dt a{
+ color:<?php echo $fondBp_a ;?>;
+
+}
+#menubar dl{
+  background-color:Transparent;
+  background-image:none; 
+}
+#menubar li {
+	list-style-position: inside;
+	list-style-image: url(images/small_bullet_0.png);
+}
+#menubar li li {
+	list-style-position: inside;
+	list-style-image: url(images/small_bullet_2.png);
+}
+#menubar li li li{
+	list-style-position: inside;
+	list-style-image: url(images/small_bullet_vert.png);
+}
+#menubar li li li li{
+	list-style-position: inside;
+	list-style-image: url(images/small_bullet_bleu.png);
+}
+/*========================================================*/
+#content,.content{
+background-color:<?php echo $Menu_bar_color ;?>;
+background-image:<?php echo $Menu_bar ;?>; 
+  
+}
+#content:hover{
+background-color:<?php echo $Menu_bar_color_hover ;?>;
+background-image:<?php echo $Menu_bar_hover ;?>; 
+ 
+
+}
+#content a,.content a{
+  color:<?php echo $Menu_bar_a ;?>;
+  
+}
+#content a:hover{
+  color:<?php echo $Menu_bar_a_hover ;?>;
+}
+
+.thumbnailCategory{
+background-color:<?php echo $thumbnail_color ;?>;
+background-image:<?php echo $thumbnail ;?>; 
+}
+.thumbnailCategory:hover{
+  background-color:<?php echo $thumbnail_color_hover ;?>;
+  background-image:<?php echo $thumbnail_hover ;?>; 
+}
+
+
+#theHeader{
+background-color:<?php echo $bck_header_color ;?>;
+<?php if($bck_header!='none'){
+echo "height:200px;width:100%;";
+}
+
+
+
+?>
+background-image:<?php echo $bck_header ;?>; 
+background-repeat: no-repeat;
+background-position: center middle;
+}
+
+#imageInfos{ 
+background-image:<?php echo $Menu_bar ;?>; 
+background-position: center middle;
+}
+
+#comments  {
+ background-color:<?php echo $thumbnail_color_hover ;?>;
+background-image:<?php echo $fondBp ;?>; 
+ 
+background-repeat: repeat-x;
+background-position: center middle;
+}
+#pictureComments  {
+background-image:<?php echo $thumbnail ;?>; 
+background-repeat: repeat-x;
+background-position: center middle;
+}
+
+
+
+/******** stripped ********/
+.categoryActions {
+<?php if(  $theme_parent =="stripped_black_bloc" ) 
+ echo "float:none;"; 
+?>
+ 
+}
+#themeSwitchBox{width:420px;
+diplay:block;
+}
+.theme-thumb{ height:80px;width:80px;
+ 
+}
+
+.menuhidden .switchArrow		{ background-position: 0 0;}
+.menushown   .switchArrow		{ background-position: -16px 0;}
+.infohidden .switchArrow		{ background-position: -16px 0;}
+.infoshown   .switchArrow		{ background-position: 0 0;}
+.commentshidden .switchArrow	{ background-position: -48px 0;}
+.commentsshown   .switchArrow	{ background-position: -32px 0;}
+
+
+/*================================================================*/
+.thumbnailCategories .description{padding:5px;
+  background-image:<?php echo $thumbnail; ?> ;
+     -moz-border-radius: <?php echo $thumbnail_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$thumbnail_rayon ;?>; 
+  background-position: center center;
+}
+
+.thumbnails li, #thumbnails li,.thumbnailCategories li, #thumbnails ul{
+  background-image:<?php echo $thumbnail; ?> ;
+     -moz-border-radius: <?php echo $thumbnail_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$thumbnail_rayon ;?>; 
+   background-position: center center;
+}
+.thumbnails li:hover, #thumbnails li:hover,.thumbnailCategories li:hover,#thumbnails ul:hover{
+  background-image:<?php echo $thumbnail_hover; ?> ;
+     -moz-border-radius: <?php echo $thumbnail_rayon ;?>;  
+  border-radius:  <?php echo $thumbnail_rayon." ".$thumbnail_rayon ;?>; 
+   background-position: 100px center;
+}
+.switchArrow				{ background-image:url(icon/arrows_black.png);}
+.switchArrow:hover 			{ background-image:url(icon/arrows_black_hover.png);}
Index: /extensions/cuise/theme.css.php
===================================================================
--- /extensions/cuise/theme.css.php	(revision 19989)
+++ /extensions/cuise/theme.css.php	(revision 19990)
@@ -1,5 +1,4 @@
 <?php  
-
- $patterns = array();
+$patterns = array();
 $patterns[0] = '_';
 $replacements = array();
@@ -7,57 +6,51 @@
 if ( !isset($_GET['theme'])  ) {
   global $nb_template;
- $nb_template=5 ;
-
-$params['theme']="cuise";
-$params['parent']="cuise";
-
-$keys=array();
-  $name=array("cbmt.gif","bpv.png","bp3.jpg","bph.png");
+    $nb_template=5 ;
+    $params['theme']="cuise";
+    $params['parent']="cuise";
+    $params['redraw']="ok";
+    $keys=array();
+  $name_img=array("cbmt.gif","bpv.png","bp3.jpg","bph.png","header.png");
   for($id=0;$id<$nb_template;$id++){
       $params  = array_merge($params,array( 			
-						"bg_cuise_$id"			=> '#FFA800',
-						"bgho_cuise_$id"			=> '#0072FF',
+						"bg_cuise_$id"			=> '#d4d4d4',
+						"bgho_cuise_$id"			=> '#a0a0a0',
 						"bd_cuise_$id"			=> '#4F4F4F',
 						"co_cuise_$id"		  => '#4F4F4F',
-            "coho_cuise_$id"		  => '#F4F4F4',
-            "img_cuise_$id"    =>   $name[$id],
+            "coho_cuise_$id"		  => '#5f5f5f',
+            "img_cuise_$id"    =>   $name_img[$id],
+            "chk_cuise_x_$id"    => 'checked',
+            "chk_cuise_y_$id"    => '',
             "rayon_cuise_$id"    => '8px',
-            "chk_cuise_$id"    => 'nochecked',
+            "chk_cuise_$id"    => ''
 
             ));
             } 
 $keys=$params ;
- 
 
-$keys['theme']="cuise";
-$keys['parent']="cuise";
 }else{
  $keys=$_GET;
 }
- 
- global $theme ;
+global $theme ;
 $theme_dir = $keys['theme'];
-$theme_parent = $keys['parent'];
-
+$theme_parent = $keys['parent']; 
 /*===============================================*/
  if ($keys['chk_cuise_0']!='checked'){
       $fondBG = "url(./images/" . $keys['img_cuise_0'].")" ;
-       $fondBG_hover = "url(images/hover_" . $keys['img_cuise_0'].")" ;
+       $fondBG_hover = "url(./images/hover_" . $keys['img_cuise_0'].")" ;
       }else {
       $fondBG ="none";   
       $fondBG_hover ="none";
 }
-
-
- 
-$rayon_0 = $keys['rayon_cuise_0'];  
+$fondBG_rayon = $keys['rayon_cuise_0'];  
 $fondBG_color = str_replace("_", "#",   $keys['bg_cuise_0']);
 $fondBG_color_hover = str_replace("_", "#",   $keys['bgho_cuise_0']);
-$lien_a = str_replace("_", "#",   $keys['co_cuise_0']);
-$lien_a_hover= str_replace("_", "#",   $keys['coho_cuise_0']); 
-/*===============================================*/
+$fondBG_a = str_replace("_", "#",   $keys['co_cuise_0']);
+$fondBG_a_hover= str_replace("_", "#",   $keys['coho_cuise_0']); 
+
+/*===============================================*/ 
  if ($keys['chk_cuise_1']!='checked'){
-      $fondBp = "url(images/" . $keys['img_cuise_1'].")" ;
-      $fondBp_hover =  "url(images/hover_".$keys['img_cuise_1'].")";
+      $fondBp = "url(./images/" . $keys['img_cuise_1'].")" ;
+      $fondBp_hover =  "url(./images/hover_".$keys['img_cuise_1'].")";
 }else {
       $fondBp ="none"; 
@@ -66,35 +59,36 @@
 $fondBp_color =  str_replace("_", "#",   $keys['bg_cuise_1']);
 $fondBp_color_hover =str_replace("_", "#",   $keys['bgho_cuise_1']);
-$rayon_1 = $keys['rayon_cuise_1']; 
-/* menubar ---*/
-$bp_a = str_replace("_", "#",   $keys['co_cuise_1']);
-$bp_a_hover= str_replace("_", "#",   $keys['coho_cuise_1']); 
+$fondBp_a = str_replace("_", "#",   $keys['co_cuise_1']);
+$fondBp_a_hover= str_replace("_", "#",   $keys['coho_cuise_1']); 
+$fondBp_rayon = $keys['rayon_cuise_1']; 
+
 /*=========== Menubar ========================*/
  if ($keys['chk_cuise_2']!='checked'){
-    $fondHoriz = "url(images/".$keys['img_cuise_2'].")";
-    $fondHoriz_hover =  "url(images/hover_".$keys['img_cuise_2'].")";
+    $Menu_bar = "url(images/".$keys['img_cuise_2'].")";
+    $Menu_bar_hover =  "url(images/hover_".$keys['img_cuise_2'].")";
 }else {
-    $fondHoriz ="none";  
-    $fondHoriz_hover = "non";
+    $Menu_bar ="none";  
+    $Menu_bar_hover = "non";
 }
-$fondHoriz_color =  str_replace("_", "#",   $keys['bg_cuise_2']);
-$fondHoriz_color_hover = str_replace("_", "#",   $keys['bgho_cuise_2']);
-$rayon_2 = $keys['rayon_cuise_2']; 
-$thumb_a = str_replace("_", "#",   $keys['co_cuise_2']);
-$thumb_a_hover= str_replace("_", "#",   $keys['coho_cuise_2']); 
+$Menu_bar_color =  str_replace("_", "#",   $keys['bg_cuise_2']);
+$Menu_bar_color_hover = str_replace("_", "#",   $keys['bgho_cuise_2']);
+
+$Menu_bar_a = str_replace("_", "#",   $keys['co_cuise_2']);
+$Menu_bar_a_hover= str_replace("_", "#",   $keys['coho_cuise_2']); 
+$Menu_bar_rayon = $keys['rayon_cuise_2']; 
 /*===============================================*/
 if ($keys['chk_cuise_3']!='checked'){
-    $fondVert = "url(images/".$keys['img_cuise_3'].")";
-$fondVert_hover = "url(images/hover_".$keys['img_cuise_3'].")";
+    $thumbnail = "url(images/".$keys['img_cuise_3'].")";
+$thumbnail_hover = "url(images/hover_".$keys['img_cuise_3'].")";
 }else {
-    $fondVert="none";
-    $fondVert_hover="none";
+    $thumbnail="none";
+    $thumbnail_hover="none";
     }
-$fondVert_color =  str_replace("_", "#",   $keys['bg_cuise_3']);
+$thumbnail_color =  str_replace("_", "#",   $keys['bg_cuise_3']);
 
-$fondVert_color_hover = str_replace("_", "#",   $keys['bgho_cuise_3']);
-$rayon_3 = $keys['rayon_cuise_3']; 
-$menu_a = str_replace("_", "#",   $keys['co_cuise_3']);
-$menu_a_hover= str_replace("_", "#",   $keys['coho_cuise_3']); 
+$thumbnail_color_hover = str_replace("_", "#",   $keys['bgho_cuise_3']);
+$thumbnail_rayon = $keys['rayon_cuise_3']; 
+$thumbnail_a = str_replace("_", "#",   $keys['co_cuise_3']);
+$thumbnail_a_hover= str_replace("_", "#",   $keys['coho_cuise_3']); 
 /*===============================================*/
     $bck_header="none";
@@ -110,838 +104,11 @@
 $bck_header_a = str_replace("_", "#",   $keys['co_cuise_4']);
 $bck_header_a_hover= str_replace("_", "#",   $keys['coho_cuise_4']); 
-
-
-
-
+$prefix=$keys['redraw']; 
  header( 'content-type: text/css' ); 
  /*
  if($keys['redraw'] != true ){ }
-
  header('HTTP/1.0 304 Not Modified');  
  header('Cache-Control: max-age=3600, must-revalidate');
  */
-
-
-?>
- /***************************************************************/
- *,.*{
-  background-image:none;
-  background-color:transparent ;
-   
- }
- a{
-  color:<?php echo $lien_a ;?>;
- }
-  a:hover{
-  color:<?php echo $lien_a_hover ;?>;
- }
-
- .browsePath{
-   background-image:none;
-  background-color:transparent ;
- }
-
- #imageHeaderBar, .titrePage{ 
- height:32px;
- }
- #imageHeaderBar .browsePath,.titrePage{
- padding-top:8px;
- }
- #theImageAndInfos{
-    background-image:none;
-  background-color:transparent ;
- }
-input[type='text'], input[type='password'], input[type='button'], input[type='submit'], input[type='reset'], input[type='file'], select, textarea{
- background-color:<?php echo $fondBG_color;?> ;
- color:<?php echo $lien_a ;?>;
-}
- body{ 
- background-color:<?php echo $fondBG_color;?> ;
- background-image:<?php echo $fondBG ;?>;
- color:<?php echo $lien_a ;?>;
-}
-
-.titrePage,#imageHeaderBar{
-background-color:<?php echo $fondBp_color ;?>;
-background-image:<?php echo $fondBp ;?>; 
- color:<?php echo $bp_a ;?>;
-}
-.titrePage a,#imageHeaderBar a{
- 
- color:<?php echo $bp_a ;?>;
-}
-.titrePage a:hover,#imageHeaderBar a:hover{
- 
- color:<?php echo $bp_a_hover ;?>;
-}
-
-#menubar{
-background-color:<?php echo $fondHoriz_color ;?>;
-background-image:<?php echo $fondHoriz ;?>; 
-    -moz-border-radius: <?php echo $rayon_2 ;?>;  
-  border-radius:  <?php echo $rayon_3." ".$rayon_2 ;?>; 
-
-}
-#menubar:hover{
-  background-color:<?php echo $fondHoriz_color_hover ;?>;
-  background-image:<?php echo $fondHoriz_hover ;?>; 
-
-}
-#menubar dd a{
- color:<?php echo $fondHoriz_a_color ;?>;
- 
-
-}
-#menubar dd a:hover{
-  color:<?php echo $fondHoriz_a_hover ;?>;  
-}
-
-#menubar dt{
-  background-color:<?php echo $fondBp_color ;?>;
-  background-image:<?php echo $fondBp ;?>;     
-   -moz-border-radius: <?php echo $rayon_3 ;?>;  
-  border-radius:  <?php echo $rayon_3." ".$rayon_3 ;?>; 
-}
-#menubar dt:hover{
-  background-color:<?php echo $fondBp_color_hover ;?>;
-  background-image:<?php echo $fondBp_hover ;?>; 
-}
-
-
-#content,.content{
-background-color:<?php echo $fondHoriz_color ;?>;
-background-image:<?php echo $fondHoriz ;?>; 
-  
-}
-#content:hover{
-background-color:<?php echo $fondHoriz_color_hover ;?>;
-background-image:<?php echo $fondHoriz_hover ;?>; 
- 
-
-}
-#content a,.content a{
-  color:<?php echo $fondHoriz_a ;?>;
-  
-}
-#content a:hover{
-  color:<?php echo $fondHoriz_a_hover ;?>;
-}
-
-.thumbnailCategory{
-background-color:<?php echo $fondVert_color ;?>;
-background-image:<?php echo $fondVert ;?>; 
-}
-.thumbnailCategory:hover{
-  background-color:<?php echo $fondVert_color_hover ;?>;
-  background-image:<?php echo $fondVert_hover ;?>; 
-}
-
-
-#theHeader{
-background-color:<?php echo $bck_header_color ;?>;
-background-image:<?php echo $bck_header ;?>; 
-}
-
-#imageInfos{ 
-background-image:<?php echo $fondHoriz ;?>; 
-background-position: center middle;
-}
-
-#comments  {
- background-color:<?php echo $fondVert_color_hover ;?>;
-background-image:<?php echo $fondBp ;?>; 
- 
-background-repeat: repeat-x;
-background-position: center middle;
-}
-#pictureComments  {
-background-image:<?php echo $fondVert ;?>; 
-background-repeat: repeat-x;
-background-position: center middle;
-}
-
-
-
-/******** stripped ********/
-.categoryActions {
-<?php if(  $theme_parent =="stripped_black_bloc" ) 
- echo "float:none;"; 
-?>
- 
-}
-#themeSwitchBox{width:420px;
-diplay:block;
-}
-.theme-thumb{ height:80px;width:80px;
- 
-}
-
-.menuhidden .switchArrow		{ background-position: 0 0;}
-.menushown   .switchArrow		{ background-position: -16px 0;}
-.infohidden .switchArrow		{ background-position: -16px 0;}
-.infoshown   .switchArrow		{ background-position: 0 0;}
-.commentshidden .switchArrow	{ background-position: -48px 0;}
-.commentsshown   .switchArrow	{ background-position: -32px 0;}
-
-#menubar li {
-	list-style-position: inside;
-	list-style-image: url(images/small_bullet_0.png);
-}
-#menubar li li {
-	list-style-position: inside;
-	list-style-image: url(images/small_bullet_2.png);
-}
-#menubar li li li{
-	list-style-position: inside;
-	list-style-image: url(images/small_bullet_vert.png);
-}
-#menubar li li li li{
-	list-style-position: inside;
-	list-style-image: url(images/small_bullet_bleu.png);
-}
-/*================================================================*/
- <?php
-if(0){
-/*===========  Couleur ==================*/
-
-$C_FFB0B0 = '#FFB0B0' ;
-$C_802020 = '#802020' ;
-$C_800000 = '#800000';
-$C_ffffff = '#ffffff';
-$C_B0FFB0 = '#B0FFB0';
-$C_208020 = '#208020';
-$C_008000 = '#008000';
-$C_DEDEDE = '#050505';
-$C_101010 = 'Transparent';
-$C_303030 = '#606060';
- $border_color = '#606060';
-$tag_hover ='transparent';
-$C_606060 = '#303030';
-$C_000000= "#000000";
-$input_color= "#030380";
-$C_999999= "#999999";
-$input_bg= "#f5f5f5";
-$C_CCC= "#333";
-?>
-#the_page{ 
- background-color:<?php echo $fondBG_color;?> ;
- background-image:<?php echo $fondBG ;?>;
-}
-#thePicturePage{
- background-color:<?php echo $fondBG_color;?> ;
- background-image:<?php echo $fondBG ;?>;
-}
-
-
-html,body,#content{  
- background-color:<?php echo $fondBG_color;?> ;
- background-image:<?php echo $fondBG ;?>;
- }
-
-
-
-
-/*============================================================*/
-.content .titrePage, 
-.bloc_stuff,
-.browsePath,
-.randomButtons,
- #imageTitle, .randomButtons, #footer_left, #copyright,
- #tabZone,.imageToolBarBg ,
-.navigationBar, #imageHeaderBar,#copyright,#imageHeaderBar,.masonry-brick, .bloc .title, .nav_bulle{
-background-color:<?php echo $fondBp_color ;?>;
-background-image:<?php echo $fondBp ;?>; 
- 
-}
-
-
-
-#titreContent1,
-.calendarTitle,
-.calendarBar{
-     
-}
-
-#calendar_block{
-padding:0px;
-top:0px; 
-background-image:<?php echo  $fondHoriz; ?>;
-background-repeat: repeat-x ; 
-}
-#titreContent1{
-  background-image:<?php echo $fondHoriz; ?>;
-  background-repeat: repeat-x ; 
-  
-}
- 
-.calendarViews{
- 
-background-image:<?php echo  $fondHoriz; ?> ;
-background-repeat: repeat-x ; 
-}
-
-.calendarTitle {
-  background-image:<?php echo $fondHoriz; ?> ;
-}
-.calendarBar{ 
- background-image:<?php echo $fondVert; ?> ;
-  
-}
-
- 
-/*=======================================================*/
-.header_notes{ padding:0px;align:left;vertical-align:middle;
-  background-Color:Transparent;
-
-  background-image:url(icon/notes.png) ;
-}
-.header_notes p{
-background-color:<?php echo $fondHoriz_color ; ?> ;
- background-image:<?php echo $fondHoriz ; ?> ;
-  
-}
-
-#tabs,#theImageAndInfos{  
-background-color:<?php echo $fondHoriz_color ; ?> ;
- background-image:<?php echo $fondHoriz ; ?> ;
-}
-
-/*============================================================*/
-#imageToolBar,.contentWithMenu #imageHeaderBar,.titrePage ul .categoryActions,.categoryActions{
-background-color:transparent;
- background-image:none ;
-  margin-top:-5px;
-}
- 
-.titrePage .categoryActions li a{
-  vertical-align: middle; 
-  text-align: center;
-  cursor:pointer
-}
-.contentWithMenu #imageHeaderBar,.titrePage {  
-background-color:<?php echo $fondBp_color ; ?> ;
- background-image:<?php echo $fondBp ; ?> ; 
- background-position: center;
- padding:8px
-}
-.browsePath{
- background-image:<?php echo "none" ; ?> ;
- background-color:<?php echo "transparent" ; ?> ;
-}
- /*-------------- MON THEME -------------------------*/ 
-
-#thePicturePage #comments{
-  background-color:<?php echo $fondHoriz_color ; ?> ;
-  background-image:<?php echo $fondHoriz ; ?> ;
-    -moz-border-radius: <?php echo $rayon_3 ;?>;  
-  border-radius:  <?php echo $rayon_3." ".$rayon_3 ;?>; 
-}
-
-#imageInfos{
-background-color:<?php echo $fondHoriz_color ; ?> ;
- background-image:<?php echo $fondHoriz ; ?> ;
- 
-
-}
-
-/*--------------- menubar -------------*/
-#menubar DT,#menubar dt{ 
-    background-color: <?php echo $fondBp_color ;?>; 
-    background-image:<?php echo $fondBp ;?>; ;
-     background-repeat: repeat-x ;   
-       -moz-border-radius: <?php echo $rayon_1 ;?>;  
-  border-radius:  <?php echo $rayon_1." ".$rayon_1 ;?>; 
-}
-#menubar { 
-  background-color: <?php echo $fondHoriz_color ;?>; 
-  background-image:<?php echo $fondHoriz ; ?> ;
-  border: <?php echo $border_color ;?> ; 
-  -moz-border-radius: <?php echo $rayon_1 ;?>;  
-  border-radius:  <?php echo $rayon_1." ".$rayon_1 ;?>; 
-} 
-
-#menubar:hover {   
-background-color: <?php echo $fondHoriz_color_hover ;?>; 
-background-image:<?php echo $fondHoriz_hover ; ?> ;
-} 
-#menubar a:hover,#menubar dt:hover {   
-color:<?php echo $bp_a_hover ;?>;
-} 
-#menubar a,#menubar dt,#menubar span{  
-  color:<?php echo $bp_a ;?> ;
-}  
-
-/*--------- Categorie ---------------------*/
-
-#theComments{background-image:<?php echo $fondHoriz ; ?>;} 
-
-div ul.thumbnails span.wrap2{
- 
-  overflow:hidden ;
-  
-}
-
-.wrap2:hover ,.wrap1:hover{
-background-color:<?php echo $fondHoriz_color_hover; ?> ;
-  background-image:<?php echo $fondHoriz_hover; ?> ;
-     -moz-border-radius: <?php echo $rayon_2 ;?>;  
-  border-radius:  <?php echo $rayon_2." ".$rayon_2 ;?>; 
-}
-
-
-.wrap1{  
-background-color:<?php echo $fondHoriz_color; ?> ;
-  background-image:<?php echo $fondHoriz ; ?> ;
-   -moz-border-radius:  <?php echo $rayon_2 ;?>; 
-  border-radius: <?php echo $rayon_2." ".$rayon_2." ".$rayon_2." ".$rayon_2 ;?>; 
-}
-
-.content div.thumbnailCategory,
-.thumbnailCategory {
-background-color:<?php echo $fondHoriz_color; ?> ;
-         -moz-border-radius: <?php echo $rayon_3 ;?>; 
-        border-radius: <?php echo $rayon_3." ".$rayon_3 ;?>;
-  background-image:<?php echo $fondHoriz; ?>;
-
-} 
-.content div.thumbnailCategory:hover,.thumbnailCategory:hover {
-background-color:<?php echo $fondHoriz_color_hover; ?> ;
-  background-image:<?php echo $fondHoriz_hover ; ?> ;
-} 
-
- 
-#imageToolBar H2{
-                 background-color:transparent;                  
-                 }
-
-
-
-#navThumbPrevContainer{background-image:<?php echo $fondHoriz; ?>;background-position:center;}
-#navThumbNextContainer{background-image:<?php echo $fondHoriz; ?>; background-position:center;}
- 
- #navThumbNextContainer{ position: static
-}
-
-
-.infoTable{background-image:<?php echo $fondHoriz_hover; ?> ;}
-
-INPUT[type="submit"], input[type="button"], input[type="reset"] {
- 
- background-image:<?php echo $fondHoriz; ?>;
-}
-
-fieldset { background-image:<?php echo $fondHoriz; ?>;}
-
-fieldset legend {
-border:none;
-background-image:<?php echo $fondHoriz; ?>;}
-
-#theTabsContainer{  background-image:url(icon/1x1transp.gif) }
-
- 
-
-/*===========  Couleur ==================*/
- 
-div.errors {
-  background:<?php echo $C_FFB0B0 ; ?>;
-  border: <?php echo $C_802020 ; ?>;
-  color:<?php echo $C_802020 ; ?>;  
-}
-div.errors a {
-  color:<?php echo $C_800000 ; ?>;  
-}
-div.errors button {
-  color:<?php echo $C_ffffff ; ?>;
-  background:<?php echo $C_802020 ; ?>; 
-}
-div.errors button:hover {
-  color:<?php echo $C_FFB0B0 ; ?>;
-}
-div.errors button:active {
-  color:<?php echo $C_802020 ; ?>;
-  background:<?php echo $C_ffffff ; ?>;
-}
-div.infos {
-  background:<?php echo $C_B0FFB0 ;?>;
-  border: <?php echo $C_208020 ;?>;
-  color:<?php echo $C_208020 ;?>;
- 
-}
-div.infos a {
-  color:<?php echo $C_008000 ;?>;
-  
-}
-div.infos button {
-  color:<?php echo $C_ffffff ; ?>;
-  background:<?php echo $C_208020 ;?>;
-}
-div.infos button:hover {
-  color:<?php echo $C_B0FFB0 ;?>;
-}
-div.infos button:active {
-  color:<?php echo $C_208020 ;?>;
-  background:<?php echo $C_ffffff ; ?>;
-}
-
- 
- 
-div.ui-widget-overlay ,#additional_infoTOP, #additional_infoBOTTOM{
-  background:<?php echo $C_101010 ;?>;
-}
-
-.thumbnailCategory{ 
-  border-bottom:  <?php echo $border_color ;?> ;
-  border-right:  <?php echo $border_color ;?> ;
-  vetical-align:middle;
-}
-
-
-.illustration a img {
-  border:2px <?php echo $border_color ; ?> ;
-}
-
-p.thumbCatDesc {
-  border-top: <?php echo $border_color ;?> dotted;
- 
-}
-
-div ul.thumbnails img, #linkPrev img, #linkNext img {
-  border:  <?php $border_color ; ?>;
-}
-
-
-
-
-
-.copyright {
-
- background-image:<?php echo $fondHoriz_hover ; ?>; 
-  border-top: <?php echo $border_color ;?> ;
-}
-
-
-
-
-
-.titrePage{   
- background-position: center center;
-background-image:<?php echo $fondBp ;?>; 
-background-repeat: repeat-x ;  
-}
-
-
-  
-
-
-table.calMonth td.calDayCellFull:hover {
-  background-color:<?php echo $C_ffffff ; ?>;
-}
-
-
-
-/*  inputs*/
-input[type="text"], input[type="password"], select, textarea, file { 
- background: <?php echo $input_bg ;?>;   
-}
-
-input:focus, select:focus {
-  background: <?php echo $C_ffffff ; ?>; 
-}
-
-input[type="submit"], input[type="button"], input[type="reset"], button {
- 
-  border-bottom: <?php echo $border_color ;?> ;
-  border-right: <?php echo $border_color ;?> ;
-  border-top: <?php echo $C_ffffff ; ?> ;
-  border-left: <?php echo $C_ffffff ; ?> ;
-
-}
-
-input[type="submit"]:active, input[type="button"]:active, input[type="reset"]:active {
- 
-  border-bottom: <?php echo $C_ffffff ; ?> ;
-  border-right: <?php echo $C_ffffff ; ?> ;
-  border-top: <?php echo $border_color ;?> ;
-  border-left: <?php echo $border_color ;?> ;
-}
-
- 
-
-
-fieldset {
-  border: <?php echo $border_color ;?> dotted;
-}
-
-fieldset legend {
-  background-color:<?php echo $C_000000 ;?>;
-}
-/*  picture page*/
-.switchBox { 
-    border:   <?php echo $border_color ; ?>;  
-    background-color:<?php echo $fondHoriz_color ; ?>; 
-    background-image:<?php echo $fondHoriz; ?>;
-
-}
-
-#theImgHighBg {
-  background-color:<?php echo $C_000000 ;?>;
-  opacity:0.88;
-  filter:alpha(opacity:88);
-}
-
-
-.imageNumber {
-  border: <?php echo $C_999999 ;?> ;
-}
-
-#theImgContainer {
-/* border:8px <?php echo $border_color ; ?> ;*/
-}
-
-.navThumbPrevContent a img, .navThumbNextContent a img {
-  border: <?php echo $border_color ;?> ;
-}
-
-.navThumbPrevContent a:hover img, .navThumbNextContent a:hover img {
-  border: <?php echo $border_color ;?> ;
-}
-
-
-.infoTable tr { 
- 
-    border: dotted  <?php echo $border_color ;?>;
-}
-
-.infoTable .label { 
-  border-left: dotted <?php echo $border_color ;?>;
-}
-
-.infoTable tr:hover {
-    border:  <?php echo $border_color ;?>;
-      background:transparent;
-}
-.infoTable tr.emptyrow:hover {
-  background:transparent;
-
-}
-.commentDetail {
-  border-bottom: dotted <?php echo $C_606060 ;?>;
-}
- 
-#content, .content, .content .titrePage, #imageToolBarContainer,#subContent h2 {
-  border-bottom:0px <?php echo $border_color ;?> ;
-}
-
-
-.commentDetail .description .author,
-.commentDetail .description .date {
- 
-}
-#titleComment h3:hover {
-  background:<?php echo $C_303030 ;?>;
-}
-/*
- * tabs
-*/
- 
-#theTabsBg, #theTabs {
-    background-position: center top;
-     background-repeat: repeat-x;
-  background-attachment: fixed;
- background-image:<?php echo $fondHoriz_hover ; ?>;
-}
-
-#theTabsheets li.tab {
- 
- background-color:Transparent;
-  background-position: center;
-  background-image:<?php echo $fondHoriz_hover ; ?>;
- border:<?php echo $C_606060 ;?>;
- 
-}
-
- 
- 
-
-/*
-  tags
-*/
- 
-#fullTagCloud SPAN a:hover {
-  background:<?php echo $tag_hover ;?>; 
- 
-}
-
- 
- 
-
-.mandatorystar {
-  color:<?php echo "blue" ;?>;
-}
-
- 
-/*
-  help
-*/
-#thePopuphelpPage h1 {
-  background:<?php echo $C_606060 ;?>;
-}
-
-
-#iSimpleTipContent { background: <?php echo $C_ffffff ; ?>;
-   
-}
-div.content ul.categoryActions li.menuf ul.flag-pan .flags:hover, .menuf a img.flags {
- /* border:  <?php echo $C_303030 ;?>;*/
-}
-
-div.content ul.categoryActions li.menuf ul.flag-pan .flags {
- /* border:  <?php echo $C_000000 ;?>;*/
-}
-
-ul.flag-pan {
- 
-  border:  <?php echo $C_303030 ;?>;
-}
-
-
-/*
- * Comment editor compatibility
-*/
-div#ce-content.content, div#ce-message-block.content  {
- 
-  border:  <?php echo $C_606060 ;?>;
-}
-
- 
-
-
-.img_button{ height:25px;
-   -moz-border-radius: 3px;  /* round corners with Geko */
-  border-radius: 3px 3px; /* round corners with CSS3 compliant browsers */
-}
-#bp_cla {
-  background-position:-588px +28px;
- border:1px  white;
-   -moz-border-radius: 3px;  /* round corners with Geko */
-  border-radius: 3px 3px; /* round corners with CSS3 compliant browsers */
-}
-#bp_cla.button:hover {
-  background-position:-588px +28px;
-}
-
-
-/*==============================================================*/
-
-.gmapsMarkup {
-   background-image:<?php echo $fondHoriz; ?>;
-}
-.content bloc_stuff .isotope .isotope-item{
-         -moz-border-radius: <?php echo $rayon_2 ;?>;  /* round corners with Geko */
-        border-radius: <?php echo $rayon_2." ".$rayon_2 ;?>; /* round corners with CSS3 compliant browsers */
-      background-image:<?php echo $fondHoriz; ?> ;
-
-
-}
-.content_block, #the_page .middle_block{   
-        
-         -moz-border-radius: <?php echo $rayon_2 ;?>;  /* round corners with Geko */
-        border-radius: <?php echo $rayon_2." ".$rayon_2 ;?>; /* round corners with CSS3 compliant browsers */
-      background-image:<?php echo $fondHoriz; ?> ;
- 
-   }
-
-.content .additional_info,.content_block .additional_info,tr .additional_info{   
-border:none;
-         -moz-border-radius: <?php echo $rayon_2 ;?>;  /* round corners with Geko */
-        border-radius: <?php echo $rayon_2." ".$rayon_2 ;?>; /* round corners with CSS3 compliant browsers */
-      background-image:<?php echo $fondHoriz; ?> ;
- 
-   }
-   
-
-/*==============================================================*/
- 
-.masonry-brick:hover, .bloc:hover .title:hover, .nav_bulle:hover{
-  
-  background-image:<?php echo $fondHoriz_hover ; ?>;
-}
- 
- 
-
-  
-    #the_page #menuSwitcher.menuhidden	{ background-color: Transparent;}
-    #the_page #infoSwitcher{ background-color: Transparent;}
-
-  #quicksearch input,  input, select, textarea,input[type='submit'], input[type='reset']{ background-color: transparent ;
-  
-    }
-
-    #comments > ul > li{
- 
-  background-image:<?php echo $fondHoriz_hover ; ?>;
-    }
-        #comments > ul > li:hover{
-  background-image:<?php echo $fondHoriz; ?>;
-    }
-
-
-button:hover  {
- color:<?php echo $lien_a_hover ;?>;
- 
-}
-input[type='text'], input[type='password'], input[type='button'], input[type='submit'], input[type='reset'], input[type='file'], select, textarea{
-   color: <?php echo $lien_a ;?>; 
-}
-.commentList a,.content_block a,
-input[type='submit'], input[type='reset'],
-#comments .description .author, #comments .description .date,
-#tabZone *,
- .masonry-brick,
-  .bloc .title,
-   .nav_bulle,
-     *,
-      a  {     color: <?php echo $lien_a ;?>;     }
-*:active , *:hover, *:focus, a:hover {   color: <?php echo $lien_a_hover ;?>;      }
-
-.browsePath, .randomButtons, #footer_left, #copyright{
-  color: <?php echo $lien_a ;?>;  
-}
-
-#imageHeaderBar{  
-  color: <?php echo $bck_header_a ;?>; 
-    background-color:<?php echo $bck_header_color;?> ;
-    background-image:<?php echo $bck_header; ?>;
-}
- 
- #theHeader, #imageTitle {
-  color: <?php echo $bck_header_a ;?>; 
-    background-color:<?php echo $bck_header_color;?> ;
-    background-image:<?php echo $bck_header; ?>;
- }
-   
-
-
-
-
-
-#theTabsBg {
-opacity:0.2;
-filter:alpha(opacity:15)
-}
-
-.thumbnails li, #thumbnails li,.thumbnailCategories li, #thumbnails ul{
-  background-image:<?php echo $fondHoriz; ?> ;
-     -moz-border-radius: <?php echo $rayon_2 ;?>;  
-  border-radius:  <?php echo $rayon_2." ".$rayon_2 ;?>; 
-}
-.thumbnails li:hover, #thumbnails li:hover,.thumbnailCategories li:hover,#thumbnails ul:hover{
-  background-image:<?php echo $fondHoriz_hover; ?> ;
-     -moz-border-radius: <?php echo $rayon_2 ;?>;  
-  border-radius:  <?php echo $rayon_2." ".$rayon_2 ;?>; 
-}
-.switchArrow				{ background-image:url(icon/arrows_black.png);}
-.switchArrow:hover 			{ background-image:url(icon/arrows_black_hover.png);}
- <?php
-}
-?>
+ include "admin_theme.css.php" ;
+?> 
Index: /extensions/cuise/themeconf.inc.php
===================================================================
--- /extensions/cuise/themeconf.inc.php	(revision 19989)
+++ /extensions/cuise/themeconf.inc.php	(revision 19990)
@@ -28,7 +28,6 @@
 
   'admin_icon_dir' => 'themes/default/icon/admin',
-  'mime_icon_dir' => 'themes/default/icon/mimetypes/',
-  'local_head' => 'local_head.tpl',
-  'load_parent_local_head' => true
+  'mime_icon_dir' => 'themes/default/icon/mimetypes/' 
+
 );
 if( isset($_GET['cl_view']) ){
