Exemplo n.º 1
0
<?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>
<?php 
$project->projectStat($_REQUEST[project_id]);
?>

<?php 
$page->displayPageBottom();
Exemplo n.º 2
0

<div class="profile_box1" ><?php 
echo $em->erpContactScreenCustom($em->GetContactID());
?>
</div>
<?php 
echo $secure->creditcard_box('contacts', $em->GetContactID());
?>
<h4>Tasks</h4>
<div class="form_main">
<div id="task_area" class="small_text">


<?php 
echo $task->GetTaskForProjectProfile('', '', '', '', '', '', '', 1, 'TBL_CONTACT', $em->GetContactID());
if ($_POST['save_edit'] == 'Save') {
    $task->EditTask('server', $_POST['task_id'], 'task', $em->GetContactID());
}
?>
</div>
</div>

<div class="data_box">
<?php 
echo $em->GetContactProfile($em->GetContactID());
?>
</div>

<?php 
if ($open_task == "yes") {
Exemplo n.º 3
0
																			document.getElementById('task_form').innerHTML = response;
																			showCalender();
																		  }});">add Todo</a><br />
			
				
																		  <?php 
    if ($_REQUEST['Save_ORDER'] == 'Add this Task') {
        echo $workorder->addTodo('ORDER', 'order.php', 'order_id', $_REQUEST[order_id], '', 'server');
    }
    ?>
</div>
														
						<div class="form_bg" style="display:none;" id="task_form"></div>
						<div  id="task_area" style="background-color:#CCCCCC">
					       <?php 
    echo $task->GetTaskForProjectProfile('', '', '', '', '', '', '', 1, 'ORDER', $_REQUEST[order_id]);
    if ($_REQUEST['save_edit'] == 'Save') {
        echo $task->EditTask('server', $_SESSION['task_id'], 'task', 'order_profile');
    }
    ?>
													  
				        </div>
					<div style="background-color:#CCCCCC">
						<?php 
    echo $workorder->FlowChartDiv("order", $_REQUEST[order_id]);
    ?>
					</div>
		</div>
		<div id="div_list_global_task"><?php 
    //echo $global_task->taskPreviewUser($project_id,'Project',$page->auth->Get_user_id());
    ?>
<?php 
//////////////////////    Generate work order //////////////////////
?>

<div id="gererate"> <?php 
//  echo $em->linktogenerateorder($em->GetContactID(),'em');
?>
</div>

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


