build_start("Custom T-shirts and Drinking Mugs - Design Online - Personalized Gifts from Family Matrix","Design Personalized Gift for Birthdays, Graduations, Family Reunions, New Baby - Free Shipping" ,
"apparel,awesome,baby gift,birthday,birthday gift,clothing,coffee mugs,cool t shirts,cool t-shirts,custom coffee mugs,custom logo printed shirt,custom made shirts,custom made t shirts,custom mugs,custom printed shirts,
custom printed t shirt,custom printed t shirts,custom printed tee shirts,custom printing shirt t,custom screen printing,custom shirt,custom shirts,custom sweatshirt,custom t shirt,custom t shirt printing,custom t shirt screen printing,
custom t shirts,custom tee shirts,design,design your own,designer,designs,family memories,family reunion,family reunions,family reunions gift,famiy matrix,free,free shipping,funny tee shirts,funny tees,funny tshirts,gramdparent gift,
graphic tees,high school graduation,high school graduation gift,long sleeve t-shirt,long-sleeve,mothers day,mothers day gift,mugs,new baby,parent gift,personalized,personalized gifts,printed,printed t shirt,printed t shirts,
printed tshirt,screen printed t shirt,screen printed t shirts,screen printed t-shirts,screen printing,screen printing shirt,screen printing t shirts,screen printing tee shirt,screen-printing,shirt,shirt design,shirt printing,
shirts,short sleeve t-shirt,shrits,silk screen printing,silk screen t shirts,silk screen tee shirts,snorg tees,t shirt,t shirt printers,t shirt printing,t shirt screen printing,t shirts,tee,tee shirt printers,tee shirts,tees,
tee-shirt,teeshirts,tshirt,t-shirt,tshirts,t-shirts,unique,unique,unique design,unique gift,unique gifts,vintage,wholesale screen printing,wholesale t-shirts");
?>
build_body("");
echo $page->build_head();
?>
db->query("select * from categories where active='1' order by sort ASC");
$body_width = 760; // this is the width - if the next item is going past that, wrap
foreach($categories as $cat) {
echo "
".General::fixtext($cat["name"],"tinymce_inline")."
";
$products = $page->db->query("select * from products where active='1' and category_uid = '".$cat["uid"]."' order by sort ASC");
$current_x_position = 0;
foreach($products as $prod) {
$link = "prods/".General::urlify($cat["name"])."/".General::urlify($prod["name"])."/".$prod["uid"]."/";
// look for thumbnail
if (file_exists(SITE_PATH."images_thumb/".$prod["uid"].".jpg")) {
$thumb = SITE_URL."images_thumb/".$prod["uid"].".jpg";
list($width, $height) = getimagesize(SITE_PATH."images_thumb/".$prod["uid"].".jpg");
} else {
$thumb = SITE_URL."images_thumb/thumb_missing.jpg";
$height = 80;
$width = 80;
}
$thumb_image = "";
$current_x_position += (10 + $width);
if ($current_x_position > $body_width) {
echo "
";
$current_x_position = (10 + $width);
}
// below min was 150px (in the max() function)
echo "
| \n";
}
// finish up the table - the TR is always open
echo "
".General::fixtext($cat["description"],"tinymce")."
";
}
?>
draw_flair();
echo $page->end_body("");
?>