Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: showFavorites Arguments: Description: Display Favorites Page type: html Render function: Module: skillsrank Page source: <webl> WubCall("incHeader", []); </webl> <webl> WubCall("incTop", ["search"]); </webl> <!-- content here ============================================================ --> <a name="content"></a> <h1>Search SkillsRank</h1> <webl> var res = ` <form action="/webl/WubHub_DoIt" method="post">` + "\n" + ` <input name="cmdline" value="cmdSearchResumes(skills,+,+,+,+,+)" type="hidden"/>` + "\n" + ` Skill: <input name="skills" value="" size="45" title="Skills"/>` + "\n" + ` <input type="submit" value="Search">` + "\n" + `</form><p>`; res = res + "<h1>Saved Favorites</h1>\n"; res = res + "<table>\n"; var people = (ToList(wubvars.favoritePeople) ? []); every personId in people do var person = WubCall("cmdPersonProfile", [personId]); res = res + `<tr><td><a target="_blank" href="/site/cmdPersonProfile(` + person["id"] + ")" + `">` + person["name"] + `</a></td>` + `<td>` + person["headline"] + `</td> ` + `<td> (<a href="/site/similarPerson(` + person["id"] + `)">find similar</a>)</td>` + `<td> (<a href="/site/removeFavorite(` + person["id"] + `)">remove favorite</a>)</td> </tr>`; end; if (people == []) then res = res + "<H3>No saved favorites found.</H3>\n"; end; res = res + "</table>\n"; res; </webl> <table> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> <tr><td> </td></tr> </table> </div> <webl> WubCall("incBottom", []); </webl> <webl> WubCall("incSidemenuSearch", []); </webl> <webl> WubCall("incFooter", []); </webl>