<?php 
echo $task->GetTaskForProjectProfile('', '', '', '', '', '', '', 1, 'contacts', $contact_id);
if ($_POST['save_edit'] == 'Save') {
    $task->EditTask('server', $_POST['task_id'], 'task', $em->GetContactID());
}
?>
</div>
</div>
<H4>Flow Chart Tasks</H4>
<div><div><?php 
echo $global_tasks->FlowChartDiv('contacts', $vars['contact_id'], 'tbl_contacts');
?>
</div></div>
<div class="data_box">
<?php 
echo $em->GetContactProfile($em->GetContactID());
?>
Exemplo n.º 5
0
	function showproductname($order_id=''){
			ob_start();
			$sql="select * from ". erp_PRODUCT_ORDER . " where order_id='$order_id' ORDER BY product_name";
			$result=$this->db->query($sql,_FILE_,_LINE_);
            while($row=$this->db->fetch_array($result)){ ?>
				<div class="profile_box1" style="font-weight:bold;background-color:#CCCCCC;float:left; width:59%;">
					<a style="color:#FF0000; font-size:15px" 
						onclick="javascript: if(this.innerHTML=='-'){
													this.innerHTML = '+';
													document.getElementById('div_<?php echo $row[workorder_id]; ?>').style.display = 'none';
													document.getElementById('wo_task<?php echo $row[workorder_id]; ?>').style.display = 'none';
                                                    document.getElementById('wo_task<?php echo $row[workorder_id].'rework'; ?>').style.display = 'none';													}
													else {
													this.innerHTML = '-';
													document.getElementById('div_<?php echo $row[workorder_id]; ?>').style.display = 'block';
													document.getElementById('wo_task<?php echo $row[workorder_id]; ?>').style.display = 'block';
													document.getElementById('wo_task<?php echo $row[workorder_id].'rework'; ?>').style.display = 'block';
												} ">-</a>&nbsp;<?php echo $row[workorder_id].' '.$row[product_name]; ?>
				<a href="javascript:void(0);" style="margin-left:104px;"
				   onclick="javascript:workorder.GenerateRework('local',
				                                                '<?php echo $row[workorder_id]; ?>',
				   												'<?php echo $order_id; ?>',
																
				   												{preloader:'prl',
                                                                 onUpdate:function(response,root){                                                                 document.getElementById('div_order').innerHTML=response;
																 document.getElementById('div_order').style.display='';
				   											  }});" >Generate Rework</a>
				</div>
	
				<div class="profile_box1" style="font-weight:bold;background-color:#CCCCCC;float:right; width:34%;">
					Tasks : <?php echo $row[product_name];?>
				</div>
				
				<div id="div_<?php echo $row[workorder_id];?>">
					<div style="float:left">
					
						<div id="rework<?php echo $row[workorder_id];?>">
						  <?php
						   $sql_re = "SELECT * FROM ".erp_REWORK." WHERE order_id = '$order_id' and product_id = '$row[workorder_id]'";
						   $result_re = $this->db->query($sql_re,__FILE__,__LINE__);
						   $check_num = $this->db->num_rows($result_re);
						   if( $check_num > 0 ){
						       echo $this->ShowRework( $order_id, $row[workorder_id] ); } ?>
						</div>
						
						<?php echo $this->orderDetails( $order_id, $row[product_name], $row[product_id], $row[workorder_id] ); ?>
						
						<div id="note_div<?php echo $row[workorder_id];?>">
						  <?php echo $this->noteDetails('local',$order_id,$row[product_name],'','','',$row[workorder_id]); ?>
						</div>
                        <div><?php echo $this->fileserver->display_files($row['workorder_id'], "work order" , array( "header_text_style" => 'color: #5f0000;font-size: 14px;font-weight: bold;' , "header_color" => "#f3f3f3", "main_width" => "100%" , "nostyle" => true, "class" => "profile_box1" , "main_style_overide" => 'font-weight:bold;margin-left:16px;width:621px' ));?></div>
					</div>
					<div style="float:right; width:34%">
					<?php if( $check_num > 0 ){ 
						while($row_num = $this->db->fetch_array($result_re)){
						?>
					    <div class="form_main" id="wo_task<?php echo $row_num['rework_id'];?>" style="background-color:#CCCCCC;">
							<b>Rework : <?php echo $row_num['rework_id']; ?></b>
							<div  id="task_area<?php echo $row[workorder_id].'rework';?>" class="small_text" style="background-color:#CCCCCC;">
							<a href="javascript:void(0);" id="task_link<?php echo $row_num['rework_id'];?>" 
							   onclick="javascript:document.getElementById('task_form<?php echo $row_num['rework_id'];?>').style.display='';
										workorder.addTodo('REWORK_ORDER',
														  'order.php', 
														  'rework_id',
														  '',
														  '<?php echo $row_num['rework_id']; ?>',
														  '',
														  'rework',
														  {preloader: 'prl',
														  onUpdate:function(response,root){
														    document.getElementById('task_form<?php echo $row_num['rework_id'];?>').innerHTML = response;
														    showCalender();
														  }});">add Todo</a><br />
									<?php  $product_id = $_POST["hide_pro123"];
									 if($_REQUEST['save_REWORK_ORDER']=='Add this Task'){
								 		echo $this->addTodo('REWORK_ORDER','order.php','rework_id',$order_id,$row_num['rework_id'],'server');
								     }?>
								
								<div class="form_bg" style="display:none;" id="task_form<?php echo $row_num['rework_id'];?>"></div>																					  								<div id="tab<?php echo $row_num['rework_id']; ?>" style="background-color:#CCCCCC">
									<?php 
									$task1 = new Tasks();
									echo $task1->GetTaskForProjectProfile('','','','','','','',1,'REWORK_ORDER',$row_num['rework_id']);?>
								</div></div>
								<?php echo $this->FlowChartDiv("work order", $row["workorder_id"], $row_num['rework_id']);?>
								
							</div>
				  <?php }  } ?>
						
						<div class="form_main" id="wo_task<?php echo $row[workorder_id];?>" style="background-color:#CCCCCC;">
							<b>Work Order :</b>
							<div id="task_area<?php echo $row[workorder_id];?>" class="small_text" style="background-color:#CCCCCC;">
								
							<a href="javascript:void(0);" id="task_link<?php echo $row[workorder_id];?>" 
							   onclick="javascript:document.getElementById('task_form<?php echo $row[workorder_id];?>').style.display='';
										workorder.addTodo('WORK_ORDER',
														  'order.php', 
														  'work_order_id',
														  '',
														  '<?php echo $row['workorder_id']; ?>',
														  '',
														  {preloader: 'prl',
														  onUpdate:function(response,root){
														    document.getElementById('task_form<?php echo $row[workorder_id];?>').innerHTML = response;
														    showCalender();
														  }});">add Todo</a><br />
									<?php  $product_id = $_POST["hide_pro123"];
									
											if($_REQUEST['Save_WORK_ORDER']=='Add this Task'){
												echo $this->addTodo('WORK_ORDER','order.php','work_order_id',$_REQUEST[order_id],$row['workorder_id'],'server');}?>
								
								<div class="form_bg" style="display:none;" id="task_form<?php echo $row[workorder_id];?>"></div>																					  								<div id="tab<?php echo $row['workorder_id']; ?>" style="background-color:#CCCCCC">
									<?php 
									$task2 = new Tasks();
									echo $task2->GetTaskForProjectProfile('','','','','','','',1,'WORK_ORDER',$row['workorder_id']);?>
								</div></div>
								<?php echo $this->FlowChartDiv("work order", $row["workorder_id"]);?>
						</div>
					</div>
				</div>
				<div class="Clear"></div>
			<?php  }
			$html=ob_get_contents();
			ob_end_clean();
			return $html;
	} ////end of function showproductname