<? ob_start();
session_start();
require_once("../dbconnect.php");
if($_GET['catid']!=""){
 $view="Select * from tblcategories where category_id=".$_GET['catid']; 
 $exeview=mysql_query($view);
 $viewrow=mysql_fetch_array($exeview);
 $category=$viewrow['categoryname']; 
 }
if($_GET['subcat']!=""){ 
 $view1="Select * from tblsubcategories where subcat_id=".$_GET['subcat']; 
 $exeview1=mysql_query($view1);
 $viewrow1=mysql_fetch_array($exeview1);
 $subsubcategory=$viewrow1['subcat_name'];
 }

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Welcome to Sir Box and Plastics</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="stylesheet.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function getzing()
{

for (var i=0; i < document.form.fieldtype.length; i++)
{
if (document.form.fieldtype[i].checked)
{
var rad_val1 = document.form.fieldtype[i].value;
}
}
var zing='fields.php?&filedtype='+rad_val1+'&maincatid='+<?=$_GET['maincatid']?>+'&catid='+<?=$_GET['catid'] ?>+'&subcat='+<?=$_GET['subcat']?>;
document.getElementById('iframe1').src=zing;
}
</script>



</head>
<body>
<table width="1003" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td><? require_once("header.php"); ?></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">



              <tr>
                <td><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                    <tr>
                      <td height="30" class="cate_pro">
				Product in Category: "<? echo $category?>  <? echo $subcategory ?> - <? echo $subsubcategory ?>"</td>
                      <td>&nbsp;</td>
                      <td class="index_text" align="right">&nbsp;</td>
                      <td width="20">&nbsp;</td>
                    </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td width="100%" valign="top" style="padding-right:1px;">
	
	
	
	
	
					<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F2F1EE">
                        <tr>
                          <td height="40" colspan="6" align="center" bgcolor="#D7D6CC" class="cate_pro">Select Fields </td>
                          </tr>
						     <tr>
                          <td width="10%" height="30" align="left">&nbsp;</td>
                          <td width="6%">&nbsp;</td>
                          <td width="16%"><label></label></td>
                          <td  colspan="3">
						  <form  name="form" method="post" action="" enctype="multipart/form-data" onsubmit="return validation(this.file);">
						  <table width="37%" border="0" cellspacing="0" cellpadding="0">
                                  <tr>
                                    <td width="6%" align="left" valign="middle"><input type="radio" name="fieldtype"  id="fieldtype" value="1"  onchange="getzing();" /></td>
                                    <td align="left" valign="middle" class="small">Diamond Options</td>
                                    <td align="left" valign="middle"><input type="radio" name="fieldtype" id="fieldtype" value="2" onchange="getzing();" /></td>
                                    <td align="left" valign="middle" class="small">Jewelry Options</td>
                                    </tr>
                                </table>
									</form> 
								</td>
                        </tr>
						 

					                        <tr>
                          <td height="25" align="left">&nbsp;</td>
                          <td>&nbsp;</td>
                          <td align="left">&nbsp;</td>
                          <td colspan="3">&nbsp;</td>
                        </tr>

						
                        <tr>
                          <td height="25" align="left">&nbsp;</td>
                         
                          <td colspan="5"> <iframe src="fields.php?fieldtype=&maincatid=<?=$_GET['maincatid']?>&catid=<?=$_GET['catid'] ?>&subcat=<?=$_GET['subcat']?>" width="100%" height="500" frameborder="0" scrolling="no" name="iframe1" id="iframe1"></iframe></td>
                        </tr>
                        <tr>
                          <td height="25" align="left"> </td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td align="center">
						
       
		</td>
                          <td width="68">&nbsp;</td>
                          <td width="68">&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="25" align="left">&nbsp;</td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td colspan="3">&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="25" align="left">&nbsp;</td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td colspan="3">&nbsp;</td>
                        </tr>
                        <tr>
                          <td height="25" align="left">&nbsp;</td>
                          <td>&nbsp;</td>
                          <td>&nbsp;</td>
                          <td colspan="3">&nbsp;</td>
                        </tr>
                      </table>
				
					  
					  </td>
                    <td width="0%" valign="top"><!---->
                      
                      <!----></td>
                  </tr>
                </table></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
              </tr>
            </table></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>

          <tr>
            <td><? require_once("footer.php"); ?></td>
          </tr>
          <tr>
            <td height="200">&nbsp; </td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
