<!-- ================================================================= -->
<!-- dlg_change_settings.php                                           -->
<!-- ================================================================= -->
<!-- HTML defining a popup dialog box for changing a user's password   -->
<!-- and other settings.                                               -->
<!-- ================================================================= -->
<!-- Copyright (c) 2008-2009 Avaya Inc.                                -->
<!-- ================================================================= -->
    <div id="dlg_change_settings" style="z-index:6000; width:<?php if ($clientwidth<640) echo (($clientwidth<500)?($clientwidth):(500)); else echo 500;?>px; position:absolute; top:10px; left: 10px; visibility:hidden;">
      <div style="height:20px; border-bottom: 1px solid #656565;" onmousedown="DragNDrop(event, 'dlg_change_settings')">
        <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<500)?($clientwidth-32):(468)); else echo 468;?>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_change_settings',false); return false;" />
          <span style="margin-top:2px; margin-left:3px; font-size:12px; font-weight:bold; float:left;"><?php echo TextToHtml(gettext('Change Settings'));?></span>
        </div>
      </div>
      <div style="padding-top:8px; padding-left:13px; padding-right:13px; border: 1px solid #656565; border-top:0; border-bottom:0; background:url(<?php echo 'images/'.$currentTheme.'/main-middle.gif' ?>);">
        <table width="100%" cellspacing="0" cellpadding="1" style="padding:8px;">
          <tr>
            <td style="white-space: nowrap; font-size:10pt;"><?php echo TextToHtml(gettext('User name'));?></td>
            <td style="text-align:right;">
              <input type="text" name="username" id="username" value="<?php echo TextToHtml($user->name); ?>" disabled="disabled" style="width:200px;" />
            </td>
          </tr>
          <tr>
            <td style="font-size:10pt;"><?php echo TextToHtml(gettext('Current password'));?></td>
            <td style="text-align:right;">
              <input type="password" id="oldpwd" name="oldpwd" style="width:200px;" maxlength="50" />
            </td>
          </tr>
          <tr>
            <td style="font-size:10pt;"><?php echo TextToHtml(gettext('New password'));?></td>
            <td style="text-align:right;">
              <input type="password" id="newpwd1" name="newpwd1" style="width:200px;" maxlength="50" />
            </td>
          </tr>
          <tr>
            <td style="font-size:10pt;"><?php echo TextToHtml(gettext('New password again'));?></td>
            <td style="text-align:right;">
              <input type="password" id="newpwd2" name="newpwd2" style="width:200px;" maxlength="50" />
            </td>
          </tr>
          <tr>
            <td style="font-size:10pt;"><?php echo TextToHtml(gettext('Number of messages per page'));?></td>
            <td style="text-align:right;">
              <select id="nummsgsperpage" name="nummsgsperpage" style="width:50px;" maxlength="50">
                <option value="5" >5</option>
                <option value="10" >10</option>
                <option value="20" >20</option>
                <option value="25" >25</option>
                <option value="50" >50</option>
                <option value="75" >75</option>
                <option value="100" >100</option>
              </select>
            </td>
          </tr>
          <tr>
            <td colspan="2" style="font-size:10pt; text-align:right;">
              <input type="checkbox" id="hidetocol" name="hidetocol" maxlength="50" ><?php echo TextToHtml(gettext('Hide \'To\' column'));?></input>
            </td>
          </tr>
          <tr>
            <td style="color:#e41f1f;" id="dlg_change_settings_msg">&nbsp;</td>
            <td style="text-align:right; font-size:10pt;">
              <input type="button" name="btnSetPwd" value="<?php echo TextToHtml(gettext('Apply changes'));?>" onclick="Activity(); OnChangeSettingsDlgOk('<?php echo TextToHtml($user->id); ?>' );" />
              <input type="hidden" name="upwd" id="upwd" value="<?php echo TextToHtml($user->password); ?>" />
            </td>
          </tr>
        </table>
      </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/main_bottom_left_tr.gif" alt="" />
        <img style="position:absolute; right:0; top:0; margin-right:0; margin-top:0;" src="images/avaya/main_bottom_right_tr.gif" alt="" />
        <div style="position:absolute; left:16px; top:0; width:<?php if ($clientwidth<640) echo (($clientwidth<500)?($clientwidth-32):(468)); else echo 468;?>px;height:16px; background:url(images/avaya/main_bottom_middle.gif);"></div>
      </div>
    </div>

