Ticket #2604: freepbx-2.4.0-select-fix.patch

File freepbx-2.4.0-select-fix.patch, 25.1 kB (added by kRutOn, 4 years ago)

Patch to fix all the malformed selects in 2.4.0

  • modules/announcement/page.announcement.php

    old new  
    100100  <tr> 
    101101    <td><a href="#" class="info"><?php echo _("Recording")?><span><?php echo _("Message to be played.<br>To add additional recordings use the \"System Recordings\" MENU to the left")?></span></a></td> 
    102102    <td> 
    103       <select name="recording"/
     103      <select name="recording"
    104104      <?php 
    105105        $tresults = recordings_list(); 
    106106        $default = (isset($recording) ? $recording : ''); 
     
    117117  <tr> 
    118118    <td><a href="#" class="info"><?php echo _("Repeat")?><span><?php echo _("Key to press that will allow for the message to be replayed. If you choose this option there will be a short delay inserted after the message. If a longer delay is needed it should be incoporated into the recording.")?></span></a></td> 
    119119    <td> 
    120       <select name="repeat_msg"/
     120      <select name="repeat_msg"
    121121      <?php 
    122122        $default = isset($repeat_msg) ? $repeat_msg : ''; 
    123123        for ($i=0; $i<=9; $i++ ) { 
  • modules/conferences/page.conferences.php

    old new  
    140140  <tr> 
    141141    <td><a href="#" class="info"><?php echo _("Join Message:")?><span><?php echo _("Message to be played to the caller before joining the conference.<br><br>To add additional recordings please use the \"System Recordings\" MENU to the left")?></span></a></td> 
    142142    <td> 
    143       <select name="joinmsg"/
     143      <select name="joinmsg"
    144144      <?php 
    145145        $tresults = recordings_list(); 
    146146        $default = (isset($joinmsg) ? $joinmsg : ''); 
  • modules/core/page.did.php

    old new  
    195195    <tr> 
    196196      <td><a href="#" class="info"><?php echo _("Music On Hold?")?><span><?php echo _("Set the MoH class that will be used for calls that come in on this route. For example, choose a type appropriate for routes coming in from a country which may have announcements in their language.")?></span></a></td> 
    197197      <td> 
    198         <select name="mohclass"/
     198        <select name="mohclass"
    199199        <?php 
    200200          $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 
    201201          $cur = (isset($mohclass) && $mohclass != "" ? $mohclass : 'default'); 
  • modules/core/page.routing.php

    old new  
    330330    <tr> 
    331331      <td><a href="#" class="info"><?php echo _("Music On Hold?")?><span><?php echo _("You can choose which music category to use. For example, choose a type appropriate for a destination country which may have announcements in the appropriate language.")?></span></a></td> 
    332332      <td> 
    333         <select name="mohsilence"/
     333        <select name="mohsilence"
    334334        <?php 
    335335          $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 
    336336          $cur = (isset($mohsilence) && $mohsilence != "" ? $mohsilence : 'default'); 
  • modules/daynight/page.daynight.php

    old new  
    125125<?php 
    126126      if ($add == "add" && $itemid =="") { 
    127127?> 
    128       <select name="itemid"/
     128      <select name="itemid"
    129129      <?php 
    130130        $ids = daynight_get_avail(); 
    131131        foreach ($ids as $id) { 
     
    153153    </span></a> 
    154154    </td> 
    155155    <td> 
    156       <select name="state"/
     156      <select name="state"
    157157        <option value="DAY" <?php echo ($state == 'DAY' ? 'SELECTED':'') ?> >Day</option>  
    158158        <option value="NIGHT" <?php echo ($state == 'NIGHT' ? 'SELECTED':'') ?> >Night</option>  
    159159      </select> 
  • modules/findmefollow/page.findmefollow.php

    old new  
    196196        </span></a> 
    197197        </td> 
    198198        <td> 
    199           <select name="pre_ring"/
     199          <select name="pre_ring"
    200200          <?php 
    201201            $default = (isset($pre_ring) ? $pre_ring : 0); 
    202202            for ($i=0; $i <= 60; $i++) { 
     
    222222        </a> 
    223223        </td> 
    224224        <td> 
    225           <select name="strategy"/
     225          <select name="strategy"
    226226          <?php 
    227227            $default = (isset($strategy) ? $strategy : 'ringall'); 
    228228                                                $items = array('ringallv2','ringallv2-prim','ringall','ringall-prim','hunt','hunt-prim','memoryhunt','memoryhunt-prim','firstavailable','firstnotonphone'); 
     
    284284      <tr> 
    285285        <td><a href="#" class="info"><?php echo _("Announcement:")?><span><?php echo _("Message to be played to the caller before dialing this group.<br><br>To add additional recordings please use the \"System Recordings\" MENU to the left")?></span></a></td> 
    286286        <td> 
    287           <select name="annmsg"/
     287          <select name="annmsg"
    288288          <?php 
    289289            $tresults = recordings_list(); 
    290290            $default = (isset($annmsg) ? $annmsg : ''); 
     
    313313      <tr> 
    314314        <td><a href="#" class="info"><?php echo _("Play Music On Hold?")?><span><?php echo _("If you select a Music on Hold class to play, instead of 'Ring', they will hear that instead of Ringing while they are waiting for someone to pick up.")?></span></a></td> 
    315315        <td> 
    316           <select name="ringing"/
     316          <select name="ringing"
    317317          <?php 
    318318            $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 
    319319            $cur = (isset($ringing) ? $ringing : 'Ring'); 
     
    350350      <tr> 
    351351        <td><a href="#" class="info"><?php echo _("Remote Announce:")?><span><?php echo _("Message to be played to the person RECEIVING the call, if 'Confirm Calls' is enabled.<br><br>To add additional recordings use the \"System Recordings\" MENU to the left")?></span></a></td> 
    352352        <td> 
    353           <select name="remotealert"/
     353          <select name="remotealert"
    354354          <?php 
    355355            $tresults = recordings_list(); 
    356356            $default = (isset($remotealert) ? $remotealert : ''); 
     
    367367      <tr> 
    368368        <td><a href="#" class="info"><?php echo _("Too-Late Announce:")?><span><?php echo _("Message to be played to the person RECEIVING the call, if the call has already been accepted before they push 1.<br><br>To add additional recordings use the \"System Recordings\" MENU to the left")?></span></a></td> 
    369369        <td> 
    370         <select name="toolate"/
     370        <select name="toolate"
    371371          <?php 
    372372            $tresults = recordings_list(); 
    373373            $default = (isset($toolate) ? $toolate : ''); 
  • modules/ivr/page.ivr.php

    old new  
    141141    <tr> 
    142142      <td><a href="#" class="info"><?php echo _("Directory Context");?><span><?php echo _("When # is selected, this is the voicemail directory context that is used");?></span></a></td> 
    143143      <td> 
    144         <select name="dircontext"/
     144        <select name="dircontext"
    145145          <?php 
    146146          $tresults = voicemail_getVoicemail(); 
    147147          $vmcontexts = array_keys($tresults); 
     
    164164    <tr> 
    165165      <td><a href="#" class="info"><?php echo _("Announcement")?><span><?php echo _("Message to be played to the caller. To add additional recordings please use the \"System Recordings\" MENU to the left")?></span></a></td> 
    166166      <td> 
    167         <select name="annmsg"/
     167        <select name="annmsg"
    168168        <?php 
    169169          $tresults = recordings_list(); 
    170170          echo '<option value="">'._("None")."</option>"; 
  • modules/parking/page.parking.php

    old new  
    7272  <tr> 
    7373    <td><a href="#" class="info"><?php echo _("Number of Slots:")?><span><?php echo _("The total number of parking lot spaces to configure. Example, if 70 is the extension and 8 slots are configured, the parking slots will be 71-79")?></span></a></td> 
    7474    <td align=right> 
    75       <select name="numslots"/
     75      <select name="numslots"
    7676      <?php 
    7777        $default = (isset($numslots) ? $numslots : 8); 
    7878        for ($i=2; $i <= 20; $i++) { 
     
    8585  <tr> 
    8686  <td><a href="#" class="info"><?php echo _("Parking Timeout:")?><span><?php echo _("The timeout period that a parked call will attempt to ring back the original parker if not answered")?></span></a></td> 
    8787    <td align=right> 
    88       <select name="parkingtime"/
     88      <select name="parkingtime"
    8989      <?php 
    9090        $default = (isset($parkingtime) ? $parkingtime : 45); 
    9191        for ($i=15; $i <= 600; $i+=15) { 
     
    118118  <tr> 
    119119    <td><a href="#" class="info"><?php echo _("Announcement:")?><span><?php echo _("Optional message to be played to the orphaned caller prior to going on the to supplied destination below.<br><br>To add additional recordings please use the \"System Recordings\" MENU to the left")?></span></a></td> 
    120120    <td align=right> 
    121       <select name="parkingannmsg"/
     121      <select name="parkingannmsg"
    122122      <?php 
    123123        $tresults = recordings_list(); 
    124124        $default = (isset($parkingannmsg) ? $parkingannmsg : ''); 
  • modules/queues/page.queues.php

    old new  
    242242  <tr> 
    243243    <td><a href="#" class="info"><?php echo _("Agent Announcement:")?><span><?php echo _("Announcement played to the Agent prior to bridging in the caller <br><br> Example: \"the Following call is from the Sales Queue\" or \"This call is from the Technical Support Queue\".<br><br>To add additional recordings please use the \"System Recordings\" MENU to the left")?></span></a></td> 
    244244    <td> 
    245       <select name="agentannounce"/
     245      <select name="agentannounce"
    246246      <?php 
    247247        $tresults = recordings_list(); 
    248248        $default = (isset($agentannounce) ? $agentannounce : 'None'); 
     
    302302  <tr> 
    303303    <td><a href="#" class="info"><?php echo _("Music on Hold Class:")?><span><?php echo _("Music (or Commercial) played to the caller while they wait in line for an available agent. Choose \"inherit\" if you want the MoH class to be what is currently selected, such as by the inbound route.<br><br>  This music is defined in the \"Music on Hold\" Menu to the left.")?></span></a></td> 
    304304    <td> 
    305       <select name="music"/
     305      <select name="music"
    306306      <?php 
    307307        $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 
    308308        array_unshift($tresults,'inherit'); 
     
    329329  <tr> 
    330330    <td><a href="#" class="info"><?php echo _("Max Wait Time:")?><span><?php echo _("The maximum number of seconds a caller can wait in a queue before being pulled out.  (0 for unlimited).")?></span></a></td> 
    331331    <td> 
    332       <select name="maxwait"/
     332      <select name="maxwait"
    333333      <?php 
    334334        $default = (isset($maxwait) ? $maxwait : 0); 
    335335        for ($i=0; $i < 60; $i+=10) { 
     
    355355  <tr> 
    356356    <td><a href="#" class="info"><?php echo _("Max Callers:")?><span><?php echo _("Maximum number of people waiting in the queue (0 for unlimited)")?></span></a></td> 
    357357    <td> 
    358       <select name="maxlen"/
     358      <select name="maxlen"
    359359      <?php  
    360360        $default = (isset($maxlen) ? $maxlen : 0); 
    361361        for ($i=0; $i <= 50; $i++) { 
     
    369369  <tr> 
    370370    <td><a href="#" class="info"><?php echo _("Join Empty:")?><span><?php echo _("If you wish to allow callers to join queues that currently have no agents, set this to yes. Set to strict if callers cannot join a queue with no members or only unavailable members")?></span></a></td> 
    371371    <td> 
    372       <select name="joinempty"/
     372      <select name="joinempty"
    373373      <?php 
    374374        $default = (isset($joinempty) ? $joinempty : 'yes'); 
    375375        $items = array('yes'=>_("Yes"),'strict'=>_("Strict"),'no'=>_("No")); 
     
    384384  <tr> 
    385385    <td><a href="#" class="info"><?php echo _("Leave When Empty:")?><span><?php echo _("If you wish to remove callers from the queue if there are no agents present, set this to yes. Set to strict if callers cannot join a queue with no members or only unavailable members")?></span></a></td> 
    386386    <td> 
    387       <select name="leavewhenempty"/
     387      <select name="leavewhenempty"
    388388      <?php 
    389389        $default = (isset($leavewhenempty) ? $leavewhenempty : 'no'); 
    390390        $items = array('yes'=>_("Yes"),'strict'=>_("Strict"),'no'=>_("No")); 
     
    410410      </a> 
    411411    </td> 
    412412    <td> 
    413       <select name="strategy"/
     413      <select name="strategy"
    414414      <?php 
    415415        $default = (isset($strategy) ? $strategy : 'ringall'); 
    416416        $items = array('ringall','roundrobin','leastrecent','fewestcalls','random','rrmemory'); 
     
    425425  <tr> 
    426426    <td><a href="#" class="info"><?php echo _("Agent Timeout:")?><span><?php echo _("The number of seconds an agent's phone can ring before we consider it a timeout. Unlimited or other timeout values may still be limited by system ringtime or individual extension defaults.")?></span></a></td> 
    427427    <td> 
    428       <select name="timeout"/
     428      <select name="timeout"
    429429      <?php 
    430430        $default = (isset($timeout) ? $timeout : 15); 
    431431        echo '<option value="0" '.(0 == $default ? 'SELECTED' : '').'>'."Unlimited".'</option>'; 
     
    440440  <tr> 
    441441    <td><a href="#" class="info"><?php echo _("retry:")?><span><?php echo _("The number of seconds we wait before trying all the phones again")?></span></a></td> 
    442442    <td> 
    443       <select name="retry"/
     443      <select name="retry"
    444444      <?php 
    445445        $default = (isset($retry) ? $retry : 5); 
    446446        for ($i=0; $i <= 20; $i++) { 
     
    454454  <tr> 
    455455    <td><a href="#" class="info"><?php echo _("Wrap-Up-Time:")?><span><?php echo _("After a successful call, how many seconds to wait before sending a potentially free agent another call (default is 0, or no delay)")?></span></a></td> 
    456456    <td> 
    457       <select name="wrapuptime"/
     457      <select name="wrapuptime"
    458458      <?php 
    459459        $default = (isset($wrapuptime) ? $wrapuptime : 0); 
    460460        for ($i=0; $i <= 60; $i++) { 
     
    468468  <tr> 
    469469    <td><a href="#" class="info"><?php echo _("Call Recording:")?><span><?php echo _("Incoming calls to agents can be recorded. (saved to /var/spool/asterisk/monitor)")?></span></a></td> 
    470470    <td> 
    471       <select name="monitor-format"/
     471      <select name="monitor-format"
    472472      <?php 
    473473        $default = (empty($thisQ['monitor-format']) ? "no" : $thisQ['monitor-format']);   
    474474        echo '<option value="wav49" '.($default == "wav49" ? 'SELECTED' : '').'>'._("wav49").'</option>'; 
     
    483483  <tr> 
    484484    <td><a href="#" class="info"><?php echo _("Event When Called:")?><span><?php echo _("When this option is set to YES, the following manager events will be generated: AgentCalled, AgentDump, AgentConnect and AgentComplete.")?></span></a></td> 
    485485    <td> 
    486       <select name="eventwhencalled"/
     486      <select name="eventwhencalled"
    487487      <?php 
    488488        $default = (isset($eventwhencalled) ? $eventwhencalled : 'no'); 
    489489        $items = array('yes'=>_("Yes"),'no'=>_("No")); 
     
    498498  <tr> 
    499499    <td><a href="#" class="info"><?php echo _("Member Status:")?><span><?php echo _("When if this is option is set to YES, the following manager event will be generated: QueueMemberStatus")?></span></a></td> 
    500500    <td> 
    501       <select name="eventmemberstatus"/
     501      <select name="eventmemberstatus"
    502502      <?php 
    503503        $default = (isset($eventmemberstatus) ? $eventmemberstatus : 'no'); 
    504504        $items = array('yes'=>_("Yes"),'no'=>_("No")); 
     
    513513  <tr> 
    514514    <td><a href="#" class="info"><?php echo _("Skip Busy Agents:")?><span><?php echo _("When set to Yes, agents who are on an occupied phone will be skipped as if the line were returning busy. This means that Call Waiting or multi-line phones will not be presented with the call and in the various hunt style ring strategies, the next agent will be attempted.")?></span></a></td> 
    515515    <td> 
    516       <select name="cwignore"/
     516      <select name="cwignore"
    517517      <?php 
    518518        $default = (isset($cwignore) ? $cwignore : 'no'); 
    519519        $items = array('1'=>_("Yes"),'0'=>_("No")); 
     
    529529  <tr> 
    530530    <td><a href="#" class="info"><?php echo _("Frequency:")?><span><?php echo _("How often to announce queue position and estimated holdtime (0 to Disable Announcements).")?></span></a></td> 
    531531    <td> 
    532       <select name="announcefreq"/
     532      <select name="announcefreq"
    533533      <?php 
    534534        $default = (isset($thisQ['announce-frequency']) ? $thisQ['announce-frequency'] : 0); 
    535535        for ($i=0; $i <= 1200; $i+=15) { 
     
    543543  <tr> 
    544544    <td><a href="#" class="info"><?php echo _("Announce Position:")?><span><?php echo _("Announce position of caller in the queue?")?></span></a></td> 
    545545    <td> 
    546       <select name="announceposition"/
     546      <select name="announceposition"
    547547      <?php //setting to "no" will override sounds queue-youarenext, queue-thereare, queue-callswaitingÊ  
    548548        $default = (isset($thisQ['announce-position']) ? $thisQ['announce-position'] : "no");   
    549549          echo '<option value=yes '.($default == "yes" ? 'SELECTED' : '').'>'._("Yes").'</option>'; 
     
    626626  <tr> 
    627627    <td><a href="#" class="info"><?php echo _("Repeat Frequency:")?><span><?php echo _("How often to announce a voice menu to the caller (0 to Disable Announcements).")?></span></a></td> 
    628628    <td> 
    629       <select name="pannouncefreq"/
     629      <select name="pannouncefreq"
    630630      <?php 
    631631        $default = (isset($thisQ['periodic-announce-frequency']) ? $thisQ['periodic-announce-frequency'] : 0); 
    632632        for ($i=0; $i <= 1200; $i+=15) { 
     
    645645  <tr> 
    646646    <td><a href="#" class="info"><?php echo _("Join Announcement:")?><span><?php echo _("Announcement played to callers once prior to joining the queue.<br><br>To add additional recordings please use the \"System Recordings\" MENU to the left")?></span></a></td> 
    647647    <td> 
    648       <select name="joinannounce"/
     648      <select name="joinannounce"
    649649      <?php 
    650650        $tresults = recordings_list(); 
    651651        $default = (isset($joinannounce) ? $joinannounce : 'None'); 
  • modules/recordings/page.recordings.php

    old new  
    370370  <form name="xtnprompt" action="<?php $_SERVER['PHP_SELF'] ?>" method="post"> 
    371371  <input type="hidden" name="action" value="newsysrec"> 
    372372  <input type="hidden" name="display" value="recordings"> 
    373   <select name="sysrec"/
     373  <select name="sysrec"
    374374<?php 
    375375  foreach ($sysrecs as $srcount => $sr) { 
    376376    // echo '<option value="'.$vmc.'"'.($vmc == $ivr_details['dircontext'] ? ' SELECTED' : '').'>'.$vmc."</option>\n"; 
  • modules/ringgroups/page.ringgroups.php

    old new  
    210210        </span> 
    211211        </a></td> 
    212212        <td> 
    213           <select name="strategy"/
     213          <select name="strategy"
    214214          <?php 
    215215            $default = (isset($strategy) ? $strategy : 'ringall'); 
    216216                                                $items = array('ringall','ringall-prim','hunt','hunt-prim','memoryhunt','memoryhunt-prim','firstavailable','firstnotonphone'); 
     
    269269      <tr> 
    270270        <td><a href="#" class="info"><?php echo _("Announcement:")?><span><?php echo _("Message to be played to the caller before dialing this group.<br><br>To add additional recordings please use the \"System Recordings\" MENU to the left")?></span></a></td> 
    271271        <td> 
    272           <select name="annmsg"/
     272          <select name="annmsg"
    273273          <?php 
    274274            $tresults = recordings_list(); 
    275275            $default = (isset($annmsg) ? $annmsg : ''); 
     
    297297      <tr> 
    298298        <td><a href="#" class="info"><?php echo _("Play Music On Hold?")?><span><?php echo _("If you select a Music on Hold class to play, instead of 'Ring', they will hear that instead of Ringing while they are waiting for someone to pick up.")?></span></a></td> 
    299299        <td> 
    300           <select name="ringing"/
     300          <select name="ringing"
    301301          <?php 
    302302            $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 
    303303            $cur = (isset($ringing) ? $ringing : 'Ring'); 
     
    334334      <tr> 
    335335        <td><a href="#" class="info"><?php echo _("Remote Announce:")?><span><?php echo _("Message to be played to the person RECEIVING the call, if 'Confirm Calls' is enabled.<br><br>To add additional recordings use the \"System Recordings\" MENU to the left")?></span></a></td> 
    336336        <td> 
    337           <select name="remotealert"/
     337          <select name="remotealert"
    338338          <?php 
    339339            $tresults = recordings_list(); 
    340340            $default = (isset($remotealert) ? $remotealert : ''); 
     
    352352      <tr> 
    353353        <td><a href="#" class="info"><?php echo _("Too-Late Announce:")?><span><?php echo _("Message to be played to the person RECEIVING the call, if the call has already been accepted before they push 1.<br><br>To add additional recordings use the \"System Recordings\" MENU to the left")?></span></a></td> 
    354354        <td> 
    355           <select name="toolate"/
     355          <select name="toolate"
    356356          <?php 
    357357            $tresults = recordings_list(); 
    358358            $default = (isset($toolate) ? $toolate : ''); 
  • modules/timeconditions/page.timeconditions.php

    old new  
    175175                               if ( !$minute_finish ) $minute_finish = $minute_start; 
    176176                           } 
    177177                       ?> 
    178                         <select name="hour_start"/
     178                        <select name="hour_start"
    179179                        <?php 
    180180                           $default = ''; 
    181181                            if ( $hour_start === '-' ) $default = ' selected'; 
     
    188188                        ?> 
    189189                        </select> 
    190190                       <nbsp>:<nbsp> 
    191                         <select name="minute_start"/
     191                        <select name="minute_start"
    192192                        <?php 
    193193                           $default = ''; 
    194194                            if ( $minute_start === '-' ) $default = ' selected'; 
     
    205205               <tr> 
    206206                   <td><?php echo _("Time to finish:")?></td> 
    207207                   <td> 
    208                         <select name="hour_finish"/
     208                        <select name="hour_finish"
    209209                        <?php 
    210210                           $default = ''; 
    211211                            if ( $hour_finish === '-' ) $default = ' selected'; 
     
    218218                        ?> 
    219219                        </select> 
    220220                       <nbsp>:<nbsp> 
    221                         <select name="minute_finish"/
     221                        <select name="minute_finish"
    222222                        <?php 
    223223                            $default = ''; 
    224224                            if ( $minute_finish === '-' ) $default = ' selected'; 
     
    244244                    ?> 
    245245                   <td><?php echo _("Week Day Start:")?></td> 
    246246                   <td> 
    247                        <select name="wday_start"/
     247                       <select name="wday_start"
    248248                           <?php  
    249249                               if ( $wday_start == '-' ) { $default = ' selected'; } 
    250250                               else {$default = '';} 
     
    283283               <tr> 
    284284                   <td><?php echo _("Week Day finish:")?></td> 
    285285                   <td> 
    286                        <select name="wday_finish"/
     286                       <select name="wday_finish"
    287287                       <?php  
    288288                               if ( $wday_finish == '-' ) { $default = ' selected'; } 
    289289                               else {$default = '';} 
     
    331331                         } 
    332332                   ?> 
    333333                  <td> 
    334                         <select name="mday_start"/
     334                        <select name="mday_start"
    335335                         <?php 
    336336                            $default = ''; 
    337337                            if ( $mday_start == '-' ) $default = ' selected'; 
     
    347347               <tr> 
    348348                   <td><?php echo _("Month Day finish:")?></td> 
    349349                  <td> 
    350                         <select name="mday_finish"/
     350                        <select name="mday_finish"
    351351                        <?php 
    352352                            $default = ''; 
    353353                            if ( $mday_finish == '-' ) $default = ' selected'; 
     
    373373                         } 
    374374                   ?> 
    375375                  <td> 
    376                         <select name="month_start"/
     376                        <select name="month_start"
    377377                            <?php    
    378378                                if ( $month_start == '-' ) { $default = ' selected'; } 
    379379                                else {$default = '';} 
     
    431431                <tr> 
    432432                    <td><?php echo _("Month finish:")?></td> 
    433433                    <td> 
    434                         <select name="month_finish"/
     434                        <select name="month_finish"
    435435                        <?php    
    436436                                if ( $month_finish == '-' ) { $default = ' selected'; } 
    437437                                else {$default = '';}