Exemplo n.º 1
0
                 echo $label['c_membership_months_singular'];
             }
         }
         $SLM->list_cell_close();
         $SLM->list_cell_open();
         if ($row['months_duration'] == '0') {
             echo $label['c_membership_membership_not_end'];
         } else {
             echo JB_get_formatted_date($row['member_end']);
         }
         $SLM->list_cell_close();
         $SLM->list_cell_open();
         if ($row['status'] == 'member_cancel') {
             echo $label['c_membership_cancelled'];
         } else {
             echo JB_get_invoice_status_label($row['status']);
         }
         $SLM->list_cell_close();
         $SLM->list_item_close();
         $SLM->list_item_open();
         $SLM->list_cell_open('colspan:4');
         if ($row['status'] == 'Completed' || $row['reason'] == 'jb_credit_advanced' && $row['status'] == 'Pending') {
             echo $label['c_membership_active'];
         }
         $SLM->list_cell_close();
         $SLM->list_item_close();
     }
 } else {
     membership_plan_list();
 }
 JB_render_box_bottom();
Exemplo n.º 2
0
 function data_cell($field_id)
 {
     if ($field_id == 'invoice_date') {
         echo JB_get_formatted_date($this->get_data_value('invoice_date'));
     } elseif ($field_id == 'invoice_id') {
         if ($this->get_data_value('subscription_id')) {
             echo 'S';
         } elseif ($this->get_data_value('package_id')) {
             echo 'P';
         } elseif ($this->get_data_value('membership_id')) {
             echo 'M';
         }
         echo $this->get_data_value('invoice_id');
     } elseif ($field_id == 'amount') {
         echo JB_convert_to_default_currency_formatted($this->get_data_value('currency_code'), $this->get_data_value('amount'), true, $this->get_data_value('currency_rate'));
     } elseif ($field == 'status') {
         echo JB_get_invoice_status_label($this->get_data_value('status'));
     } else {
         echo $this->get_data_value($field_id);
     }
 }
Exemplo n.º 3
0
function JB_display_membership_invoice($invoice_id)
{
    global $label;
    $invoice_row = JB_get_membership_invoice_row($invoice_id);
    ?>

	
	   <table border="0" id="invoice" cellpadding="3"  cellspacing="0">
	  
		<tr> 
		   <td class="field"><?php 
    echo $label['member_order_id'];
    ?>
</td>
		   <td class="value" valign="top">
		   M<?php 
    echo $invoice_row['invoice_id'];
    ?>
</td>
		 </tr>
		 <tr>
		   <td class="field"><?php 
    echo $label['member_ord_descr'];
    ?>
</td>
		   <td nowrap class="value" valign="top">
		   <?php 
    echo $invoice_row['item_name'] . "<br>";
    ?>
</td>
		 </tr>
		 <tr>
		   <td class="field"><?php 
    echo $label['member_duration'];
    ?>
</td>
		   <td class="value" valign="top">
		  <?php 
    if ($invoice_row['months_duration'] == 0) {
        echo $label['member_unlimited'];
    } else {
        echo $invoice_row['months_duration'];
    }
    ?>
</td>
		 </tr>
		 <tr>
		   <td class="field"><?php 
    echo $label['member_price'];
    ?>
&nbsp; 
		  
		   </td>
		   <td  class="value" valign="top">
		   <?php 
    echo JB_convert_to_default_currency_formatted($invoice_row['currency_code'], $invoice_row['amount'], true);
    ?>
</td> 
		 </tr>

		
		 <tr>
		   <td class="field"><?php 
    echo $label['member_status'];
    ?>
&nbsp; 
		   
		   </td>
		   <td class="value" valign="top">
		  <?php 
    echo JB_get_invoice_status_label($invoice_row['status']);
    ?>
</td>
		 </tr>
		  <?php 
    JBPLUG_do_callback('display_membership_invoice', $invoice_row);
    ?>
	   </table>
	   <?php 
}