<?php



// svc_plan.php

// adapting body for pages used to select a service for a number



?>





		<div class="main_column">

		<!-- ----------------- -->

		<!-- BEGIN MAIN COLUMN -->

		<!-- ----------------- -->

			

<?php if (isset($dmx_init_response['QntItems']) && $dmx_init_response['QntItems']) : ?>



	<h1>Choose your service plan</h1>



	<?php

	// Sidney is a serviceselector

	$xparams['showheader'] 		= 0;

	$xparams['showborder'] 		= 0;

	$xparams['showpreamble'] 	= 1;

	$xparams['width'] 			= 630;

	$xparams['result_confirm'] 	= $abs_root . '/numbers/' . $abs_subject['range'] . '/checkout.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

	$xparams['div_fulltariff'] 	= 'tariffguide_ajax_target'; // ID of DIV to load tariffguide in, if using ajax

	$xparams['hook_fulltariff'] = 'abs_show_tariffguide'; // The name of the function to execute before loading the tariffguide

	$xparams['link_cce'] 		= 'carlos';

	dmx_render('dmshop.serviceplanselector', 'sidney', $xparams);

	?>

	

	<br>

	

	<p>

	For {GLOS:xscript} call us on {SUB:contact_tel}.

	</p>

	

<?php else : ?>



	<p>

	<strong>An error has occured.</strong> You must pick a telephone number before choosing its service and plan. <a href="choose.php" style="white-space: nowrap;">Pick a number</a>.

	</p>



<?php endif; ?>



		<!-- --------------- -->

		<!-- END MAIN COLUMN -->

		<!-- --------------- -->

		</div>

		

		<div class="sidebar">

		<!-- ------- -->

		<!-- SIDEBAR -->

		<!-- ------- -->

			

<?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['showtotals'] = 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>';

}

?>



<?php if (isset($dmx_resultcode['result']) && $dmx_resultcode['result'] == 'configure') : ?>



<div class="sidebar_box_heading">

	<h2>Useful <span ondblclick="dmx.sidney.show_tariffguide(); return false;">tools</span></h2>

</div>

<div class="sidebar_box_content">

	<div>

	

		<p style="line-height: 170%">

		<img src="{GLIB}/interface/tools_15.gif" width="15" height="15" border="0" class="no_space" alt="">&nbsp;

		<a href="#" class="popup" onclick="abs_show_sidepage('cce', 500, 350); return false;">Call Cost Explorer</a>

		<br>

		<!-- <img src="{GLIB}/interface/tools_15.gif" width="15" height="15" border="0" class="no_space" alt="">&nbsp;

		<a href="#" class="popup" onclick="dmx.sidney.show_tariffguide(); return false;">Full Price Guide</a>

		<br> -->

		<img src="{GLIB}/interface/tools_15.gif" width="15" height="15" border="0" class="no_space" alt="">&nbsp;

		<a href="#" class="popup" onclick="dmx.sidney.show_typinv(); return false;">Example Invoice</a>

		<br>

		<img src="{GLIB}/interface/info_15.gif" width="15" height="15" border="0" class="no_space" alt="">&nbsp;

		<a href="#" class="popup" onclick="abs_show_sidepage('sp_0', 80, 275); return false;">Feature Icon Key</a>

		<br>

		<img src="{GLIB}/interface/info_15.gif" width="15" height="15" border="0" class="no_space" alt="">&nbsp;

		<a href="#" class="popup" onclick="abs_show_sidepage('sp_1', 80, 275); return false;">How to use this page</a>

		</p>

		

	</div>

</div>

<p><br></p>



<?php endif; ?>



<!-- SIDEBAR BOX -->

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

<!-- END SIDEBAR BOX -->

				

		<!-- ----------- -->

		<!-- END SIDEBAR -->

		<!-- ----------- -->

		</div>

