<!-- Begin Navbar -->
<div id="navtop">
  <div class="navbar navbar-inverse navbar-fixed-top"  style="background-color:#D64442; border:none">
    <div class="container-fluid">
      <!-- .btn-navbar is used as the toggle for collapsed navbar content -->
      <a href="index.php" class="navbar-brand" style="color:#fff"><span class="glyphicon glyphicon-home"></span> &nbsp;&nbsp;&nbsp;&nbsp; <small>VILLA CASTALIA</small></a>
      <a class="navbar-toggle" data-toggle="collapse" style="color:#fff" data-target=".navbar-collapse">
        <span class="glyphicon glyphicon-th-large"  aria-hidden="true"></span>
      </a>
      <div class="navbar-collapse collapse"> 
        <ul class="nav pull-right navbar-nav">
		<?if($user_type=='documentation_staff'):?>
		  <li><a href="index.php?pg=reservation&type=report_summary_report_of_buyers&dtype=lacking_notice" target="_blank" style="color:#fff"><span class="glyphicon glyphicon-flash" title="Postdated Checks Status"></span></a></li>
		 <?endif;?> 
		 <?if($user_type=='assistant_accountant' || $user_type=='admin'):?>
		  <li><a href="index.php?pg=cheque_for_clearing&type=cheque_for_clearing" target="_blank" style="color:#fff"><span class="glyphicon glyphicon-credit-card" title="Cheque for Clearing"></span></a></li>
		 <?endif;?> 
		  <li>&nbsp;&nbsp;&nbsp;&nbsp;</li>		
         
		 
		 
<?php if($user_type=="assistant_accountant"):?>		 
		<li><a href="index.php?pg=notifications&type=notifications_accounting1" target="_blank" style="color:#fff"><span class="glyphicon glyphicon-bell" title="Notifications"></span></a></li>
<?php elseif($user_type=="accountant"):?>			
		<li><a href="index.php?pg=notifications&type=notifications_accounting2" target="_blank" style="color:#fff"><span class="glyphicon glyphicon-bell" title="Notifications"></span></a></li>
<?php elseif($user_type=="accounting_officer" || $user_type=="admin"):?>	
		<li>
			<div class="dropdown" style="padding:0; margin:0; padding-top:8px">
			  <button class="btn btn-danger dropdown-toggle"  data-toggle="dropdown"><span class="glyphicon glyphicon-bell dropdown-toggle" data-toggle="dropdown" title="Notifications"></span>&nbsp;&nbsp;&nbsp;
			  <span class="caret"></span></button>
			  <ul class="dropdown-menu" >
			    <li><a href="index.php?pg=notifications&type=notifications_accounting1" target="_blank" style="color:#000" title="Past Dues">Past Dues</a></li>
				  <li><a href="index.php?pg=notifications&type=notifications_accounting2" target="_blank" style="color:#000" title="Overpayments">Overpayments</a></li>
				<?php if($user_type=="admin"):?>	
				  <li><a href="index.php?pg=notifications&type=notifications_admin" target="_blank" style="color:#000" title="Discrepancy Alert on Equity">Discrepancy Alert on Equity</a></li> 
				  <li><a href="index.php?pg=notifications&type=notifications_with_balance" target="_blank" style="color:#000" title="Discrepancy Alert on Releases to Broker">Discrepancy Alert on Releases to Broker</a></li> 
				<?php endif; ?>	
			  </ul>
			</div>
		</li>		
<?php elseif($user_type=="liaison"):?>			
		<li><a href="index.php?pg=notifications&type=notifications_liaison" target="_blank" style="color:#fff"><span class="glyphicon glyphicon-bell" title="Notifications"></span></a></li>
		 
<?php elseif($user_type=="documentation_staff"):?>		 
		<li><a href="index.php?pg=notifications&type=notifications_documentation1" target="_blank" style="color:#fff"><span class="glyphicon glyphicon-bell" title="Notifications"></span></a></li>			
<?php elseif($user_type=="documentation_supervisor"):?>		 
		<li><a href="index.php?pg=notifications&type=notifications_documentation2" target="_blank" style="color:#fff"><span class="glyphicon glyphicon-bell" title="Notifications"></span></a></li>					
