Location: PHPKode > projects > Phpgw Time Tracking Add On App > timetrack/viewprofile.php
<?php
  /**************************************************************************\
  * phpgwtimetrack - phpGroupWare addon application                          *
  * http://phpgwtimetrack.sourceforge.net                                    *
  * Written by Robert Schader <hide@address.com>                         *
  * --------------------------------------------                             *
  *  This program is free software; you can redistribute it and/or modify it *
  *  under the terms of the GNU General Public License as published by the   *
  *  Free Software Foundation; either version 2 of the License, or (at your  *
  *  option) any later version.                                              *
  \**************************************************************************/

  /* $Id: viewprofile.php,v 1.3 2001/01/08 21:32:06 rschader Exp $ */

  $phpgw_info["flags"]["enable_nextmatchs_class"] = "True";
  $phpgw_info["flags"]["currentapp"] = "timetrack";

  include("../header.inc.php");
  if (! $con)
     Header("Location: profiles.php?sessionid=" . $phpgw->session->id);

  $phpgw->db->query("select * from employee_profiles where con='$con'");
  $phpgw->db->next_record();
  $n_location_id = $phpgw->db->f("location_id");


  ?>
   <center>
   <p><table border=0 width=50%>

    <tr bgcolor="<?php echo $phpgw_info["theme"]["th_bg"]; ?>">
     <td colspan="2">&nbsp;</td>
    </tr>

    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_on"]; ?>">
     <td width="40%"><?php echo lang("LoginID"); ?></td>
     <td width="60%"><?php echo $phpgw->db->f("owner"); ?></td>
    </tr>

    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_off"]; ?>">
     <td width="40%"><?php echo lang("Title"); ?></td>
     <td width="60%"><?php echo $phpgw->db->f("title"); ?></td>
    </tr>

    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_on"]; ?>">
     <td width="40%"><?php echo lang("Phone"); ?></td>
     <td width="60%"><?php echo $phpgw->db->f("phone_number"); ?></td>
    </tr>

    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_off"]; ?>">
     <td width="40%"><?php echo lang("Mobile"); ?></td>
     <td width="60%"><?php echo $phpgw->db->f("mobilephn"); ?></td>
    </tr>

    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_on"]; ?>">
	 <td width="40%"><?php echo lang("Pager"); ?></td>
	 <td width="60%"><?php echo $phpgw->db->f("pager"); ?></td>
	</tr>
    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_off"]; ?>">
     <td width="40%"><?php echo lang("Comments"); ?></td>
     <td width="60%"><?php echo $phpgw->db->f("comments"); ?></td>
    </tr>
    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_on"]; ?>">
     <td width="40%"><?php echo lang("Date Hired"); ?></td>
     <td width="60%"><?php echo $phpgw->db->f("hire_date"); ?></td>
    </tr>
    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_off"]; ?>">
     <td width="40%"><?php echo lang("Vacation Hours per year"); ?></td>
     <td width="60%"><?php echo $phpgw->db->f("yearly_vacation_hours"); ?></td>
    </tr>
    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_on"]; ?>">
     <td width="40%"><?php echo lang("Vacation Hours Used"); ?></td>
     <td width="60%"><?php echo $phpgw->db->f("vacation_hours_used_todate"); ?></td>
    </tr>
    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_off"]; ?>">
     <td width="40%"><?php echo lang("Status"); ?></td>
     <td width="60%"><?php echo $phpgw->db->f("inout"); ?></td>
    </tr>
    <tr bgcolor="<?php echo $phpgw_info["theme"]["row_on"]; ?>">
	 <td width="40%"><?php echo lang("Location"); ?></td>
	 <td width="60%"><?php
	  $phpgw->db->query("select * from locations where location_id='$n_location_id'");
	  $phpgw->db->next_record();
	  echo $phpgw->db->f("location_name");
	  ?>
	  </td>
	 </tr>
    </table>
   </center>

<?php
  $phpgw->common->phpgw_footer();

Return current item: Phpgw Time Tracking Add On App