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) |
|---|
-
modules/announcement/page.announcement.php
old new 100 100 <tr> 101 101 <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> 102 102 <td> 103 <select name="recording" />103 <select name="recording"> 104 104 <?php 105 105 $tresults = recordings_list(); 106 106 $default = (isset($recording) ? $recording : ''); … … 117 117 <tr> 118 118 <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> 119 119 <td> 120 <select name="repeat_msg" />120 <select name="repeat_msg"> 121 121 <?php 122 122 $default = isset($repeat_msg) ? $repeat_msg : ''; 123 123 for ($i=0; $i<=9; $i++ ) { -
modules/conferences/page.conferences.php
old new 140 140 <tr> 141 141 <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> 142 142 <td> 143 <select name="joinmsg" />143 <select name="joinmsg"> 144 144 <?php 145 145 $tresults = recordings_list(); 146 146 $default = (isset($joinmsg) ? $joinmsg : ''); -
modules/core/page.did.php
old new 195 195 <tr> 196 196 <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> 197 197 <td> 198 <select name="mohclass" />198 <select name="mohclass"> 199 199 <?php 200 200 $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 201 201 $cur = (isset($mohclass) && $mohclass != "" ? $mohclass : 'default'); -
modules/core/page.routing.php
old new 330 330 <tr> 331 331 <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> 332 332 <td> 333 <select name="mohsilence" />333 <select name="mohsilence"> 334 334 <?php 335 335 $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 336 336 $cur = (isset($mohsilence) && $mohsilence != "" ? $mohsilence : 'default'); -
modules/daynight/page.daynight.php
old new 125 125 <?php 126 126 if ($add == "add" && $itemid =="") { 127 127 ?> 128 <select name="itemid" />128 <select name="itemid"> 129 129 <?php 130 130 $ids = daynight_get_avail(); 131 131 foreach ($ids as $id) { … … 153 153 </span></a> 154 154 </td> 155 155 <td> 156 <select name="state" />156 <select name="state"> 157 157 <option value="DAY" <?php echo ($state == 'DAY' ? 'SELECTED':'') ?> >Day</option> 158 158 <option value="NIGHT" <?php echo ($state == 'NIGHT' ? 'SELECTED':'') ?> >Night</option> 159 159 </select> -
modules/findmefollow/page.findmefollow.php
old new 196 196 </span></a> 197 197 </td> 198 198 <td> 199 <select name="pre_ring" />199 <select name="pre_ring"> 200 200 <?php 201 201 $default = (isset($pre_ring) ? $pre_ring : 0); 202 202 for ($i=0; $i <= 60; $i++) { … … 222 222 </a> 223 223 </td> 224 224 <td> 225 <select name="strategy" />225 <select name="strategy"> 226 226 <?php 227 227 $default = (isset($strategy) ? $strategy : 'ringall'); 228 228 $items = array('ringallv2','ringallv2-prim','ringall','ringall-prim','hunt','hunt-prim','memoryhunt','memoryhunt-prim','firstavailable','firstnotonphone'); … … 284 284 <tr> 285 285 <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> 286 286 <td> 287 <select name="annmsg" />287 <select name="annmsg"> 288 288 <?php 289 289 $tresults = recordings_list(); 290 290 $default = (isset($annmsg) ? $annmsg : ''); … … 313 313 <tr> 314 314 <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> 315 315 <td> 316 <select name="ringing" />316 <select name="ringing"> 317 317 <?php 318 318 $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 319 319 $cur = (isset($ringing) ? $ringing : 'Ring'); … … 350 350 <tr> 351 351 <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> 352 352 <td> 353 <select name="remotealert" />353 <select name="remotealert"> 354 354 <?php 355 355 $tresults = recordings_list(); 356 356 $default = (isset($remotealert) ? $remotealert : ''); … … 367 367 <tr> 368 368 <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> 369 369 <td> 370 <select name="toolate" />370 <select name="toolate"> 371 371 <?php 372 372 $tresults = recordings_list(); 373 373 $default = (isset($toolate) ? $toolate : ''); -
modules/ivr/page.ivr.php
old new 141 141 <tr> 142 142 <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> 143 143 <td> 144 <select name="dircontext" />144 <select name="dircontext"> 145 145 <?php 146 146 $tresults = voicemail_getVoicemail(); 147 147 $vmcontexts = array_keys($tresults); … … 164 164 <tr> 165 165 <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> 166 166 <td> 167 <select name="annmsg" />167 <select name="annmsg"> 168 168 <?php 169 169 $tresults = recordings_list(); 170 170 echo '<option value="">'._("None")."</option>"; -
modules/parking/page.parking.php
old new 72 72 <tr> 73 73 <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> 74 74 <td align=right> 75 <select name="numslots" />75 <select name="numslots"> 76 76 <?php 77 77 $default = (isset($numslots) ? $numslots : 8); 78 78 for ($i=2; $i <= 20; $i++) { … … 85 85 <tr> 86 86 <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> 87 87 <td align=right> 88 <select name="parkingtime" />88 <select name="parkingtime"> 89 89 <?php 90 90 $default = (isset($parkingtime) ? $parkingtime : 45); 91 91 for ($i=15; $i <= 600; $i+=15) { … … 118 118 <tr> 119 119 <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> 120 120 <td align=right> 121 <select name="parkingannmsg" />121 <select name="parkingannmsg"> 122 122 <?php 123 123 $tresults = recordings_list(); 124 124 $default = (isset($parkingannmsg) ? $parkingannmsg : ''); -
modules/queues/page.queues.php
old new 242 242 <tr> 243 243 <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> 244 244 <td> 245 <select name="agentannounce" />245 <select name="agentannounce"> 246 246 <?php 247 247 $tresults = recordings_list(); 248 248 $default = (isset($agentannounce) ? $agentannounce : 'None'); … … 302 302 <tr> 303 303 <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> 304 304 <td> 305 <select name="music" />305 <select name="music"> 306 306 <?php 307 307 $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 308 308 array_unshift($tresults,'inherit'); … … 329 329 <tr> 330 330 <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> 331 331 <td> 332 <select name="maxwait" />332 <select name="maxwait"> 333 333 <?php 334 334 $default = (isset($maxwait) ? $maxwait : 0); 335 335 for ($i=0; $i < 60; $i+=10) { … … 355 355 <tr> 356 356 <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> 357 357 <td> 358 <select name="maxlen" />358 <select name="maxlen"> 359 359 <?php 360 360 $default = (isset($maxlen) ? $maxlen : 0); 361 361 for ($i=0; $i <= 50; $i++) { … … 369 369 <tr> 370 370 <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> 371 371 <td> 372 <select name="joinempty" />372 <select name="joinempty"> 373 373 <?php 374 374 $default = (isset($joinempty) ? $joinempty : 'yes'); 375 375 $items = array('yes'=>_("Yes"),'strict'=>_("Strict"),'no'=>_("No")); … … 384 384 <tr> 385 385 <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> 386 386 <td> 387 <select name="leavewhenempty" />387 <select name="leavewhenempty"> 388 388 <?php 389 389 $default = (isset($leavewhenempty) ? $leavewhenempty : 'no'); 390 390 $items = array('yes'=>_("Yes"),'strict'=>_("Strict"),'no'=>_("No")); … … 410 410 </a> 411 411 </td> 412 412 <td> 413 <select name="strategy" />413 <select name="strategy"> 414 414 <?php 415 415 $default = (isset($strategy) ? $strategy : 'ringall'); 416 416 $items = array('ringall','roundrobin','leastrecent','fewestcalls','random','rrmemory'); … … 425 425 <tr> 426 426 <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> 427 427 <td> 428 <select name="timeout" />428 <select name="timeout"> 429 429 <?php 430 430 $default = (isset($timeout) ? $timeout : 15); 431 431 echo '<option value="0" '.(0 == $default ? 'SELECTED' : '').'>'."Unlimited".'</option>'; … … 440 440 <tr> 441 441 <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> 442 442 <td> 443 <select name="retry" />443 <select name="retry"> 444 444 <?php 445 445 $default = (isset($retry) ? $retry : 5); 446 446 for ($i=0; $i <= 20; $i++) { … … 454 454 <tr> 455 455 <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> 456 456 <td> 457 <select name="wrapuptime" />457 <select name="wrapuptime"> 458 458 <?php 459 459 $default = (isset($wrapuptime) ? $wrapuptime : 0); 460 460 for ($i=0; $i <= 60; $i++) { … … 468 468 <tr> 469 469 <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> 470 470 <td> 471 <select name="monitor-format" />471 <select name="monitor-format"> 472 472 <?php 473 473 $default = (empty($thisQ['monitor-format']) ? "no" : $thisQ['monitor-format']); 474 474 echo '<option value="wav49" '.($default == "wav49" ? 'SELECTED' : '').'>'._("wav49").'</option>'; … … 483 483 <tr> 484 484 <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> 485 485 <td> 486 <select name="eventwhencalled" />486 <select name="eventwhencalled"> 487 487 <?php 488 488 $default = (isset($eventwhencalled) ? $eventwhencalled : 'no'); 489 489 $items = array('yes'=>_("Yes"),'no'=>_("No")); … … 498 498 <tr> 499 499 <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> 500 500 <td> 501 <select name="eventmemberstatus" />501 <select name="eventmemberstatus"> 502 502 <?php 503 503 $default = (isset($eventmemberstatus) ? $eventmemberstatus : 'no'); 504 504 $items = array('yes'=>_("Yes"),'no'=>_("No")); … … 513 513 <tr> 514 514 <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> 515 515 <td> 516 <select name="cwignore" />516 <select name="cwignore"> 517 517 <?php 518 518 $default = (isset($cwignore) ? $cwignore : 'no'); 519 519 $items = array('1'=>_("Yes"),'0'=>_("No")); … … 529 529 <tr> 530 530 <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> 531 531 <td> 532 <select name="announcefreq" />532 <select name="announcefreq"> 533 533 <?php 534 534 $default = (isset($thisQ['announce-frequency']) ? $thisQ['announce-frequency'] : 0); 535 535 for ($i=0; $i <= 1200; $i+=15) { … … 543 543 <tr> 544 544 <td><a href="#" class="info"><?php echo _("Announce Position:")?><span><?php echo _("Announce position of caller in the queue?")?></span></a></td> 545 545 <td> 546 <select name="announceposition" />546 <select name="announceposition"> 547 547 <?php //setting to "no" will override sounds queue-youarenext, queue-thereare, queue-callswaitingĂ 548 548 $default = (isset($thisQ['announce-position']) ? $thisQ['announce-position'] : "no"); 549 549 echo '<option value=yes '.($default == "yes" ? 'SELECTED' : '').'>'._("Yes").'</option>'; … … 626 626 <tr> 627 627 <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> 628 628 <td> 629 <select name="pannouncefreq" />629 <select name="pannouncefreq"> 630 630 <?php 631 631 $default = (isset($thisQ['periodic-announce-frequency']) ? $thisQ['periodic-announce-frequency'] : 0); 632 632 for ($i=0; $i <= 1200; $i+=15) { … … 645 645 <tr> 646 646 <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> 647 647 <td> 648 <select name="joinannounce" />648 <select name="joinannounce"> 649 649 <?php 650 650 $tresults = recordings_list(); 651 651 $default = (isset($joinannounce) ? $joinannounce : 'None'); -
modules/recordings/page.recordings.php
old new 370 370 <form name="xtnprompt" action="<?php $_SERVER['PHP_SELF'] ?>" method="post"> 371 371 <input type="hidden" name="action" value="newsysrec"> 372 372 <input type="hidden" name="display" value="recordings"> 373 <select name="sysrec" />373 <select name="sysrec"> 374 374 <?php 375 375 foreach ($sysrecs as $srcount => $sr) { 376 376 // echo '<option value="'.$vmc.'"'.($vmc == $ivr_details['dircontext'] ? ' SELECTED' : '').'>'.$vmc."</option>\n"; -
modules/ringgroups/page.ringgroups.php
old new 210 210 </span> 211 211 </a></td> 212 212 <td> 213 <select name="strategy" />213 <select name="strategy"> 214 214 <?php 215 215 $default = (isset($strategy) ? $strategy : 'ringall'); 216 216 $items = array('ringall','ringall-prim','hunt','hunt-prim','memoryhunt','memoryhunt-prim','firstavailable','firstnotonphone'); … … 269 269 <tr> 270 270 <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> 271 271 <td> 272 <select name="annmsg" />272 <select name="annmsg"> 273 273 <?php 274 274 $tresults = recordings_list(); 275 275 $default = (isset($annmsg) ? $annmsg : ''); … … 297 297 <tr> 298 298 <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> 299 299 <td> 300 <select name="ringing" />300 <select name="ringing"> 301 301 <?php 302 302 $tresults = music_list($amp_conf['ASTVARLIBDIR']."/mohmp3"); 303 303 $cur = (isset($ringing) ? $ringing : 'Ring'); … … 334 334 <tr> 335 335 <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> 336 336 <td> 337 <select name="remotealert" />337 <select name="remotealert"> 338 338 <?php 339 339 $tresults = recordings_list(); 340 340 $default = (isset($remotealert) ? $remotealert : ''); … … 352 352 <tr> 353 353 <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> 354 354 <td> 355 <select name="toolate" />355 <select name="toolate"> 356 356 <?php 357 357 $tresults = recordings_list(); 358 358 $default = (isset($toolate) ? $toolate : ''); -
modules/timeconditions/page.timeconditions.php
old new 175 175 if ( !$minute_finish ) $minute_finish = $minute_start; 176 176 } 177 177 ?> 178 <select name="hour_start" />178 <select name="hour_start"> 179 179 <?php 180 180 $default = ''; 181 181 if ( $hour_start === '-' ) $default = ' selected'; … … 188 188 ?> 189 189 </select> 190 190 <nbsp>:<nbsp> 191 <select name="minute_start" />191 <select name="minute_start"> 192 192 <?php 193 193 $default = ''; 194 194 if ( $minute_start === '-' ) $default = ' selected'; … … 205 205 <tr> 206 206 <td><?php echo _("Time to finish:")?></td> 207 207 <td> 208 <select name="hour_finish" />208 <select name="hour_finish"> 209 209 <?php 210 210 $default = ''; 211 211 if ( $hour_finish === '-' ) $default = ' selected'; … … 218 218 ?> 219 219 </select> 220 220 <nbsp>:<nbsp> 221 <select name="minute_finish" />221 <select name="minute_finish"> 222 222 <?php 223 223 $default = ''; 224 224 if ( $minute_finish === '-' ) $default = ' selected'; … … 244 244 ?> 245 245 <td><?php echo _("Week Day Start:")?></td> 246 246 <td> 247 <select name="wday_start" />247 <select name="wday_start"> 248 248 <?php 249 249 if ( $wday_start == '-' ) { $default = ' selected'; } 250 250 else {$default = '';} … … 283 283 <tr> 284 284 <td><?php echo _("Week Day finish:")?></td> 285 285 <td> 286 <select name="wday_finish" />286 <select name="wday_finish"> 287 287 <?php 288 288 if ( $wday_finish == '-' ) { $default = ' selected'; } 289 289 else {$default = '';} … … 331 331 } 332 332 ?> 333 333 <td> 334 <select name="mday_start" />334 <select name="mday_start"> 335 335 <?php 336 336 $default = ''; 337 337 if ( $mday_start == '-' ) $default = ' selected'; … … 347 347 <tr> 348 348 <td><?php echo _("Month Day finish:")?></td> 349 349 <td> 350 <select name="mday_finish" />350 <select name="mday_finish"> 351 351 <?php 352 352 $default = ''; 353 353 if ( $mday_finish == '-' ) $default = ' selected'; … … 373 373 } 374 374 ?> 375 375 <td> 376 <select name="month_start" />376 <select name="month_start"> 377 377 <?php 378 378 if ( $month_start == '-' ) { $default = ' selected'; } 379 379 else {$default = '';} … … 431 431 <tr> 432 432 <td><?php echo _("Month finish:")?></td> 433 433 <td> 434 <select name="month_finish" />434 <select name="month_finish"> 435 435 <?php 436 436 if ( $month_finish == '-' ) { $default = ' selected'; } 437 437 else {$default = '';}
