session_start();extract($_POST);$wide=1;extract($_SESSION);if(isset($_POST['narrow']))$wide=$_SESSION['wide']=$_POST['narrow']?0:1;
if($wide) { $container=970; $buttons=147; } else { $container=785; $buttons=85; }
$onsubmit='';$custom='';
?>
if(!$skinny) { ?>
$rightpanel=file_get_contents("/home/sewvacdirect/ss-data/templates/includes/w_rightpanel"); ?>
if(isset($_COOKIE['ss_cart_0001128840'])) {
$cart=urldecode($_COOKIE['ss_cart_0001128840']);
$count=preg_replace('/.*LineCnt:(.*?)\|.*/','\1',$cart);
$subtotal=preg_replace('/.*SubTotal:(.*?)\|.*/','\1',$cart);
echo '
Click Here to View Cart| Product | Price |
';
if($count>0) {
$products=explode("|",$cart);
for($i=4;$i<4+$count;$i++) {
$product=explode(":",$products[$i]);
$qty=($product[0]!=1)?"":"(".$product[0].") ";
echo "| $qty$product[2] | $product[1] |
";
}
echo "| SubTotal | $subtotal |
";
}
echo '
';
}
?>
echo($wide?"":$rightpanel); ?>
=$wide?"
$rightpanel
":"
";?>
} ?>
$a) {
$f[$k] = explode("\t", $a);
$f[array_shift($f[$k])] = $f[$k];
}
if(count($f[$page]) > 1) {
$links = $f[$page];
array_shift($links);
if(count($links) > 1) {
$ref_url = $_SERVER['HTTP_REFERER'];
if($ref_url) {
$base = 'sewvacdirect.com/';
$ref = strpos($ref_url, $base);
if($ref !== FALSE) $ref = substr($ref_url, $ref+strlen($base));
}
$found = array_search($ref, $links);
if($found) {
unset($links[$found]);
array_splice($links, 0, 1, array($ref, $links[0]));
}
}
echo '
Product Listed On: ';
$i = 0;
foreach($links as $a) {
if($i) print ', ';
echo '"
'.$f[$a][0].'"';
$i++;
}
echo "
\n";
}
}
?>
Customer Reviews
include("http://www.sewvacdirect.com/reviews/summary.php/pgmp-701b-b"); ?>
if(!$skinny) { ?>
$noun=array("He","She","They","Mark","Jenni","Jeff","Coy","Alan","Stephen","Steve","Butch","Doug","Amy","Cameron","Dale","Bryan","Bill","Brank","Delores","Canyon","Curtis","Jason");
$verb=array("sews","felts","weaves","embroiders","knits","crochets","presses","dyes","quilts","steams");
$subj=array("the design","the shirt","the pants","the scarf","the bag","the blanket","the quilt","the backpack","the towel","the tote");
$r=rand(2,5);
$rand=rand(100000,999999);
echo "
";
for($i=0;$i<$r;$i++) echo($noun[rand(0,count($noun)-1)]." ".$verb[rand(0,count($verb)-1)]." ".$subj[rand(0,count($subj)-1)].". ");
echo "
";
?>
$a) {
$f[$k] = explode("\n", $a);
}
foreach($f as $a) {
if(in_array($page, $a) || ($found && count($a) == 1)) {
echo '\n";
$found = true;
} else $found = false;
}
}
?>
} else { echo "
PGM Plus 701B-B Mens Display Body Form
"; } ?>