Xing 4 TWiki

Function: RenderContactDetailsEditor

Renders an editor for the contact details data of an EmployeePortal

Documentation

TODO

Parameters
  • SOURCE: topic for which we render a business details editor

Css

Implementation

%STARTINCLUDE%
~~~ <h2>Contact details</h2>
~~~ <style type="text/css"> 
~~~   @import url('%PUBURLPATH%/Applications/EmployeePortalApp/styles.css'); 
~~~ </style>
~~~ <input type="hidden" name="ContactDetailsTimeStamp" value="%DISPLAYTIME{"$epoch"}%" />
%~~ DBQUERY{topic="%SOURCE%"
~~~   format="
~~~     <div class=\"empHolder empEditHolder\">
~~~       <table class=\"empBox empTopBox\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
~~~         <tr>
~~~           <td class=\"empBoxTopLeft\" colspan=\"2\"> </td>
~~~           <td class=\"empBoxTopRight\" colspan=\"2\"> </td>
~~~         </tr>
~~~         <tr>
~~~           <td class=\"empBoxLeft\"> </td>
~~~           <td class=\"empBoxContent\" colspan=\"2\"><noautolink>
~~~             <div class=\"empContactDetails\">
~~~               <table class=\"empDetailsTable\" cellspacing=\"0\" cellpadding=\"0\" border=\"0\">
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">FirstName</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"FirstName\" 
~~~                            value=\"$percntENCODE{\"$formfield(FirstName)\" type=\"entity\"}$percnt\" /> 
~~~                   </td>
~~~                   <th>LastName</th>
~~~                   <td>
~~~                     <input type=\"text\" size=\"30\" name=\"LastName\" 
~~~                            value=\"$percntENCODE{\"$formfield(LastName)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Photo</th>
~~~                   <td colspan=\"3\"> 
~~~                     <input type=\"text\" size=\"75\" name=\"Photo\" 
~~~                            value=\"$percntENCODE{\"$formfield(Photo)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr><td colspan=\"4\"><h2>Business</h2></td></tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Address</th>
~~~                   <td colspan=\"3\"> 
~~~                     <input type=\"text\" size=\"75\" name=\"Address\" 
~~~                            value=\"$percntENCODE{\"$formfield(Address)\" type=\"entity\"}$percnt\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">PostalCode</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"PostalCode\" 
~~~                            value=\"$percntENCODE{\"$formfield(PostalCode)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                   <th class=\"empTableFirstCol\">Location</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"Location\" 
~~~                            value=\"$percntENCODE{\"$formfield(Location)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Country</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"Country\" 
~~~                            value=\"$percntENCODE{\"$formfield(Country)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                   <th class=\"empTableFirstCol\">State</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"State\" 
~~~                            value=\"$percntENCODE{\"$formfield(State)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Telephone</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"Telephone\" 
~~~                            value=\"$percntENCODE{\"$formfield(Telephone)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                   <th class=\"empTableFirstCol\">Mobile</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"Mobile\" 
~~~                            value=\"$percntENCODE{\"$formfield(Mobile)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Fax</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"Fax\" 
~~~                            value=\"$percntENCODE{\"$formfield(Fax)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                   <th class=\"empTableFirstCol\">HomePage</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"HomePage\" 
~~~                            value=\"$percntENCODE{\"$formfield(HomePage)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Instant Messaging</th>
~~~                   <td colspan=\"3\"> 
~~~                     <input type=\"text\" size=\"75\" name=\"InstantMessaging\" 
~~~                            value=\"$percntENCODE{\"$formfield(InstantMessaging)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr><td colspan=\"4\"><h2>Private</h2></td></tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Address</th>
~~~                   <td colspan=\"3\"> 
~~~                     <input type=\"text\" size=\"75\" name=\"PrivateAddress\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivateAddress)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">PostalCode</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"PrivatePostalCode\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivatePostalCode)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                   <th class=\"empTableFirstCol\">Location</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"PrivateLocation\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivateLocation)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Country</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"PrivateCountry\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivateCountry)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                   <th class=\"empTableFirstCol\">State</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"PrivateState\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivateState)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Telephone</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"PrivateTelephone\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivateTelephone)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                   <th class=\"empTableFirstCol\">Mobile</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"PrivateMobile\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivateMobile)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Fax</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"PrivateFax\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivateFax)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                   <th class=\"empTableFirstCol\">HomePage</th>
~~~                   <td> 
~~~                     <input type=\"text\" size=\"30\" name=\"PrivateHomePage\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivateHomePage)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~                 <tr>
~~~                   <th class=\"empTableFirstCol\">Instant Messaging</th>
~~~                   <td colspan=\"3\"> 
~~~                     <input type=\"text\" size=\"75\" name=\"PrivateInstantMessaging\" 
~~~                            value=\"$percntENCODE{\"$formfield(PrivateInstantMessaging)\" type=\"entity\"}$percnt\" />
~~~                   </td>
~~~                 </tr>
~~~               </table>
~~~             </div></noautolink>
~~~           </td>
~~~           <td class=\"empBoxRight\"> </td>
~~~         </tr>
~~~         <tr>
~~~           <td class=\"empBoxBottomLeft\" colspan=\"2\"> </td>
~~~           <td class=\"empBoxBottomRight\" colspan=\"2\"> </td>
~~~         </tr>
~~~       </table>
~~~     </div>"
~~~ }%
~~~
%STOPINCLUDE%

Test

Contact details

FirstName LastName
Photo

Business

Address
PostalCode Location
Country State
Telephone Mobile
Fax HomePage
Instant Messaging

Private

Address
PostalCode Location
Country State
Telephone Mobile
Fax HomePage
Instant Messaging

Calls to 'RenderContactDetailsEditor'

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: Renders an editor for the contact details data of an EmployeePortal
TWikiApplication: EmployeePortalApp
r0 - 06 Jul 2007 - 13:05:52 - TWikiContributor
© giant orange extension cord that reeks hip-hop, funk & soul