<?php

// gold.php
// adapting body for pages displaying the /numbers/<RANGE>/gold.php pages

?>
		<div class="main_column">
		<!-- ----------------- -->
		<!-- BEGIN MAIN COLUMN -->
		<!-- ----------------- -->
			
<?php abs_inc_fragment('numbers_gold_main1'); ?>

<?php if (isset($abs_nc_name)) : // This page has an areacode selector on it ?>
<b>To get started</b> <a href="#" onclick="abs_show_sidepage('sp_8', 80, 260); return false;" class="popup">choose a Local Area Code</a>.<br><br>
<?php endif; ?>

<!-- <?=$abs_numberchooser_name;?> is a 3 column numberchooser -->
<?php
$xparams['cols'] 			= 3;
$xparams['showheader'] 		= 0;
$xparams['showborder'] 		= 0;
$xparams['showpreamble'] 	= 0;
$xparams['showsearch'] 		= 1;
$xparams['showtariffs']		= 0;
$xparams['showclass'] 		= 0;
$xparams['gold'] 			= '1-999999';
$xparams['gold_not_zero'] 	= 1;
// $xparams['important'] 		= 'gold';
$xparams['result_numberpick'] = $abs_convpath . '/checkout.php';
$xparams = array_merge($xparams, $abs_xparams);
dmx_render('dmshop.numberchooser', $abs_numberchooser_name, $xparams);
?>

<br>

<?php abs_inc_fragment('number_choice_tips_gold'); ?>

<p id="footer_flow">
<?php if (isset($dmx_init_response['QntItems']) && $dmx_init_response['QntItems']) : ?>
	<a href="<?=$abs_root;?>/numbers/<?=$abs_subject['range'];?>/checkout.php">Checkout</a>
<?php else: ?>
	<a href="<?=$abs_root;?>/numbers/<?=$abs_subject['range'];?>/choose.php">Choose a standard <?=$abs_subject['range'];?> number</a>
<?php endif; ?>
</p>

		<!-- --------------- -->
		<!-- END MAIN COLUMN -->
		<!-- --------------- -->
		</div>
		
		<div class="sidebar">
		<!-- ------- -->
		<!-- SIDEBAR -->
		<!-- ------- -->
			
<!-- PAGE FLOW BOX -->
<div id="flowbox">
 	<a href="<?=$abs_root;?>/numbers/<?=$abs_subject['range'];?>.php"  class="flowbox_main_forward infotext">{DYN:range} summary<span class="tipcontents">All about {DYN:range} numbers</span></a>
	<a href="<?=$abs_root;?>/numbers/<?=$abs_subject['range'];?>/best.php" class="flowbox_sub_forward infotext">Why <i>our</i> {DYN:range} numbers?<span class="tipcontents">Reasons why we are<br />your best choice of supplier</span></a>
	<a href="<?=$abs_root;?>/numbers/<?=$abs_subject['range'];?>/choose.php" class="flowbox_sub_trolley infotext">Choose a standard {DYN:range}<span class="tipcontents">Choose from a list<br />of standard {DYN:range} numbers</span></a>
	<?php if (isset($dmx_init_response['QntItems']) && $dmx_init_response['QntItems']) : ?>
	<a href="<?=$abs_root;?>/numbers/<?=$abs_subject['range'];?>/checkout.php" class="flowbox_sub_trolley infotext">Checkout<span class="tipcontents">Proceed to checkout</span></a>
	<?php endif; ?>
</div>
<!-- END PAGE FLOW BOX -->
		
<div class="ie6_7_is_buggy"><!-- Empty Div to get rid of IE6/7 CSS 'quirk' --></div>

<?php
// Put trolley on page if it is not empty
if (isset($dmx_init_response['QntItems']) && $dmx_init_response['QntItems'] || isset($dmx_init_response['QntOSOrders']) && $dmx_init_response['QntOSOrders'])  {
	echo '<!-- fred is a compact trolley, with header, border and options turned off -->';
	$xparams['variant'] = 'compact';
	$xparams['showheader'] = 0;
	$xparams['showborder'] = 0;
	$xparams['showoptions'] = 0;
	$xparams['showicons'] = 0;
	$xparams['showactions'] = 0;
	$xparams['result_login'] = $abs_convpath . '/login.php';
	$xparams['result_trolleyclicked'] = $abs_convpath . '/checkout.php';
	$xparams['result_typinv'] = $abs_root . '/numbers/typical_invoice.php';
	$xparams['result_configure'] = $abs_convpath . '/svc_plan.php';
	$xparams['headerurl'] = 'http://' . $_SERVER['SERVER_NAME'] . $abs_root . '/common/header_export\.php';
	$xparams['div_typinv'] 	= 'typinv_ajax_target'; // ID of DIV to load typical invoice in, if using ajax
	$xparams['hook_typinv'] = 'abs_show_typinv'; // The name of the function to execute before loading the typical invoice
	dmx_render('dmshop.trolley', 'Fredy', $xparams);
	echo '<p><br></p>';
}
?>

<!-- SIDEBAR BOX -->
<?php abs_inc_fragment('sb_gold'); ?>
<!-- END SIDEBAR BOX -->

<!-- SIDEBAR BOX -->
<?php abs_inc_fragment('sb_real_time_controls'); ?>
<!-- END SIDEBAR BOX -->

		<!-- ----------- -->
		<!-- END SIDEBAR -->
		<!-- ----------- -->
		</div>
