Xing 4 TWiki

Function: RenderTriPageSearch

Renders a search dialog to search for TriPages

Documentation

This function renders the advanced search tool for TriPages

Parameters
  • QUERY

Css
  • empTriPageSearch

Implementation

%STARTINCLUDE%
%IFDEFINEDTHEN{"%URLPARAM{"trigger"}%" glue="off"}%
<a name="Result"></a>
---+++ Result
<a href="javascript:history.back()" title="refine  your search">back</a>
<noautolink>

*Searching for:*
<ul>
%IFDEFINED{"%URLPARAM{"FirstName"}%" then="<li>First name: $test</li>"}%
%IFDEFINED{"%URLPARAM{"LastName"}%" then="<li>Last name: $test</li>"}%
%IFDEFINED{"%URLPARAM{"Login"}%" then="<li>Login: $test</li>"}%
%IFDEFINED{"%URLPARAM{"Role"}%" then="<li>Role: $test</li>"}%
%IFDEFINED{"%URLPARAM{"Department"}%" then="<li>Department: $test</li>"}%
%IFDEFINED{"%URLPARAM{"Location"}%" then="<li>Location: $test</li>"}%
%IFDEFINED{"%URLPARAM{"PreviousCompany"}%" then="<li>Previous company: $test</li>"}%
%IFDEFINED{"%URLPARAM{"Projects"}%" then="<li>Projects: $test</li>"}%
%IFDEFINED{"%URLPARAM{"Education"}%" then="<li>Education: $test</li>"}%
%IFDEFINED{"%URLPARAM{"BranchOfTrade"}%" then="<li>Branch of trade: $test</li>"}%
%IFDEFINED{"%URLPARAM{"CertificatesOfCompetence"}%" then="<li>Certificates: $test</li>"}%
%IFDEFINED{"%URLPARAM{"LanguageSkills"}%" then="<li>Language skills: $test</li>"}%
%IFDEFINED{"%URLPARAM{"OtherLanguageSkills"}%" then="<li>Other language skills: $test</li>"}%
%IFDEFINED{"%URLPARAM{"SkillsLevel0"}%" then="<li>Skills level 0 (none): $test</li>"}%
%IFDEFINED{"%URLPARAM{"SkillsLevel1"}%" then="<li>Skills level 1 (wish): $test</li>"}%
%IFDEFINED{"%URLPARAM{"SkillsLevel2"}%" then="<li>Skills level 2 (theory): $test</li>"}%
%IFDEFINED{"%URLPARAM{"SkillsLevel3"}%" then="<li>Skills level 3 (practice): $test</li>"}%
%IFDEFINED{"%URLPARAM{"SkillsLevel4"}%" then="<li>Skills level 4 (expert): $test</li>"}%
%IFDEFINED{"%URLPARAM{"OtherSkills"}%" then="<li>Other skills: $test</li>"}%
</ul>
</noautolink>
%~~   $nopDBCALL{"Applications.EmployeePortalApp.RenderTriPageSearchHitList"
~~~     FIRSTNAME="%URLPARAM{"FirstName"}%"
~~~     LASTNAME="%URLPARAM{"LastName"}%"
~~~     LOGIN="%URLPARAM{"Login"}%"
~~~     ROLE="%URLPARAM{"Role"}%"
~~~     DEPARTMENT="%URLPARAM{"Department"}%"
~~~     LOCATION="%URLPARAM{"Location"}%"
~~~     PREVIOUSCOMPANY="%URLPARAM{"PreviousCompany"}%"
~~~     PROJECTS="%URLPARAM{"Projects"}%"
~~~     EDUCATION="%URLPARAM{"Education"}%"
~~~     BRANCHOFTRADE="%URLPARAM{"BranchOfTrade"}%"
~~~     CERTIFICATS="%URLPARAM{"CertificatesOfCompetence"}%"
~~~     LANGUAGESKILLS="%URLPARAM{"LanguageSkills"}%%IFDEFINED{"%URLPARAM{"OtherLanguagesSkills"}%" then=" $test"}%"
~~~     SKILLSLEVEL0="%URLPARAM{"SkillsLevel0"}%"
~~~     SKILLSLEVEL1="%URLPARAM{"SkillsLevel1"}%"
~~~     SKILLSLEVEL2="%URLPARAM{"SkillsLevel2"}%"
~~~     SKILLSLEVEL3="%URLPARAM{"SkillsLevel3"}%"
~~~     SKILLSLEVEL4="%URLPARAM{"SkillsLevel4"}%"
~~~     OTHERSKILLS="%URLPARAM{"OtherSkills"}%"
~~~   }%
%ELSEDEFINED%
---+++ Search
<style type="text/css"> 
@import url('%PUBURLPATH%/Applications/EmployeePortalApp/styles.css');
.empCheckBoxHolder label {
  display:block;
}
.empCheckBoxHolder {
  width:auto;
  padding:5px;
  border:1px solid #ccc;
}
.empTriPageSearch th.twikiFirstCol {
  text-align:right;
  width:200px;
}
</style>
<script type="text/javascript" src="%PUBURL%/Applications/EmployeePortalApp/emp.js"></script>
<div class="twikiPageForm empTriPageSearch">
<a name="Search"></a>
<form action="%SCRIPTURLPATH{"view"}%/%BASEWEB%/%BASETOPIC%#Results" method="post">
<input type="hidden" name="trigger" value="on" />
<table class="twikiTable">
<tr>
  <th colspan="2"><h4>Personal information</h4></th>