<?php endif?>		  
		  <li>&nbsp;&nbsp;&nbsp;&nbsp;</li>
		  
		  <li><a href="logout.php" style="color:#fff"><span class="glyphicon glyphicon-off" title="Logout"></span></a></li>
          <li>
			
            <a href="#" style="color:#fff"><!--<span class="badge" style="background-color:#000">2</span>-->&nbsp;
			 
			<span class="glyphicon glyphicon-user"></span> <?=$_SESSION['castalia_firstname'];?></a>
          </li> 
        </ul>
      </div>		
    </div>
  </div><!-- /.navbar -->
  
   
			 
</div>

	
	
 	  	
<!-- subnav here -->
<?if(isset($_GET['pg']) && strip_tags($_GET['pg'])!=""):?>
<div class="navbar subnav navbar-fixed-top" role="navigation">
    <div class="navbar-inner">
        <div class="container-fluid"> 
			<div class="row">
				<div class="col-xs-6 col-sm-6">
				<? if($type=="buyer_status_monitoring" || $type=="buyer_status_folder_pagibig" || $type=="buyer_status_folder_bank" || $type=="report_buyer_status_folder_pagibig" || $type=="report_buyer_status_folder_bank" || $type=="report_summary_po_to_contractor" || $type=="report_buyer_house_renovation_monitoring" || $type=="report_buyer_status_monitoring"  || $type=="report_buyer_employment_type2"){?>
				
				<? $pagehead = "status";?>
				<h3><?=str_replace("_"," ",strtoupper($pagehead))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
				<!--<h3><?=str_replace("_"," ",strtoupper($action_form))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=ucwords($action)?></small></h3>-->
				
				<?}else if($type=="hold"){?>
				<h3><?=str_replace("_"," ",strtoupper("CHECK HOLD"))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
				
				<?}else if($type=="cleared"){?>
				<h3><?=str_replace("_"," ",strtoupper("CHECK CLEARED"))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
				
				<?}else if($type=="no_check"){?>
				<h3><?=str_replace("_"," ",strtoupper("NO CHECK"))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
				
				<?}else if($type=="check_for_replacement"){?>
				<h3><?=str_replace("_"," ",strtoupper("CHECK FOR REPLACEMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
				
				<?}else if($type=="due_date"){?>
				<h3><?=str_replace("_"," ",strtoupper("DUE DATE"))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
				
				<?}else if($type=="no_payment"){?>
				<h3><?=str_replace("_"," ",strtoupper("NO PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
				
				<?}else if($type=="returned"){?>
				<h3><?=str_replace("_"," ",strtoupper("RETURNED CHECK"))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
				
				<?}else if($type=="past_due"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAST DUE"))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
				
				<?}else if($type=="report_buyer_employment_type"){?>
				<h3><?=str_replace("_"," ",strtoupper("RESERVATION"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Analysis Report</small></h3>

				<?}else if($type=="monthly_sales_reservation"){?>
				<h3><?=str_replace("_"," ",strtoupper("RESERVATION"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Monthly Sales Reservation Report</small></h3>

				<?}else if($type=="report_reservation"){?>
				<h3><?=str_replace("_"," ",strtoupper("RESERVATION"))?>&nbsp;<small style="font-size:12px; color:#3891C4">List</small></h3>

				<?}else if($type=="notifications_accounting1"){?>
				<h3><?=str_replace("_"," ",strtoupper("NOTIFICATIONS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Past Dues</small></h3>


				<?}else if($type=="notifications_accounting2"){?>
				<h3><?=str_replace("_"," ",strtoupper("NOTIFICATIONS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Overpayments to Contractors and Brokers</small></h3>

				<?}else if($type=="notifications_admin"){?>
				<h3><?=str_replace("_"," ",strtoupper("NOTIFICATIONS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Discrepancy Alert on Equity</small></h3>
				
				<?}else if($type=="notifications_with_balance"){?>
				<h3><?=str_replace("_"," ",strtoupper("NOTIFICATIONS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Discrepancy Alert on Releases to Broker</small></h3>


				<?}else if($type=="permits_and_licenses"){?>
				<h3><?=str_replace("_"," ",strtoupper("STATUS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Permits and Licenses</small></h3>
				
				<?}else if($type=="report_summary_status_of_permits"){?>
				<h3><?=str_replace("_"," ",strtoupper("STATUS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Summary Status of Permits</small></h3>
				
				<?}else if($type=="construction_and_utilities"){?>
				<h3><?=str_replace("_"," ",strtoupper("STATUS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Construction and Utilities</small></h3>

				<?}else if($type=="conversion"){?>
				<h3><?=str_replace("_"," ",strtoupper("STATUS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Conversion – Monitoring</small></h3>

					<?}else if($type=="conversion_details"){?>
				<h3><?=str_replace("_"," ",strtoupper("STATUS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Conversion – Details</small></h3>


				<?}else if($type=="status_of_accounts_for_conversion"){?>
				<h3><?=str_replace("_"," ",strtoupper("STATUS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Status of Accounts for Conversion</small></h3>
 

				<?}else if($type=="releases_to_contractor"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Releases to Contractor</small></h3>

				<?}else if($type=="releases_to_broker"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Releases to Broker</small></h3>
				
				<?}else if($type=="releases_to_broker_for_wht"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Releases to Broker</small></h3>
				
				<?}else if($type=="partial_commission_releases_schedule"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Releases of Partial Commission</small></h3>

				<?}else if($type=="report_partial_commission_releases_schedule"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Releases of Partial Commission</small></h3>

				
				<?}else if($type=="report_releases_to_contractor"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Releases to Contractor for EWT</small></h3>

				<?}else if($type=="report_releases_to_broker_for_wht"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Releases of Full Commission to Broker for EWT</small></h3>


				<?}else if($type=="payment_status_to_broker"){?>
				<h3><?=str_replace("_"," ",strtoupper("STATUS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Payment Status to Broker</small></h3>


				<?}else if($type=="payment_status_to_contractor"){?>
				<h3><?=str_replace("_"," ",strtoupper("STATUS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Payment Status to Contractor</small></h3>

				<?}else if($type=="buyer_house_renovation_monitoring"){?>
				<h3><?=str_replace("_"," ",strtoupper("STATUS"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Buyer's House Improvement Monitoring</small></h3>
  

 				<?}else if($type=="postdated_pagibig_loan_amortization"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Postdated Checks for Pag-IBIG Loan Amortization</small></h3>


 				<?}else if($type=="postdated_pagibig_loan_amortization_details"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Postdated Checks for Pag-IBIG Loan Amortization</small></h3>
  

				<?}else if($type=="postdated_checks_received_past_due"){?>
				<h3><?=str_replace("_"," ",strtoupper("PAYMENT"))?>&nbsp;<small style="font-size:12px; color:#3891C4">Postdated Checks Received for Equity</small></h3>
  
				<?}else{?>



						<?php if($type=="brokeragent"){ ?>
								<h3><?=str_replace("_"," ",strtoupper($page))?>&nbsp;<small style="font-size:12px; color:#3891C4">Account Details of Broker & Agent</small></h3>
						<?php }else if($type=="take_out_accounts"){ ?>
								<h3><?=str_replace("_"," ",strtoupper($page))?>&nbsp;<small style="font-size:12px; color:#3891C4">Take-Out Accounts</small></h3>		

						<?php }else if($type=="tin"){ ?>
								<h3><?=str_replace("_"," ",strtoupper($page))?>&nbsp;<small style="font-size:12px; color:#3891C4">Tin of Supplier</small></h3>		
						<?php }else if($type=="units"){ ?>
								<h3><?=str_replace("_"," ",strtoupper($page))?>&nbsp;<small style="font-size:12px; color:#3891C4">Block & Lot</small></h3>				
						<?php }else{ ?>
								<h3><?=str_replace("_"," ",strtoupper($page))?>&nbsp;<small style="font-size:12px; color:#3891C4"><?=$action_form?></small></h3>
						<?php } ?>	
				

				<?}?>
				</div>
				<div class="text-left left col-xs-6 col-sm-6">
				<ul class="pager subnav-pager "  style="text-align:left"> 
					<div class="btn-group-wrap"> 
						<!-----SHOW ACTION BUTTONS------->
						<? if($action=="" && $type!='conversion' && $type!='conversion_details' && $type!='status_of_accounts_for_conversion' && $type!='permits_and_licenses' && $type!='report_summary_status_of_permits'  && $type!='construction_and_utilities' && $type!='releases_to_broker' && $type!='report_releases_to_broker' && $type!='releases_to_broker_for_wht' && $type!='partial_commission_releases_schedule' && $type!='report_releases_to_broker_for_wht'  && $type!='report_releases_to_contractor' && $type!='payment_status_to_broker' && $type!='report_payment_status_to_broker'  && $type!='payment_status_to_contractor' && $type!='report_payment_status_to_contractor' && $type!='buyer_payment_monitoring' && $type!='buyer_house_renovation_monitoring'   && $type!='buyer_status_monitoring'  && $type!='buyer_status_folder_pagibig'   && $type!='buyer_status_folder_bank' && $type!='postdated_checks_status' && $type!='postdated_checks_received' && $type!='postdated_checks_received_past_due' && $type!='report_buyer_payment_monitoring' && $type!='report_buyer_payment_monitoring_on_equity' && $type!='report_buyer_payment_monitoring_other_payables' && $type!='report_buyer_status_folder_pagibig'  && $type!='report_buyer_status_folder_bank' && $type!='report_buyer_house_renovation_monitoring' && $type!='report_summary_po_to_contractor' && $type!='report_buyer_status_monitoring' && $type!='monthly_sales_reservation' && $type!='sales_report_per_broker' && $type!='sales_report_per_agent' && $type!='report_monitoring_folders' && $type!='report_summary_report_of_buyers' && $type!='schedule_of_loan_folders'  
							&& $type!='report_schedule_of_loan_folders' && $type!='take_out_accounts' && $type!='reserved_lots' && $type!='cheque_for_clearing' && $type!='cleared'  && $type!='hold' && $type!='no_check' && $type!='check_for_replacement' && $type!='due_date' && $type!='no_payment' && $type!='returned' && $type!='notifications'  && $type!='notifications_accounting1'  && $type!='notifications_accounting2' && $type!='notifications_admin' && $type!='notifications_with_balance' && $type!='notifications_documentation1'  && $type!='notifications_documentation2' && $type!='notifications_liaison' && $type!='notifications_accounting_officer' && $type!='report_buyer_employment_type' && $type!='report_reservation' 
							&& $type!='postdated_pagibig_loan_amortization' && $type!='postdated_pagibig_loan_amortization_details' && $type!='report_partial_commission_releases_schedule'
						): ?>
						
							<? if($type=='reservation' && $user_type=='assistant_accountant'):?>

							<?else:?>
								<?php if($type!="adjustment_pricelist" && $type!="buyer_profile" && $type!="employee_type"): ?>
										 
												<a href="index.php?pg=<?=$page?>&type=<?=$type?>&action=create"><button type="button" title="Add New" class="btn btn-success glyphicon glyphicon-file"></button></a> 
 
								<?php elseif(($type=="buyer_profile" && $user_type=="admin") || ($type=="employee_type" && $user_type=="admin")): ?>				

												<a href="index.php?pg=<?=$page?>&type=<?=$type?>&action=create"><button type="button" title="Add New" class="btn btn-success glyphicon glyphicon-file"></button></a> 
 
								<?php endif;?>
							<?endif;?>
						
							<? if($type=='reservation' && $user_type=='documentation_supervisor'){?>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
							<!--<a href="index.php?pg=<?=$page?>&type=monitoring_folders&action=batch_update"><button type="button" title="Monitoring of Folders to be Delivered Batch Update" class="btn btn-success glyphicon glyphicon-folder-open"></button></a> -->
							<?}?>
						<? elseif($action=="" && ($type=='postdated_checks_status') ):?>	
							<a href="index.php?pg=reservation&type=report_summary_report_of_buyers&dtype=lacking_notice"><button type="button" title="Postdated Checks Status" class="btn btn-primary glyphicon glyphicon-list"></button></a>
						<? elseif($action=="" && ($type=='report_buyer_payment_monitoring' || $type=='status_of_accounts_for_conversion' || $type=='report_summary_status_of_permits' || $type=='report_buyer_payment_monitoring_on_equity' || $type=='report_buyer_payment_monitoring_other_payables' || $type=='report_buyer_house_renovation_monitoring' || $type=='report_summary_po_to_contractor' || $type=='report_buyer_status_monitoring' ||  $type=='report_buyer_status_folder_pagibig' ||  $type=='report_buyer_status_folder_bank' || $type=='monthly_sales_reservation' || $type=='sales_report_per_broker' || $type=='sales_report_per_agent' || $type=='report_monitoring_folders' || $type=='report_summary_report_of_buyers' || $type=='report_schedule_of_loan_folders' || $type=='take_out_accounts' || $type=='report_buyer_employment_type' || $type=='report_releases_to_broker' || $type=='report_releases_to_broker_for_wht' || $type=='report_releases_to_contractor' || $type=='report_reservation' || $type=='report_partial_commission_releases_schedule')): 

							?>
						
						<!--<a href="report/<?=$type?>_print.php" target="_blank"><button type="button" title="Print" class="btn btn-success glyphicon glyphicon-print"></button></a> -->
						<?php if($dtype!='lacking_notice'){ ?>
						<a href="#" target="_blank" id="print_report"><button type="button" title="Print" class="btn btn-info glyphicon glyphicon-print"></button></a> 
						<?}?>
						
						<?php elseif($action=="" && $type=='cheque_for_clearing'): ?>
 							<?php if($user_type=="admin"): ?>		
 								<a href="#" target="_blank" id="print_report"><button type="button" title="Print" class="btn btn-info glyphicon glyphicon-print"></button></a> 
 							<?php endif; ?>
 						


						<?php elseif($action=="" && $type=='postdated_checks_received'): ?>
						<button id="add_new_postdate_checks_equity" type="button" title="Add New" class="btn btn-success glyphicon glyphicon-file"></button>
			 
						 
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" target="_blank" id="print_report"><button type="button" title="Print" class="btn btn-info glyphicon glyphicon-print"></button></a><span style="text-align:right; float:right"><small><b>Search: </b></small><input type="text" id="myInputTextField"></span>

					<?php elseif($action=="" && $type=='postdated_checks_received_past_due'): ?>
						<button id="add_new_postdate_checks_equity_past_due" type="button" title="Add New" class="btn btn-success glyphicon glyphicon-file"></button>
			 
						 
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" target="_blank" id="print_report"><button type="button" title="Print" class="btn btn-info glyphicon glyphicon-print"></button></a> 
						      <span style="text-align:right; float:right"><small><b>Search: </b></small><input type="text" id="myInputTextField"></span>


					<?php elseif($action=="" && $type=='conversion_details'): ?>
							  
			 
			 
<a href="#" target="_blank" id="print_report"><button type="button" title="Print" class="btn btn-info glyphicon glyphicon-print"></button></a> 

						<?php elseif($action=="" && $type=='postdated_pagibig_loan_amortization_details'): ?>
							 
						<button onclick="callModal('.postdated_pagibig_loan_amortization_details_modal');" type="button" title="Add New" class="btn btn-success glyphicon glyphicon-file"></button>
			 
						 
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" target="_blank" id="print_report"><button type="button" title="Print" class="btn btn-info glyphicon glyphicon-print"></button></a> 
						      <span style="text-align:right; float:right"><small><b>Search: </b></small><input type="text" id="myInputTextField"></span>




						<?php elseif($action=="create" || $action=="edit" || $action=="transfer" || $action=="batch_update"): ?>
						<button type="button" id="button_save" title="Save" class="btn btn-success glyphicon glyphicon-floppy-disk"></button>


 



<?php if($type=="releases_to_contractor" && $action=="edit"): ?>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
<a href="#" target="_blank" id="print_report_contractor"><button type="button" title="Print" class="btn btn-info glyphicon glyphicon-print"></button></a> 
<?php endif; ?>

						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
						<button type="button" id="button_cancel" title="Cancel" class="btn btn-danger glyphicon glyphicon-remove"></button>
						<? elseif($action=="view"): ?>
							<?if($user_type=='assistant_accountant' && $type=='reservation'):?>
								<button type="button" id="button_back" title="Back to Listings" class="btn btn-primary glyphicon glyphicon-list"></button>
							<?else:?>
								<?php if($type=="pricelist" && $type!="adjustment_pricelist"): ?>
									<button type="button" onclick="updatePriceList(<?php echo $_REQUEST['id']?>)" title="Edit" class="btn btn-success glyphicon glyphicon-pencil"></button>
								<?php else: ?>
									<?php if($type!="adjustment_pricelist"): ?>
									<button type="button" id="button_edit" title="Edit" class="btn btn-success glyphicon glyphicon-pencil"></button>
									<?php endif; ?>
								<?php endif; ?>

								&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
								<button type="button" id="button_back" title="Back to Listings" class="btn btn-primary glyphicon glyphicon-list"></button>
							<?endif;?>
						<? endif; ?>
					 </div>         
				</ul>	
				</div>
			</div>
		</div>
	</div>
</div> 
<?endif;?> 
				
  <!-- //subnav -->
<input type="hidden" id="main_page" value="<?=$page?>">
<input type="hidden" id="main_action" value="<?=$action?>">
<input type="hidden" id="main_type" value="<?=$type?>">
<input type="hidden" id="main_id" value="<?=$mainid?>">