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

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

<tr>
<td class="label"><~/common/req>`Work Date`:</td>
<td class="content">
<~workdate_input>
</td>
</tr>

<tr>
<td class="label"><~/common/req>`Work Time`:</td>
<td class="content"><input type="text" name="item[worktime]" size="5" maxlength="5" value="<~worktime>" onKeyPress="chkDigits(6)" class="text" onChange="input_changed()">
</td></tr>

<tr>
<td class="label"><~/common/req>`Project`:</td>
<td class="content">
<select name="item[p_id]" class="text" onchange="form_refresh(this.form);">
<option value=""> - `select` - 
<~select_p_id>
</select>
</td>
</tr>

<tr class="adv">
<td class="label"><~/common/req>`Task`:</td>
<td class="content">
<select name="item[t_id]" class="text" onChange="input_changed()">
<option value=""> - `select` - 
<~select_t_id>
</select>

<input type="checkbox" name="item[wd_tasks]" value="1" onclick="form_refresh(this.form);" <~/common/checked ifeq="wd_tasks" value="1">> only workdate tasks

</td>
</tr>

<tr class="adv">
<td class="label"><~/common/req>`Work Code`:</td>
<td class="content">
<select name="item[wc_id]" class="text" onChange="input_changed()">
<option value=""> - `select` - 
<~select_wc_id>
</select>
</td>
</tr>



<tr valign=top>
<td class="label"><~/common/req>`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">`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="tt_id" value="0" inline>`Update`</~str_update><~str_insert ifeq="tt_id" value="0" inline>`Insert`</~str_insert> ">&nbsp;
<input type="submit" name="AndAddNext" value=" <~str_update ifneq="tt_id" value="0" inline>`Update`</~str_update><~str_insert ifeq="tt_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>

<~./wd_timesheet ifge="workdate" value="">
Return current item: PhpProjectMaster