Location: PHPKode > projects > Jingho project management > content/content_add_project.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 ==
 *
 * 
 */
global $p_id, $p_name,$inputSize,$inputSizeSmall;
if ($task_view==1)
{
	$inputSize = ' style="width:200px;height:18px;"';
	$inputSizeSmall = '100px;';
}
else
{
	$inputSizeSmall = '48%;';
}

 	
	
echo '
	<div class="widget-content" style="border:0px;">
		<form action="actions/save_project.php" method="post" enctype="multipart/form-data" target="saveFrame" name="SaveProjectForm">
			<span id="ProjectSavedMessage"><br/>&nbsp;</span>           
			
				'.$ADD_PROJECT_NAME.'*<br/>
				<input type="text" id="p_name" name="p_name" class="textArea" '.$inputSize.' style="height:18px;"/>
				<br/>'.$ADD_PROJECT_DESCRIPTION.'<br/>
				<div style="width:100%;height:250px;display:block;">';
					
					$fckeditor2->BasePath = 'fckeditor/';
					$fckeditor2->ToolbarSet = 'standard';
					$fckeditor2->Width = 550;
					$fckeditor2->Height = 600;
					$fckeditor2 = new FCKeditor('p_description') ;
					$fckeditor2->BasePath	= $sBasePath ;
					$fckeditor2->Value	= '' ;
					$fckeditor2->Create() ;   					
				
					
			echo '	</div>
			
			<p>
				<span style="float:left;">'.$ADD_PROJECT_START_DATE.'</span>
				<span style="float:right;padding-right:10px;">'.$ADD_PROJECT_END_DATE.'</span><br/>
				<input type="text" id="p_start_date" name="p_start_date" class="textArea" value="'.date("d.m.Y").'" style="width:'.$inputSizeSmall.';height:18px;"/>
				<input type="text" id="p_end_date" name="p_end_date" class="textArea"  value="'.date("d.m.Y").'"  style="width:'.$inputSizeSmall.';height:18px;"/>

				<br/>&nbsp;<br/>'.$ADD_PROJECT_TIME_PLANNED.'&nbsp;
				<input type="text" id="p_days_planned" name="p_days_planned" class="textArea" value="0" style="width:30px;;height:18px;"/>
				&nbsp;'.$ADD_PROJECT_TIME_PLANNED_DAYS.'&nbsp;<input type="text" id="p_hours_planned" name="p_hours_planned" class="textArea" value="0.00" style="width:30px;;height:18px;"/>&nbsp;'.$ADD_PROJECT_TIME_PLANNED_HOURS.'
				<br/>
			</p>
				'.$ADD_PROJECT_BUDGET.' 
				<input type="text" id="p_budget" name="p_budget" class="textArea" style="width:60px;height:18px;" value="0"/>&nbsp;';
				SelectBoxB("SELECT  * FROM t_currency ORDER BY cu_standard desc, cu_name asc"
						   ,'cu_id', 'cu_name', 0,"",0,"selectBox80","","cu_id[]");				
			echo '<p>'.$ADD_PROJECT_STATUS.' ';
			
			SelectBoxB("SELECT  * FROM t_projects_status ORDER BY ps_id asc"
						   ,'ps_id', 'ps_name', 0,"",0,"selectBox120","","ps_id[]");
			
			echo '
			</p><p>
				'.$ADD_PROJECT_COSTUMER.'*<br/>';
				SelectBoxB("SELECT `t_costumers`.c_id,`t_costumers`.c_name FROM  `t_costumers` WHERE c_parent=".$_SESSION['cid']." OR c_id=".$_SESSION['cid']."  "
						   ,'c_id', 'c_name', 0,$ADD_PROJECT_CHOOSE_COSTUMER,0,"selectBox","LoadCostumersUsers(this.value,".chr(39)."project_users".chr(39).");","c_id_Addproject[]");

				echo '
			</p>
			<p>
				'.$ADD_PROJECT_USERS.'*<br/><select name="project_users[]" id="project_users" size="6" class="selectBox" multiple></select>'.$ADD_PROJECT_USERS_INFO.'
			</p>
			<input type="checkbox" id="p_emailcheck" name="p_emailcheck" value="1"/>&nbsp;<label for="p_emailcheck">'.$ADD_PROJECT_SEND_EMAIL.'&nbsp;</label>
                   	
                    <p>'.$ADD_PROJECT_ADD_FILE.'&nbsp;<br/>
			<input type="file" name="projectfile1" id="projectfile1"  style="color:#000000;"/><br/>
			<input type="file" name="projectfile2" id="projectfile2"  /><br/>
			<input type="file" name="projectfile3" id="projectfile3"  /><br/>
			<input type="hidden" name="projectfile1_hidden" id="projectfile1_hidden"/>
			<input type="hidden" name="projectfile2_hidden" id="projectfile2_hidden"/>
			<input type="hidden" name="projectfile3_hidden" id="projectfile3_hidden"/>
			</p>                    	
                    	<br/>'.$ADD_PROJECT_INFO.'<br/>&nbsp;<br/>
                    	<input type="button" onclick="SendAddProject();" class="buttonLogin" value="'.$ADD_PROJECT_SAVE.'"/>
                    	
                    	<br/>&nbsp;<br/>
                    	<input type="hidden" name="ausgefuellt" value="ja"/>
		</form>                    	
	</div>
';?>
Return current item: Jingho project management