<h1 class="page-title"> Company Settings</h1>
<!-- CONTENT -->
<div class="row">
	<div class="col-md-12">
		<!-- BEGIN PROFILE SIDEBAR -->
		<div class="profile-sidebar">
			<!-- PORTLET MAIN -->
			<div class="portlet light profile-sidebar-portlet ">
				<!-- SIDEBAR USERPIC -->
				<div class="profile-userpic">
					<img src="<?php echo showCompanyImage($_SESSION['user_id'], "user_id"); ?>" class="img-responsive" alt="" /> 
				</div>
				<!-- END SIDEBAR USERPIC -->
				<!-- SIDEBAR USER TITLE -->
				<div class="profile-usertitle">
					<div class="profile-usertitle-name"> <?php echo getCompanyData($_SESSION["user_id"], "user_id", "name"); ?> </div>
				</div>
				<!-- END SIDEBAR USER TITLE -->
				<!-- SIDEBAR MENU -->
				<div class="profile-usermenu">
					<ul class="nav">
						<li>
							<a href="/profile/edit">
							<i class="icon-settings"></i> Account Settings </a>
						</li>
						<li class="active">
							<?php if(getCompany($_SESSION['user_id']) == 0 || (getCompany($_SESSION['user_id']) <> 0 && getCompanyPosition($_SESSION['user_id']) == 1)){?>
							<a href="/company/edit">
							<i class="icon-info"></i> Company Settings </a>
							<?php }elseif(getCompany($_SESSION['user_id']) <> 0 && getCompanyPosition($_SESSION['user_id']) == 2){?>
							<a href="/company">
							<i class="icon-info"></i> Company Information </a>
							<?php } ?>	
						</li>
					</ul>
				</div>
				<!-- END MENU -->
			</div>
			<!-- END PORTLET MAIN -->
		</div>
		<!-- END BEGIN PROFILE SIDEBAR -->
		<!-- BEGIN PROFILE CONTENT -->
		<div class="profile-content">
			<div class="row">
				<div class="col-md-12">
					<div class="portlet light ">
						<div class="portlet-title tabbable-line">
							<ul class="nav nav-tabs">
								<li class="active">
									<a href="/company">Company Information</a>
								</li>
							</ul>
						</div>
						<div class="portlet-body">
							<div class="tab-content">
								<!-- PERSONAL INFO TAB -->
								<div class="tab-pane form active">
									<div class="form-horizontal form-row-seperated">
										<div class="form-body">
											<div class="form-group">
												<label class="control-label col-md-3">Business Registration Certificate</label>
												<div class="col-md-9">
													<img style="width:30%; height:auto;" class="img-responsive" src="<?php echo showCompanyRegCertImage($_SESSION['user_id'], "user_id");?>" alt="" />
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-3">Company Name</label>
												<div class="col-md-9">
													<p class=" form-control-static"><?php echo getCompanyData($_SESSION["user_id"], "user_id", "name"); ?></p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-3">Registration No</label>
												<div class="col-md-9">
													<p class=" form-control-static"><?php echo getCompanyData($_SESSION["user_id"], "user_id", "reg_no"); ?></p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-3">Tax No</label>
												<div class="col-md-9">
													<p class=" form-control-static"><?php echo getCompanyData($_SESSION["user_id"], "user_id", "tax_no"); ?></p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-3">Company No</label>
												<div class="col-md-9">
													<p class=" form-control-static"><?php echo getCompanyData($_SESSION["user_id"], "user_id", "company_no"); ?></p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-3">Company Fax</label>
												<div class="col-md-9">
													<p class=" form-control-static"><?php echo getCompanyData($_SESSION["user_id"], "user_id", "company_fax"); ?></p>
												</div>
											</div>
											<div class="form-group">
												<label class="control-label col-md-3">Company Address</label>
												<div class="col-md-9">
													<p class=" form-control-static"><?php echo getCompanyData($_SESSION["user_id"], "user_id", "address") . ", " . getCompanyData($_SESSION["user_id"], "user_id", "zip") . " " . getCompanyData($_SESSION["user_id"], "user_id", "city") . ", " . getCompanyData($_SESSION["user_id"], "user_id", "state") . ", " . getCompanyData($_SESSION["user_id"], "user_id", "country"); ?></p>
												</div>
											</div>
											<div class="form-group ">
												<label class="control-label col-md-3">Contact Person</label>
												<div class="col-md-9">
													<p class=" form-control-static"><?php echo getCompanyData($_SESSION["user_id"], "user_id", "contact_person"); ?></p>
												</div>
											</div>
											<div class="form-group ">
												<label class="control-label col-md-3">Contact Person No</label>
												<div class="col-md-9">
													<p class=" form-control-static"><?php echo getCompanyData($_SESSION["user_id"], "user_id", "contact_person_no"); ?></p>
												</div>
											</div>
										</div>
									</div>
								</div>
								<!-- END PERSONAL INFO TAB -->
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<!-- END PROFILE CONTENT -->
	</div>
</div>