Location: PHPKode > projects > Esvon Personals > esvon-personals/tpl/admin/fs_fields_edit.htm
<!-- TITLE: Field Details -->

<script type="text/javascript">
function SetDiv(id,s){
  if(document.getElementById) document.getElementById(id).innerHTML = s; // ie5_nn6
  else if(document.all){ // ie4
    var f = eval('document.all.'+id);
    f.innerHTML = s; 
  }
}
</script>

<center>

<table width=100% border=0 cellspacing=0 cellpadding=1>

<form method=post name=frm>

<input type=hidden name=search_k_prev value="##search_k##">

<tr>
  <td width=30%></td>
  <td width=70%></td>
</tr>

<tr>
     <td><p class=ag_req>Fieldset</p></td>
     <td><p class=ag_adm>

<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td>
##ctl_fset##
</td>
<td width=10>&nbsp;</td>
<td>
 <font class=txt8 color=blue style="font-weight:normal">&lt;&lt; <a href="##PAGE_URL##fset=##fset##">Back To Fieldset</a> &gt;&gt;</font></td>
</td>
</tr>
</table>


</p></td>
</tr>

<tr>
     <td><p class=ag_req>Field Type</p></td>
     <td><p class=ag_adm>


<table border=0 cellspacing=0 cellpadding=0>
<tr>
<td>
##ctl_type##</td>
<td width=10>&nbsp;</td>
<td>

<!-- IF ##restr## == 0 -->
<!-- IF ##id## -->

&nbsp; &nbsp;

<!-- IF ##type## == "menu" -->

<input type=button value='Change to "text"' class=button 
onClick="document.location='##PAGE_URL##id=##id##&set_type=text'">

<!-- ELSEIF ##type## == "text" -->

  <!-- IF ##db_f## != "v_price" -->

  <input type=button value='Change to "menu"' class=button 
  onClick="document.location='##PAGE_URL##id=##id##&set_type=menu'">

  <!-- ENDIF -->

<!-- ELSEIF ##type## == "textarea" -->

<input type=button value='Change to "htmlarea"' class=button 
onClick="document.location='##PAGE_URL##id=##id##&set_type=htmlarea'">

<!-- ELSEIF ##type## == "htmlarea" -->

<input type=button value='Change to "textarea"' class=button 
onClick="document.location='##PAGE_URL##id=##id##&set_type=textarea'">

<!-- ELSEIF ##type## == "checkboxes" -->

<input type=button value='Change to "multimenu"' class=button 
onClick="document.location='##PAGE_URL##id=##id##&set_type=multimenu'">

<!-- ELSEIF ##type## == "multimenu" -->

<input type=button value='Change to "checkboxes"' class=button 
onClick="document.location='##PAGE_URL##id=##id##&set_type=checkboxes'">

<!-- ENDIF -->

<!-- ENDIF -->
<!-- ENDIF -->

</td>
</tr>
</table>


</td>
</tr>

<tr>
     <td><p class=ag_req>Field Name</p></td>
     <td>##ctl_id## 

<!-- IF ##restr## == 0 -->
<font class=txt8 color=blue>Unique Field ID (e.g. f_city, f_model)</td>
<!-- ENDIF -->

</tr>

<tr>
     <td><p class=ag_req>Database Field</p></td>
     <td>##ctl_db_f##

<!-- IF ##id## == 0 -->
<!-- IF ##db_type_hint## -->
<br>
<font class=txt8>
Numeric data should be stored in decimal or integer field for correct sorting
<!-- ENDIF -->
<!-- ENDIF -->

     </td>
</tr>

<tr>
     <td><p class=ag_req>Caption</p></td>
     <td>##ctl_title## <font class=txt8 color=blue>(e.g. City, Model)</td>
</tr>

<tr>
     <td><p class=ag_none>Custom Error Message</p></td>
     <td>##ctl_err_msg## <font class=txt8 color=blue>Default error message is "Field is required"</td>
</tr>

<tr>
     <td><p class=ag_none>Display Order</p></td>
     <td>##ctl_weight## <font class=txt8 color=blue>This sets the order in which fields are displayed. Display order starts at 1 and can be any whole positive number</td>
</tr>



<!-- IF ##en_input## -->

<tr>
     <td><p class=ag_none>

<!-- IF ##type## == "file" -->

Max. allowed XY sizes, pixels 
<font class=txt8>(images only)</font>

<!-- ELSE -->

Validation Type

<!-- ENDIF -->

</p></td>
     <td>##ctl_input## <font class=txt8 color=blue>

<!-- IF ##type## == "file" -->

Format example: 150x150, 640x480 (width/height in pixels).
Use this option to force images resizing if specified XY sizes are exceeded

<!-- ELSE -->

Possible values: "alpha" (to allow only alphanumeric chars), "digit" (digits only), 
  "decimal", "email", "url" (web link)
   or custom regular expression (<a href="http://www.php.net/manual-lookup.php?function=preg-match" target=_blank>PCRE</a>)

<!-- ENDIF -->


</td>
</tr>

<!-- ENDIF -->


<!-- IF ##en_chars## -->
<tr>
     <td><p class=ag_none>Additional Allowed Chars</p></td>
     <td>##ctl_chars## <font class=txt8 color=blue>You can use this in combination with "alpha" or "digit" value of Validation Type for better control of user entered data</td>
</tr>
<!-- ENDIF -->


<!-- IF ##en_size## -->
<tr>
     <td><p class=ag_none>

