I use the following quick search menu on the list page to show specific records and count:
Eg. Rugby (1)
Soccer (2)
etc.
It works great!
These shows as normal Hyperlinks only.
How would I add the button class to the code to have the links show up on the buttons.
Please assist.
global $strSQL,$conn;
global $dal;
$dal_table=$dal->Table("adSportfolio");
//search by brand
$message="<b>Search by Sub Category:
";
$str = "select count(Name) as numbers, SubCategory from ".$dal_table->TableName()." where Category='Schools' group by SubCategory";
//$rs = db_query($str,$conn);
$rs = CustomQuery($str);
while ($data = db_fetch_array($rs))
{
//$data = CustomQuery($str);
$SubCategory = str_replace(" ","+",$data["Name"]);
$message = $message ."<a href=\"Schools_list.php?ctlSearchFor=".$SubCategory."&srchOptShowStatus=0&ctrlTypeComboStatus=0&srchWinShowStatus=0&a=integrated&id=1&criteria=and&value11=".$data["SubCategory"]."&field1=SubCategory&option1=Contains\">".$data["SubCategory"]." (".$data["numbers"].")</a>";
$message = $message ." ";
}
$message = $message ."
";
$xt->assign("subcat",$message);