open(); $oHandler = outputHandler::getOH(); if(isset($Sesid)) { $oHandler->loadState($Sesid); $operation = $oHandler->getOperation(); foreach($oHandler->redirectParam as $key=>$value) extract($value); } else { $oHandler->setFile($file); $oHandler->setOperation($operation); } //set title if (!isset($title)) { $title = getTitleMepping($oHandler->getFile(),"one"); $oHandler->title = $title; }else{ $oHandler->title = $title; } $contactBuss = new businessContact_us(); $contactInfo = $contactBuss->getRow(1); $oHandler->pageTitle = $contactInfo->siteName ." >> ". $title; $oHandler->template_basedir = "../ui/shop/templates"; //$oHandler->checkPermission(); if(isset($printTemplate)) { $oHandler->templateFilename = 'printTemplate.php'; $oHandler->isPrint = true; } ////////////////////////////////////////////////////////////// $oHandler->addMetaTag('Content-Type','text/html; charset=utf-8'); if($oHandler->isPrint) $oHandler->addLinkTag('ui/shop/css/style_print.css'); else { /**/ $oHandler->addLinkTag('ui/shop/bootstrap/css/bootstrap.min.css'); $oHandler->addLinkTag('ui/shop/bootstrap/css/non-responsive.css'); /**/ $oHandler->addLinkTag('ui/shop/css/iview.css'); $oHandler->addLinkTag('ui/shop/css/style.css'); $oHandler->addLinkTag('ui/shop/MegaMenu/menu.css'); $oHandler->addScriptTag('ui/shop/js/jquery-1.10.2.min.js'); $oHandler->addScriptTag('ui/shop/js/basket.js'); //slider $oHandler->addScriptTag('ui/shop/js/raphael-min.js'); $oHandler->addScriptTag('ui/shop/js/jquery.easing.js'); //$oHandler->addScriptTag('ui/shop/js/iview.js'); $oHandler->addScriptTag('ui/shop/js/jssor.slider.min.js'); $oHandler->addScriptTag('ui/shop/js/jquery.newsTicker.min.js'); } if (isset($systemMessage)) { $oHandler->setMessage($systemMessage); } if(outputHandler::getOH()->systemMessage != '') { $erObj = new errorMessage; $oHandler->addBodyProperty("onLoad=\"alert('".$erObj->getErrorMessage(outputHandler::getOH()->systemMessage)."')\""); } if($oHandler->getFile() != "shop_product" && $oHandler->getFile() != "news" && $oHandler->getFile() != "text_tbl" ) { $oHandler->addMetaTag("keywords",$_SESSION['companyKeyword'],"name"); $oHandler->addMetaTag("description",$_SESSION['companyDescription'],"name"); } //========================== $static = new facadeShopStatic(); $static->allPages($level,1,$id); if( $controlPanel == "ok") { $obj = new facadePro_info(); $obj->userInfo(); } //-------------------------- switch($oHandler->getFile()) { case "static": { $obj = new facadeShopStatic(); switch($oHandler->getOperation()) { case "sitemap":{ $obj->sitemap("shop");};break; } };break; case "report_mail": { $obj = new facadeReport_mail(); switch($oHandler->getOperation()) { case "register":{$obj->register($info);};break; case "view":{$obj->view($info);};break; } };break; case "shop_product": { $obj = new facadeShop_product(); switch($oHandler->getOperation()) { case "view":{$obj->view($id,$class,$level);};break; case "searchProduct":{$obj->searchProduct($search_query,$masterCat);};break; case "compare":{$obj->compare($info);};break; } };break; case "order": { $obj = new facadeOrder(); switch($oHandler->getOperation()) { case "view":{$obj->view($id,$info);};break; case "register":{$obj->view($id,$info);};break; } };break; case "product_menu": { $obj = new facadeProduct_menu(); switch($oHandler->getOperation()) { case "view":{$obj->view($id,$level);};break; case "filter":{$obj->filter($id);};break; } };break; case "pro_info": { $obj = new facadePro_info(); switch($oHandler->getOperation()) { case "logout":{$obj->logout("shop/");};break; case "login":{$obj->login($info,"shop/");};break; case "register":{$obj->register("","","shop/");};break; case "forgetPass":{$obj->forgetPass($info,"shop/");};break; case "insert":{$obj->registerResult($info,"shop/");};break; case "validmail":{$obj->validmail($inpEmail);};break; case "activeUser":{$obj->activeUser($code,"shop");};break; case "registerUpdate": case "desk": {$obj->registerUpdate("shop");};break; case "update":{$obj->registerUpdateResult($info);};break; } } case "news": { $obj = new facadeNews(); switch($oHandler->getOperation()) { case "view":{$obj->view($id);};break; } };break; case "newsCat": { $obj = new facadeNews_cat(); switch($oHandler->getOperation()) { case "view":{$obj->view($id,$info,$level);};break; } };break; case "about_us": { $obj = new facadeText_tbl(); switch($oHandler->getOperation()) { case "view":{$obj->view(8,"shop"); };break; } };break; case "text_tbl": { $obj = new facadeText_tbl(); switch($oHandler->getOperation()) { case "view":{$obj->view($id,"shop"); };break; } };break; case "contact_message": { $obj = new facadeShop_contact_message(); switch($oHandler->getOperation()) { case "contact":{$obj->contact($info); };break; } };break; case "index": { $obj = new facadeIndexShop(); switch($oHandler->getOperation()) { case "view":{$obj->view();};break; case "sitemap":{$obj->sitemapView();};break; } };break; case "shop_regular_question": { $obj = new facadeShop_regular_question(); switch($oHandler->getOperation()) { case "view":{$obj->view();};break; } };break; case "shop_factor": { $obj = new facadeShop_factor(); switch($oHandler->getOperation()) { case "setBascket":{ if ($itemCount > 1) { for($i = 1;$i <= $itemCount-1 ; $i++) { $obj->setBascket($items,$oper,false); } } $obj->setBascket($items,$oper); };break; case "viewBascket":{$obj->viewBascket($factorCode);};break; //case "finalFactorRegister":{$obj->finalFactorRegister($factorCode,$State,$ResNum,$RefNum);};break; case "finalFactorRegister":{ $obj->finalFactorRegister($factorCode,$Authority,$Status);};break; case "save":{$obj->save($count,$shopDirect,$productId,$factorCode,$info);};break; case "factorshow":{$obj->factorshow($id);};break; case "ClientreverceFactor":{$obj->ClientreverceFactor($factorCode);};break; } };break; case "factor_item": { $obj = new facadeShop_factor_item(); switch($oHandler->getOperation()) { case "view":{$obj->view();};break; } };break; case "shop_region": { $obj = new facadeShop_region(); switch($oHandler->getOperation()) { case "cityCall":{$obj->cityCall($id);};break; } };break; case "shop_transport_calculation": { $obj = new facadeShop_transport_calculation(); switch($oHandler->getOperation()) { case "PostCalculation":{$obj->PostCalculation($id,$weight,$ajax);};break; } };break; case "shop_peyk_price": { $obj = new facadeShop_peyk_price(); switch($oHandler->getOperation()) { case "PeykCalculation":{$obj->PeykCalculation($id,$ajax);};break; } };break; } if ( $file !="index" || $operation == "sitemap") { if (isset($title)) { $oHandler->title = $title; } ob_start(); require_once('../ui/shop/templates/adminNavigator.php'); $pageContent = ob_get_clean(); $oHandler->addTemplateSection ('adminNavigator',$pageContent); } ///paging if ($catId >0) { $hiddenFields[0]['id'] = "catId"; $hiddenFields[0]['value'] = $catId; } $file = $oHandler->getFile(); $operation = $oHandler->getOperation(); //// $oHandler->addTemplateSectionWithFile('contentHeader','contentHeader.php'); $oHandler->showPage(); $conObj->close(); ?>