<%set set_focus = 'myform.mod_usr_username'%>
<%set book_mark = 'add_user'%>
<%include include_header.html%>
<script>
  function del_confirm(col) {
    if (confirm("Are you sure you want to permanently delete " + col + " column?")) {
      var frm_obj = document.myform;
      for ( i=0; i < frm_obj.length; i++ ) {
        if ( frm_obj[i].name == 'do' ) {
            frm_obj[i].value = 'admin_user_table_delete';
            frm_obj.submit();
            break;
        }  
      }
    }
  }
</script>
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center" height="82%">
  <tr>
    <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
    <td colspan="3" height="3%" bgcolor="#E8EAD0" valign="top"><%include admin_user_include_menu.html%></td>
    <td rowspan="2" bgcolor="#008000" height="100%" width="1"><img src="<%image_url%>/pics/1pixel.gif" width="1" height="1"></td>
  </tr>
  <tr>
    <td height="97%" colspan="3" valign="top">
      <table width="99%" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
        <tr>
          <td><img src="<%image_url%>/pics/1pixel.gif" width="1" height="3"></td>
        </tr>
        <tr>
          <td>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#336600" style="border: 1px solid #C5E1A3">
              <tr class="bold_white">
                <td height="20"><img src="<%image_url%>/icons/list.gif" hspace="2" vspace="0">Modify a Field</td>
                <td align="right"><a href="glist.cgi?do=admin_user_table<%hidden_query%>"><img src="<%image_url%>/icons/close.gif" width="17" height="16" border=0></a></td>
              </tr>
            </table>
            <table width="600" border="0" cellspacing="0" cellpadding="0" height=100% align="center">
            <form name=myform action="glist.cgi" method="post">
                <tr valign="middle" class=body>
                  <td height="0" height="80%" class=body align="center"><br />
                    <%if msg%><%msg%><%else%>Modify the profile field and click the "Modify" button to save your changes. Click "Delete" if you wish to permanently remove this column from your database<%endif%><br/><br/>
                    <%include admin_user_table_include_record.html%><br/>
                  </td>
                </tr>
                <tr>
                  <td height="30%" align=center valign=top>
                    <input type="submit" name="bmodify" value="Modify <%column%>" class="button" />
                    <%if column ne 'pro_first_name' and $column ne 'pro_last_name'%>
                    <input type="button" name="bsubmit" value="Delete <%column%>" class="button" onclick="del_confirm('<%column%>')" />
                    <%endif%>
                    <input type="button" name="Submit2" value=" Cancel " class="button" onclick="open_url('do=admin_user_table<%hidden_query%>')"/><br /><br />
                  </td>
                </tr>
              <input type=hidden name="do" value="admin_user_table_modify" />
              <%hidden_objects%>
            </form>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<%include include_footer.html%>