</tr>
<tr>
  <th class="twikiFirstCol">First name</th>
  <td><input type="text" name="FirstName" value="%URLPARAM{"FirstName"}%" size="30" /></td>
</tr>
<tr>
  <th class="twikiFirstCol">Last name</th>
  <td><input type="text" name="LastName" value="%URLPARAM{"LastName"}%" size="30" /></td>
</tr>
<tr>
  <th class="twikiFirstCol">Login</th>
  <td><input type="text" name="Login" value="%URLPARAM{"Login"}%" size="30" /></td>
</tr>
<tr>
  <th class="twikiFirstCol">Role/Function</th>
  <td><input type="text" name="Role" value="%URLPARAM{"Role"}%" size="30" /></td>
</tr>
<tr>
  <th class="twikiFirstCol">Department</th>
  <td><input type="text" name="Department" value="%URLPARAM{"Department"}%" size="30" /></td>
</tr>
<tr>
  <th class="twikiFirstCol">Location</th>
  <td><input type="text" name="Location" value="%URLPARAM{"Location"}%" size="30" /></td>
</tr>
</table>
<table class="twikiTable">
<tr>
  <th colspan="2"><h4>Business details</h4></th>
</tr>
<tr>
  <th class="twikiFirstCol">Previous company</th>
  <td><input type="text" name="PreviousCompany" value="%URLPARAM{"PreviousCompany"}%" size="30" /></td>
</tr>
<tr>
  <th class="twikiFirstCol">Projects</th>
  <td><input type="text" name="Projects" value="%URLPARAM{"Projects"}%" size="30" /></td>
</tr>
<tr>
  <th class="twikiFirstCol">Education</th>
  <td><input type="text" name="Education" value="%URLPARAM{"Education"}%" size="30" /></td>
</tr>
<tr>
  <th class="twikiFirstCol" valign="top">Branch of trade
%~~ TWISTYBUTTON{id="bot" remember="on" firststart="hide" link=" " 
~~~   showimgright="%ICONURLPATH{toggleopenleft}%"
~~~   hideimgright="%ICONURLPATH{toggleclose}%"
~~~ }%
  </th>
  <td>
%TWISTYTOGGLE{id="bot" mode="div"}%
%$nopDBCALL{"Applications.EmployeePortalApp.RenderCheckBox" NAME="BranchOfTrade" SELECTED="%URLPARAM{"BranchOfTrade"}%"}%
%ENDTWISTY%
  </td>