<!-- IF ##type## == "text" -->
TextBox Length
<!-- ELSEIF ##type## == "file" -->
Upload Box Size
<!-- ELSEIF ##type## == "textarea" -->
TextArea Sizes <font class=txt8>(e.g. 40x8, columns x rows)</font>
<!-- ELSEIF ##type## == "htmlarea" -->
HTMLArea Sizes <font class=txt8>(e.g. 40x8, columns x rows)</font>
<!-- ELSEIF ##type## == "menu" -->
Menu Width <font class=txt8>(optional, use if menu with fixed width is required)</font>
<!-- ELSEIF ##type## == "multimenu" -->
Menu Size <font class=txt8>(amount of visible menu options, leave blank to show all)</font>
<!-- ELSEIF ##type## == "checkboxes" -->
Columns Amount <font class=txt8>(to group checkboxes for better look)</font>
<!-- ELSE -->
Size
<!-- ENDIF -->
     
     </p></td>
     <td>##ctl_size##</td>
</tr>
<!-- ENDIF -->

<!-- IF ##en_min## -->
<tr>
     <td><p class=ag_none>Min. Length</p></td>
     <td>##ctl_min## <font class=txt8 color=blue>Min. allowed size for data entered 
(for "checkboxes","multimenu" - min. amount of options required)</td>
</tr>
<!-- ENDIF -->


<!-- IF ##en_max## -->
<tr>
     <td><p class=ag_none>

<!-- IF ##type## == "file" -->
Max. File Size, kb
<!-- ELSE -->
Max. Length
<!-- ENDIF -->

</p></td>
     <td>##ctl_max## 

<!-- IF ##type## != "file" -->

<font class=txt8 color=blue>Max. allowed size for data entered 
(for "checkboxes","multimenu" - max. amount of options required

<!-- ENDIF -->

</td>

</tr>
<!-- ENDIF -->

<!-- IF ##en_value## -->
<tr>
     <td><p class=ag_none>Default Value</p></td>
     <td>##ctl_value## <font class=txt8 color=blue>
</td>
</tr>
<!-- ENDIF -->

<tr>
     <td><p class=ag_none>Required ?</p></td>
     <td>##ctl_required## <font class=txt8 color=blue>Is field required ?</td>
</tr>


<!-- IF ##en_editable## -->
<tr>
     <td><p class=ag_none>Editable ?</p></td>
     <td>##ctl_editable## <font class=txt8 color=blue>If field is non-editable, the value can be entered once but it can't be changed later</td>
</tr>
<!-- ENDIF -->

<tr>
     <td><p class=ag_none>Active ?</p></td>
     <td>##ctl_active## <font class=txt8 color=blue>Is field active ? If not active it can be edited by administrator only</td>
</tr>

<!-- IF ##en_search## -->
<tr>
     <td><p class=ag_none>Display in Advanced Search ?</p></td>
     <td>##ctl_search## <font class=txt8 color=blue>Leave blank or use these possible values (without double quotes): 

"Yes"
<!-- IF ##type## == "menu" -->
, "Multi"
<!-- ELSEIF ##type## == "text" -->
, 
"Types" (allows search type selection),
"Exact", 
"Soundex" (for 'sounds-like' searches)
<!-- ENDIF -->

<!-- IF ##en_range_search## -->
, "Range", "Range-min-max-step" (range searches are valid for numeric data)
<!-- ENDIF -->

</td>
</tr>
<!-- ENDIF -->

<!-- IF ##en_search_k## -->
<tr>
     <td><p class=ag_none>Keywords Searchable ?</p></td>
     <td>##ctl_search_k## <font class=txt8 color=blue>If you change this value, please be patient, fieldset reindexing may take some time</td>
</tr>
<!-- ENDIF -->

<!--
1/ for "checkbox" - defines checked (and stored in db) value ("1" is default);
2/ for "date","datetime" - comma-separated year range (2003,2008);
-->

<!-- IF ##en_extra## -->
<tr>
     <td><p class=ag_none>

<!-- IF ##type## == "file" -->
File Extensions Allowed
<!-- ELSEIF ##type## == "date" -->
Years Range<br>
<font class=txt8 color=blue>
E.g.: 1920,2015
</font>
<!-- ELSEIF ##type## == "depmenu" -->
Field Elements Set
<!-- ELSEIF ##extra_set## -->
Field Elements<br>
<font class=txt8 color=blue>
One ELEMENT per line
</font>
<!-- ELSE -->
Extra Information
<!-- ENDIF -->

</p></td>
     <td>##ctl_extra## <font class=txt8 color=blue>

<!-- IF ##type## == "file" -->
Comma-separated values (e.g.: avi,mov,mp3). 
You should always specify allowed extensions to prevent malicious files uploading
<!-- ELSEIF ##type## == "depmenu" -->
<a href="index.php?page=dep_menu" target="_blank">Manage Elements</a>
<!-- ENDIF -->

</td>
</tr>
<!-- ENDIF -->

<tr>
     <td><p class=ag_none>Note / Hint</p></td>
     <td>##ctl_txt## <font class=txt8 color=blue>This text will appear at "Add" / "Modify" pages next to the form field</td>
</tr>


<!-- IF ##en_details## == "1" -->
<tr>
     <td><p class=ag_none>Insert into Ad Details page ?</p></td>
     <td><input type=checkbox name=ch_details value=1> 
<font class=txt8 color=blue> Add this field into "details.htm" template ?
</tr>
<!-- ENDIF -->


<tr height=25>
  <td>&nbsp;</td>
  <td valign=bottom>
  <input type=submit name=go value="Submit" 
class="button"><input type=button value="Cancel" class=button 
onClick="document.location='##PAGE_URL##fset=##fset##'">
  </td>
</tr>

</form>    

</table>

Return current item: Esvon Personals