Location: PHPKode > projects > *StarShop - Call Shop Billing Software > starshop-oss-0.3/inc_filter4.php
<?php

/** 
 *	$Id: inc_filter4.php 14 2007-02-15 13:25:41Z sylverboss $
 *	Copyright (c) 2005, Abdoulaye Ba, www.starshop-online.com
 *	You can redistribute and/or modify it under the same term as GNU/GPL
**/
 
//--------------------------------------- Error check

$errJournal=$errFromDate.' '.$errToDate.' '.$errFromShift.' '.$errToShift;
//--------------------------------------- Message generating

if ($obj->numRows() == 0 && !$errJournal)
{

  $Message='No records found';
}
  else
{

  $Message="";
} 


if ($errFromDate)
{

  if ($Message=="")
  {
    $Message=$Message.$msgFromDate;
  }
    else
  {
    $Message=$Message."<br>".$msgFromDate;
} 
} 

if ($errToDate)
{

if ($Message=="")
{
  $Message=$Message.$msgToDate;
}
  else
{
  $Message=$Message."<br>".$msgToDate;
} 
} 

if ($errFromShift)
{

if ($Message=="")
{
$Message=$Message.$msgFromShift;
}
  else
{
$Message=$Message."<br>".$msgFromShift;
} 
} 

if ($errToShift)
{

if ($Message=="")
{
$Message=$Message.$msgToShift;
}
  else
{
$Message=$Message."<br>".$msgToShift;
} 
} 

?>


Return current item: *StarShop - Call Shop Billing Software