Render the contact details tab in a
TriPage
Documentation
TODO
Parameters
- SOURCE: topic to render the contact details for
Css
- empContactDetails
- empDetailsTable
- empTableFirstCol
- empTableEven
- empTableOdd
Implementation
%STARTINCLUDE%
~~~ <h2>Contact details</h2>
~~~ <table class="empDetailsTable" cellspacing="0" cellpadding="0">
%~~ LDAP{"(uid=%USERINFO{"%FORMFIELD{"WikiName" topic="%SOURCE%"}%" format="$username"}%)"
~~~ format="
~~~ <noautolink>
~~~ <tr class=\"empTableOdd\">
~~~ <th class=\"empTableFirstCol\">Name</th>
~~~ <td> $givenName $sn </td>
~~~ </tr>
~~~ <tr class=\"empTableEven\">
~~~ <th class=\"empTableFirstCol\">Telephone</th>
~~~ <td>
~~~ $percntIFDEFINED{\"$telephoneNumber\"
~~~ as=\"^\$[t]elephoneNumber$\"
~~~ then=\" \"
~~~ else=\"$test\"
~~~ glue=\"off\"
~~~ }$percnt
~~~ </td>
~~~ </tr>
~~~ <tr class=\"empTableOdd\">
~~~ <th class=\"empTableFirstCol\">Mobile</th>
~~~ <td>
~~~ $percntIFDEFINED{\"$mobile\"
~~~ as=\"^\$[m]obile$\"
~~~ then=\" \"
~~~ else=\"$test\"
~~~ glue=\"off\"
~~~ }$percnt
~~~ </td>
~~~ </tr>
~~~ <tr class=\"empTableEven\">
~~~ <th class=\"empTableFirstCol\">Telephone (private)</th>
~~~ <td>
~~~ $percntIFDEFINED{\"$homePhone\"
~~~ as=\"^\$[h]omePhone$\"
~~~ then=\" \"
~~~ else=\"$test\"
~~~ glue=\"off\"
~~~ }$percnt
~~~ </td>
~~~ </tr>
~~~ <tr class=\"empTableOdd\">
~~~ <th class=\"empTableFirstCol\">Department</th>
~~~ <td>
~~~ $percntIFDEFINED{\"$ou\"
~~~ as=\"^\$[o]u$\"
~~~ then=\" \"
~~~ else=\"$test\"
~~~ glue=\"off\"
~~~ }$percnt
~~~ </td>
~~~ </tr>
~~~ <tr class=\"empTableEven\">
~~~ <th class=\"empTableFirstCol\">Location</th>
~~~ <td>
~~~ $percntIFDEFINED{\"$l\"
~~~ as=\"^\$[l]$\"
~~~ then=\" \"
~~~ else=\"$test\"
~~~ glue=\"off\"
~~~ }$percnt
~~~ </td>
~~~ </tr>
~~~ <tr class=\"empTableOdd\">
~~~ <th class=\"empTableFirstCol\">Address</th>
~~~ <td>
~~~ $percntIFDEFINED{\"$homePostalAddress\"
~~~ as=\"^\$[h]omePostalAddress$\"
~~~ then=\" \"
~~~ else=\"$test\"
~~~ glue=\"off\"
~~~ }$percnt
~~~ </td>
~~~ </tr>
~~~ </noautolink>
~~~ "
~~~ }%
~~~
%~~ DBQUERY{topic="%SOURCE%"
~~~ remote="force"
~~~ format="
~~~ <tr class=\"empTableEven\">
~~~ <th class=\"empTableFirstCol\">InstantMessaging</th>
~~~ <td> $formfield(InstantMessaging) </td>
~~~ </tr>
~~~ <tr class=\"empTableOdd\">
~~~ <th class=\"empTableFirstCol\">Previous Companies</th>
~~~ <td> $formfield(PreviousCompanies) </td>
~~~ </tr>
~~~ <tr class=\"empTableEven\">
~~~ <th class=\"empTableFirstCol\">Groups</th>
~~~ <td>
~~~ $percntFORMATLIST{\"$percntUSERINFO{\"$formfield(WikiName)\" format=\"$groups\"}$percnt\"
~~~ pattern=\"(tvd_.*)\"
~~~ sort=\"alpha\"
~~~ }$percnt
~~~ </td>
~~~ </tr>
~~~ </table>
~~~ $percntIFDEFINEDTHEN{\"$formfield(ContactDetailsTimeStamp)\"}$percnt
~~~ <div class=\"empTimeStamp\">Last modified $formatTime(ContactDetailsTimeStamp)</div>
~~~ $percntFIDEFINED$percnt
~~~ "
~~~ }%
~~~ </noautolink>
~~~
%STOPINCLUDE%
Test
Contact details
%LDAP{"(uid=)" format=" | Name | $givenName $sn |
| Telephone | $percntIFDEFINED{\"$telephoneNumber\" as=\"^\$[t]elephoneNumber$\" then=\" \" else=\"$test\" glue=\"off\" }$percnt |
| Mobile | $percntIFDEFINED{\"$mobile\" as=\"^\$[m]obile$\" then=\" \" else=\"$test\" glue=\"off\" }$percnt |
| Telephone (private) | $percntIFDEFINED{\"$homePhone\" as=\"^\$[h]omePhone$\" then=\" \" else=\"$test\" glue=\"off\" }$percnt |
| Department | $percntIFDEFINED{\"$ou\" as=\"^\$[o]u$\" then=\" \" else=\"$test\" glue=\"off\" }$percnt |
| Location | $percntIFDEFINED{\"$l\" as=\"^\$[l]$\" then=\" \" else=\"$test\" glue=\"off\" }$percnt |
| Address | $percntIFDEFINED{\"$homePostalAddress\" as=\"^\$[h]omePostalAddress$\" then=\" \" else=\"$test\" glue=\"off\" }$percnt |
" }% | InstantMessaging | skype:nuddlegg |
| Previous Companies | |
| Groups | |
Last modified 06 Jul 2007 - 10:35
Calls to 'RenderTvdContactDetails'
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.