Location: PHPKode > scripts > WebsiteMemberManager > members-section/html-admin/search_box.html
<br />
<div style="padding-left:3%;">
<div id="layer" style="padding:4px; width:96%; " class="ui-widget-content ui-corner-all">
<form name="searchform_member" method="post" action="view.php">
<div align="center"><center><table border="0" bgcolor="#C0C0C0" cellpadding="5" width="100%" cellspacing="0">
    <tr>
      <td align="center"> 
	  <div class="button">
	  <strong>Search for members where</strong>
	  <select name="field_to_search" size="1">
        <option value="email">Email</option>
        <option value="name">Name</option>
        <option value="address">Address</option>
        <option value="postcode">Postcode/Zip code</option>
        <option value="tel">Telephone No</option>
        <option value="comments">Comments</option>
      </select><strong> Like</strong> 
	  <input type="text" name="search_str" size="20">
      <a href="#" onClick="sendarray()">Search</a> 	  
      <strong> Sort by:</strong>
      <select name="sortby" size="1">
        <option value="name">Name</option>
        <option value="expire_date">Expiry date</option>
        <option value="activated_date">Activated date</option>
        <option value="email">Email</option>
      </select>
	  </div>
	  </td>
      <td width="12">&nbsp;&nbsp; </td>
    </tr>
  </table>
  </center></div><div align="center"><center>
  <table border="0" cellspacing="4" cellpadding="4" width="95%" bgcolor="#E6FFE6">
    <tr>
      <td ><em>
	  <font color="#008000" face="Times New Roman"><strong><big><big>i</big></big>
      </strong></font></em><font color="#000000">Searching - enter just part of the
      email, name or postcode and this will return all members containing those characters.
      E.g. Select Name and Enter &quot;smith&quot; [without the double quotes] and this
      will return all members with the surname smith.</font></td>
    </tr>
  </table>
  </center></div>
</form>

<p><script language="JavaScript"><!--
function sendarray()
{
 if (document.searchform_member.search_str.value=="")
 {
   alert("Search is empty - please type in something to search for!")
   document.searchform_member.search_str.focus()
 } 
 else 
 {
  searcharray = new Array(3)    
  searcharray[0]=document.searchform_member.search_str.value;
  searcharray[1]=document.searchform_member.field_to_search.value;
  searcharray[2]=document.searchform_member.sortby.value;
  action('view.php','',searcharray,'','search');
 } 
}

// --></script></p>
Return current item: WebsiteMemberManager