当前位置: 首页>>代码示例>>PHP>>正文


PHP Tasks::GetTaskForProjectProfile方法代码示例

本文整理汇总了PHP中Tasks::GetTaskForProjectProfile方法的典型用法代码示例。如果您正苦于以下问题:PHP Tasks::GetTaskForProjectProfile方法的具体用法?PHP Tasks::GetTaskForProjectProfile怎么用?PHP Tasks::GetTaskForProjectProfile使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Tasks的用法示例。


在下文中一共展示了Tasks::GetTaskForProjectProfile方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

<?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();
开发者ID:name256,项目名称:crm42,代码行数:30,代码来源:project_profile.php

示例2:



<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") {
开发者ID:name256,项目名称:crm42,代码行数:29,代码来源:contact_profile.php

示例3:

																			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());
    ?>
开发者ID:name256,项目名称:crm42,代码行数:31,代码来源:order.php

示例4:

<?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());
?>
开发者ID:name256,项目名称:crm42,代码行数:31,代码来源:contacts.contact_profile.main.php

示例5: showproductname

	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']; ?>',
														  '',
//.........这里部分代码省略.........
开发者ID:name256,项目名称:crm42,代码行数:101,代码来源:class.WorkOrder.php


注:本文中的Tasks::GetTaskForProjectProfile方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。