<form action="link_custom_field_change.php" method="post">
<input type="hidden" name="pflag" value="change">
<input type="hidden" name="field_org" value="<%$field_org%>">
<table cellpadding="1" cellspacing="0" border="0" align="center" width="100%" class="tbl_border">
<tr>
  <td>
    <table cellpadding="4" cellspacing="0" border="0" width="100%">
      <tr>
        <td class="tbl_caption" colspan="2">
          Change Field
        </td>
      </tr>
      <tr class="tbl_light2" valign="top">
        <td width="50%">
          Field
          <div class="explanation">
          Use only lowercase alphanumeric and underscore, cannot contains space or symbol.
          </div>
        </td>
        <td width="50%">
          <input type="text" size="20" name="field" class="textbg" value="<%$field_org%>">
        </td>
      </tr>
      <tr class="tbl_light" valign="top">
        <td>
          Text
          <div class="explanation">
          Text that will be shown in add/update/search form.
          </div>
        </td>
        <td>
          <input type="text" size="40" name="text" class="textbg" value="<%$text%>">
        </td>
      </tr>
      <tr class="tbl_light2" valign="top">
        <td>Type</td>
        <td>
          <select name="type">
            <option></option>
            <option <%if $type == "TEXT" %>selected<%/if%>>TEXT</option>
            <option <%if $type == "TEXTAREA" %>selected<%/if%>>TEXTAREA</option>
            <option <%if $type == "SELECT" %>selected<%/if%>>SELECT</option>
            <option <%if $type == "MULTISELECT" %>selected<%/if%>>MULTISELECT</option>
            <option <%if $type == "CHECKBOX" %>selected<%/if%>>CHECKBOX</option>
            <option <%if $type == "RADIO" %>selected<%/if%>>RADIO</option>
            <option <%if $type == "FILE" %>selected<%/if%>>FILE</option>
            <option <%if $type == "IMAGE" %>selected<%/if%>>IMAGE</option>
            <option <%if $type == "DATE" %>selected<%/if%>>DATE</option>
            <option <%if $type == "DATETIME" %>selected<%/if%>>DATETIME</option>
          </select>
        </td>
      </tr>
      <tr class="tbl_light" valign="top">
        <td>Required</td>
        <td>
          <input type="radio" name="required" value="1" <%if $required == '1' %>checked<%/if%>>Yes&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="radio" name="required" value="0" <%if $required == '0' %>checked<%/if%>>No
        </td>
      </tr>
      <tr class="tbl_light2" valign="top">
        <td>Searchable
        <div class="explanation">
        This will not available for 'image' and 'file' type field.
        </div>
        </td>
        <td>
          <input type="radio" name="searchable" value="1" <%if $searchable == '1' %>checked<%/if%>>Yes&nbsp;&nbsp;&nbsp;&nbsp;
          <input type="radio" name="searchable" value="0" <%if $searchable == '0' %>checked<%/if%>>No
        </td>
      </tr>
      <tr class="tbl_light" valign="top">
        <td>Permission</td>
        <td>
          <select name="permission">
            <option value="0" <%if !$permission %>selected<%/if%>>All Users</option>
            <option value="1" <%if $permission == "1" %>selected<%/if%>>Registered Users only</option>
            <option value="2" <%if $permission == "2" %>selected<%/if%>>Admin only</option>
          </select>
        </td>
      </tr>
      <tr class="tbl_light2" valign="top">
        <td>
        Option
        <div class="explanation">
        Set this only for 'select', 'multiselect', 'checkbox' and <br>'radio' type field. You can specify one option each line.
        The value and text are separated by | sign.
        <br>
        Example :<br>
        1|First Option<br>
        2|Second Option<br>
        etc<br>
        </div>
        </td>
        <td>
          <textarea name="option" cols="40" rows="7" wrap="off"><%$option%></textarea>
        </td>
      </tr>
      <tr class="tbl_light" valign="top">
        <td>
          Max Image Dimension
          <div class="explanation">
          Set this only for 'image' field.<br>
          This value will override the global setting (Option > Setup).
          Leave this empty/zero to use global setting.
          </div>
        </td>
        <td>
          Width : <input type="text" size="5" name="img_width" value="<%$img_width%>" class="textbg"> px&nbsp;&nbsp; 
          Height : <input type="text" size="5" name="img_height" value="<%$img_height%>" class="textbg"> px
        </td>
      </tr>
      <tr class="tbl_light2">
        <td>
          Max File Size
          <div class="explanation"> 
          Set this only for 'image' and 'file' field.<br>
          This value will override the global setting (Option > Setup).
          Leave this empty/zero to use global setting.
          </div>
        </td>
        <td><input type="text" size="5" name="file_size" value="<%$file_size%>" class="textbg"> KB</td>
      </tr>
      <tr class="tbl_light" valign="top">
        <td>
          Allowed File Extension
          <div class="explanation">
          Set this only for 'image' and 'file' field.<br>
          This value will override the global setting (Option > Setup).
          Leave this empty/zero to use global setting.<br>
          (ex: gif,jpg,png) 
          </div>
        </td>
        <td><input type="text" size="40" class="textbg" name="file_extension" value="<%$file_extension%>"></td>
      </tr>
      <tr>
        <td colspan="2" align="center" class="tbl_light2">
          <input type="submit" value="Change Field" class="button">
        </td>
      </tr>
    </table>
  </td>
</tr>
</table>
</form>