<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
include ("../navigation/header.php");
include ("../navigation/store_sidebar.php");
	
	$s = $_GET['s'];
	$p = $_GET['p'];
	$error = $_SESSION['error'];
	$_SESSION['p']=$p;
	$_SESSION['s']=$s;
		
	if (isset($_GET['prev_button']) )
	   {
		 $_SESSION['p']= $_SESSION['p']-1;
	   }
		 
	if (isset($_GET['next_button']) )
	  {
		$_SESSION['p']=$_SESSION['p']+1;
	  }
	
		
	
	if ($s==1) {
		 $_SESSION['account_name'] = $_GET['account_name_text'];
	}
		
	if($s==2) {
	 $_SESSION['credit_cash'] = $_GET['cash_credit_group'];	
	 $_SESSION['AddressText1'] = $_GET['AddressText1'];
	 $_SESSION['AddressText2'] = $_GET['AddressText2'];
	 $_SESSION['PlaceText'] = $_GET['PlaceText'];
	 $_SESSION['AddressText3'] = $_GET['AddressText3'];
	 $_SESSION['PlaceText2'] = $_GET['PlaceText2'];
	 $_SESSION['CountryText'] = $_GET['CountryText'];
	};
	
	if($s==3) {
	 $_SESSION['ContactText1'] = $_GET['ContactText1'];
	 $_SESSION['CellText1'] = $_GET['CellText1'];
	 $_SESSION['emailText1'] = $_GET['emailText1'];
	 $_SESSION['ContactText2'] = $_GET['ContactText2'];
	 $_SESSION['CellText2'] = $_GET['CellText2'];
	 $_SESSION['emailText2'] = $_GET['emailText2'];
	 $_SESSION['PhoneText'] = $_GET['PhoneText'];
	 $_SESSION['FaxText'] = $_GET['FaxText'];
	 $_SESSION['VATText'] = $_GET['VATText'];
	 $_SESSION['WebText'] = $_GET['webText'];
	};
	
	if($s==4) {
	 $_SESSION['RemarksText'] = $_GET['RemarksText'];
	}
	
	?>
<!--style sheets-->
<link rel="stylesheet" type="text/css" href="../css/wizard.css" />
<!--reference to main.css removed-->
<link href="../css/wait.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="../window/dhtmlwindow.css" type="text/css" />
<link rel="stylesheet" href="../window/modal.css" type="text/css" />

<!--jscript-->
<script type="text/javascript" src="../window/dhtmlwindow.js"></script>
<script type="text/javascript" src="../window/modal.js"></script>
<script language="JavaScript" src="../jscript/cancel_confirmation.js"  type="text/javascript"></script>
<script language="JavaScript" src="../jscript/confirm_exit.js"  type="text/javascript"></script>
<script language="JavaScript" src="../jscript/show_hide_layers.js"  type="text/javascript"></script>
<script language="javascript" src="../jscript/no_spaces.js"></script>
</head>

<body>
<div class="main_frame">
  <table id="tableMain" width="595">
    <!--begin of tableMain-->
    <tr>
      <td ><div class="page_head_frame">
          <label class="label_page_head">New Supplier Account</label>
          &nbsp;&nbsp;
          <label class="label_page_head_2"><?php echo $_SESSION['account_name'] ?></label>
        </div>
        <br />
        <div class="wizard_paging_frame">
        <table align="left">
          <tr>
            <td><?php if ($_SESSION['p']==1) { ?>
              <div class="active_step_frame">
                <div class="active_step_head_label">&nbsp;1</div>
                <div class="active_step_label"><br />
                  <br />
                  <br />
                  Account name</div>
              </div>
              <?php } else { ?>
              <div class="de_active_step_frame">
                <div class="de_active_step_head_label">&nbsp;1</div>
                <div class="de_active_step_label"><br />
                  <br />
                  <br />
                  Account name</div>
              </div>
              <?php } ?></td>
            <td><?php if ($_SESSION['p']==2) { ?>
              <div class="active_step_frame">
                <div class="active_step_head_label">&nbsp;2</div>
                <div class="active_step_label"><br />
                  <br />
                  <br />
                  Address details</div>
              </div>
              <?php } else { ?>
              <div class="de_active_step_frame">
                <div class="de_active_step_head_label">&nbsp;2</div>
                <div class="de_active_step_label"><br />
                  <br />
                  <br />
                  Address details</div>
              </div>
              <?php } ?></td>
            <td><?php if ($_SESSION['p']==3) { ?>
              <div class="active_step_frame">
                <div class="active_step_head_label">&nbsp;3</div>
                <div class="active_step_label"><br />
                  <br />
                  <br />
                  Contact details</div>
              </div>
              <?php } else { ?>
              <div class="de_active_step_frame">
                <div class="de_active_step_head_label">&nbsp;3</div>
                <div class="de_active_step_label"><br />
                  <br />
                  <br />
                  Contact details</div>
              </div>
              <?php } ?></td>
            <td><?php if ($_SESSION['p']==4) { ?>
              <div class="active_step_frame">
                <div class="active_step_head_label">&nbsp;4</div>
                <div class="active_step_label"><br />
                  <br />
                  <br />
                  Notes</div>
              </div>
              <?php } else { ?>
              <div class="de_active_step_frame">
                <div class="de_active_step_head_label">&nbsp;4</div>
                <div class="de_active_step_label"><br />
                  <br />
                  <br />
                  Notes</div>
              </div>
              <?php } ?></td>
            <td><?php if ($_SESSION['p']==5) { ?>
              <div class="active_step_frame">
                <div class="active_step_head_label">&nbsp;5</div>
                <div class="active_step_label"><br />
                  <br />
                  <br />
                  Finish</div>
              </div>
              <?php } else { ?>
              <div class="de_active_step_frame">
                <div class="de_active_step_head_label">&nbsp;5</div>
                <div class="de_active_step_label"><br />
                  <br />
                  <br />
                  Finish</div>
              </div>
              <?php } ?></td>
          </tr>
        </table>
        </div>
        </td>
      <!--center of tableMain--> 
    </tr>
    <tr>
      <td><!--center of tableMain-->
        
        <?php 
	if ($_SESSION['p']==1) { include("supplierWiz1.php"); }
	if ($_SESSION['p']==2) { include("supplierWiz2.php"); }
	if ($_SESSION['p']==3) { include("supplierWiz3.php"); }
	if ($_SESSION['p']==4) { include("supplierWiz4.php"); }
	if ($_SESSION['p']==5) { include("supplierWiz5.php"); }
    ?></td>
    </tr>
  </table>
</div>
<?php include ('../navigation/side_bar.php'); ?>
</body>
