%{
}%
%TMPL:INCLUDE{"view"}%<!-- -->
%TMPL:DEF{"form"}%%TMPL:END%
%TMPL:DEF{"revinfo"}%%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"beforetext"}%<!-- -->
<noautolink>
<div class="foswikiProfileInfo">
%LDAP{"(uid=%USERINFO{"%BASETOPIC%" format="$username"}%)" 
  clear="$cn,$mail,$telephoneNumber,$o,$postalAddress,$roomNumber,$CSstatus"
  limit="1"
  format="$percntTMPL:P{context=\"ImagePluginEnabled\" then=\"ldapuserview::photo\"}$percnt<!-- -->
    <h1>$cn</h1>
    <table class='foswikiLayoutTable'>
      <tr><th>%MAKETEXT{"E-mail"}%:</th>
          <td> $mail </td></tr>
      <tr><th>%MAKETEXT{"Telephone"}%:</th>
          <td> $telephoneNumber </td></tr>
      <tr><th>%MAKETEXT{"Room"}%:</th>
          <td> $roomNumber </td></tr>
      <tr><th>%MAKETEXT{"Status"}%:</th>
          <td> $CSstatus </td></tr>
    </table>
    $percntCLEAR$percnt"
}%
</div>
</noautolink>
<!-- -->%TMPL:END%
%{
}%

%{
}%
%TMPL:DEF{"ldapuserview::photo"}%<!-- -->
<div class="foswikiImage foswikiLeft">
%IMAGE{
   "%IF{"'%BASEWEB%.%BASETOPIC%'/Photo"
     then="$percntFORMFIELD{\"Photo\" topic=\"%BASEWEB%.%BASETOPIC%\"}$percnt" 
     else="%IF{"'%BASEWEB%.%BASETOPIC%'/attachments[name=~'\.(gif|png|jpe?g)$']"
       then="%QUERY{"'%BASEWEB%.%BASETOPIC%'/attachments[name=~'\.(gif|png|jpe?g)'][0].name"}%"
       else="%PUBURLPATH%/%SYSTEMWEB%/MetaCommentPlugin/nobody.gif"
     }%"
   }%"
   topic="%BASEWEB%.%BASETOPIC%"
   type="plain"
   align="left"
   width="100"
}%
</div>
<!-- -->%TMPL:END%
%{
}%
Topic revision: r2 - 2019-10-04, AdminUser
This site is powered by FoswikiCopyright &© by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding CMS Wiki? Send feedback