Beispiel #1
0
"><IMG SRC="images/delete_small.gif" BORDER="0" WIDTH="13" HEIGHT="13" ALIGN="middle"/></A>&nbsp;
				</LI>
<?			} //foreach child?>
			</UL>
<?		} //if hasChildren
		} //for items
?>	</UL>
	</TD>
</TR>
<TR>
	<TD CLASS="form_field_header_cell">New Task:</TD>
	<TD CLASS="form_field_cell">
		<SELECT NAME="new_item_parent" CLASS="input_text">
			<OPTION VALUE="0">No Parent</OPTION>
			<?php 
echo SI_TaskItem::getParentSelectTags($task->id, $_POST['new_item_parent']);
?>
		</SELECT>
		<INPUT NAME="new_item" CLASS="input_text" SIZE="70" TYPE="text">
		<INPUT TYPE="submit" CLASS="button" NAME="save" VALUE="Add">
	</TD>
</TR>
<? } //if type?>
<TR>
	<TD CLASS="form_field_header_cell">Attachments:</TD>
	<TD CLASS="form_field_cell">
<?  $attachments = $task->attachments;
		$attachment_count = count($attachments);
		if($attachment_count > 0){
			for($i=0; $i<$attachment_count; $i++){ ?>
		<LI CLASS="taskitem"><A HREF="attachment.php?id=<?php 
</textarea></td>
</tr>
<tr>
	<td class="form_field_header_cell">Items:</td>
	<td class="form_field_cell"><?php 
echo $task->getTaskItemsHTML($task_activity->id);
?>
</td>
</tr>
<tr>
	<td class="form_field_header_cell">New Task:</td>
	<td class="form_field_cell">
		<select name="new_item_parent" class="input_text" tabindex="11">
			<option value="0">No Parent</option>
			<?php 
echo SI_TaskItem::getParentSelectTags($task->id);
?>
		</select>
		<input name="new_item" class="input_text" size="70" type="text">
	</td>
</tr>
<? } //if type 
?>
<tr>
	<td class="form_field_header_cell">Add Expense:</td>
	<td class="form_field_cell">
		<table cellpadding="2" cellspacing="0">
		<tr>
			<td><b>Item Code:</b></td>
			<td>
				<select name="expense[item_code_id]" id="expense[item_code_id]" tabindex="11" class="input_text" onchange="updateExpense()">