So drucken Sie den Wert der Geschwindigkeit variable in einem versteckten HTML-input

Während meiner Suche, ich hätte gerne ein Tipp dazu :

Gewusst wie: übergeben Sie den Wert :

${lyear}-${key}

den Wert input type unten :

<input type="hidden" name="month2" value="" />

Zum Beispiel :

<input type="hidden" name="month2" value=#set(${lyear}-${key}) />

Ich habe versucht, aber Es funktioniert nicht !

Wenn Sie eine Beratung zu mir.

So arbeitete ich und :

<input type="hidden" name="month2" value=${lyear}-${displayMonth} />

Und :

<input type="hidden" name="month2" value="${lyear}-${displayMonth}" />

Haben eine Abfrage in einem der navigator so :

localhost:8080/comptes/mon_compte.html?display=affilies_periode&month1=01&year=2013&month2=%24*{lyear}-Décembre*

Aber ich hätte gerne eine Abfrage die wie folgt aussieht :

localhost:8080/backoffice/vendeurs/Vergütung.html?Monat=2013-08

Vielen Dank für alle Kommentare

P. S. Der code von meinem Formular :

#set ( $listKeys = [ '01' , '02' , '03' , '04' , '05' , '06' , '07' , '08' , '09' , '10' , '11' , '12' ] )

#set ( $listMois = { '01' : "Janvier" , '02' : "Février" , '03' : "Mars" , '04' : "Avril" , '05' : "Mai" , '06' : "Juin" , '07' : "Juillet" , '08' : "Août" , '09' : "Septembre" , '10' : "Octobre" , '11' : "Novembre" , '12' : "Décembreuujikjk" } )


                <fieldset class="search">


                   <form method="get" action="/comptes/mon_compte.html" style="border-top:none;"><p class="alignTop">

                   <p>

                        <span>Afficher vos détails de rémunération du mois de </span>

                        <input type="hidden" name="display" value="affilies_periode" />

                        <select name="month1" id="month1">
                            #foreach($key in $listKeys)
                                #if($listMois.get($key))
                                    #set ($displayMonth = $listMois.get($key))
                                    <option value="$key" #if($month == $key) selected #end >$displayMonth</option>
                                #end
                            #end
                        </select>

                        <select name="year" id="year">
                            #foreach($lyear in $util.listYears)
                                <option value="$lyear" #if($year == $lyear) selected #end >$lyear</option>
                            #end
                        </select>

                        ##"${R}-01"
                        ##set($begin = "${R}-01")

                        ##<input type="hidden" name="month2" value=#set(${lyear}-${key}) />


                        ##ih
                        <input type="hidden" name="month2" value=${lyear}-${displayMonth} />

                        ##set($month = $lyear-$displayMonth)

                        ##<input type="hidden" name="month2" value="${lyear}-${displayMonth}" />

                        ##<input type="hidden" name="month2" value="#set(${lyear}-${key})" />

                        <input type="submit" value="&nbsp;" class="button27 btnOk hand" style="margin-right:0;"/>               

                        <br/>
                        <br/>
                        <span>ou</span>
                        <br/>
                        <br/>                   
                        <span><td><a href="/comptes/mon_compte.html?display=affilies">Revenir à la page de rémunération globale</a></td>



</span>
                  </p>
               </form> 
</fieldset>

InformationsquelleAutor Ale | 2013-09-10

Schreibe einen Kommentar