Ajout de la traduction par google + validation formulaire
authoryounes.tazi <younes@imac-de-younes-tazi.local>
Thu, 18 Feb 2010 21:10:37 +0000 (16:10 -0500)
committeryounes.tazi <younes@imac-de-younes-tazi.local>
Thu, 18 Feb 2010 21:10:37 +0000 (16:10 -0500)
README.txt
ecriremail.php
squelettes/css/patches/site_patches.css
squelettes/css/screen/basemod.css
squelettes/css/screen/content.css
squelettes/css/screen/formulaire.css
squelettes/formulaire.html
squelettes/inc-entete.html
squelettes/js/lib/main.js

index f1a3914..e8adedd 100644 (file)
@@ -1,8 +1,6 @@
 CONFIG:
 cr\8eer config/connect.php a partir de config/connect.php.edit 
 
-
-
 CREER:
 tmp/
 IMG/
@@ -12,4 +10,8 @@ local/
 DROIT D'ECRITURE:
 Donner 667 a:
 tmp/
-ecrire/local/
\ No newline at end of file
+ecrire/local/
+
+MODIFIER:
+valeur de la variable site_url dans /squelettes/js/lib/main.js
+valeur de la variable $font dans /ecriremail.php
\ No newline at end of file
index 3b7a7c4..f243e1a 100755 (executable)
@@ -8,7 +8,7 @@ $ecrire=str_rot13($ecrire);
 
 $fontsize = 10 ;
 
-$font = "/Applications/MAMP/htdocs/forumheracles/Vera.ttf" ;
+$font = "/Applications/MAMP/htdocs/forum_heracles/Vera.ttf" ;
 $angle = 0 ;
 $size = ImageTTFBBox( $fontsize, $angle, $font, $ecrire ) ;
 
index 7c9c6d3..26a0e01 100755 (executable)
@@ -44,4 +44,6 @@
     /* JS-Expression for min-/max-width simulation */
     width: expression((document.documentElement && document.documentElement.clientHeight) ? ((document.documentElement.clientWidth < 740) ? "740px" : ((document.documentElement.clientWidth > (90 * 16 * (parseInt(this.parentNode.currentStyle.fontSize) / 100))) ? "81em" : "auto" )) : ((document.body.clientWidth < 740) ? "740px" : ((document.body.clientWidth > (90 * 16 * (parseInt(this.parentNode.currentStyle.fontSize) / 100))) ? "81em" : "auto" )));
   }
+  
+  * html #google_translate_element{ display:none}
 }
index b368194..8dd9e74 100755 (executable)
                border-bottom: 4px solid #f54b00;
        }
        
+       
        #topnav_menu{
                margin: 0 auto; 
-               width: 950px; 
-               color:#f54b00; 
+               width: 950px;
                text-align:right; 
                font-size: 11px; 
-               padding-top: 7px; 
+               padding-top: 6px; 
                padding-right:20px;
        }
        
                background:#f54b00 url("../../images/css/fond_header.gif") repeat-x top left; 
        }
        
-       #header .logo_image { 
+       #header #logo_image { 
                width:930px; 
                height:160px; 
                padding: 0 10px 10px 10px; 
                background: url("../../images/css/logo_site.gif") top center no-repeat;
+               float:left;
        }
        
        #main { 
index 0e0e1a9..6008d32 100755 (executable)
                border:1px solid #EDEDED;
        }
 
-
        /**
        FACEBOX
        **/     
        #facebox .fiche_imp table { width: 100%; border-collapse:collapse;}
        #facebox .fiche_imp table td  { vertical-align: top; font-size: 10pt; }
 
+/**************************/
+/*Google translate */
+/**************************/
+
+       #google_translate_element{
+               position:relative;
+               left:-172px;
+               top:10px
+       }
+       
+       select.goog-te-combo{
+               background-color:#FFFFFF;
+               color:#F54B00;
+               font-size:12px;
+               width:160px;
+       } 
        
 }
 
index aac533f..f58c4c4 100644 (file)
@@ -62,7 +62,7 @@ input,select,textarea,option{font-family:inherit;font-size:inherit}
 
 .ss-q-short{width:50px}
 
-.ss-q-long{width:300px}
+.ss-q-long{width:285px}
 
 .ss-form-entry{margin-bottom:0;zoom:1;}
 
