Changeset 6162
- Timestamp:
- 07/23/08 19:47:28 (3 months ago)
- Files:
-
- modules/branches/2.5/queues/page.queues.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
modules/branches/2.5/queues/page.queues.php
r5949 r6162 242 242 <?php if(function_exists('recordings_list')) { //only include if recordings is enabled?> 243 243 <tr> 244 <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 <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. Compound recordings composed of 2 or more sound files are not displayed as options since this feature can not accept such recordings.")?></span></a></td> 245 245 <td> 246 246 <select name="agentannounce" tabindex="<?php echo ++$tabindex;?>"> 247 247 <?php 248 $tresults = recordings_list( );248 $tresults = recordings_list(false); 249 249 $default = (isset($agentannounce) ? $agentannounce : 'None'); 250 251 $compound_recordings = false;252 $is_error = false;253 250 254 251 echo '<option value="None">'._("None").'</option>'; 255 252 if (isset($tresults[0])) { 256 253 foreach ($tresults as $tresult) { 257 if (strpos($tresult[2],"&") === false) { 258 echo '<option value="'.$tresult[2].'"'.($tresult[2] == $default ? ' SELECTED' : '').'>'.$tresult[1]."</option>\n"; 259 } else { 260 $compound_recordings = true; 261 echo '<option style="color:red" value="'.$tresult[2].'"'.($tresult[2] == $default ? ' SELECTED' : '').'>'.$tresult[1]." (**)</option>\n"; 262 if ($tresult[2] == $default) { 263 $is_error = true; 264 } 265 } 254 echo '<option value="'.$tresult['id'].'"'.($tresult['id'] == $default ? ' SELECTED' : '').'>'.$tresult['displayname']."</option>\n"; 266 255 } 267 256 } 268 257 ?> 269 258 </select> 270 <?php 271 if ($compound_recordings) { 272 ?> 273 <small><a style="color:red" href="#" class="info"><?php echo ($is_error ? _("(**) ERRORS") : _("(**) Warning Potential Errors"))?> 274 <span> 275 <?php 276 if ($is_error) { 277 echo _("ERROR: You have configured a compound annoucement in your selection. These are annoucements composed of multiple concatenated sound files. The Queue system is not able to play such sound files. Your announcement file will be concatentated and only the first sound file will be played."); 278 } else { 279 echo _("There are compound annoucements in your selection. These are annoucements composed of multiple concatenated sound files. The Queue system is not able to play such sound files. If you choose one of these annoucements your announcement will be concatentated and only the first sound file will be played."); 280 } 281 ?> 282 </span></small> 283 </a> 284 <?php 285 } 286 ?> 287 </td> 288 </tr> 289 259 </td> 260 </tr> 290 261 <?php } else { ?> 291 262 <tr> … … 596 567 $menu_id = $unique_aa['ivr_id']; 597 568 $menu_name = $unique_aa['displayname']; 569 570 $unique_aa['announcement'] = recordings_get_file($unique_aa['announcement_id']); 598 571 if (strpos($unique_aa['announcement'],"&") === false) { 599 572 echo '<option value="'.$menu_id.'" '.($default == $menu_id ? 'SELECTED' : '').'>'.($menu_name ? $menu_name : _("Menu ID ").$menu_id)."</option>\n";
