<?php

$SupplierID = '';
$SupplierName = '';
$Address = '';
$ContactNumber = '';
$AlternateContactNumber = '';
$EmailAddress = '';
$TIN = '';
$PAN = '';
$GSTNO = '';
$GSTRange = '';
$CollectrateAddress = '';
$UANumber = '';
$PaymentTerms = '';
$PaymentDays = '';
$PayableAT = '';
$Createdby = '';
$UpdatedBy = '';




if(!empty($supplier))
{
    foreach ($supplier as $uf)
    {
        $SupplierID = $uf->SupplierID;
        $SupplierName = $uf->SupplierName;
        $Address = $uf->Address;
        $ContactNumber = $uf->ContactNumber;
        $AlternateContactNumber = $uf->AlternateContactNumber;
        $EmailAddress = $uf->EmailAddress;
        $TIN = $uf->TIN;
        $PAN = $uf->PAN;
		$GSTNO = $uf->GSTNO;
        $GSTRange = $uf->GSTRange;
        $CollectrateAddress = $uf->CollectrateAddress;
        $UANumber = $uf->UANumber;
        $PaymentTerms = $uf->PaymentTerms;
        $PaymentDays = $uf->PaymentDays;
        $PayableAT = $uf->PayableAT;
        $Createdby = $uf->Createdby;
        $UpdatedBy = $uf->UpdatedBy;
    }
}


?>
<script LANGUAGE="JavaScript">
function printWindow() {
window.print(); 
}
</script>
<div class="content-wrapper">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <h1>
        <center>Supplier Details</center>
       
      </h1>
						<div class="col-md-offset-4 ">
    					<!--<input type="submit" class="btn btn-primary"  onclick="printWindow()"value="Print" />-->
						</div>
	</section>
    
    <section class="content">
    <div style="text-align:right;">
    <a href="<?php echo base_url() ?>supplierListing" class="btn btn-info" value="Back"/>Back</a>
	</div>
	<br/>
        <div class="row">
            <!-- left column -->
            <div class="col-md-12">
              <!-- general form elements -->
                
                
                
                <div class="box box-primary">
                    <div class="box-header">

                       <center><h3 class="box-title">View Supplier Details</h3></center>
                    </div><!-- /.box-header -->
                    <!-- form start -->
                    
                    <!--<form role="form" action="<?php echo base_url() ?>editsupplier" method="post" id="editsupplier" role="form">-->
                        <div class="box-body">
                            <div class="row">
							<table class="table table-bordered 2px">
                                <div class="col-md-6 col-md-offset-3">                                
                                    <div class="form-group">
									 
									<tbody>
									<tr>
									<td><label for="SupplierName">Suplier ID</label></td>
                                        <td><?php echo $SupplierID; ?></td>
									</tr>
									
										
										<tr>
										<td><label for="SupplierName">Suplier Name  </label></td>
                                        <td><?php echo $SupplierName; ?></td>						
										</tr>
                                    
                                    
                                
                                
                                    <tr>
                                      <td>  <label for="Address">Address</label></td>
                                        <td><?php echo $Address;?></td>
                                    </tr>
                               
                            
                            
									<tr>
                                      <td>  <label for="ContactNumber">Contact Number</label></td>
                                         <td> <?php echo $ContactNumber?></td>
                                    </tr>
									<tr>
                                      <td>  <label for="AlternateContactNumber">Alternate Contact Number</label></td>
                                       <td> <?php echo $AlternateContactNumber?></td>
                                   </tr>
                            
                            
									<tr>
								
										<td><label for="EmailAddress">Email Address</label></td>
                                        <td> <?php echo $EmailAddress?></td>
                                   
									</tr>
								
                                    <tr>
                                     <td>   <label for="TIN">TIN</label></td>
                                      <td>  <?php echo $TIN; ?></td>
                                    </tr>
                                
									<tr>
                                       <td> <label for="PAN">PAN</label></td>
                                        <td><?php echo $PAN; ?></td>
                                    </tr> 
									<tr>
                                       <td> <label for="GSTNO">GST NO</label></td>
                                        <td><?php echo $GSTNO; ?></td>
                                    </tr> 
									<tr>
                                       <td> <label for="GSTRange">GST Range</label></td>
                                        <td><?php echo $GSTRange; ?></td>
                                    </tr> 
									<tr>
                                       <td> <label for="CollectrateAddress">Collectrate Address</label></td>
                                        <td><?php echo $CollectrateAddress; ?></td>
                                    </tr> 
									<tr>
                                       <td> <label for="UANumber">UA Number</label></td>
                                        <td><?php echo $UANumber; ?></td>
                                    </tr> 
									<tr>
                                       <td> <label for="PaymentTerms">Payment Terms</label></td>
                                        <td><?php echo $PaymentTerms; ?></td>
                                    </tr>
									<tr>
                                       <td> <label for="PaymentDays">Payment Days</label></td>
                                        <td><?php echo $PaymentDays; ?></td>
                                    </tr> 
									<tr>
                                       <td> <label for="PayableAT">Payable AT</label></td>
                                        <td><?php echo $PayableAT; ?></td>
                                    </tr>
									<tr>
                                       <td> <label for="PayableAT">Created By</label></td>
                                        <td><?php echo $Createdby; ?></td>
                                    </tr>
									<tr>
                                       <td> <label for="PayableAT">Updated By</label></td>
                                        <td><?php echo $UpdatedBy; ?></td>
                                    </tr> 
									 
									
									
									
									
                                   
								   </tbody>
								   </div>
                                </div>
                            </div>
							</table>
                        </div><!-- /.box-body -->
    
                        <div class="box-footer">
                            <!--<input type="submit" class="btn btn-primary" onclick="demo()" value="Submit" />
                            <input type="reset" class="btn btn-default" value="Reset" />-->
                        </div>
                    </form>
                </div>
            </div>
            <div class="col-md-4">
                <?php
                    $this->load->helper('form');
                    $error = $this->session->flashdata('error');
                    if($error)
                    {
                ?>
                <div class="alert alert-danger alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('error'); ?>                    
                </div>
                <?php } ?>
                <?php  
                    $success = $this->session->flashdata('success');
                    if($success)
                    {
                ?>
                <div class="alert alert-success alert-dismissable">
                    <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
                    <?php echo $this->session->flashdata('success'); ?>
                </div>
                <?php } ?>
                
                <div class="row">
                    <div class="col-md-12">
                        <?php echo validation_errors('<div class="alert alert-danger alert-dismissable">', ' <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button></div>'); ?>
                    </div>
                </div>
            </div>
        </div>    
    </section>
</div>

<script src="<?php echo base_url(); ?>assets/js/editUser.js" type="text/javascript"></script>