[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] Timetrack Problem, Help for this ?
From: |
Brian Johnson |
Subject: |
Re: [Phpgroupware-developers] Timetrack Problem, Help for this ? |
Date: |
Thu, 21 Nov 2002 13:54:20 +0000 |
Here is that section of the code (it's in timetrack/index.php) from my working
copy - I've included a few more lines
Please load your index.php file, compare it to all of this, and let us know what
you find
<center><h3><?php echo lang("Employee In/Out Board"); ?></h3></center>
<? /* Here I have to do my first query, to check the user's checkin
status
*/
$uid = $GLOBALS['phpgw_info']["user"]["account_id"];
/* Now use the uid to reference the employee_stats.inorout field */
$GLOBALS['phpgw']->db->query("select inorout from
phpgw_ttrack_emplyprof"
. " where id= " . $uid);
$GLOBALS['phpgw']->db->next_record();
$status = $GLOBALS['phpgw']->db->f("inorout");
$prefix = lang("you are currently checked");
switch ($status) {
case "I":
$stat_word = lang("In");
$action = lang("Check Out");
$suffix = lang("when you leave work");
$togval = "O";
break;
default:
$stat_word = lang("Out");
$action = lang("Check In");
$suffix = lang("while you are at work");
$togval = "I";
break;
}
// This part will display basically a form with only a submit
// button with the appropriate text to set in or out status.
?>
Reiner Jung (address@hidden) wrote*:
>
>Hello,
>
>I run two servers, one with Debian and one with RH 8.
>All updated via CVS today.
>
>On the RH Machine, when I select the Timesheet start page I receive the
>follow error.
>
> db->query("select inorout from phpgw_ttrack_emplyprof" . " where id= "
>. $uid); $GLOBALS['phpgw']->db->next_record(); $status =
>$GLOBALS['phpgw']->db->f("inorout"); $prefix = lang("you are currently
>checked"); switch ($status) { case "I": $stat_word = lang("In"); $action
>= lang("Check Out"); $suffix = lang("when you leave work"); $togval =
>"O"; break; default: $stat_word = lang("Out"); $action = lang("Check
>In"); $suffix = lang("while you are at work"); $togval = "I"; break; }
>// This part will display basically a form with only a submit // button
>with the appropriate text to set in or out status. ?>
>
>Thank you
>
>
>
>_______________________________________________
>Phpgroupware-developers mailing list
>address@hidden
>http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
>