Location: PHPKode > scripts > Saved Searches module for Esvon Classifieds > saved-searches-module-for-esvon-classifieds/readme.txt
// --------------------------------------------------------------------------
// Esvon Classifieds v.4.0
// Copyright(C), Esvon LTD, 2001-2008, All Rights Reserved.
// E-mail: hide@address.com
// All forms of reproduction, including, but not limited to, internet posting, 
// printing, e-mailing, faxing and recording are strictly prohibited.
// One license required per site running Esvon Classifieds. 
// To obtain a license for using Esvon Classifieds, please register at
// http://www.esvon.com/pg/products/p_classifieds/
// --------------------------------------------------------------------------

Module: Saved Searches
Revision: 1.6

Module integration instructions

1/ Link to "Saved Searches" is as following (recommended to be added into 
user_menu.htm) :
<a href="modules.php?mod=Saved_Searches">Saved Searches</a>

2/ Add in search results page (search_results.htm, search_no_match.htm) this code
(unless it is already there) :

<!-- Saved_Searches Start Here -->

function SaveSearch(){
  var an_p = prompt("Type in the name you would like to give this search. Choose something easy to remember, yet descriptive and easily recognizable. Name this search:", "");
  if(an_p) document.location="modules.php?mod=Saved_Searches&act=save&search="+encodeURIComponent(an_p)+"&ref="+encodeURIComponent(document.location);

<a href="javascript:SaveSearch()">Save This Search</a>

<!-- Saved_Searches End Here -->
Return current item: Saved Searches module for Esvon Classifieds