This topic is locked

How can I add button class to my menu?

1/22/2011 4:14:03 AM
PHPRunner General questions
M
mmponline author

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 ."&nbsp;&nbsp;&nbsp;";

}

$message = $message ."

";
$xt->assign("subcat",$message);
M
mmponline author 1/22/2011

Additional need:

Ive added the menu onto a tab on the page and want to have the clicked link on this tab iso on the page itself. How would I change the link to open result

on a tab?

M
mmponline author 1/24/2011

Any suggestions?