Location: PHPKode > projects > Jingho project management > content/content_overview_users.php
<?
/*
 * Jingho Projects - Small business project management 
 * Copyright (C) 2010 Gido Carper
 * http://www.jingho-projects.com
 * http://www.jingho.de
 * 
 * thank you for mentioning my name and url on your site if you use this software!
 * 
 * == BEGIN LICENSE ==
 *
 * Licensed under the terms of any of the following licenses at your
 * choice:
 *
 *  - GNU General Public License Version 1.0 or later (the "GPL")
 *    http://www.gnu.org/licenses/gpl.html
 *
 *
 * == END LICENSE ==
 *
 * overview user list
 */
echo '
 <div class="widget-head" >
                    <h3>'.$OVERVIEW_USERS.'&nbsp;&nbsp;<span id="UserInfo"></span></h3><span id="UsersLastupdated" style="float:right;padding-right:10px;"></span>
                    
                </div>
                <div class="widget-content">
<form action="'.$MAIN_PATH.'actions.php" method="post" target="saveFrame" name="saveUserFrame">
				<div  style="color:#ffffff;margin-left:10px;padding-top:10px;display:block;width:500px;">
				

			<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","GetUsers(".chr(39)."widget-users".chr(39).",true);","p_id_users","c_name"); 

echo '				
				
				

				</div><br/>
				</div>
				<div style="display:inline-block;width:100%;"><table cellspacing="0" cellpadding="0" class="TableTasksUsers">
					<tbody>
					<tr>

						<td style="width: 15px;padding-left:10px;">&nbsp;</td>
						<td style="width: 195px;padding-left:3px;"><a href="javascript:SetUserSort('.chr(39).'u_name'.chr(39).',true);">'.$OVERVIEW_USERS_HEADLINE[0].'</a></td>
						<td style="width: 197px;"><a href="javascript:SetUserSort('.chr(39).'u_email'.chr(39).',true);">'.$OVERVIEW_USERS_HEADLINE[1].'</a></td>
						<td style="width: 100px;"><a href="javascript:SetUserSort('.chr(39).'u_entry_date'.chr(39).',true);">'.$OVERVIEW_USERS_HEADLINE[2].'</a></td>
						<td ><a href="javascript:SetUserSort('.chr(39).'u_last_login'.chr(39).',true);">'.$OVERVIEW_USERS_HEADLINE[3].'</a></td>
						
						<!--<td><a href="javascript:SetUserSort('.chr(39).'u_name'.chr(39).',true);">'.$OVERVIEW_USERS_HEADLINE[4].'</a></td>
						<td align="right" style="padding-right:10px;">'.$OVERVIEW_USERS_HEADLINE[5].'</td>//-->
					</tr>
					</table></div>
				<div class="UserOverviewList" id="widget-users"></div>
				<div style="float:right;margin-right:10px;margin-top:10px;color:#ffffff;font-size:11px;">'.$OVERVIEW_TOTAL.': <span id="totalUsers" style="font-weight:bold;"></span> '.$OVERVIEW_TOTAL_USERS.'</div>
				<!--<span style="float:left;margin-right:10px;margin-top:10px;color:#ffffff;font-size:11px;"><a href="javascript:SelectAllCheckboxes('.chr(39).'widget-users'.chr(39).',document.saveTaskFrame);OffFoc();"> '.$OVERVIEW_SELECT_ALL.'</a> this is not a good idea to delete all users//--> 
				
				
				<p>&nbsp;</p>

				<div style="height:30px;width:100%;overflow:hidden;"  id="widget-user-icons">';
				
				
				if ($_SESSION['gid']=='1' || $_SESSION['gid']=='2')
				{
					if ($_SESSION['gid']=='1' )
					{
						echo '<a href="javascript:deleteSelected('.chr(39).'widget-users'.chr(39).',document.saveUserFrame,'.chr(39).'user'.chr(39).','.chr(39).'saveUserFrame'.chr(39).');OffFoc();" class="iconRemove" style="position:absolute;margin:5px;margin-left:80px;"></a>';
					}
				}
				
				echo '	<a href="javascript:GetUsers('.chr(39).'widget-users'.chr(39).',false);OffFoc();" class="iconReload" style="position:absolute;margin:5px;margin-left:200px;"  onmouseover="StartFadeIn();ddrivetip('.chr(39).$TOOLTIP_USEROVERVIEW_RELOAD.chr(39).', 140);" onmouseout="hideddrivetip();"></a>

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



				</div><br/>

			    
			    <input type="hidden" name="ausgefuellt"  value="ja"/>
			    <input type="hidden" name="user_sortby" id="user_sortby"  value="u_name"/>
			    <input type="hidden" name="user_sortdirection"  id="user_sortdirection" value="asc"/>
			    
			    <input type="hidden" name="info_users" id="info_users"/>
			    <input type="hidden" name="info_users_checkbox" id="info_users_checkbox"/>			    
			    
                    	</form></div>';

                    ?>
Return current item: Jingho project management