Changeset 5762 in spip-zone


Ignore:
Timestamp:
Sep 28, 2006, 5:26:43 PM (15 years ago)
Author:
fil@…
Message:

le bloc fait accordeon

Location:
_plugins_/_test_/recommander
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/_test_/recommander/action/fragment_recommander.php

    r5752 r5762  
    8585                $r .= "<form method='post' action='".self()."'>";
    8686
    87                 $r .= "<div><label for='recommander_from'>"._T('form_pet_votre_email')."</label>";
     87                $r .= "<p><label for='recommander_from'>"._T('form_pet_votre_email')."</label>";
    8888                $r .= " <input type='text' id='recommander_from' name='recommander_from'
    89                 value='".htmlspecialchars(_request('recommander_from'))."'  class='forml' /></div>";
    90                 $r .= "<div><label for='recommander_to'>"._T('recommander:destinataire')."</label>";
     89                value='".htmlspecialchars(_request('recommander_from'))."'  class='forml' /></p>";
     90                $r .= "<p><label for='recommander_to'>"._T('recommander:destinataire')."</label>";
    9191                $r .= " <input type='text' id='recommander_to' name='recommander_to' class='forml'
    92                 value='".htmlspecialchars(_request('recommander_to'))."' class='formo' /></div>";
    93                 $r .= "<div><label for='recommander_message'>"._T('forum_texte')."</label>";
     92                value='".htmlspecialchars(_request('recommander_to'))."' class='formo' /></p>";
     93                $r .= "<p><label for='recommander_message'>"._T('forum_texte')."</label>";
    9494                $r .= " <input type='text' id='recommander_message' name='recommander_message' class='forml'
    95                 value='".htmlspecialchars(_request('recommander_message'))."' class='forml' /></div>";
     95                value='".htmlspecialchars(_request('recommander_message'))."' class='forml' /></p>";
    9696                $r .= "<div class='spip_bouton'><input type='submit' name='recommander_email' value='"._T('recommander:recommander_message')."' /></div>";
    9797
  • _plugins_/_test_/recommander/recommander.php

    r5752 r5762  
    3131        lang_select($GLOBALS['contexte_inclus']['lang']);
    3232
    33         echo "<div id='recommander' class='formulaire_spip rubriques'>\n"
     33        echo "<div id='recommander' class='formulaire_spip'>\n"
    3434        . "<h2 class='menu-titre'>"
    3535        . _T("recommander:recommander")."</h2>"
     
    3838        echo $f();
    3939
    40         $searching_div = '<div style="float: '.$GLOBALS['spip_lang_right'].'; z-index:2;"><img src="'.url_absolue(_DIR_IMG_PACK.'searching.gif').'" /></div>';
     40        $searching_div = '<div style="float: '.$GLOBALS['spip_lang_right'].'; z-index:2;"><img src="'._DIR_IMG_PACK.'searching.gif'.'" /></div>';
    4141
    4242        echo "</div>"
    43         . "<br class='nettoyeur' />\n</div>";
     43        . "</div>";
    4444
    4545        echo '
     
    6363        }
    6464        recommander_js();
    65         $("#recommander>h2").oneclick(function(){
     65        $("#recommander>h2").click(function(){
     66                $("div#formulaire_recommander:visible").slideUp("slow");
    6667                $("div#formulaire_recommander:hidden").slideDown("slow");
    6768        });
Note: See TracChangeset for help on using the changeset viewer.