Location: PHPKode > projects > Jingho project management > content/content_add_task.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;"';
	$inputSizeSmall = '100px;';
}
else
{
	$inputSizeSmall = '48%;';
}

 	
	
echo '
	<div class="widget-content" style="border:0px;">
		<form action="actions/save_task.php" enctype="multipart/form-data" method="post" target="saveFrame" name="QuickSaveTask">
                    <span id="TaskSavedMessage"><br/>&nbsp;</span>
                    <p>'.$ADD_TAKS_PROJECT.'*<br/>';
                    
                    
			SelectBoxB("SELECT 
				  t_projects.p_name,
				  t_projects.c_id,
				  t_projects.p_id,
				  t_projects_users.u_id,
				  t_users.u_name,
				  t_users.u_deleted
				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_users.u_deleted=0 AND t_projects_users.u_id= ".$_SESSION['uid']." order by  t_projects.c_id,t_projects.p_name
				  ", 'p_id', 'p_name', 0,$ADD_TAKS_PROJECT_CHOOSE,0,"selectBox","LoadProjectUsers(this.value,".chr(39)."ticket_users".chr(39).");SaveUserProperties();","p_id");
                    
                    
        echo'       </p>
                    
                    '.$ADD_TAKS_HEADLINE.'*<br/>
                    <input type="text" id="t_name" name="t_name" class="textArea" '.$inputSize.'  style="height:18px;"/>
                    '.$ADD_TAKS_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('t_description') ;
				$fckeditor2->BasePath	= $sBasePath ;
				$fckeditor2->Value	= '' ;
				$fckeditor2->Create() ;   					

	echo '       </div>             ';
	
			
	
	
	

echo '              
                    <p>
			    <span style="float:left;">'.$ADD_TAKS_TIME_START.'</span>
			    <span style="float:right;padding-right:10px;">'.$ADD_TAKS_TIME_END.'</span><br/>
			    <input type="text" id="t_start_date" name="t_start_date" class="textArea" value="'.date("d.m.Y").'" style="width:'.$inputSizeSmall.';height:18px;"/>
			    <input type="text" id="t_end_date" name="t_end_date" class="textArea"  value="'.date("d.m.Y").'"  style="width:'.$inputSizeSmall.';height:18px;"/>


			    <br/>&nbsp;<br/>'.$ADD_TAKS_TIME_PLANNED.'
			    <input type="text" id="t_time_planned" name="t_time_planned" class="textArea" value="0.00" style="width:30px;height:18px;"/><br/>
			    <input type="checkbox" id="t_asp" name="t_asp" value="1"/>&nbsp;<label for="t_asp">'.$ADD_TAKS_TIME_ASP.'&nbsp;
			    <span class="small_text">'.$ADD_TAKS_TIME_ASP_INFO.'</span></label>
                    </p>
                    <p>
                    '.$ADD_TAKS_USERS.'&nbsp;<br/>
                    <select name="ticket_users[]" id="ticket_users" size="6" class="selectBox" multiple></select>
                    
                    <br/>
                    '.$ADD_TAKS_PRIORITY.'&nbsp;
                    <input type="radio" id="t_priority1" name="t_priority" value="1"/>&nbsp;<label for="t_priority1">'.$ADD_TAKS_PRIORITY1.'</label>&nbsp;
                    <input type="radio" id="t_priority2" name="t_priority" value="2"/>&nbsp;<label for="t_priority2">'.$ADD_TAKS_PRIORITY2.'</label>&nbsp;
                    <input type="radio" id="t_priority3" name="t_priority" checked value="3"/>&nbsp;<label for="t_priority3">'.$ADD_TAKS_PRIORITY3.'</label>&nbsp;
                    </p>
                    <br/>
                    <input type="checkbox" checked id="t_emailX" name="t_email" value="1"/>&nbsp;<label for="t_emailX">'.$ADD_TAKS_EMAIL.'</label><br/>
                    <p>'.$ADD_TAKS_ADD_FILE.'&nbsp;<br/>
			<input type="file" name="file1" id="file1"  style="color:#000000;"/><br/>
			<input type="file" name="file2" id="file2"  /><br/>
			<input type="file" name="file3" id="file3"  /><br/>
			<input type="hidden" name="file1_hidden" id="file1_hidden"/>
			<input type="hidden" name="file2_hidden" id="file2_hidden"/>
			<input type="hidden" name="file3_hidden" id="file3_hidden"/>
			</p>
<!--//-->
                    <!--<iframe src="classes/class.upload.file.php" height="35" width="100%" style="overflow:hidden;border:0px" border="0"></iframe>//-->
                    <br/>'.$ADD_TAKS_INFO.'<br/>
                    <input type="button" onclick="SendQuickTask();" class="buttonLogin" value="'.$ADD_TAKS_SAVE_TICKET.'"/>
                    <br/>&nbsp;<br/>
                    <input type="hidden" name="ausgefuellt" value="ja"/>
		</form>                    	
	</div>
';?>
Return current item: Jingho project management