</tr>
<tr>
  <th class="twikiFirstCol" valign="top">Certificates
%~~ TWISTYBUTTON{id="certs" remember="on" firststart="hide" link=" " 
~~~   showimgright="%ICONURLPATH{toggleopenleft}%"
~~~   hideimgright="%ICONURLPATH{toggleclose}%"
~~~ }%
  </th>
  <td>
%TWISTYTOGGLE{id="certs" mode="div"}%
%$nopDBCALL{"Applications.EmployeePortalApp.RenderCheckBox" NAME="CertificatesOfCompetence" SELECTED="%URLPARAM{"CertificatesOfCompetence"}%"}%
%ENDTWISTY%
  </td>
</tr>
<tr>
  <th class="twikiFirstCol" valign="top">Languages
%~~ TWISTYBUTTON{id="langs" remember="on" firststart="hide" link=" " 
~~~   showimgright="%ICONURLPATH{toggleopenleft}%"
~~~   hideimgright="%ICONURLPATH{toggleclose}%"
~~~ }%
  </th>
  <td>
%TWISTYTOGGLE{id="langs" mode="div"}%
%$nopDBCALL{"Applications.EmployeePortalApp.RenderCheckBox" NAME="LanguageSkillsEN" SELECTED="%URLPARAM{"LanguageSkills"}%"}%
<b>Others:</b><br />
<input type="text" size="30" value="%URLPARAM{"OtherLanguagesSkills"}%" name="OtherLanguageSkills" />
%ENDTWISTY%
  </td>
</tr>
</table>
<table class="twikiTable">
<tr>
  <th colspan="2"><h4>Skills</h4></th>
</tr>
%~~ DBQUERY$nop{"TopicType=~'\bCategory\b' AND Category=~'\bSkillsCategory\b'"
~~~   web="%BASEWEB%"
~~~   format="
~~~     <tr>
~~~       <th class=\"twikiFirstCol\" valign=\"top\">
~~~         $percntTWISTYBUTTON{id=\"$topic-twisty\" 
~~~           remember=\"on\"
~~~           firststart=\"hide\"
~~~           link=\"$expand(Title or topic) \" 
~~~           showimgright=\"%ICONURLPATH{toggleopenleft}%\"
~~~           hideimgright=\"%ICONURLPATH{toggleclose}%\"
~~~         }$percnt
~~~       </th>
~~~       <td>
~~~         $percntTWISTYTOGGLE{id=\"$topic-twisty\" mode=\"div\"}$percnt
~~~         $percntDBCALL{\"Applications.EmployeePortalApp.RenderSkillSelector\"
~~~           SOURCE=\"%BASEWEB%.%BASETOPIC%\"
~~~           SKILLS=\"$topic\"
~~~         }$percnt
~~~         $percntENDTWISTY$percnt
~~~       </td>
~~~   </tr>"
~~~ }%
<tr>
  <th class="twikiFirstCol">Other skills</th>
  <td><input type="text" name="OtherSkills" value="%URLPARAM{"OtherSkills"}%" size="30" /></td>
</tr>
<tr>
  <th class="twikiFirstCol">&nbsp;</th>
  <td align="right">
    <input type="submit" value="Submit" class="twikiSubmit" />
    <input type="button" value="Reset" class="twikiButton" onclick="window.location.href='%SCRIPTURL{"view"}%/%BASEWEB%/%BASETOPIC%';" />
  </td>
</tr>
</table>
</form>
</div>
%FIDEFINED%
%STOPINCLUDE%

Calls to 'RenderTriPageSearch'

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 a search dialog to search for TriPages
TWikiApplication: EmployeePortalApp
r0 - 29 Jul 2007 - 06:54:46 - TWikiContributor
© giant orange extension cord that reeks hip-hop, funk & soul