reorganisation des dossiers
[mtweb] / mw / out / default / functions.php
similarity index 72%
rename from web/out/dist/functions.php
rename to mw/out/default/functions.php
index a44889a..6d94ffa 100644 (file)
@@ -1,22 +1,22 @@
 <?php
 
   if(!function_exists("mw_navig")) :
-  function mw_navig($current, $total, $max, $base_url, $start_param, $legende = null)
-  { $navig = "";
-    if($max && $total > $max)
-    { if(isset($legende))
-      { $navig .=
+  function mw_navig($current, $total, $max, $base_url, $start_param, $legende = null){
+    $navig = "";
+    if($max && $total > $max){
+      if(isset($legende)){
+        $navig .=
          $legende." ".($current + 1)." &agrave; "
         .(($current + $max) > $total ? $total : $current + $max)
         ." sur ".$total." - aller &agrave; la ";
       }
       $get_params = array();
-      if(($q = strpos($base_url, "?")) !== false)
-      { $v_query = explode("&", substr($base_url, $q + 1));
+      if(($q = strpos($base_url, "?")) !== false){
+        $v_query = explode("&", substr($base_url, $q + 1));
         $base_url = substr($base_url, 0, $q);
-        foreach($v_query as $query)
-        { if($query)
-          { $v = explode("=", $query);
+        foreach($v_query as $query){
+          if($query){
+            $v = explode("=", $query);
             $get_params[$v[0]] = $v[1];
           }
         }
@@ -30,8 +30,8 @@
       ."<select onchange=\"document.location=this.options[this.selectedIndex].value;\">\n";
       $np = 1;
       $ni = 0;
-      while($ni < $total)
-      { $navig .=
+      while($ni < $total){
+        $navig .=
          "  <option value=\"".$base_url.$start_param."=".$ni."\"".($current >= $ni && $current <= $ni ? " SELECTED" : "").">"
         .$np
         ."</option>\n";
       }
       $navig .=
        "</select>\n";
-      if($current >= $max)
-      { $navig .=
+      if($current >= $max){
+        $navig .=
           "<a href=\"".$base_url.$start_param."=".($current - $max)."\">&laquo;</a>\n";
       }
-      if($current < $total - $max)
-      { $navig .=
+      if($current < $total - $max){
+        $navig .=
           "<a href=\"".$base_url.$start_param."=".($current + $max)."\">&raquo;</a>\n";
       }
     }