public function EmailHelper($order_id = null)
 {
     $this->config = JBFactory::getConfig();
     if ($order_id) {
         AImporter::model('order', 'customer', 'orderinfos');
         $orderModel = new BookProModelOrder();
         $this->orderComplex = $orderModel->getComplexItem($order_id);
         $this->order = $this->orderComplex->order;
         $this->orderinfo = $this->orderComplex->orderinfo;
         $this->customer = $this->orderComplex->customer;
         $applicationModel = new BookProModelApplication();
         $this->app = $applicationModel->getItemByCode($this->order->type);
         $config = jcomponenthelper::getParams('com_bookpro');
         $cdct = JTable::getInstance('Content', 'JTable');
         $cdct->load(array('id' => $config->get('term_content_id')));
         $this->app->cdct = $cdct;
     }
 }
<?php

$config = jcomponenthelper::getParams('com_bookpro');
$cdct = JTable::getInstance('Content', 'JTable');
$cdct->load(array('id' => $config->get('term_content_id')));
?>
<h2 class="block_head">
	<span> <?php 
echo JText::_('COM_BOOKPRO_PAYMENT_SELECT');
?>
</span>
</h2>
<?php 
if ($this->plugins) {
    foreach ($this->plugins as $plugin) {
        ?>
	<label>
		<input value="<?php 
        echo $plugin->element;
        ?>
" class="payment_plugin" onclick="getPaymentForm('<?php 
        echo $plugin->element;
        ?>
', 'payment_form_div');"
		name="payment_plugin" type="radio"	<?php 
        echo !empty($plugin->checked) ? "checked" : "";
        ?>
/>
	
	<?php 
        $params = new JRegistry();