Exemplo n.º 1
0
	function addTodo($module='',$profile_page='',$module_id='',$order_id='',$product_id='',$type=''){
		ob_start();
		
			$tasks = new Tasks();
			$tasks -> SetUserID($_SESSION['user_id']);
			$tasks -> SetModuleID($_SESSION['contact_id']);
			if($type == 'server'){
			//echo 'server'.$product_id;
				$tasks->AddTask('server',$module,$profile_page,$module_id,'',$module,$order_id,$product_id);}
			else{
			//echo 'local'.$product_id;
				$tasks->AddTask('local',$module,$profile_page,$module_id,'',$module,$order_id,$product_id);}
			?>
			<a href="javascript:void(0);" onClick="document.getElementById('task_link<?php echo $product_id;?>').style.display=''; 
												   document.getElementById('task_form<?php echo $product_id;?>').style.display='none';
												   return false;">cancel</a>
		<?php 
		$html=ob_get_contents();
		ob_end_clean();
		return $html;
	}
Exemplo n.º 2
0
?>
</div>

<h4>Tasks</h4>
<div class="form_main">
<div id="task_area" class="small_text">

<?php 
/************* Add link for task **************/
?>
<a href="javascript:void(0);" id="task_link" onclick="document.getElementById('task_form').style.display=''; this.style.display='none'; return false;">add</a><br /><br />
<div class="form_bg" style="display:none;" id="task_form">
<?
$task->SetModuleID($project_id);
if($_POST['Save']=='Add this Task')
$task->AddTask('server','PROJECT','project_profile.php','project_id');
else
 $task->AddTask('local');
?>
<div class="Clear"><a href="" onclick="document.getElementById('task_link').style.display=''; document.getElementById('task_form').style.display='none'; return false;">cancel</a></div>
</div>
<?php 
/**************** End of div add task ************/
?>

<?php 
// echo $task->GetTask('','','','','','','',1,'PROJECT',$project_id);
echo $task->GetTaskForProjectProfile('', '', '', '', '', '', '', 1, 'PROJECT', $project_id);
?>
</div>	</div>
</div>
Exemplo n.º 3
0
<?php 
// **********************Closes the Content Column and begins Info Column ****************************//
$page->printContentColumnEnd();
// **********************Start code for Info Column ****************************//
?>

<div class="form_main">
<a href="task.php?contact_id=<?php 
echo $em->GetContactID();
?>
" id="task_link" onclick="document.getElementById('task_form').style.display=''; this.style.display='none'; return false;"><img src="images/add_task.png" class="action_links" /></a><br />

<div class="form_bg" style="display:none;" id="task_form">
<?
if($_POST['Save']=='Add this Task')
$task->AddTask('server');
else


 $task->AddTask('local');
?>
<div class="Clear"><a href="" onclick="document.getElementById('task_link').style.display=''; document.getElementById('task_form').style.display='none'; return false;">cancel</a></div>
</div>

<!--	<div><a href="csv_import.php"><img src="images/import_outlook.png" /></a></div>
	<div><a href="vcard_import.php"><img src="images/import_vcard.png" /></a></div>
	<div><a href="csv_export.php"><img src="images/export_outlook.png" /></a></div>
<div><a href="exportVcard.php?contact_id=<?php 
echo $em->GetContactID();
?>
" target="_blank"><img src="images/export_vcard.png" /></a></div>