I have come across a problem where i dont even know where to start.
-
When i open the .php file that shows the categorys, it basicly doesnt show anything except for php sign...
I would like to know how can i programm the categories to show 5 subcategories on mouseover ? with clickable links ?
this is the code that mainly displays the categories :
<td colspan="3" class="category_bdr"><div class="leftnav_link">
<?php echo defined('SHOWCAT') ? SHOWCAT : '' ?>
and this is in the model folder of the script :
<?php
class Model_MCategorySelection
{
function showCategory()
{
include("classes/Lib/HandleErrors.php");
include("admin/cache/sitesettings.php");
include("classes/Core/Sell/CCategorySelection.php");
$default = new Core_Sell_CCategorySelection();
$default->displayCategory($Err);
if(isset($_GET['id']))
$default->displaySubCategory();
include_once('classes/Core/Category/CCategory.php');
$cat = new Core_Category_CCategory();
$cat->showCat();
include("templates/sellcategory.php");
}
function showSubCategory()
{
include("classes/Core/Sell/CCategorySelection.php");
$default = new Core_Sell_CCategorySelection();
if(isset($_GET['action']) && $_GET['action'] == 'showsubcat' && $_GET['id'])
$default->displaySubCategory();
}
function selectCategory()
{
include("classes/Lib/HandleErrors.php");
include("classes/Core/Validation/CheckInputs2.php");
include("classes/Core/Sell/CCategorySelection.php");
new Core_Validation_CheckInputs2('category');
$default = new Core_Sell_CCategorySelection();
$default->displayCategory($Err);
$_SESSION['auctioncategory'] = array("rootid"=>$_POST['rid'],"catid"=>$_POST['idselected'],"catlist"=>$_POST['catext']);
if(isset($_GET['itmid']))
header("Location:?do=relistauction&id=".$_GET['itmid']."&itmid=".$_GET['itmid']);
else
header("Location:?do=postlistingdetail");
}
}
?>
any help would be great
This post has been edited by blackpoet: 25 May 2009 - 08:23 AM

New Topic/Question
Reply




MultiQuote





|