<!-- ================================================================= -->
<!-- dlg_message.php                                                   -->
<!-- ================================================================= -->
<!-- HTML defining a popup dialog box for an individual voicemail      -->
<!-- message.                                                          -->
<!-- ================================================================= -->
<!-- Copyright (c) 2008-2009 Avaya Inc.                                -->
<!-- 29May08 acurtis            Added previous/next message selection. -->
<!-- ================================================================= -->
  <div id="dlg_msg" style="z-index:1000; width:<?php if ($clientwidth<640) echo $clientwidth; else echo 640;?>px; position:absolute; top:10px; left: 10px; visibility:hidden;">
    <div onmousedown="DragNDrop(event, 'dlg_msg')" style="height:20px;">
      <img style="position:absolute; left:0; top:0; margin-left:0; margin-top:0;"  src="<?php echo 'images/'.$currentTheme.'/titlebar_left_tr.gif' ?>" alt="" />
      <img style="position:absolute; right:0; top:0; margin-right:0; margin-top:0;" src="<?php echo 'images/'.$currentTheme.'/titlebar_right_tr.gif' ?>" alt="" />
      <div style="position:absolute; left:16px; top:0; width:<?php if ($clientwidth<640) echo ($clientwidth-32); else echo 608;?>px;height:20px; background:url(<?php echo 'images/'.$currentTheme.'/titlebar-middle.gif' ?>);">
        <img title="Close" class="ImgBtn" style="margin-top:2px; width:16px; height:16px; cursor:default; text-align:center; float:right;" src="<?php echo 'images/'.$currentTheme.'/close.gif'?>" alt="<?php echo TextToHtml(gettext('Close'));?>" onmousedown="CatchEvent(event); ActivateDialog('dlg_msg',false); SetCurrentMessage(null); return false;" />
        <span style="margin-top:2px; margin-left:3px; font-size:12px; font-weight:bold; float:left;"><?php echo TextToHtml(gettext('Voice Message'));?></span>
      </div>
    </div>
    <div style="border:1px solid #656565; background:url(<?php echo 'images/'.$currentTheme.'/main-middle.gif' ?>); padding-bottom:4px;">
      <table style="margin:0; margin-top:5px; padding:0; padding-bottom:5px; border-spacing:0; border-collapse:collapse; width:100%;" >
        <tr>
          <td style="padding:0; width:87px;" rowspan="2">
            <img id="dlg_msg_icon" src="images/blank.gif" alt="" style="margin-left:29px;" />
            <img id="dlg_msg_priority_overlay" src="<?php echo 'images/'.$currentTheme.'/priority32.gif'?>" alt="" style="margin-left:-32px;" />
            <img id="dlg_msg_private_overlay" src="<?php echo 'images/'.$currentTheme.'/private32.gif'?>" alt="" style="margin-left:-32px;" />
          </td>
          <td style="padding:0;" >
            <p style="margin:0; margin-left:2px; padding:0;" ><?php echo gettext('From')?></p>
            <p id="dlg_msg_callerid" style="margin:0; font-weight:bold; font-size:12pt; color:#333333;">&nbsp;</p>
          </td>
          <td style="padding:0;" >
            <p style="margin:0; margin-left:2px; padding:0;" ><?php echo gettext('To')?></p>
            <p id="dlg_msg_calledid" style="margin:0; font-weight:bold; font-size:12pt; color:#333333;">&nbsp;</p>
          </td>
          <td style="padding:0;" >
            <p id="dlg_msg_msgnum_label" style="margin:0; margin-left:2px; padding:0;" ><?php echo gettext('Message')?></p>
            <p id="dlg_msg_msgnum" style="margin:0; font-weight:bold; font-size:12pt; color:#333333;">&nbsp;</p>
          </td>
        </tr>
        <tr>
          <td style="padding:0;padding-top:8px;" >
            <p style="margin:0; margin-left:2px; padding:0;" ><?php echo gettext('Received')?></p>
            <p id="dlg_msg_timestamp" style="margin:0; font-weight:bold; font-size:12pt; color:#333333;">&nbsp;</p>
          </td>
          <td style="padding:0;padding-top:8px;" >
            <p style="margin:0; margin-left:2px; padding:0;" ><?php echo gettext('Length')?></p>
            <p id="dlg_msg_length" style="margin:0; font-weight:bold; font-size:12pt; color:#333333;">&nbsp;</p>
          </td>
          <td style="padding:0;padding-top:8px;" >
            <img id="TBIconMsgFirst" onclick="Activity(); FirstMessage();" style="cursor:pointer; border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/first.gif'?>" alt="<?php echo TextToHtml(gettext('Go to first message'));?>" title="<?php echo TextToHtml(gettext('Go to first message'));?>" />
            <img id="TBIconMsgPrev" onclick="Activity(); PreviousMessage();" style="cursor:pointer; border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/prev.gif'?>" alt="<?php echo TextToHtml(gettext('Go to previous message'));?>" title="<?php echo TextToHtml(gettext('Go to previous message'));?>" />
            <img id="TBIconMsgNext" onclick="Activity(); NextMessage();" style="cursor:pointer; border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/next.gif'?>" alt="<?php echo TextToHtml(gettext('Go to next message'));?>" title="<?php echo TextToHtml(gettext('Go to next message'));?>" />
            <img id="TBIconMsgLast" onclick="Activity(); LastMessage();" style="cursor:pointer; border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/last.gif'?>" alt="<?php echo TextToHtml(gettext('Go to last message'));?>" title="<?php echo TextToHtml(gettext('Go to last message'));?>" />
          </td>
        </tr>
      </table>
    </div>
    <div style="padding-top:8px; padding-left:17px; border: 1px solid #656565; border-top:0; background:#c6c6c6;">
    	<div>
      <div style="float:left; white-space:nowrap; color:black; font-size:9pt; font-weight:bold; margin:0 4px 0 0; padding:2px 12px 2px 0;" id="TBTextMsgForward" onmouseover="return LightUp(this);" onmouseout="return LightDown(this);" onclick="Activity(); if(IsClickable(this.id)){CatchEvent(event);ToggleMenu('divMsgForwardMenu',this);} return false;">
        <img id="TBIconMsgForward" style="border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/forward.gif'?>" alt="<?php echo TextToHtml(gettext('Move to Folder'));?>" title="<?php echo TextToHtml(gettext('Forward message'));?>" />
        <?php if($clientwidth>640) echo gettext('Forward');?>
        <img style="border: none; margin-bottom: -3px; margin-left:-3px;" id="TBDirnMsgForward" src="<?php echo 'images/'.$currentTheme.'/downarrow.gif'?>" alt="<?php echo TextToHtml(gettext('downwards arrow'));?>" />
      </div>
      <div style="float:left; white-space:nowrap; color:black; font-size:9pt; font-weight:bold; margin:0 4px 0 0; padding:2px 12px 2px 0;" id="TBTextMsgDelete" onmouseover="return LightUp(this);" onmouseout="return LightDown(this);" onclick="Activity(); if(gCurrentMsg && IsClickable(this.id)){ConfirmAndDeleteMessages(gCurrentMsg.id);} return false;">
        <img id="TBIconMsgDelete" style="border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/delete.gif'?>" alt="<?php echo TextToHtml(gettext('Delete selected messages'));?>" title="<?php echo TextToHtml(gettext('Delete selected messages'));?>" />
        <?php if($clientwidth>640) echo gettext('Delete');?>
      </div>
      <div style="float:left; white-space:nowrap; color:black; font-size:9pt; font-weight:bold; margin:0 4px 0 0; padding:2px 12px 2px 0;" id="TBTextMsgMove" onmouseover="return LightUp(this);" onmouseout="return LightDown(this);" onclick="Activity(); if(gCurrentMsg && IsClickable(this.id)){CatchEvent(event);Undelete(gCurrentMsg.id);} return false;">
        <img id="TBIconMsgMove" style="border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/putinfolder.gif'?>" alt="<?php echo TextToHtml(gettext('Undelete'));?>" title="<?php echo TextToHtml(gettext('Undelete'));?>" />
        <?php if($clientwidth>640) echo gettext('Undelete');?>
      </div>
      <div style="float:left; white-space:nowrap; color:black; font-size:9pt; font-weight:bold; margin:0 4px 0 0; padding:2px 12px 2px 0;" id="TBTextMsgSave" onmouseover="return LightUp(this);" onmouseout="return LightDown(this);" onclick="Activity(); if(gCurrentMsg && IsClickable(this.id)){UpdateMessageState(gCurrentMsg.id,'S');} return false;">
        <img id="TBIconMsgSave" style="border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/save.gif'?>" alt="<?php echo TextToHtml(gettext('Save selected messages'));?>" title="<?php echo TextToHtml(gettext('Save selected messages'));?>" />
        <?php if($clientwidth>640) echo gettext('Save');?>
      </div>
      <div style="float:left; white-space:nowrap; color:black; font-size:9pt; font-weight:bold; margin:0 4px 0 0; padding:2px 12px 2px 0;" id="TBTextMsgMarkAsRead" onmouseover="return LightUp(this);" onmouseout="return LightDown(this);" onclick="Activity(); if(gCurrentMsg && IsClickable(this.id)){UpdateMessageState(gCurrentMsg.id,'O');} return false;">
        <img id="TBIconMsgMarkAsRead" style="border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/open.gif'?>" alt="<?php echo TextToHtml(gettext('Mark this message as read'));?>" title="<?php echo TextToHtml(gettext('Mark this message as read'));?>" />
        <?php if($clientwidth>640) echo gettext('Mark as read');?>
      </div>
      <div style="float:left; white-space:nowrap; color:black; font-size:9pt; font-weight:bold; margin:0 4px 0 0; padding:2px 12px 2px 0;" id="TBTextMsgMarkAsUnread" onmouseover="return LightUp(this);" onmouseout="return LightDown(this);" onclick="Activity(); if(gCurrentMsg && IsClickable(this.id)){UpdateMessageState(gCurrentMsg.id,'N');} return false;">
        <img id="TBIconMsgMarkAsUnread" style="border: none; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/markasunread.gif'?>" alt="<?php echo TextToHtml(gettext('Mark this message as unread'));?>" title="<?php echo TextToHtml(gettext('Mark this message as unread'));?>" />
        <?php if($clientwidth>640) echo gettext('Mark as unread');?>
      </div>
      <div style="clear:both;"></div>
    </div>
    </div>
    <div style="padding-top:8px; padding-left:13px; border: 1px solid #656565; border-top:0; border-bottom:0; background:#c6c6c6;">
      <span style="margin-left:6px;">
        <!-- Select media player -->
        <select id="dlg_msg_cbplayer" name="cbplayer" onchange="SetCurrentMediaPlayer(this.options[this.selectedIndex].value);" title="<?php echo TextToHtml(gettext('Choose a media player'));?>" >
          <?php
          $choices = array( array(Player::WIN_MEDIA_PLAYER, ($clientwidth>640)?(gettext("Play in Windows Media Player")):(gettext("Media Player"))), array(Player::EXTENSION,($clientwidth>640)?(gettext("Play on Extension")):(gettext("Extension"))) );
          foreach ( $choices as $key=>$choice)
          {
            ?>
          <option <?php if($mediaPlayer == $choice[0]){echo 'selected="selected"';} ?> value="<?php echo TextToHtml($choice[0]); ?>" ><?php echo TextToHtml($choice[1]); ?></option>
            <?php
          }
          ?>
        </select>
      </span>
      <span id="dlg_msg_extensionNumber_parent" style="visibility:<?php if( $mediaPlayer!=Player::EXTENSION ) echo 'hidden'; else echo 'inherit'; ?>;">
        <input type="text" name="extensionNumber" id="dlg_msg_extensionNumber" value="<?php echo TextToHtml($extensionNumber); ?>" />
      </span>
      <span  style="cursor:pointer; color:black; font-size:9pt; font-weight:bold; margin:0 4px 0 8px; padding:2px 12px 2px 0;" onmouseover="return LightUp(this);" onmouseout="return LightDown(this);" onclick="Activity(); if(gCurrentMsg && IsClickable(this.id)){DialFromExtn();} return false;" id="TBTextMsgDialFromExtn" style="visibility:<?php if( $mediaPlayer!=Player::EXTENSION ) echo 'hidden'; else echo 'inherit'; ?>;">
        <img id="TBIconMsgDialFromExtn" style="border: none; margin-right:3px; margin-bottom: -3px;" src="<?php echo 'images/'.$currentTheme.'/returncall_16.gif'?>" alt="<?php echo TextToHtml(gettext('Return the call'));?>" title="<?php echo TextToHtml(gettext('Return the call'));?>" /><?php echo gettext("Ringback"); ?>
      </span>
    </div>
    <div style="margin:0; padding:0; padding-top:8px; border: 1px solid #656565; border-top:0; border-bottom:0; background:#c6c6c6;">
      <div style="margin:0 18px; border-top:1px solid #7d7d7d; border-left:1px solid #7d7d7d; border-bottom:1px solid #e5e5e5; border-right:1px solid #e5e5e5;">
        <div style="height:44px; border-top:1px solid #2d2d2d; border-left:1px solid #2d2d2d; border-bottom:1px solid #c6c6c6; border-right:1px solid #c6c6c6;" id="dlg_msg_mp">Loading media player...
        </div>
      </div>
    </div>
    <div style="position:relative; margin:0; padding:0; height:16px;">
      <img style="position:absolute; left:0; top:0; margin-left:0; margin-top:0;"  src="images/avaya/title_bottom_left_tr.gif" alt="" />
      <img style="position:absolute; right:0; top:0; margin-right:0; margin-top:0;" src="images/avaya/title_bottom_right_tr.gif" alt="" />
      <div style="position:absolute; left:16px; top:0; width:<?php if ($clientwidth<640) echo ($clientwidth-32); else echo 608;?>px;height:16px; background:url(images/avaya/title_bottom_middle.gif);">
      </div>
    </div>
  </div>

