    <script>
      function reload_limit(obj) {
        var form = document.myform;
        if (obj.options[obj.selectedIndex].value == 1 || obj.options[obj.selectedIndex].value == 3) {
          form.mod_usr_limit_list.value         = 0;
          form.mod_usr_limit_sublist.value      = 0;
          form.mod_usr_limit_email30.value      = 0;
        }
        else {
          var num_list    = <%if mod_usr_limit_list%><%mod_usr_limit_list%><%elsif signup_limit_list%><%signup_limit_list%><%else%>10<%endif%>;
          var num_sublist = <%if mod_usr_limit_sublist%><%mod_usr_limit_sublist%><%elsif signup_limit_sublist%><%signup_limit_sublist%><%else%>10<%endif%>;
          var num_email30 = <%if mod_usr_limit_email30%><%mod_usr_limit_email30%><%elsif signup_limit_email30%><%signup_limit_email30%><%else%>100<%endif%>;
          form.mod_usr_limit_list.value         = num_list;
          form.mod_usr_limit_sublist.value      = num_sublist;
          form.mod_usr_limit_email30.value      = num_email30;
        }
      }
    </script>
    <table border="0" cellspacing="2" cellpadding="2" align="center" width=550>
      <tr class=body>
        <td class=body colspan="2"><li><b>Account Infomation</b></li></td>
      </tr>
      <tr class=body>
        <td width="30%"><ul/>Username</td>
        <td>
          <%if modify%><b><%mod_usr_username%></b>
          <input type="hidden" name="mod_usr_username" size="30" value="<%if mod_usr_username%><%mod_usr_username%><%endif%>" />
          <input type="hidden" name="uid" size="30" value="<%if mod_usr_username%><%mod_usr_username%><%endif%>" />
          <%else%>
            <input class="object" type="text" name="mod_usr_username" size="20" value="<%if mod_usr_username%><%mod_usr_username%><%endif%>" /><font color=green>*</font>
          <%endif%>
        </td>
      </tr>
      <%if modify%>
      <tr class="body">
        <td class="body"><ul/>New Password</td>
        <td>
            <input class="object" type="text" name="mod_usr_password" size="20" value="" />
        </td>
      </tr>
      <%else%>
      <tr class="body">
        <td class="body"><ul/>Password</td>
        <td>
            <input class="object" type="text" name="mod_usr_password" size="20" /><font color=green>*</font>
        </td>
      </tr>
      <%endif%>
      <tr class=body>
        <td class=body><ul/>Email Address</td>
        <td>
          <input class="object" type="text" name="mod_usr_email" size="<%if is_ie or is_mozilla%>35<%else%>25<%endif%>" value="<%if mod_usr_email%><%mod_usr_email%><%endif%>" /><font color=green>*</font>
        </td>
      </tr>
      <tr class=body>
        <td class=body><ul/>Reply-to Email</td>
        <td>
          <input class="object" type="text" name="mod_usr_reply_email" size="<%if is_ie or is_mozilla%>35<%else%>25<%endif%>" value="<%if mod_usr_reply_email%><%mod_usr_reply_email%><%endif%>" />
        </td>
      </tr>
      <tr class=body>
        <td class=body><ul/>Bounce Email</td>
        <td>
          <input class="object" type="text" name="mod_usr_bounce_email" size="<%if is_ie or is_mozilla%>35<%else%>25<%endif%>" value="<%if mod_usr_bounce_email%><%mod_usr_bounce_email%><%endif%>" />
        </td>
      </tr>
      <tr class=body>
        <td class=body><ul/>Type</td>
        <td class=body>
          <%if mod_usr_username eq $usr_username%>
            <%if usr_type == 1%>Administrator<%elsif usr_type == 2%>Limited User<%elsif usr_type == 3%>Unlimited User<%else%>Unvalidated User<%endif%>
          <%else%>
          <select name="mod_usr_type" class="object" onchange="reload_limit(this)">
            <option value="1" <%if mod_usr_type == 1%>selected<%endif%>>Administrator</option>
            <option value="2" <%if mod_usr_type == 2%>selected<%endif%>>Limited User</option>
            <option value="3" <%if mod_usr_type == 3%>selected<%endif%>>Unlimitted User</option>
            <option value="4" <%if mod_usr_type == 4%>selected<%endif%>>Unvalidated User</option>
          </select>
          <%endif%>
        </td>
      </tr>
      <%if usr_type == 1%>
      <tr class=body>
        <td class=body><ul/>Status</td>
        <td>
          <select name="mod_usr_status" class=object>
            <option value="1" <%if mod_usr_status == 1%>selected<%endif%>>Active</option>
            <option value="2" <%if mod_usr_status == 2%>selected<%endif%>>Inactive</option>
          </select>
        </td>
      </tr>
      <%endif%>
      <%if mod_usr_username ne $usr_username%>
      <tr class=body>
        <td class=body colspan="2"><li><b>Account Limits</b></li></td>
      </tr>
      <tr class="body">
        <td class="body"><ul/>Number of list</td>
        <td>
            <input class="object" type="text" name="mod_usr_limit_list" size="20" maxlength="10" value="<%if mod_usr_limit_list%><%mod_usr_limit_list%><%elsif pg eq 'admin_user_add_form.html'%><%if signup_limit_list%><%signup_limit_list%><%else%>10<%endif%><%endif%>" />
        </td>
      </tr>
      <tr class="body">
        <td class="body"><ul/>Number of subscriber per list</td>
        <td>
            <input class="object" type="text" name="mod_usr_limit_sublist" size="20" maxlength="10" value="<%if mod_usr_limit_sublist%><%mod_usr_limit_sublist%><%elsif pg eq 'admin_user_add_form.html'%><%if signup_limit_sublist%><%signup_limit_sublist%><%else%>10<%endif%><%endif%>" />
        </td>
      </tr>
      <tr class="body">
        <td class="body"><ul/>Number of email in the last 30 days</td>
        <td>
            <input class="object" type="text" name="mod_usr_limit_email30" size="20" maxlength="10" value="<%if mod_usr_limit_email30%><%mod_usr_limit_email30%><%elsif pg eq 'admin_user_add_form.html'%><%if signup_limit_email30%><%signup_limit_email30%><%else%>100<%endif%><%endif%>" />
        </td>
      </tr>
      <%endif%>
      <tr class=body>
        <td class=body colspan="2"><li><b>Profile Infomation</b></li></td>
      </tr>
      <%-- 
            This auto generates the profile form, so if you add profile options it
            will automatically appear. 
      --%>
      <%GList::GUI::gui_profile_form(
            td_l => 'class="body" align="left"', 
            td_r => 'class="body" align="left"',
            required => '<font color="green">*</font>',
            prefix => 'mod_'
      )%>
      <%--
            Now add any extra application fields needed.
      --%>
      <tr class=body>
        <td class=body colspan="2"><li><b>Default Values</b></li></td>
      </tr>
      <tr>
        <td class="body" valign="top"><ul/>Compose Mode</td>
        <td>
          <select name="mod_usr_compose_mode" class="object">
            <option value="text" <%if mod_usr_compose_mode eq 'text'%>selected<%endif%>>Text Only</option>
            <option value="html" <%if mod_usr_compose_mode eq 'html'%>selected<%endif%>>HTML Only</option>
            <option value="multi" <%if mod_usr_compose_mode eq 'multi'%>selected<%endif%>>Text & HTML</option>
          </select>
        </td>
      </tr>
      <tr>
        <td class="body" valign="top"><ul/>Advanced Editor</td>
        <td>
          <select name="mod_usr_editor_advanced" class="object">
            <option value="1" <%if mod_usr_editor_advanced%>selected<%endif%>>Yes</option>
            <option value="0" <%ifnot mod_usr_editor_advanced%>selected<%endif%>>No</option>
          </select>
        </td>
      </tr>
      <tr class=body>
        <td class=body><ul/>Date format</td>
        <td>
            <select name="mod_usr_date_format" class=object onchange="preview_date(this, document.myform.date_preview)">
              <option value="">----</option>
              <option value="%dd%-%mm%-%yyyy%" <%if mod_usr_date_format eq '%dd%-%mm%-%yyyy%'%>selected<%endif%>>dd-mm-yyyy</option>
              <option value="%mm%-%dd%-%yyyy%" <%if mod_usr_date_format eq '%mm%-%dd%-%yyyy%' or not $mod_usr_date_format%>selected<%endif%>>mm-dd-yyyy</option>
              <option value="%yyyy%-%mm%-%dd%" <%if mod_usr_date_format eq '%yyyy%-%mm%-%dd%'%>selected<%endif%>>yyyy-mm-dd</option>
              <option value="%dd%/%mm%/%yyyy%" <%if mod_usr_date_format eq '%dd%/%mm%/%yyyy%'%>selected<%endif%>>dd/mm/yyyy</option>
              <option value="%mm%/%dd%/%yyyy%" <%if mod_usr_date_format eq '%mm%/%dd%/%yyyy%' or not $mod_usr_date_format%>selected<%endif%>>mm/dd/yyyy</option>
              <option value="%yyyy%/%mm%/%dd%" <%if mod_usr_date_format eq '%yyyy%/%mm%/%dd%'%>selected<%endif%>>yyyy/mm/dd</option>
          </select><BR/>
          <input name="date_preview" class="object" value="<%if mod_usr_date_format%><%mod_usr_date_format%><%elsif pg eq 'admin_user_add_form.html'%>%mm%/%dd%/%yyyy%<%endif%>" size="<%if is_ie or is_mozilla%>35<%else%>25<%endif%>">
        </td>
      </tr>
      <tr class="body">
        <td class="body" colspan="2"><ul/><br>The pop settings below are for bounced emails.</td>
      </tr>
      <tr class=body>
        <td class=body><ul/>Server mail (POP3)</td>
        <td>
          <input type="text" class="object" name="mod_usr_mail_host" size="<%if is_ie or is_mozilla%>35<%else%>25<%endif%>" value="<%if mod_usr_mail_host%><%mod_usr_mail_host%><%endif%>" />
        </td>
      </tr>
      <tr class=body>
        <td class=body><ul/>Port</td>
        <td>
          <input type="text" class="object" name="mod_usr_mail_port" size=3 maxlength=3 value="<%if mod_usr_mail_port%><%mod_usr_mail_port%><%else%>110<%endif%>" />
        </td>
      </tr>
      <tr class=body>
        <td class=body><ul/>Account Name</td>
        <td>
          <input type="text" class="object" name="mod_usr_mail_account" size=<%if is_ie or is_mozilla%>35<%else%>25<%endif%> value="<%if mod_usr_mail_account%><%mod_usr_mail_account%><%endif%>" />
        </td>
      </tr>
      <tr class=body>
        <td class=body><ul/>Account Password</td>
        <td>
          <input type="password" class="object" name="mod_usr_mail_password" size=<%if is_ie or is_mozilla%>35<%else%>25<%endif%> value="<%if mod_usr_mail_password%><%mod_usr_mail_password%><%endif%>" />
        </td>
      </tr>
      <tr class=body>
        <td class=body colspan="2" align=right><font color=green>(*): Required</font></td>
      </tr>
    </table>
