コード例 #1
0
ファイル: alerts.php プロジェクト: hew86i/panorama
		$vehReg = formatRegistration($fontVeh, $alertrow);
		$cntUniqID = 1; //reset bidejke eden veke e pronajden
	}

}  // else ako ima uniqid

	$lastvar = array('title' => $Title, 'fontveh' => $fontVeh, 'cntallowveh' => $cntAllowVeh, 'row' => $alertrow);
	$lastuniqid = $alertrow["uniqid"];

} // glaven if za vid <> ""
} // end while fetch

if($lastuniqid != "") {	// proverka poradi toa sto moze da ne postoi nitu eden red so uniqid

	$vehRegTemp = formatvehicles($lastvar['title'], $lastvar['cntallowveh'], $vehReg);
	array_push($alarmRowInfo, array(
					'data' => $lastvar['row'],  //currrow
					'vreg'	=> $vehRegTemp
				));
}

?>
 <!-- zacuvaj gi podatocite za site redovi vo JS  -->
<script type="text/javascript">
	row_array = <?php echo json_encode($alarmRowInfo); ?>;
	getMO = <?php echo json_encode($getFullOperators); ?>;
</script>

<?php
コード例 #2
0
ファイル: alerts-test.php プロジェクト: hew86i/panorama
			}
			if ($alertrow["typeofgroup"] == 3) {
				$Title = dic_("Tracking.AllVehCompany");

				if ($roleID == "2") {
					$cntAllowVeh = dlookup("select count(*) from vehicles where clientID=" . $clientID . " and active='1'") ;
				} else {
					$cntAllowVeh = dlookup("select count(*) from vehicles where id in (select vehicleid from uservehicles where userid=" . $userID . ") and active='1'");
				}
			}

			if($last) {
				$vehRegTemp = formatvehicles($TitleLast, $cntAllowVeh, $vehRegLast);

			} else {
				$vehRegTemp = formatvehicles($Title, $cntAllowVeh, $vehReg);

			}
			$vehFlag = true;
			$vehReg="";

		}

	}
	if($vehFlag) {	// ako e setiran ovoj flag toa znaci deka cela grupa so ist uniqid e ischitana ($vehRegTemp)

	array_push($alarmRowInfo, array(
		'data' => $alertrow,
		'vreg'	=> $vehRegTemp
	));
	$vehFlag = false;