Browse checked shops  is at the bottom of the table. Checking one or more of the 
checkboxes  and  submitting  this  form  will  open  multishop.php,  displaying  the 
inventories/details of the selected shops. 
  If  a  picture  ad  exists,  a  hyperlink  is  inserted  around  an   Ad!   icon.  The  image/link 
code  takes  the  following  form  (pseudocode):  
bizname: pictext >. 
  The function wg() (as in  white or grey ), alternates the background colour of each 
row of table cells between white and grey, to make the table easier to read. 
To  browse  through  or  perform  a  search  across  multiple  shops,  the  user  is  given  two 
options. Firstly, they can select an arbitrary number of businesses listed as having shops, 
and  then  click  the   Browse  selected  shops   button  at  the  bottom  of  the  page. 
Alternatively  (and  what  is  probably  the  more  convenient  route),  they  can  enter  some 
basic search criteria into the  smart form  which appears over the search results, which 
immediately  executes  a  query  across  all  of  the  shops  listed  on  the  results  page.  This 
feature requires some additional database queries. 
While  the  table  is  being  traversed,  two  external  arrays  are  also  incrementally  filled: 
$categorymenuarray[] and $shopnames[].  
   $categorymenuarray[], contains the categories of each business as it comes up. When 
the loop terminates, this array is processed by a series of functions in catdbq.inc 
   The first two lines of code in catdbq.inc transform the data in $categorymenuarray 
into 
an 
associative 
array 
called 
$sortedcats 
of 
the 
form 
[category name]  >  # of occurrences , sorted in descending order. This is basically 
what we see in the  Related categories  panel. 
   The pickaform() function selects from the categories table the shopform value of the 
first  element  (i.e.,  the  category  with  the  most  occurrences)  of  the  $sortedcats  array. 
The shopform value is the location of a file in the forms/ subdirectory which contains 
the code for the appropriate  smart form  to appear above the results table. 
   Each category name is in a hyperlink which reposts the original HTTP query but with 
the  added  restriction  that  only  the  businesses  in  that  specific  category  should  be 
shown. 
35




  

Home

About Services Network Support FAQ Order Contact
 

Web Hosting Apache

Our partners:Jsp Web Hosting Unlimited Web Hosting Cheapest Web Hosting  Java Web Hosting Web Templates Best Web Templates PHP Mysql Web Hosting Interland Web Hosting Cheap Web Hosting PHP Web Hosting Tomcat Web Hosting Quality Web Hosting Best Web Hosting  Mac Web Hosting 

Lunarwebhost.net  Business web hosting division of Vision Web Hosting Inc. All rights reserved