Xing 4 TWiki

Function: RenderTvdSummary

Render the topbar summary for a TriPage

Documentation

This function extracts the summary in the topbar of an TriPage.

Note: it needs to be rewritten to use LDAP as nearly all of the displayed information comes from LDAP.

Parameters
  • SOURCE: topic for which we render the summary

Css

Implementation

%STARTINCLUDE%
~~~     <table cellspacing="0" cellpadding="0" border="0">
~~~     <noautolink>
%~~ LDAP{"(uid=%USERINFO{"%FORMFIELD{"WikiName" topic="%SOURCE%"}%" format="$username"}%)"
~~~   format="
~~~     <tr>
~~~       <td colspan=\"2\">
~~~         <h1>$givenName $sn</h1> ($uid)
~~~       </td>
~~~     </tr>
~~~     $percntIFDEFINEDTHEN{\"$employeeType\" as=\"^\$[e]mployeeType$\"}$percnt
~~~     $percntELSEDEFINED$percnt
~~~     <tr>
~~~       <td colspan=\"2\"> $test </td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     </tr>
~~~     $percntIFDEFINEDTHEN{\"$ou\" as=\"^\$[o]u$\"}$percnt
~~~     $percntELSEDEFINED$percnt
~~~     <tr>
~~~       <td colspan=\"2\"> $test </td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     $percntIFDEFINEDTHEN{\"$l\" as=\"^\$[l]$\"}$percnt
~~~     $percntELSEDEFINED$percnt
~~~     <tr>
~~~       <td colspan=\"2\"> $test </td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     $percntIFDEFINEDTHEN{\"$tvdEntryDate\" as=\"^\$[t]vdEntryDate$\"}$percnt
~~~     $percntELSEDEFINED$percnt
~~~     <tr>
~~~       <td colspan=\"2\"> $test </td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     </table>
~~~     <div class=\"empContactSummarySep\"> </div>
~~~     <table cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
~~~     $percntIFDEFINEDTHEN{\"$mail\" as=\"^\$[m]ail$\"}$percnt
~~~     $percntELSEDEFINED$percnt
~~~     <tr>
~~~       <td align=\"right\">
~~~         <img src='%PUBURLPATH%/Applications/EmployeePortalApp/icn_mail.gif' border='0' />
~~~       </td>
~~~       <td> $test </td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     $percntIFDEFINEDTHEN{\"$telephoneNumber\" as=\"^\$[t]elephoneNumber$\"}$percnt
~~~     $percntELSEDEFINED$percnt
~~~     <tr>
~~~       <td align=\"right\">
~~~         <img src='%PUBURLPATH%/Applications/EmployeePortalApp/icn_tel.gif' border='0' />
~~~       </td>
~~~       <td> <a href=\"javascript:callWD_mak('$test')\">$test</a> </td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     $percntIFDEFINEDTHEN{\"$mobile\" as=\"^\$[m]obile$\"}$percnt
~~~     $percntELSEDEFINED$percnt
~~~     <tr>
~~~       <td align=\"right\">
~~~         <img src='%PUBURLPATH%/Applications/EmployeePortalApp/icn_mobile.gif' border='0' />
~~~       </td>
~~~       <td> <a href=\"javascript:callWD_mak('$test')\">$test</a> </td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~     $percntIFDEFINEDTHEN{\"$homePhone\" as=\"^\$[h]omePhone$\"}$percnt
~~~     $percntELSEDEFINED$percnt
~~~     <tr>
~~~       <td align=\"right\">
~~~         <img src='%PUBURLPATH%/Applications/EmployeePortalApp/icn_tel.gif' border='0' />
~~~       </td>
~~~       <td> <a href=\"javascript:callWD_mak('$test')\">$test</a> (private)</td>
~~~     </tr>
~~~     $percntFIDEFINED$percnt
~~~   "
~~~ }%
~~~
%~~ FORMATLIST{"%FORMFIELD{"InstantMessaging" topic="%SOURCE%"}%"
~~~   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>"
~~~ }%
~~~     </noautolink>
~~~     </table>
~~~
%STOPINCLUDE%

Test

see TestTriPage

%LDAP{"(uid=)" format=" $percntIFDEFINEDTHEN{\"$employeeType\" as=\"^\$[e]mployeeType$\"}$percnt $percntELSEDEFINED$percnt $percntFIDEFINED$percnt $percntIFDEFINEDTHEN{\"$ou\" as=\"^\$[o]u$\"}$percnt $percntELSEDEFINED$percnt $percntFIDEFINED$percnt $percntIFDEFINEDTHEN{\"$l\" as=\"^\$[l]$\"}$percnt $percntELSEDEFINED$percnt $percntFIDEFINED$percnt $percntIFDEFINEDTHEN{\"$tvdEntryDate\" as=\"^\$[t]vdEntryDate$\"}$percnt $percntELSEDEFINED$percnt $percntFIDEFINED$percnt

$givenName $sn

($uid)
$test
$test
$test
$test
$percntIFDEFINEDTHEN{\"$mail\" as=\"^\$[m]ail$\"}$percnt $percntELSEDEFINED$percnt $percntFIDEFINED$percnt $percntIFDEFINEDTHEN{\"$telephoneNumber\" as=\"^\$[t]elephoneNumber$\"}$percnt $percntELSEDEFINED$percnt $percntFIDEFINED$percnt $percntIFDEFINEDTHEN{\"$mobile\" as=\"^\$[m]obile$\"}$percnt $percntELSEDEFINED$percnt $percntFIDEFINED$percnt $percntIFDEFINEDTHEN{\"$homePhone\" as=\"^\$[h]omePhone$\"}$percnt $percntELSEDEFINED$percnt $percntFIDEFINED$percnt " }%
$test
$test
$test
$test (private)
Status of nuddlegg nuddlegg

Calls to 'RenderTvdSummary'

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 topbar summary for a TriPage
TWikiApplication: EmployeePortalApp
r0 - 24 Apr 2007 - 07:00:14 - TWikiContributor
© giant orange extension cord that reeks hip-hop, funk & soul