Location: PHPKode > projects > PhpProjectMaster > www/template/admin/project/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="<~p_id>">

<tr>
<td class="label">&nbsp;</td>
<td class="content"><a href="task.php?p_id=<~p_id>&itype=0">`Tasks`: <b><~task_ctr></b></a><~/common/dot>
<a href="task.php?p_id=<~p_id>&itype=1">`Bugs`: <b><~bug_ctr></b></a><~/common/dot>
<a href="task.php?p_id=<~p_id>&itype=2">`Ideas`: <b><~idea_ctr></b></a></td>
</tr>

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

<tr>
<td class="label">`Customer`:</td>
<td class="content">
<select name="item[c_id]" onChange="input_changed()" class="fixed">
<option value="">- `select` -
<~select_c_id>
</select> `or add new`: <input type=text name="item[new_c_id]" size="20" maxlength="64"
 value="<~new_c_id>" onChange="resetCB('item[c_id]');input_changed()">
</td>
</tr>

<tr>
<td class="label">`Short Name`:</td>
<td class="content"><input type="text" name="item[iid]" size="16" maxlength="16" value="<~iid htmlescape>" 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 htmlescape>" 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 htmlescape></textarea>
</td>
</tr>

<tr>
<td class="label">% completed:</td>
<td class="content"><input type="text" name="item[perc_compl]" size="13" maxlength="13" value="<~perc_compl>" onKeyPress="chkDigits(1)" class="text" onChange="input_changed()">
</td></tr>

<tr>
<td class="label">`Priority`:</td>
<td class="content">
<select name="item[prio_id]" class="text" onChange="input_changed()">
<option value=""> - `select` - 
<~select_prio_id>
</select>
</td>
</tr>


<tr>
<td class="label">Start Date:</td>
<td class="content">
<~start_time_input>
</td>
</tr>
<tr>
<td class="label">End Date (initially planned):</td>
<td class="content">
<~end_time_input>
</td>
</tr>
<tr>
<td class="label">End Date (currently planned):</td>
<td class="content">
<~end_time2_input>
</td>
</tr>
<tr>
<td class="label">End Date (actual):</td>
<td class="content">
<b><~end_time_actual></b>
</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>
<tr>
<td class="label">`Added on`:</td>
<td class="content"><~add_time> by <~add_u_id_name></td>
</tr>
<tr>
<td class="label">`Updated on`:</td>
<td class="content"><~upd_time> <~upd_u_id_name_block ifge="upd_u_id" value="0" inline>by <~upd_u_id_name></~upd_u_id_name_block></td>
</tr>

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

<~/common/req_msg>
<input type="submit" value=" <~str_update ifneq="p_id" value="0" inline>`Update`</~str_update><~str_insert ifeq="p_id" value="0" inline>`Insert`</~str_insert> ">&nbsp;
<input type="submit" name="AndAddNext" value=" <~str_update ifneq="p_id" value="0" inline>`Update`</~str_update><~str_insert ifeq="p_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