{include file="$gentemplates/_header.tpl" js="onLoad=document.f1.searchterm.focus()" pagetitle="$mytasks"}
{include file="$gentemplates/_navi.tpl" pagetitle="$mytasks"}

<table width="100%" class="contentback" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td> &nbsp;
       <br>
    </td>
    <td>

      {section name=pc loop=$projects}
	<tr><td class="lines2" height="1" colspan="7"><img src="{$imgpathmaster}/space.gif" alt="" height="1" width="1"></td></tr>
        <tr bgcolor=#cccccc>
	  <td valign="top" class="formhead" colspan="3">&nbsp;{$project}:<br />
	    &nbsp;<a href="index.php?obj=project&amp;view=details&amp;pid={$projects[pc].pid}&amp;{$SESSION}">{$projects[pc].ptitle}</a>
	  </td>
	  <td class="formhead"><table>{$projects[pc].pstatus|smarty:nodefaults}</table></td>
	  <td valign="top" class="formhead">
	    <a href="index.php?obj=task&amp;view=add&amp;pid={$projects[pc].pid}&amp;{$SESSION}">{$addtask}</a>&nbsp;&nbsp;
	    <a href="index.php?obj=project&amp;view=editform&amp;pid={$projects[pc].pid}&amp;{$SESSION}">{$edit}</a>&nbsp;&nbsp;
	    <a href="index.php?obj=project&amp;view=delete&amp;pid={$projects[pc].pid}&amp;{$SESSION}">{$delete}</a>
	  </td>
        <tr><td class="lines2" height="1" colspan="7"><img src="{$imgpathmaster}/space.gif" alt="" height="1" width="1"></td></tr>
	</tr>
        <tr class="formhead">
	  <td>&nbsp;{$hours}</td>  
	  <td>&nbsp;{$comments}</td>  
	  <td>&nbsp;{$title}</td>  
	  <td>&nbsp;{$description}</td>  
	  <td>&nbsp;{$action}</td>  
	</tr>
	{section name=tc loop=$projects[pc].tasks}
	<tr>
	  <td class="tab" align="left">&nbsp;
	    {if $projects[pc].tasks[tc].billable eq 1}
	        <strong>{$projects[pc].tasks[tc].hours}</strong>
	    {else}
	        {$projects[pc].tasks[tc].hours}
	    {/if}
	  </td>
	  <td class="tab" align="left">&nbsp;
	    {if $projects[pc].tasks[tc].comments eq 1}
	    <img src="{$imgpath}/comment-on.gif" />
	    {else}
	    <img src="{$imgpath}/comment-off.gif" />
	    {/if}
	  </td>
	  <td class="tab" align="left">&nbsp;
	    <a href="index.php?obj=task&amp;view=edit&amp;tid={$projects[pc].tasks[tc].task_id}&amp;{$SESSION}"><strong>{$projects[pc].tasks[tc].title}</strong></a>
	  </td>
	  <td class="tab">&nbsp;{$projects[pc].tasks[tc].description}</td>
	  <td class="tab">&nbsp;
	    <a href="{$projects[pc].tasks[tc].action.url[0]}"><img src="{$imgpath}/{$projects[pc].tasks[tc].action.img[0]}" border="0" /></a>
	    <a href="{$projects[pc].tasks[tc].action.url[1]}"><img src="{$imgpath}/{$projects[pc].tasks[tc].action.img[1]}" border="0" /></a>
	  </td>
	</tr>
	{/section}
    </td>
    <td>
        <br>
    </td>
    {/section}

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

{include file="$gentemplates/_footer.tpl" aktUser=$username}
