[Tutos-commits] CVS: tutos/php address_show.php,1.36,1.37
Projects / CRM / PLM / Calendar / Tasks / SCRUM / Test / Inventory
Brought to you by:
gokohnert
From: Jeroen B. <kw...@us...> - 2002-06-25 20:14:33
|
Update of /cvsroot/tutos/tutos/php In directory usw-pr-cvs1:/tmp/cvs-serv25470 Modified Files: address_show.php Log Message: This new modularization stuff is great!!. You don't even have to know understand hwo they work just to add functionality. :-) Now more serious: for a customer of mine who does search and selection I added the ability to add files (like resumes) to people. (well, actually I just copy-pasted two lines to the file). Thanks Gero. Index: address_show.php =================================================================== RCS file: /cvsroot/tutos/tutos/php/address_show.php,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- address_show.php 24 Jun 2002 11:37:06 -0000 1.36 +++ address_show.php 25 Jun 2002 20:14:29 -0000 1.37 @@ -14,6 +14,7 @@ include("installation.pinc"); include("address_tools.p3"); include("mailbox.pinc"); + include("file.pinc"); include 'note.pinc'; /* Check if user is allowed to use it */ @@ -132,6 +133,9 @@ } } + # Files + tutos_file::infolist($current_user,$a,$cols); + echo $a->getHistoryLink($cols); echo "</TABLE>\n"; } @@ -172,9 +176,17 @@ if ( $current_user->feature_ok(usevcard,PERM_SEE) ) { echo menulink($obj->getUrl() ."&format=vcard" ,$lang['AdrGetVcard'],$lang['AdrGetVcardI']) . "<BR>\n"; } + echo "<BR>\n"; + if ( $current_user->feature_ok(usenotes,PERM_NEW) ) { + if ( $obj->see_ok() ) { + echo menulink("note_new.php?link_id=". $obj->id ,$lang['NoteCreate'],sprintf($lang['NoteCreateInfo'],$obj->getFullName())) ." <BR>\n"; + } + + } } echo "<BR>\n"; echo note::getaddlink($current_user,$obj); + echo tutos_file::getaddlink($current_user,$obj); echo "<BR>\n"; if ( $current_user->feature_ok(useaddressbook,PERM_NEW) ) { |