Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: searchResults Arguments: results Description: Format search results Page type: webl Render function: Module: collabExt Page source: 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>`; var title = results.title ? "Search"; var title2 = "Matching People"; // Wub_ReplaceAll(title, "e:", "e>"); res = res + "<h1>" + title2 + "</h1>\n"; res = res + "<table>\n"; var people = (results.people ? []); every person in people do res = res + `<tr><td><a target="_blank" href="/webl/WubHub_DoIt?cmdline=cmdPersonProfile(` + person["id"] + ")" + `">` + person["name"] + `</a></td>` + `<td>` + person["headline"] + `</td> ` + `<td> (<a href="/webl/WubHub_DoIt?cmdline=similarPerson(` + person["id"] + `)">find similar</a>)</td> ` + `<td> (<a href="/webl/WubHub_DoIt?cmdline=favoritePerson(` + person["id"] + `)">save as favorite</a>)</td></tr>`; end; if (people == []) then res = res + "<H3>No matching people found.</H3>\n" end; if (Size(people) < 9) then res = res + ` <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> `; end; res = res + "</table>\n"; res; WubCall("searchRender", [res]);