image=$image
page1=$page1
page2=$page2"; } function setupmenu2() { global $page1,$page2,$image,$image_map_title,$menu_page,$menu,$moulding_no;$profil; $page1=@$_GET['page']; $menu=$page1; $image="/art/frames/menus/images/"."menu-$menu.gif"; $image_map_title="menu_$page1_Map"; $page2=$page1; if ($_SESSION['CURRENT_MOULDING'] == NULL) { $moulding_no = "frameclear.gif"; } else { $moulding_no = $_SESSION['CURRENT_MOULDING']; } //echo "map=$image_map_title
image=$image
page1=$page1
page2=$page2"; } function addgif() { //echo "testxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; if ($_SESSION['CURRENT_MAT'] == NULL){ $matno = "matclear.gif"; } else { $matno = $_SESSION['CURRENT_MAT'].".gif"; } return $matno; } function addgif2() { if ($_SESSION['CURRENT_MAT2'] == NULL){ $matno2 = "matclear.gif"; } else { $matno2 = $_SESSION['CURRENT_MAT2'].".gif"; } return $matno2; } function addgif3() { if ($_SESSION['CURRENT_MAT3'] == NULL){ $matno3 = "matclear.gif"; } else { $matno3 = $_SESSION['CURRENT_MAT3'].".gif"; } return $matno3; } if (@$_GET['_Mat1'] != NULL) { @$_SESSION[_Mat1] = @$_GET['_Mat1']; } elseif (@$_SESSION[_Mat1] == NULL){ @$_SESSION[_Mat1] = "ON"; @$_SESSION[matsize1] = "250"; } //print @$_SESSION['matsize1']; if (@$_GET['_Mat2'] != NULL) { @$_SESSION[_Mat2] = @$_GET['_Mat2']; } elseif (@$_SESSION[_Mat2] == NULL){ @$_SESSION[_Mat2] = "ON"; @$_SESSION[matsize2] = "265"; } if (@$_GET['_Mat3'] != NULL) { @$_SESSION[_Mat3] = @$_GET['_Mat3']; //echo @$_SESSION['_Mat3']; } elseif (@$_SESSION[_Mat3] == NULL){ @$_SESSION[_Mat3] = "ON"; @$_SESSION[matsize3] = "280"; } if (@$_GET['_Mat1'] == "Remove") { $_SESSION[CURRENT_MAT] = NULL; $_SESSION[CURRENT_PRICE] = NULL; $_SESSION[CURRENT_MAT_MENU] = NULL; $_SESSION[CURRENT_MAT_DESCRIB] = NULL; $mat_no = NULL; @$_SESSION[_Mat1] = "ON"; } if (@$_GET['_Mat2'] == "Remove") { $_SESSION[CURRENT_MAT2] = NULL; $_SESSION[CURRENT_PRICE2] = NULL; $_SESSION[CURRENT_MAT_MENU2] = NULL; $_SESSION[CURRENT_MAT_DESCRIB2] = NULL; $mat_no2 = NULL; @$_SESSION[_Mat2] = "ON"; } if (@$_GET['_Mat3'] == "Remove") { $_SESSION[CURRENT_MAT3] = NULL; $_SESSION[CURRENT_PRICE3] = NULL; $_SESSION[CURRENT_MAT_MENU3] = NULL; $_SESSION[CURRENT_MAT_DESCRIB3] = NULL; $mat_no3 = NULL; @$_SESSION[_Mat3] = "ON"; } if (@$_GET['matsize1'] != NULL) { $matsize1 = @$_GET['matsize1']; $matsize1 = ($matsize1 * 60)+70; //if (@$_GET['matsize1'] != NULL) { @$_SESSION[matsize1] = $matsize1; } //print @$_SESSION['matsize1']; if (@$_GET['matsize2'] != NULL) { $matsize2 = @$_GET['matsize2']; $matsize2 = ($matsize2 * 60)+@$_SESSION['matsize1']; //if (@$_GET['matsize2'] != NULL) { @$_SESSION[matsize2] = $matsize2; } //if (@$_SESSION['matsize2'] == NULL) { //@$_SESSION[matsize2] = 255; //} //print @$_SESSION['matsize2']; if (@$_GET['matsize3'] != NULL) { $matsize3 = @$_GET['matsize3']; $matsize3 = ($matsize3 * 60)+@$_SESSION['matsize2']; //if (@$_GET['matsize3'] != NULL) { @$_SESSION[matsize3] = $matsize3; } //if (@$_SESSION['matsize3'] == NULL) { //@$_SESSION[matsize3] = 270; //} //select frame, mat, or fillet menus switch="frame" switch="mat" or switch="fillet set up which menu is displayed." if (@$_GET['switch'] == "1" or @$_GET['switch']== NULL ) { $switch="1"; //testing to see if a moulding sample was been selected if not NULL if (@$_GET['row'] != NULL ) { //echo "not null"; Q(); $_SESSION[CURRENT_MOULDING] = $moulding_no; $_SESSION[CURRENT_PRICE] = $price; $_SESSION[CURRENT_M_MENU] = $menu_page; $_SESSION[CURRENT_M_DESCRIB] = $description; $_SESSION[CURRENT_WIDTH] = $width; $_SESSION[CURRENT_PROFILE] = $profile; // see if mat selected and if no select clear mat $mat_no = addgif(); $mat_no2 = addgif2(); $mat_no3 = addgif3(); // moulding sample selected now test if and what moulding menu page to display if (@$_GET['page'] != NULL ) { $page1 = @$_GET['page']; $page2 = $page1; $menu=$page1; $image="/art/frames/menus/images/"."menu-$page1.gif"; $image_map_title="menu_$page1_Map"; } else // default print menu page one { $page1=$menu_page; $page2=$menu_page; $menu=$page1; $image="/art/frames/menus/images/menu-$page1.gif"; $image_map_title="menu_$page1_Map"; } } // no moulding yet selected test to see if nothing been used yet and print menu one elseif (@$_GET['page'] == NULL ) { $menu="1"; $image="/art/frames/menus/images/"."menu-1.gif"; $image_map_title="menu_11_Map"; $page1="1"; $page2="1"; } // no moulding selected but frame menu is being used elseif (@$_GET['page'] > "0") { showmoulding(); // mats ******************************************* $mat_no = addgif(); $mat_no2 = addgif2(); $mat_no3 = addgif3(); $page1 = @$_GET['page']; $page2 = $page1; $menu=$page1; $image="/art/frames/menus/images/"."menu-$page1.gif"; $image_map_title="menu_$page1_Map"; } //end frame menu selection } //******************************************************************************************** //mats Mat 1 //*********************************************************************************************** elseif (@$_GET['switch'] == "2" ) { $switch="2"; if (@$_GET['mat'] == "1" or $_SESSION[MAT_NN] == "1" or $_SESSION[MAT_NN] == NULL) { $mat = "1"; $matx=@$_GET['mat']; //echo "mat $mat"; $_SESSION[MAT_NN] = $mat; // get mat menu to display // mat pages page 50 - 90 // if mat selected print mat if (@$_GET['row'] != NULL ) { Q(); $_SESSION[CURRENT_MAT] = $moulding_no; $_SESSION[CURRENT_PRICE1] = $price; $_SESSION[CURRENT_MAT_MENU] = $menu_page; $_SESSION[CURRENT_MAT_DESCRIB] = $description; @$_SESSION[Mattype1] = "2"; // set mat type to rag mat default $mat_no = $moulding_no.".gif"; @$_SESSION[gif] = $mat_no; showmoulding(); $profile = $_SESSION['CURRENT_PROFILE']; $mat_no2 = addgif2(); $mat_no3 = addgif3(); setupmenu(); } elseif (@$_GET['row'] == NULL ) { setupmenu2(); $price = $_SESSION['CURRENT_PRICE']; $menu_page = $_SESSION['CURRENT_M_MENU']; $description = $_SESSION['CURRENT_M_DESCRIB']; // see if mat selected and if no select clear mat $mat_no = addgif(); $mat_no2 = addgif2(); $mat_no3 = addgif3(); } } //******************************************************************************************* //*** Mat 2 //*****************************************************************************************8* if (@$_GET['mat'] == "2" or $_SESSION[MAT_NN] == "2" ) { $mat = "2"; $_SESSION[MAT_NN] = $mat; @$_SESSION['_Mat2'] = "ON"; // get mat menu to display // mat pages page 50 - 90 // if mat selected print mat if (@$_GET['row'] != NULL ) { Q(); $_SESSION[CURRENT_MAT2] = $moulding_no; $_SESSION[CURRENT_PRICE2] = $price; $_SESSION[CURRENT_MAT_MENU2] = $menu_page; $_SESSION[CURRENT_MAT_DESCRIB2] = $description; $mat_no2 = $moulding_no.".gif"; @$_SESSION[gif2] = $mat_no2; @$_SESSION[Mattype2] = "2"; // set mat type to rag mat default showmoulding(); $profile = $_SESSION['CURRENT_PROFILE']; $mat_no = addgif(); $mat_no3 = addgif3(); setupmenu(); } elseif (@$_GET['row'] == NULL ) { setupmenu2(); $price = $_SESSION['CURRENT_PRICE2']; $menu_page = $_SESSION['CURRENT_M_MENU2']; $description = $_SESSION['CURRENT_M_DESCRIB2']; // see if mat selected and if no select clear mat $mat_no = addgif(); $mat_no2 = addgif2(); $mat_no3 = addgif3(); } } //******************************************************************************************* //*** Mat 3 //*****************************************************************************************8* if (@$_GET['mat'] == "3" or $_SESSION[MAT_NN] == "3" ) { $mat = "3"; $_SESSION[MAT_NN] = $mat; if (@$_GET['row'] != NULL ) { Q(); $_SESSION[CURRENT_MAT3] = $moulding_no; $_SESSION[CURRENT_PRICE3] = $price; $_SESSION[CURRENT_MAT_MENU3] = $menu_page; $_SESSION[CURRENT_MAT_DESCRIB3] = $description; @$_SESSION[Mattype3] = "2"; // set mat type to rag mat default $mat_no3 = $moulding_no.".gif"; @$_SESSION[gif3] = $mat_no3; showmoulding(); $profile = $_SESSION['CURRENT_PROFILE']; $mat_no = addgif(); $mat_no2 = addgif2(); setupmenu(); } elseif (@$_GET['row'] == NULL ) { setupmenu2(); $price = $_SESSION['CURRENT_PRICE3']; $menu_page = $_SESSION['CURRENT_M_MENU3']; $description = $_SESSION['CURRENT_M_DESCRIB3']; // see if mat selected and if no select clear mat $mat_no = addgif(); $mat_no2 = addgif2(); $mat_no3 = addgif3(); } } } elseif (@$_GET['switch'] == "3" ) { // get fillet menu to display // fillet pages 91-99 $switch="3"; //******************************************************************************************* //*** Mat 2 fillet //*****************************************************************************************8* $mat = "2"; $_SESSION[MAT_NN] = $mat; @$_SESSION['_Mat2'] = "Fillet"; if (@$_GET['row'] != NULL ) { Q(); $_SESSION[CURRENT_MAT2] = $moulding_no; $_SESSION[CURRENT_PRICE2] = $price; $_SESSION[CURRENT_MAT_MENU2] = $menu_page; $_SESSION[CURRENT_MAT_DESCRIB2] = $description; $mat_no2 = $moulding_no.".gif"; @$_SESSION[gif2] = $mat_no2; @$_SESSION[matsize2] = (.18 * 60)+@$_SESSION['matsize1']; //$matsize1 = (@$_SESSION['matsize1']-70)/60; //@$_GET[matsize1] = $matsize1; //$matsize2 = (@$_SESSION['matsize2']-@$_SESSION['matsize1'])/60; //@$_GET[matsize2] = $matsize2; //$matsize3 = (@$_SESSION['matsize3']-@$_SESSION['matsize2'])/60; //@$_GET[matsize3] = $matsize3; showmoulding(); $mat_no = addgif(); $mat_no3 = addgif3(); setupmenu(); } elseif (@$_GET['row'] == NULL ) { setupmenu2(); $price = $_SESSION['CURRENT_PRICE2']; $menu_page = $_SESSION['CURRENT_M_MENU2']; $description = $_SESSION['CURRENT_M_DESCRIB2']; // see if mat selected and if no select clear mat $mat_no = addgif(); $mat_no2 = addgif2(); $mat_no3 = addgif3(); } } if ($switch == 2 or $switch == 3 ) { echo "
"; ?>
Select Mat to Edit:
"; //echo "
"; echo "
Mat 1 \"\"\"\"
Mat 2 \"\"\"\"
Mat 3 \"\"\"\"
"; echo "
Top Mat: "; $xx = (@$_SESSION['matsize1']-70)/60; echo " "; ?> Reveal
2nd Mat: Reveal
3rd Mat: Reveal
"; } echo ""; echo "
"; echo " \"\" \n"; $query = "SELECT map FROM testone WHERE menu_page=".$menu; $result = mysql_query($query); for ($i = 0; $i < mysql_num_rows($result); $i++) { $row = mysql_fetch_row($result); for($j = 0;$j "; if (@$_GET['row'] == NULL and ($moulding_no == NULL)) { // print the 5 inch display area blank if nothing selected echo "
Moulding & Mat Selection
"; } else { $prtit = @$_GET['prtit']; echo "
Moulding & Mat Selection
"; If (@$_SESSION['_Mat3'] == "ON" ) { ?>
"; } If ($_SESSION['_Mat2'] == "ON" ) { ?>
"; } elseif (@$_SESSION['_Mat2'] == "Fillet") { ?>
"; } If ($_SESSION['_Mat1'] == "ON" ) { ?>
"; } echo "
\"\"
"; echo "
"; if ($prtit == 3 ) { $profil = @$_GET['file']; echo " \"\"
\"\""; echo "
"; } else { echo " \"\" "; } echo "
"; // return to same page $_SESSION[pagex5] = $page1; echo " Larger Sample
"; $profil = $_SESSION['CURRENT_PROFILE']; if ( $prtit == 3 ) { echo " Remove
Profile
"; } else { if ($profil != NULL) { echo " Profile
View
"; } } echo "
"; } echo "
"; $swit=$switch; $page1--; $page2++; if ($switch=="1") { if ($page1 < "1") { $page1 = "17"; } if ($page2 > "17") { $page2 = "1"; } } elseif ($switch=="2") { if ($page1 < "50") { $page1 = "63"; } if ($page2 > "63") { $page2 = "50"; } } elseif ($switch=="3") { if ($page1 < "90") { $page1 = "90"; } if ($page2 > "91") { $page2 = "90"; } $map5="works"; } echo "\"\"\"\"\"\"\n\n"; ?>
To comment or make suggestions about our web site please Email William McKay at
framer@fastpictureframing.com
Copyright 2006-2008 William McKay dba/ Gallery Support Services