Renders a skills editor
Documentation
This function is called by the edit templates to render the fields of the
TriPage that are to be edited
as part of the skills information.
Parameters
- SOURCE: topic for which we render a skills editor
Css
Implementation
%STARTINCLUDE%
~~~ <h2>Skills</h2>
~~~ <style type="text/css">
~~~ @import url('%PUBURLPATH%/Applications/EmployeePortalApp/styles.css');
~~~ </style>
~~~ <input type="hidden" name="SkillsTimeStamp" value="%DISPLAYTIME{"$epoch"}%" />
~~~ <div class="empHolder empEditHolder">
~~~ <div class="empTabNavigation">
~~~ <ul>
%~~ DBQUERY{"TopicType=~'\bCategory\b' AND Category=~'\bSkillsCategory\b'"
~~~ web="%BASEWEB%"
~~~ format="
~~~ <li id='tab$index'
~~~ $percntIFDEFINED{\"$index\"
~~~ as=\"1\"
~~~ then=\" class='empCurrentTab'\"
~~~ }$percnt>
*~~ <a href=\"javascript:toggleTab('tab$index', 'empSkills')\">
*~~ $formfield(Title)</a>
*~~ </li>"
~~~ }%
~~~ <li id="tabOthers"><a href="javascript:toggleTab('tabOthers', 'empSkills')">Others</a></li>
~~~ <li id="tabHelp"><a href="javascript:toggleTab('tabHelp', 'empSkills')">Help</a></li>
~~~ </ul>
~~~ </div>
~~~ <table class="empBox" 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="empSkills" id="empSkills">
%~~ DBQUERY{"TopicType=~'\bCategory\b' AND Category=~'\bSkillsCategory\b'"
~~~ web="%BASEWEB%"
~~~ format="<div
~~~ $percntIFDEFINED{\"$index\"
~~~ as=\"1\"
~~~ then=\" \"
~~~ else=\" style='display:none'\"
~~~ }$percnt>
~~~ <h2><span title=\"$formfield(Summary)\">$formfield(Title)</span></h2>
~~~ $percntDBCALL{\"Applications.EmployeePortalApp.RenderSkillSelector\"
~~~ SOURCE=\"%SOURCE%\"
~~~ SKILLS=\"$topic\"
~~~ }$percnt
~~~ </div>"
~~~ }%
~~~ <div style="display:none">
~~~ <h2>Other skills</h2>
~~~ <textarea cols="75" rows="20" name="OtherSkills">
*~~
%~~ DBQUERY{topic="%SOURCE%" format="$n$formfield(OtherSkills)"}%
*~~ </textarea>
~~~ </div>
~~~ <div style="display:none">
~~~ <!-- -->%DBCALL{"Applications.EmployeePortalApp.TriPageHelp" section="skills"}%
~~~ </div>
~~~ </div>
~~~ </noautolink>
~~~ </td>
~~~ <td class="empBoxRight"> </td>
~~~ </tr>
~~~ <tr>
~~~ <td class="empBoxBottomLeft" colspan="2"> </td>
~~~ <td class="empBoxBottomRight" colspan="2"> </td>
~~~ </tr>
~~~ </table></div>
~~~ <script type="text/javascript" src="%PUBURL%/Applications/EmployeePortalApp/emp.js"></script>
~~~
%STOPINCLUDE%
Test
- SkillsLevel0:
- SkillsLevel1:
- SkillsLevel2:
- SkillsLevel3:
- SkillsLevel4:
Calls to 'RenderSkillsEditor'
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.