Location: PHPKode > projects > Jingho project management > content/content_add_user.php
<?
global $p_id, $p_name,$inputSize,$inputSizeSmall;
if ($task_view==1)
{
	$inputSize = ' style="width:200px;"';
	$inputSizeSmall = '100px;';
}
else
{
	$inputSizeSmall = '48%;';
}


echo '
	<div class="widget-content" style="border:0px;">
		<form action="actions/save_user.php" method="post" target="saveFrame" name="SaveUserForm">
                    <span id="UserSavedMessage"><br/>&nbsp;</span>
                    <p>
			'.$ADD_USER_FULLUSERNAME.'*<br/>
			<input type="text" id="u_name" name="u_name" class="textArea" '.$inputSize.' style="height:18px;"/>

			'.$ADD_USER_LOGIN.'*<br/>
			<input type="text" id="u_login" name="u_login" class="textArea" '.$inputSize.' style="height:18px;"/>

			'.$ADD_USER_PASSWORD.'*<br/>
			<input type="password" id="u_password" name="u_password" class="textArea" '.$inputSize.' style="height:18px;"/>
			
			'.$ADD_USER_RREPEAT_PASSWORD.'*<br/>
			<input type="password" id="u_password2" name="u_password2" class="textArea" '.$inputSize.' style="height:18px;"/>			
			
			'.$ADD_USER_EMAIL.'*<br/>
			<input type="text" id="u_email" name="u_email" class="textArea" '.$inputSize.' style="height:18px;"/>			
                   
                    <input type="checkbox" id="u_emailcheck" name="u_emailcheck" value="1"/>&nbsp;<label for="u_emailcheck">'.$ADD_USER_SEND_EMAIL.'&nbsp;</label>
                    </p>
                    
                   <p>'.$ADD_USER_USERGROUP.'*<br/>';
		                        
		                     
		    			SelectBoxB("SELECT 
		    				  *
		    				FROM
		    				  t_groups
		    				  WHERE g_value>=".$_SESSION['gvalue']." order by g_name
		    				  ", 'g_id', 'g_name', 0,$ADD_TAKS_USERGROUP_CHOOSE,0,"selectBox","","user_g_id");
		                        
      echo   '</p>';     
     
     if ($_SESSION['gid']=='1' || 1==1)
     {
 	echo '<p>'.$ADD_USER_COSTUMERS.'*<br/>';
		                        
		                        
		    			SelectBoxB("SELECT `t_costumers`.c_id,`t_costumers`.c_name FROM  `t_costumers` WHERE c_parent=".$_SESSION['cid']." OR c_id=".$_SESSION['cid']." order by c_name"
		    				   ,'c_id', 'c_name', 0,$ADD_USER_CHOOSE_COSTUMER,7,"selectBox","LoadProjectCostumers(GetValues(this),".chr(39)."p_id_Adduser".chr(39).");","c_id_Adduser[]");
		                             
     
 	echo   '
                 <p>'.$ADD_USER_PROJECTS.'<br/>';
		                        
		                        
		    			SelectBoxB("SELECT 
		    				  t_projects.p_name,
		    				  t_projects.c_id,
		    				  t_projects.p_id,
		    				  t_projects_users.u_id,
		    				  t_users.u_name
		    				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)
		    				  WHERE t_projects_users.u_id= ".$_SESSION['uid']." AND t_projects_users.u_id = 0 
		    				  ", 'p_id', 'p_name', 0,$ADD_TAKS_PROJECT_CHOOSE,5,"selectBox","","p_id_Adduser[]");
		                        
		             echo   '</p>';                              
      
                 
                
	}
	else
	{
                 echo '<p>'.$ADD_USER_PROJECTS.'*<br/><input type="hidden" name="c_id_Adduser[]" id="c_id_Adduser" value="'.$_SESSION['uid'].'" />';
		                        
		                        
		    			SelectBoxB("SELECT 
		    				  t_projects.p_name,
		    				  t_projects.c_id,
		    				  t_projects.p_id,
		    				  t_projects_users.u_id,
		    				  t_users.u_name
		    				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)
		    				  WHERE  t_projects.c_id=".$_SESSION['cid']." AND t_projects_users.u_id= ".$_SESSION['uid']."
		    				  ", 'p_id', 'p_name', 0,$ADD_TAKS_PROJECT_CHOOSE,5,"selectBox","","p_id_Adduser[]");
		
	
	}
        echo'
                    
                   
                    <br/>'.$ADD_TAKS_INFO.'<br/>
                    <input type="button" onclick="SendAddUser();" class="buttonLogin" value="'.$ADD_USER_SAVE.'"/>
                    <br/>&nbsp;<br/>
                    <input type="hidden" name="ausgefuellt" value="ja"/>
		</form>                    	
	</div>
';?>
Return current item: Jingho project management