Location: PHPKode > projects > Jingho project management > content/add_comment_to_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 ==
 *
 * 
 */
echo '
	<div  id="TaskEditWindow" style="width:975px;height:720px;position:absolute;top:70px;left:150px;z-index:100000;">
		<div class="widget-head TaskEditWindowMover" ><a class="collapse" href="javascript:Hide('.chr(39).'TaskEditWindow'.chr(39).');ClearGreyScreen();">COLLAPSE</a>
			<h3 id="widgetWindowHeadline">  &nbsp;Tasks</h3>
                </div>
                <div class="widget-content" style="">
			<iframe src="blank_grey.php" name="IframeAddCommentTask" id="IframeAddCommentTask" scrolling="no" height="580" width="100%"  frameborder="0" class="EditWIframe"></iframe>
		</div>
		<form action="actions/save_task_comment.php" method="post"  enctype="multipart/form-data" target="saveFrame" name="QuickSaveComment">
			<div style="position:absolute;width:640px;height:390px;top:375px;left:0px;margin:10px;overflow:hidden;border:0px;z-index:100000">
				<div style="padding-left:10px;padding-top:10px;height:271px;">';

					// Automatically calculates the editor base path based on the _samples directory.
					// This is usefull only for these samples. A real application should use something like this:
					// $oFCKeditor->BasePath = '/editor/' ;	// '/fckeditor/' is the default value.
					//$sBasePath = $_SERVER['PHP_SELF'] ;
					//$sBasePath = substr( $sBasePath, 0, strpos( $sBasePath, "_samples" ) ) ;
					$oFCKeditor->BasePath = '/fckeditor/';
					$oFCKeditor->ToolbarSet = 'standard';
					$oFCKeditor->Width = '350';
					$oFCKeditor->Height = '500';
					$oFCKeditor = new FCKeditor('FCKeditor1') ;
					$oFCKeditor->BasePath	= $sBasePath ;
					$oFCKeditor->Value	= '' ;
					$oFCKeditor->Create() ;
		echo '                    
				</div>
				<div style="text-align:center;width:100%;">
					<p>
						<span id="SaveButtonsFromTaskComments" style="text-align:center;">
							<input type="button" onclick="Hide('.chr(39).'TaskEditWindow'.chr(39).');ClearGreyScreen();" class="buttonLogin" value="'.$ADD_COMMENTS_TO_TAKS_CANCEL.'"/>&nbsp;
							<input type="button" onclick="SendTaskComment();Hide('.chr(39).'TaskEditWindow'.chr(39).');ClearGreyScreen();" class="buttonLogin" value="'.$ADD_COMMENTS_TO_TAKS_SEND_CLOSE.'"/>&nbsp;
							<input type="button" onclick="SendTaskComment();" class="buttonLogin" value="'.$ADD_COMMENTS_TO_TAKS_SEND.'"/>
						</span>
					  </p>
				</div>
				<input type="hidden" name="ausgefuellt" value="ja"/>
				<input type="hidden" name="t_status" id="t_status" value=""/>
				<input type="hidden" name="tc_time_planned" id="tc_time_planned" value=""/>
				<input type="hidden" name="tc_time" id="tc_time" value=""/>
				<input type="hidden" name="t_id" id="t_id" value=""/>
				<input type="hidden" name="t_emails" id="t_emails" value=""/>
				<input type="hidden" name="t_email" id="t_email" value=""/>
				<input type="hidden" name="tc_time_readable" id="tc_time_readable" value=""/>
			</div>	
			<div class="editTaskMainFileUpload"><p>'.$ADD_TAKS_ADD_COMMENT_FILE.'&nbsp;<br/>
					<input type="file" name="file1a" id="file1a"  style="color:#000000;"/><br/>
					<input type="file" name="file2a" id="file2a"  /><br/>
					<input type="file" name="file3a" id="file3a"  /><br/>
					<input type="hidden" name="file2a_hidden" id="file2a_hidden"/>
					<input type="hidden" name="file3a_hidden" id="file3a_hidden"/>		
				<input type="hidden" name="file1a_hidden" id="file1a_hidden"/>
			</div>
		</form>
		<form action="actions/delete_comment.php" method="post" target="saveFrame" name="deleteComment">
			<input type="hidden" value="" name="tc_id_delete" id="tc_id_delete"/>
			<input type="hidden" value="ja" name="ausgefuellt" id="ausgefuellt"/>
			<input type="hidden" value="" name="tc_id_delete_t_id" id="tc_id_delete_t_id"/>
			
		</form>
			
	</div>

';?>
Return current item: Jingho project management