Location: PHPKode > projects > PhpProjectMaster > www/template/admin/demo/item_form.html
<script type="text/javascript">
<!--
function form_refresh(F){
 if (F.id.value>""){
    F.AddNew.value="1";
 }
 F.SaveRec.value="";
 F.is_refresh.value="1";
 F.submit();
}

//-->
</script>

<~/common/form_msg>

<table class="form">
<form action="<~./script_name>" method="post" name="DataF" enctype="multipart/form-data">
<input type="hidden" name="SaveRec" value="1">
<input type="hidden" name="AddNew" value="">
<input type="hidden" name="is_refresh" value="">
<input type="hidden" name="id" value="<~demo_id>">

<tr>
<td class="label"><~./screen_name> `ID`:</td>
<td class="content"><~demo_id>&nbsp;</td>
</tr>

<tr>
<td class="label"><~/common/req>`Category`:</td>
<td class="content">
<select name="item[cat_id]" class="text" onChange="input_changed()">
<option value=""> - `select` - 
<option value="0"> - `none` - 
<~select_cat_id>
</select>
</td>
</tr>

<tr>
<td class="label"><~/common/req>`Email`:</td>
<td class="content"><input type="text" name="item[email]" size="64" maxlength="128" value="<~email>" class="text" onChange="input_changed()"></td>
</tr>
<tr>
<td class="label"><~/common/req>`Name`:</td>
<td class="content"><input type="text" name="item[iname]" size="32" maxlength="64" value="<~iname>" class="text" onChange="input_changed()"></td>
</tr>
<tr valign=top>
<td class="label">`Description`:</td>
<td class="content"><textarea name="item[idesc]" rows="5" cols="50" class="text" onChange="input_changed()"><~idesc></textarea>
</td>
</tr>

<tr>
<td class="label">fint:</td>
<td class="content"><input type="text" name="item[fint]" size="13" maxlength="13" value="<~fint>" onKeyPress="chkDigits(1)" class="text" onChange="input_changed()">
<small>(integers only)</small>
</td></tr>
<tr>
<td class="label">ffloat:</td>
<td class="content"><input type="text" name="item[ffloat]" size="13" maxlength="13" value="<~ffloat>" onKeyPress="chkDigits()" class="text" onChange="input_changed()">
<small>(integers+float numbers only)</small>
</td></tr>

<tr>
<td class="label">fcombo_link:</td>
<td class="content">
<select name="item[fcombo_link]" class="text" onChange="input_changed()">
<option value="0"> - `none` - 
<~select_fcombo_link>
</select>
<small>(parent demo record)</small>
</td>
</tr>

<tr>
<td class="label">fcombo_link + text:</td>
<td class="content">
<select name="item[fcombo_link2]" onChange="input_changed()" class="fixed">
<option value="">- `select` -
<~select_fcombo_link2>
</select> `or type` <input type=text name="item[new_fcombo_link2]" size="20" maxlength="64"
 value="<~new_fcombo_link2>" onChange="resetCB('item[fcombo_link2]');input_changed()">
</td>
</tr>


<tr>
<td class="label">fcombo:</td>
<td class="content">
<select name="item[fcombo]" class="text" onChange="input_changed()">
<option value=""> - `select` - 
<~./fcombo.sel select="fcombo">
</select>
</td>
</tr>
<tr>
<td class="label">fradio:</td>
<td class="content">
<~./fradio.sel radio="fradio" name="item[fradio]">
</td>
</tr>
<tr>
<td class="label">fyesno:</td>
<td class="content">
<~/common/sel/yn.sel radio="fyesno" name="item[fyesno]">
</td>
</tr>

<tr>
<td class="label">fdate_pop:</td>
<td class="content">
<~fdate_pop_input>
</td>
</tr>
<tr>
<td class="label">fdate_combo:</td>
<td class="content">
<~fdate_combo_input>
</td>
</tr>

<tr valign=top>
<td class="label">Upload demo image:</td>
<td class="content"><input type="file" name="file1" size="32" value="" class="text" onChange="input_changed()">
<br>
<~showimg ifneq="upload_url" value="" inline>
<table><tr><td class="content">
<a href="<~upload_url>?<~rand_str>" target="_blank"><img src="<~upload_url_preview>?<~rand_str>" width="100" border="0" class="bordered"></a>
</td><td class="content">
`click on it for full review`<br>
<a href="#" onClick="return delete_btn('<~script_name>?DelImg=1&id=<~demo_id>')">`Delete image`</a>
</tr></table>
</~showimg>
</td>
</tr>

<tr>
<td class="label">`Status`:</td>
<td class="content"><input type="checkbox" name="item[status]" value="127" <~/common/checked ifeq="status" value="127">> deleted?</td>
</tr>

<~add_block ifge="add_u_id" value="0" inline>
<tr>
<td class="label">`Added on`:</td>
<td class="content"><~add_time> by <~add_u_id_name></td>
</tr>
</~add_block>

<~upd_block ifge="upd_u_id" value="0" inline>
<tr>
<td class="label">`Updated on`:</td>
<td class="content"><~upd_time> by <~upd_u_id_name></td>
</tr>
</~upd_block>


<tr>
<td colspan="2" class="label">

<~/common/req_msg>
<input type="submit" value=" <~str_update ifneq="demo_id" value="0" inline>`Update`</~str_update><~str_insert ifeq="demo_id" value="0" inline>`Insert`</~str_insert> ">&nbsp;
<input type="submit" name="AndAddNext" value=" <~str_update ifneq="demo_id" value="0" inline>`Update`</~str_update><~str_insert ifeq="demo_id" value="0" inline>`Insert`</~str_insert> `and Add New` <~../screen_name>">&nbsp;
<input type="button" value=" `Cancel` " onClick="cancel_form('<~../script_name>')">

</td>
</tr>
</form>
</table>
<br>
Return current item: PhpProjectMaster