Xing 4 TWiki

Function: RenderStdSummary

Render the summary in the top bar of a standard EmployeePortal

Documentation

Parameters
  • SOURCE: topic for which we render the summary for

Css
  • empAddress
  • empTitle

Implementation

%STARTINCLUDE%
~~~
%~~ DBQUERY{
~~~   topic="%SOURCE%"
~~~   remote="force"
~~~   format="
~~~     <table cellspacing=\"0\" cellpadding=\"0\">
~~~     <tr>
~~~       <td colspan=\"2\">
~~~         <h1>$formfield(FirstName) $formfield(LastName)</h1>
~~~       </td>
~~~     </tr>
~~~     <tr>
~~~       <td colspan=\"2\">
~~~         $formfield(Company)$expand('<br />' and Title)
~~~         <div class=\"empContactSummarySep\"></div>
~~~     </tr>
~~~     <tr>
~~~       <td colspan=\"2\">
~~~         $expand(Address and '<br />')
~~~         $formfield(PostalCode) $formfield(Location) <br />
~~~         $expand(State and ', ') $formfield(Country)
~~~       </td>
~~~     </tr>
~~~     $percntIFDEFINEDTHEN{\"$formfield(Telephone)\"}$percnt
~~~     <tr>
~~~       <td align=\"right\"><img src=\"%PUBURLPATH%/Applications/EmployeePortalApp/icn_tel.gif\" /></td>
~~~       <td>$test</td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     $percntIFDEFINEDTHEN{\"$formfield(Mobile)\"}$percnt
~~~     <tr>
~~~       <td align=\"right\"><img src=\"%PUBURLPATH%/Applications/EmployeePortalApp/icn_mobile.gif\" /></td>
~~~       <td>$test</td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     $percntIFDEFINEDTHEN{\"$formfield(Fax)\"}$percnt
~~~     <tr>
~~~       <td align=\"right\"><img src=\"%PUBURLPATH%/Applications/EmployeePortalApp/icn_fax.gif\" /></td>
~~~       <td>$test</td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     $percntFORMATLIST{\"$formfield(InstantMessaging)\"
~~~       pattern=\"skype:(.*)\"
~~~       separator=\" \"
~~~       format=\"
~~~         <tr>
~~~           <td align='right'>
~~~             <img src='http://mystatus.skype.com/smallicon/$1'
~~~               border='0'
~~~               alt='Status of <nop>$1' />
~~~           </td>
~~~           <td><a class='nop' href='skype:$1?call'>$1</a></td>
~~~         </tr>\"
~~~      }$percnt
~~~   </table>
~~~   "
~~~ }%
~~~ 
%STOPINCLUDE%

Test

Test User

WikiRing
Breitenfelder Str. 56
D-20251 Hamburg
Germany
0049 (0)40 462871
0049 (0)171 5273255

Calls to 'RenderStdSummary'

Copyright

© 2007 Michael Daum http://wikiring.de

This file 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. For more details read the LICENSE.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY, to the extent permitted by law; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Applications.ApplicationTopic
TopicType: DocuTopic, TopicFunction
Summary: Render the summary in the top bar of a standard EmployeePortal
TWikiApplication: EmployeePortalApp
r0 - 20 Apr 2007 - 09:42:59 - TWikiContributor
© giant orange extension cord that reeks hip-hop, funk & soul