"; echo "pid ".$pid."
"; echo "cat ".$cat."
"; echo "pageid ".$pageid."
";*/ require_once('class/product.class.php'); $product = new product($baseurl.'product',$baseurl,$relativeslash); $user=$_SESSION['userid']; $link ='productlist/list'; //echo $action; //echo $pid; //echo $cat; if($act=="") $act = "all"; if($pid=="") $pid = "all"; $user=$_SESSION['userid']; $link ='product/list'; if($action=="listing") $content = $product->listing($pid,$cat,$pageid); else if($action=="process") $content = $product->process(); else if($action=="form") $content = $product->form($pid,$ind); else if($action=="detail") $content = $product->detail($pid); else if($action=="edit") $content = $product->form($pid,$cat,$pageid); else if($action=="delete") $content = $product->delete($pid,$_SESSION['product']['back']); else if($action=="deleteimg") $content = $product->deleteimg($pid); else if($action=="image") $content = $product->crop(); else{ $product->clear_session(); $content = $product->listing("","all",$pageid); } echo $content; //industri.php -> listing //industri.php?act=details&ind=1 -> detail industri //industri.php?act=category&ind=1&cat=1 -> view listing per category ?>