Location: PHPKode > projects > Jingho project management > content/content_overview_tasklist.php
<?
echo '
 <div class="widget-head" >
                    <h3>'.$OVERVIEW_TAKS.'&nbsp;&nbsp;<span id="TasksInfo"></span></h3><span id="TaskLastupdated" style="float:right;padding-right:10px;"></span>
                    
                </div>
                <div class="widget-content">
<form action="'.$MAIN_PATH.'actions.php" method="post" target="saveFrame" name="saveTaskFrame">
				<div class="overviewfilter">
				<br/>'.$OVERVIEW_FILTER_SHOW.'&nbsp;
				<input type="radio" checked value="0" name="t_status" id="t_status_overview1" onclick="GetTasks('.chr(39).'widget-tasks'.chr(39).',true);OffFoc();"/><label for="t_status_overview1">'.$OVERVIEW_FILTER_SHOW_ALL.'</label>&nbsp;
				<input type="radio" value="1" name="t_status" id="t_status_overview2" onclick="GetTasks('.chr(39).'widget-tasks'.chr(39).',true);OffFoc();"/><label for="t_status_overview2">'.$OVERVIEW_FILTER_SHOW_OPEN_TASKS.'</label>&nbsp;
				<input type="radio" value="2" name="t_status" id="t_status_overview3" onclick="GetTasks('.chr(39).'widget-tasks'.chr(39).',true);OffFoc();"/><label for="t_status_overview3">'.$OVERVIEW_FILTER_SHOW_CLOSED_TASKS.'&nbsp;</label>
				<input type="radio" value="5" name="t_status" id="t_status_overview4" onclick="GetTasks('.chr(39).'widget-tasks'.chr(39).',true);OffFoc();"/><label for="t_status_overview4">'.$OVERVIEW_FILTER_SHOW_CLEARED_TASKS.'&nbsp;'.$OVERVIEW_FILTER_SHOW_TASKS.'</label>
				&nbsp;&nbsp;<input type="checkbox" name="t_asp" id="t_asp_overview" onclick="GetTasks('.chr(39).'widget-tasks'.chr(39).',true);OffFoc();" value="1" />&nbsp;<label for="t_asp_overview">'.$OVERVIEW_FILTER_SHOW_ASAP.'</label>
				

			<div  style="padding-top:10px;padding-bottom:10px;display:block;width:350px;">';

			SelectBoxBCust("SELECT
				  t_projects.p_name,
				  t_projects.c_id,
				  t_projects.p_id,
				  t_projects_users.u_id,
				  t_users.u_name,
				  `t_costumers`.c_name,
				  `t_costumers`.c_id
				FROM
				  t_projects
				  INNER JOIN t_projects_users ON (t_projects.p_id = t_projects_users.p_id)
				  INNER JOIN t_users ON (t_projects_users.u_id = t_users.u_id)
				  INNER JOIN `t_costumers` ON (t_projects.c_id = `t_costumers`.c_id)
				  WHERE t_projects_users.u_id= ".$_SESSION['uid']."   order by `t_costumers`.c_name
				  ", 'p_id', 'p_name', 0,$OVERVIEW_PROJECT_CHOOSE,0,"selectBoxNormal","GetTasks(".chr(39)."widget-tasks".chr(39).",true);","p_id_overview","c_name"); 
if (1==2)
{
			SelectBoxB("SELECT
				  t_projects.p_name,
				  t_projects.c_id,
				  t_projects.p_id,
				  t_projects_users.u_id,
				  t_users.u_name,
				  `t_costumers`.c_name,
				  `t_costumers`.c_id
				FROM
				  t_projects
				  INNER JOIN t_projects_users ON (t_projects.p_id = t_projects_users.p_id)
				  INNER JOIN t_users ON (t_projects_users.u_id = t_users.u_id)
				  INNER JOIN `t_costumers` ON (t_projects.c_id = `t_costumers`.c_id)
				  WHERE t_projects_users.u_id= ".$_SESSION['uid']."   order by `t_costumers`.c_name
				  ", 'p_id', 'p_name', 0,$OVERVIEW_PROJECT_CHOOSE,0,"selectBoxNormal","GetTasks(".chr(39)."widget-tasks".chr(39).",true);","p_id_overview"); //,"c_name"
}
				
				
				echo '&nbsp;<select id="up_show_month" class="selectBoxNormal" style="width:80px;" name="up_show_month" onchange="GetTasks('.chr(39).'widget-tasks'.chr(39).',true);" >
				<option value="0">'.$OVERVIEW_FILTER_SHOW_DATES[0].'</option>
				<option value="1">'.$OVERVIEW_FILTER_SHOW_DATES[1].'</option>
				<option value="2">'.$OVERVIEW_FILTER_SHOW_DATES[2].'</option>
				<option value="3">'.$OVERVIEW_FILTER_SHOW_DATES[3].'</option>
				<option value="4">'.$OVERVIEW_FILTER_SHOW_DATES[4].'</option>
				<option value="5">'.$OVERVIEW_FILTER_SHOW_DATES[5].'</option>
				<option value="6">'.$OVERVIEW_FILTER_SHOW_DATES[6].'</option>
				<option value="7">'.$OVERVIEW_FILTER_SHOW_DATES[7].'</option>
				<option value="8">'.$OVERVIEW_FILTER_SHOW_DATES[8].'</option>
				<option value="9">'.$OVERVIEW_FILTER_SHOW_DATES[9].'</option>
				<option value="10">'.$OVERVIEW_FILTER_SHOW_DATES[10].'</option>
				<option value="11">'.$OVERVIEW_FILTER_SHOW_DATES[11].'</option>
				<option value="12">'.$OVERVIEW_FILTER_SHOW_DATES[12].'</option>
				</select>
				<select id="up_show_year" class="selectBoxNormal" style="width:80px;" name="up_show_year" onchange="GetTasks('.chr(39).'widget-tasks'.chr(39).',true);" >';
				for ($i=2008; $i<2015; $i++)
				{
					echo '<option value="'.$i.'">'.$i.'</option>';
				
				}
echo '				</select>
				
				

				</div><br/>
				</div>
				<div style="display:block;width:100%;"><table cellspacing="0" cellpadding="0"  class="TableTasks">
					<tbody>
					<tr>
						<td style="width: 15px;padding-left:10px;">&nbsp;</td>
						<td style="width: 235px;padding-left:3px;"><a href="javascript:SetTaskSort('.chr(39).'t_name'.chr(39).',true);">'.$OVERVIEW_HEADLINE[0].'</a></td>
						<td style="width: 147px;"><a href="javascript:SetTaskSort('.chr(39).'p_name'.chr(39).',true);">'.$OVERVIEW_HEADLINE[1].'</a></td>
						<td style="width: 80px;"><a href="javascript:SetTaskSort('.chr(39).'t_entry_date'.chr(39).',true);">'.$OVERVIEW_HEADLINE[3].'</a></td>
						<td style="width: 80px;"><a href="javascript:SetTaskSort('.chr(39).'t_end_date'.chr(39).',true);">'.$OVERVIEW_HEADLINE[2].'</a></td>
						<td><a href="javascript:SetTaskSort('.chr(39).'u_name'.chr(39).',true);">'.$OVERVIEW_HEADLINE[4].'</a></td>
						<td align="right" style="padding-right:10px;">'.$OVERVIEW_HEADLINE[5].'</td>
					</tr>
					</table></div>
				<div class="TaskOverviewList"  id="widget-tasks"></div>
				<div class="TaksOverViewListInfo1">'.$OVERVIEW_TOTAL.': <span id="totalTime" style="font-weight:bold;"></span> '.$OVERVIEW_TOTAL_TIME.'</div>
				<div class="TaksOverViewListInfo2"><a href="javascript:SelectAllCheckboxes('.chr(39).'widget-tasks'.chr(39).',document.saveTaskFrame);OffFoc();"> '.$OVERVIEW_SELECT_ALL.'</a></div>
				
				
				<p>&nbsp;</p>

				<div style="height:30px;width:100%;overflow:hidden;"  id="widget-tasks-icons">';
				
				echo '<a href="javascript:invoiceSelected('.chr(39).'widget-tasks'.chr(39).',document.saveTaskFrame);OffFoc();" class="iconInvoice" style="position:absolute;margin:5px;"  onmouseover="StartFadeIn();ddrivetip('.chr(39).$TOOLTIP_TASKOVERVIEW_EXPORT.chr(39).', 300);" onmouseout="hideddrivetip();"></a>';
				if ($_SESSION['gid']=='1' || $_SESSION['gid']=='2')
				{
					echo '<a href="javascript:clearSelected('.chr(39).'widget-tasks'.chr(39).',document.saveTaskFrame);OffFoc();" class="iconCleared" style="position:absolute;margin:5px;margin-left:55px;" onmouseover="StartFadeIn();ddrivetip('.chr(39).$TOOLTIP_TASKOVERVIEW_CLEARBUTTON.chr(39).', 300);" onmouseout="hideddrivetip();"></a>';
					if ($_SESSION['gid']=='1' )
					{
						echo '<a href="javascript:deleteSelected('.chr(39).'widget-tasks'.chr(39).',document.saveTaskFrame,'.chr(39).'task'.chr(39).','.chr(39).'saveTaskFrame'.chr(39).');OffFoc();" class="iconRemove" style="position:absolute;margin:5px;margin-left:80px;"></a>';
					}
				}
				
				echo '	<a href="javascript:GetTasks('.chr(39).'widget-tasks'.chr(39).',false);OffFoc();" class="iconReload" style="position:absolute;margin:5px;margin-left:200px;"  onmouseover="StartFadeIn();ddrivetip('.chr(39).$TOOLTIP_TASKOVERVIEW_RELOAD.chr(39).', 140);" onmouseout="hideddrivetip();"></a>

				<!--<a href="javascript:GetTasks('.chr(39).'widget-tasks'.chr(39).',false);OffFoc();" class="iconBackward" style="position:absolute;margin:5px;margin-left:250px;"></a>
				<a href="javascript:GetTasks('.chr(39).'widget-tasks'.chr(39).',false);OffFoc();" class="iconForward" style="position:absolute;margin:5px;margin-left:280px;"></a>//-->



				</div><br/>

			    <input type="hidden" name="info_task" id="info_task"/>
			    <input type="hidden" name="info_task_checkbox" id="info_task_checkbox"/>
			    <input type="hidden" name="ausgefuellt"  value="ja"/>
			    <input type="hidden" name="sortby" id="sortby"  value="t_priority"/>
			    <input type="hidden" name="sortdirection"  id="sortdirection" value="asc"/>
                    	</form></div>';

                    ?>
Return current item: Jingho project management