<?php
include('iframe-header.php');
?>
 <?php
$maintitle="Branch Details";
$page="view-branch.php";
$table="tbl_branch";
$field_id="branchid";
 
$content_id=$_REQUEST['branchid']; 

if(isset($_REQUEST['start'])){
$start=$_REQUEST['start']-1;
}
else {
$start=0;
}
?>

   
<section class="content">
    
     <div class="row">
 <!-- Add / Edit / Delete --> 
          <div class="col-sm-12"> 
          <div class="box box-success">
         <div class="box-header">
              <i class="fa fa-building-o"></i>
              <h3 class="box-title"><?php echo $maintitle;?></h3>
              <div class="box-tools pull-right">
                <div class="btn-group">
                <a href="<?php echo $page;?>"><button class="btn btn-danger btn-flat">&nbsp; <?php echo AL_LISTALL;?> <?php echo $maintitle;?></button></a>
                   
                </div>
              </div>
            </div> 
            </div> 
            </div>
<?php 
$contentdetails=$helper->select($table,"*",array($field_id=>$content_id));
?>
 <!-- Add / Edit / Delete --> 


     <div class="col-md-10">
          <!-- Horizontal Form -->
          <div class="box box-info">
            <div class="box-header with-border">
              <h3 class="box-title"> <?php echo $maintitle;?></h3>
            </div>
             
            <!-- /.box-header -->
            <!-- form start -->
            <form class="details form-horizontal" action="" method="post" enctype="multipart/form-data">
             
              <div class="box-body">
              
                
                <div class="form-group">
                   
                  <label for="inputEmail3" class="col-sm-3 control-label">Branch :</label>

                  <div class="col-sm-8">
                  <?php echo $contentdetails[0]['branchname'];?>
                   </div>
                </div>
                <div class="form-group">
                  <label for="inputEmail3" class="col-sm-3 control-label">Branch of : </label>

                  <div class="col-sm-8">
                    <?php echo $contentdetails[0]['branchname'];?>
                  </div>
                </div>
                 <div class="form-group">
                  <label for="inputEmail3" class="col-sm-3 control-label">Contact Person :</label>
                  <div class="col-sm-8">
                    <?php echo $contentdetails[0]['firstname'];?>
                  </div>
                </div>
                
                <div class="form-group">
                  <label for="inputPassword3" class="col-sm-3 control-label">Email Address :</label>

                  <div class="col-sm-8">
                   <?php echo $contentdetails[0]['email'];?>
                  </div>
                </div>
               <div class="form-group">
                <label for="inputEmail3" class="col-sm-3 control-label">Phone :</label>
				<div class="col-sm-8">
                <?php echo $contentdetails[0]['phone'];?>
                </div>
                </div>
                <div class="form-group">
                <label for="inputEmail3" class="col-sm-3 control-label">Mobile :</label>
				<div class="col-sm-8">
                <?php echo $contentdetails[0]['mobile'];?>
                </div>
                </div>
                <div class="form-group">
                <label for="inputEmail3" class="col-sm-3 control-label">Address :</label>
				<div class="col-sm-8">
                <?php echo $contentdetails[0]['address'];?>
                </div>
                </div>
                <div class="form-group">
                <label for="inputEmail3" class="col-sm-3 control-label">City :</label>
				<div class="col-sm-8">
                <?php echo $contentdetails[0]['city'];?>
                </div>
                </div>
                 <div class="form-group">
                <label for="inputEmail3" class="col-sm-3 control-label">Country :</label>
				<div class="col-sm-8">
                 <?php
                  $countries= $helper->select("tbl_country","countryid,country",array());				   
				  ?>
                   
                  <?php
				  foreach($countries as $country){
				  ?>
                  <?php if($country['countryid']==$contentdetails[0]['country']){ 
				  echo $country['country'];
				  }?>  
                   
                  <?php
				  }
				  ?>
                   
                </div>
                </div>
               
                
                <div class="form-group">
                <label for="inputEmail3" class="col-sm-3 control-label">Zipcode :</label>
				<div class="col-sm-8">
                <?php echo $contentdetails[0]['zipcode'];?>
                </div>
                </div>
                
              </div>
              </div>
              
            </form>
          </div>
         
        </div>
        </div>
        

    </section>
   <?php
   include('iframe-footer.php');
   ?>