Jetty web server - Chapter 9: Intranet Contact Manager 321 . displaySearchResult():

Chapter 9: Intranet Contact Manager 321 . displaySearchResult(): This method displays the result of the search performed according to the user s query. The result shows a list of contacts that matches the search criteria. This is how it works: A search result template (CONTACT_SEARCH_RESULT_TEMPLATE) is loaded in a template object called $template. The where clause of the search query is prepared using the information given by the user. The where clause is passed into the searchContact() method of the Contact class to search for the contact. searchContact() returns an array of contacts if it finds a match. The array of contacts is then fed into the contact block of the template. If no match is found, the array is empty, the contact block is set with a message indicating that no match was found. showContents() is called to render the template with the appropriate theme. . displaySearchMenu(): This method displays the contact search Web form as needed. It works as follows: A search input template (CONTACT_SEARCH_INPUT_TEMPLATE) is loaded in a template object called $template. The template includes a Web form to take input such as company name, contact name, subcategory, category, and keywords to search for contacts. The subcategory list is empty until the user chooses a category. showContents() is called to render this template with the appropriate theme. . displayMailMenu(): This method displays the e-mail menu where the user can write her e-mail to send to a contact. This is how it works: A mail template (CONTACT_MAIL_TEMPLATE) is loaded in a template object called $template. The template includes a Web form to take input (CC address, mail subject, mail body, and so forth). The ID of the contact that is the target of this mail is stored as hidden HTML field in this template for later use. showContents()is called to render this template with appropriate theme.

WordPress database error: [Table 'armadillowebhosting_com_-_jsp.wp_comments' doesn't exist]
SELECT * FROM wp_comments WHERE comment_post_ID = '383' AND comment_approved = '1' ORDER BY comment_date

Leave a Reply