starlight1992 Posted May 13, 2015 Share Posted May 13, 2015 (edited) Alright, created a new page for KBduct. http://www.kbduct.com/backdraft-atex-certified-package/ I had created an array to create the list and what not but as you guys can see, when you click on 'view product' all of the css styling and everything has been applied but my content is nowehere to be found. It's almost as if the page doesn't recognize the include I put in. So if you're confused, here's my files: PACKAGE PHP : <?php function get_list_view_html($package_id, $package) { $baseUrl = "[url=http://www.kbduct.com]http://www.kbduct.com";[/url] $output = ""; $output = $output . '<div class="indiv-product">'; $output = $output . '<a href="' . $baseUrl . '/atex-nfpa-certified-backdraft/products/index.php?id=' . $package_id .'"><img class="product-img" src="' . $baseUrl . $package["img"] . '" alt="' . $package["name"] . '"><div style="clear:both;"></a></div>'; $output = $output . '<a href="' . $baseUrl . '/atex-nfpa-certified-backdraft/products/index.php?id=' . $package_id .'"><p style="font-size:.8em; text-transform:uppercase; text-align:left; ">' . $package["name"] .'</p></a>'; $output = $output . '<a class="prodBtn" href="' . $baseUrl . '/atex-nfpa-certified-backdraft/products/index.php?id=' . $package_id .'"><p>View Product</p></a> </div>'; return $output; } $package = array(); $package[0] = array( "id" => 0, "name" => "Certified Back Drafts", "img" => "/img/products/new/certified-back-draft.jpg", "lrgimg" => "/img/products/new/certified-back-draft.jpg", "disc" => '<strong>PROBLEM:</strong></br></br> Pulsation, from the cleaning of filter media or other pressure increases, can cause pulsation back into the plant or building through the duct system. Stopping this pulsation at the source is critical.</br></br> <strong>SOLUTION:</strong></br></br> K&B Back Draft Dampers are designed with a counter balanced flap that easily opens with the flow of air, but quickly and tightly closes when the air flow is reversed. Thus, closing off the building. Units are constructed of heavy duty 3/16" steel to withstand high pressures.', "spec" => "/assets/specs/Certified_Backdraft_Spec_Sheet.pdf", "keywords" => array('package, backdraft'), "metakeys" => "back draft, draft", "metadisc" => "KB Duct Certified Back Drafts", ); $package[1] = array( "id" => 1, "name" => "Control Panels", "img" => "/img/products/new/ControlPanel.jpg", "lrgimg" => "/img/products/large/ControlPanel_Opened.jpg", "disc" => '<strong>PROBLEM:</strong> </br></br>As more and more systems are installed with air from fans/collectors evacuated into the atmosphere (so as to avoid NFPA regulations on return air), attention is turning to noise reduction for plant personnel and neighbors.</br></br> <strong>SOLUTION:</strong></br></br> K&B Duct Silencers dampen that noise. Our Silencers are built so that air passes through a chamber of expanded metal, surrounded by more than 4" of insulation. Noise, generally created by turbulence and vibration of air molecules, is literally absorbed by the insulation. Normally, one unit is sufficient. Though, Silencers can be placed in sequence for more severe applications.', "spec" => "/assets/specs/Silencer_Spec_Sheet.pdf", "keywords" => array('silencer, package'), "metakeys" => "silencers", "metadisc" => "KB Duct Silencers", ); $package[2] = array( "id" => 2, "name" => "Dust Sensors", "img" => "/img/products/new/DustSensor.jpg", "lrgimg" => "/img/products/large/DustSensor.jpg", "headline" => "Dust Sensors", "disc" => "ZIPPER DUCTS PROVIDE AIR/SUCTION TO MACHINES THAT HAVE LARGE RANGES OF MOTION.<br><br> As the name implies, the tapered suction head moves between to rubber seals that open and re-seal with the movement of the head. While the rubber flaps are heavy and somewhat rigid to give long life and a good seal, the suction from the fan also pulls the flaps together and around the 'head'. <br><br> Zipper duct can be provided in all sizes from 4" to 18" and in any length in mulitples of 10'. The 10' sections are flanged and can be joined in the field.<br><br> While the head is usually supported by the machine, Zipper Duct can also be provided with an interior roller carriage. By having two units in an X,Y configuration, Zipper Duct can provide suction over an extremely large area. <br><br></p> <h2>ZIPPER DUCT SYSTEMS FOR DYNAMIC AIR HANDLING</h2> <p class=\"prodDesc\"> <strong>PROBLEMS ZIPPER DUCTS SOLVE: </strong></br></br>Some machines/ systems require extremely wide ranges of motion, over long lengths. Even the use of very long lengths of flex may not be feasible. The duct system is simply required to \"travel\" with the machine head.</br></br> <strong>ZIPPER DUCT SOLUTIONS:</strong></br></br> K&B Duct Zipper Duct provides for extra long movement. A heavy rubber seal collapses and seals around the traveling head as it moves the length of the duct.", "spec" => "/assets/specs/Zipper_Duct_Spec_Sheet.pdf", "keywords" => array('duct, package'), "metakeys" => "zipper duct, zipper ducting system", "metadisc" => "Zipper Ducts are dynamic duct systems that can provide air or suction to machines with wide ranges of motion.", ); $package[3] = array( "id" => 3, "name" => "Micro Switches", "img" => "/img/products/new/MicroSwitch.jpg", "lrgimg" => "/img/products/large/MicroSwitch.jpg", "disc" => '<strong>PROBLEM:</strong></br></br> New cutting/grinding machines offer unique new challenges. The combination of the speed of the cutter, volume of effluent, closure of machines, location of pick-up hoods and high static fans all end up sucking effluent into the system. Large amounts of effluent collect in the duct and "drown" the filters.</br></br> <strong>SOLUTION:</strong></br></br> Our unique (yet simple) accumulators provide both an area AND a surface for the effluent to accumulate, then drop out of the air stream before entering the duct itself.</br></br> A series of simple, expanded metal cones allow the droplets to condense on the surface, then drain to the outside of the accumulator (out of the air stream) where they drop into the sump. A drain hose returns the collected effluent to the machine.', "keywords" => array('package, switch'), "metakeys" => "micro, switch, nfpa", "metadisc" => "KB Duct Micro Switch", ); ?> INDEX PHP : <?php include('../../inc/default.php'); include('../../inc/package.php'); $package_id = $_GET["id"]; $package = $packages[$package_id]; $pageTitle = 'ATEX Certified Products- ' . $package["name"] . ' - KB Duct'; $pageKeys = $package["metakeys"]; $pageDisc = $package["metadisc"]; ?> <!doctype html> <html> <?php include('../../inc/head.php'); ?> <body> <div id="sb-site"> <?php include('../../inc/maximage.php'); ?> <?php include('../../inc/header.php'); ?> <div class="mainarea"> <div class="wrapper"> <?php include('../../inc/industry.php'); ?> <?php include('../../inc/catatypes.php'); ?> <div id="products" style="padding-bottom:150px; margin-bottom:100px;"> <div class="main-product"> <h1>ATEX CERTIFIED PRODUCTS > <?php echo $package["name"] ?></h1> <div class="easyzoom easyzoom--overlay"> <a href="<?php echo $baseUrl . $package["lrgimg"] ?>"> <img style="width:100%; border:solid 5px #fff !important; margin-top:30px;" src="<?php echo $baseUrl; ?><?php echo $package["img"]; ?>" alt="<?php echo $package["name"]; ?>"> </a> </div> <h1><?php echo $package["headline"]; ?></h1> <p class="prodDesc"><?php echo $package["disc"]; ?></p> <a class="grayBtn button" target="_blank" href="<?php echo $baseUrl; ?><?php echo $package["spec"]; ?>"><p class="specBtn">Sizes and Specs</p></a> </div> <div class="similar""> <h4 style="margin-bottom:30px;">SIMILAR PRODUCTS</h4> <?php $package_id = $_GET["id"]; $package = $packages[$package_id]; $package_cnt = count($packages); $x = 0; while($x < $package_cnt) { //Step through all products foreach($packages[$x]["keywords"] as $keyword) { //step through current products' keywords $pieces = explode(",",$package["keywords"][0]); $used = array(); foreach ($pieces as $needle) { //if they match, show it! if(stristr($keyword,$needle) != false && $x != $package_id) { if(in_array($packages[$x]["id"],$used)){ //IGNORE BECAUSE ITS IN THE ARRAY OF PRODUCTS TO SHOW ALREADY }else{ echo '<a href="' . $baseUrl . '/atex-nfpa-certified-backdraft/products/index.php?id=' . $package[$x]["id"] .'"><img style="margin:0px 5% 10px 0px !important; width:25%; float:left; border:solid 2px #fff !important;" src="' . $baseUrl . $packages[$x]["img"] . '" alt="' . $packages[$x]["name"] . '"><p>' . $packages[$x]["name"] . '</p><div style="clear:both;"></div>'; $used[] = $packages[$x]["id"]; } } } } $x++; } ?> </div> <?php /*?><?php foreach($products as $product_id => $product) { echo get_list_view_html($product_id, $product); } ?><?php */?> </div> </div> </div> <?php include('../../inc/footer.php'); ?> </div> <?php include('../../inc/mob-menu.php'); ?> <script src="<?php echo $baseUrl; ?>/js/easyzoom.js" type="text/javascript" charset="utf-8"></script> <script> // Instantiate EasyZoom plugin var $easyzoom = $('.easyzoom').easyZoom(); // Get the instance API var api = $easyzoom.data('easyZoom'); </script> </body> </html> Edited May 14, 2015 by Ch0cu3r Converted quotes to code tags Quote Link to comment Share on other sites More sharing options...
fastsol Posted May 13, 2015 Share Posted May 13, 2015 I see product info when I click on 'view product'. What am I supposed to see? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.