@@ -143,6 +143,7 @@ table{border-collapse:collapse}
 .LV_validation_message{
     font-weight:bold;
     margin:0 0 0 5px;
+       
 }
 
 .LV_valid {
@@ -151,6 +152,7 @@ table{border-collapse:collapse}
        
 .LV_invalid {
     color:#CC0000;
+       text-decoration:blink;
 }
     
 .LV_valid_field,
index 050ce77..1a9cf87 100644 (file)
@@ -3,10 +3,10 @@
        <head>
         <meta http-equiv="Content-type" content="text/html; charset=utf-8">
         <title>Formulaire d&#39;adh&eacute;sion en ligne (&agrave; compl&eacute;ter)</title>
-        <link href="squelettes/css/screen/formulaire.css" rel="stylesheet" type="text/css" />
+        <link href="[(#DOSSIER_SQUELETTE)]/css/screen/formulaire.css" rel="stylesheet" type="text/css" />
 
         
-         <script type="text/javascript" src="squelettes/js/lib/livevalidation_standalone.js"></script>
+         <script type="text/javascript" src="[(#DOSSIER_SQUELETTE)]/js/lib/livevalidation_standalone.js"></script>
 
     </head>
 <body class="ss-base-body" dir="ltr"><div class="ss-form-container">
                 <label class="ss-q-title" for="entry_0">Nom de l&#39;&eacute;tablissement</label>
                 <label class="ss-q-help" for="entry_0"></label>
                 <input type="text" name="entry.0.single" value="" class="ss-q-long" id="entry_0">
+                <script type="text/javascript">
+                                       var entry_0 = new LiveValidation('entry_0');
+                                       entry_0.add( Validate.Presence );
+                               </script>
              </div>
         </div>
         
                 <label class="ss-q-title" for="entry_1">Adresse</label>
                 <label class="ss-q-help" for="entry_1"></label>
                 <input type="text" name="entry.1.single" value="" class="ss-q-long" id="entry_1">
+                <script type="text/javascript">
+                                       var entry_1 = new LiveValidation('entry_1');
+                                       entry_1.add( Validate.Presence );
+                               </script>
              </div>
         </div>  
         
                 <label class="ss-q-title" for="entry_4">T&eacute;l&eacute;phone</label>
                 <label class="ss-q-help" for="entry_4">(Indicatif du pays + téléphone)</label>
                 <input type="text" name="entry.2.single" value="" class="ss-q-short" id="entry_2"><input type="text" name="entry.4.single" value="" class="ss-q-long" id="entry_4">
+                <script type="text/javascript">
+                                       var entry_4 = new LiveValidation('entry_4');
+                                       entry_4.add( Validate.Presence );
+                               </script>
              </div>
         </div>
         
                 <label class="ss-q-help" for="entry_6"></label>
                 <input type="text" name="entry.6.single" value="" class="ss-q-long" id="entry_6">
                 <script type="text/javascript">
-                                               var entry_6 = new LiveValidation('entry_6');
-                                               entry_6.add( Validate.Email );
-                                       </script>
+                                       var entry_6 = new LiveValidation('entry_6');
+                                       entry_6.add( Validate.Presence );
+                                       entry_6.add( Validate.Email );
+                               </script>
              </div>
         </div>
         
index 10ff4af..1411ef0 100644 (file)
@@ -1,4 +1,14 @@
 <!-- BEGIN  TOP -->
+
+<script>
+function googleTranslateElementInit() {
+  new google.translate.TranslateElement({
+    pageLanguage: 'fr',
+    includedLanguages: 'en,ar,es,pt'
+  }, 'google_translate_element');
+}
+</script><script src="http://translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
+
        <div id="topnav_container">
        <div id="topnav_menu"><a href="#URL_SITE_SPIP/">Accueil</a>&nbsp;|&nbsp;<a href="#URL_SITE_SPIP/spip.php?page=plan">Plan du site</a>&nbsp;|&nbsp;<BOUCLE_joindre(ARTICLES){id_article=13}><a href="#URL_ARTICLE">[(#TITRE|supprimer_numero)]</a></BOUCLE_joindre></div>
        </div>
@@ -9,6 +19,7 @@
    
    <!-- BEGIN HEADER -->
     <div id="header">
-        <div class="logo_image"><a href="#URL_SITE_SPIP/"><img src="[(#DOSSIER_SQUELETTE)]/images/css/pixel.gif" alt="pixel" title="Accueil" border="0" width="930" height="150" /></a></div>
+        <div id="logo_image"><a href="#URL_SITE_SPIP/"><img src="[(#DOSSIER_SQUELETTE)]/images/css/pixel.gif" alt="pixel" title="Accueil" border="0" width="630" height="150" /></a></div>
+       <div id="google_translate_element"></div>
     </div>
     <!-- END HEADER -->
\ No newline at end of file
index 82c3956..a990f9f 100644 (file)
@@ -2,7 +2,7 @@
 VARS à CHANGER
 */
 
-var site_url = "http://localhost:8888/forumheracles/";
+var site_url = "http://10.36.1.180:8888/forum_heracles/";
 
 
 /*------------------------------------------------------------