<?php
$strTableName="Visit Update";
$_SESSION["OwnerID"] = $_SESSION["_".$strTableName."_OwnerID"];

$strOriginalTableName="visit_register";

$gstrOrderBy="";
if(strlen($gstrOrderBy) && strtolower(substr($gstrOrderBy,0,8))!="order by")
	$gstrOrderBy="order by ".$gstrOrderBy;

$g_orderindexes=array();
$gsqlHead="SELECT idvisit_register,  `Employee Name`,  `Customer Name`,  `Contact Person`,  `Purpose Of Visit`,  `MOM Summary`,  `Date Of Visit`,  `Visit Status`";
$gsqlFrom="FROM visit_register";
$gsqlWhereExpr="(`Visit Status` = \"Planned\")";
$gsqlTail="";

include(getabspath("include/Visit_Update_settings.php"));

// alias for 'SQLQuery' object
$gQuery = &$queryData_Visit_Update;
$eventObj = &$tableEvents["Visit Update"];

$reportCaseSensitiveGroupFields = false;

$gstrSQL = gSQLWhere("");


?>