home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2004 April
/
CMCD0404.ISO
/
Software
/
Freeware
/
Programare
/
groupoffice-com-2.01
/
modules
/
projects
/
add_client.php
next >
Wrap
PHP Script
|
2004-03-08
|
1KB
|
36 lines
<?php
/*
Copyright Intermesh 2003
Author: Merijn Schering <mschering@intermesh.nl>
Version: 1.0 Release date: 08 July 2003
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.
*/
require("../../Group-Office.php");
require($GO_CONFIG->class_path."addressbook.class.inc");
$ab = new addressbook();
if(isset($_REQUEST['clicked_value']))
{
$contact = $ab->get_contact($_REQUEST['clicked_value']);
}
unset($_SESSION['GO_HANDLER']);
$middle_name = $contact['middle_name'] == '' ? '' : $contact['middle_name'].' ';
$contact_name = $contact['first_name'].' '.$middle_name.$contact['last_name'];
?>
<html>
<body>
<script language="javascript" type="text/javascript">
opener.document.projects_form.load_contact_id.value = '<?php echo $contact['id']; ?>';
opener.document.projects_form.contact_name.value = "<?php echo $contact_name; ?>";
opener.document.projects_form.contact_name_text.value = "<?php echo $contact_name; ?>";
window.close();
</script>
</body>
</html>