コード例 #1
0
ファイル: wo.php プロジェクト: articaST/integriaims
		$table->head[9] = __('Created/Updated');
		$table->head[10] = __('Options');
		/*$table->size[6] = '80px;';
		$table->size[5] = '130px;';*/
		

		foreach ($wos as $wo) {
			$data = array ();
			
			// Detect is the WO is pretty old 
			// Stored in $config["lead_warning_time"] in days, need to calc in secs for this

			$config["lead_warning_time"]= 7; // days
			$config["lead_warning_time"] = $config["lead_warning_time"] * 86400;

			if (calendar_time_diff ($wo["last_update"]) > $config["lead_warning_time"] ){
				$style = "background: #fff0f0";
			} else {
				$style = "";
			}

			if ($wo["end_date"] != "0000-00-00 00:00:00")
				if ($wo["end_date"] < date('Y-m-d H:i:s')){
					$style = "background: #fff0f0";
				}

			if ($wo["progress"] == 1)
					$style = "background: #f0fff0";	

			if ($wo["progress"] == 2)
					$style = "background: #f0f0ff";	
コード例 #2
0
ファイル: lead_detail.php プロジェクト: articaST/integriaims
		$table->head[7] = __('L.');
		$table->head[8] = __('Country');
		$table->head[9] = __('Created')."<br>".__('Updated');
		$table->head[10] = __('Op.');
		$table->size[6] = '80px;';
		$table->size[5] = '130px;';
		$table->size[10] = '40px;';

		$lead_warning_time = $config["lead_warning_time"] * 86400;
		
		foreach ($leads as $lead) {
			$data = array ();
			
			// Detect is the lead is pretty old 
			// Stored in $config["lead_warning_time"] in days, need to calc in secs for this
			if (calendar_time_diff ($lead["modification"]) > $lead_warning_time ){
				$table->rowclass[] = "red_row";
			} else {
				$table->rowclass[] = "";
			}

			$data[0] = print_checkbox_extended ('leadcb-'.$lead['id'], $lead['id'], false, '', '', 'class="cb_lead"', true);

			$data[1] = "<b><a href='index.php?sec=customers&sec2=operation/leads/lead&tab=search&id=".
				$lead['id']."'>#".$lead['id']."</a></b>";


			$data[2] = print_product_icon ($lead['id_category'], true);

			if ($lead['executive_overview'] != '') {
				$overview = print_help_tip ($lead['executive_overview'], true);