Пример #1
0
				<td class="totalamount"><?php 
        echo $retrieved_data->membership_amount - $retrieved_data->paid_amount;
        ?>
</td>
				<td class="paymentdate"><?php 
        echo $retrieved_data->start_date;
        ?>
</td>
				<td class="paymentdate"><?php 
        echo $retrieved_data->end_date;
        ?>
</td>
				<td class="paymentdate">
				<?php 
        echo "<span class='btn btn-success btn-xs'>";
        echo get_membership_paymentstatus($retrieved_data->mp_id);
        echo "</span>";
        ?>
				</td>
                
               	<td class="action">
				<a href="#" class="show-payment-popup btn btn-default" idtest="<?php 
        echo $retrieved_data->mp_id;
        ?>
" view_type="payment" ><?php 
        _e('Pagar', 'gym_mgt');
        ?>
</a>
				<a href="#" class="show-view-payment-popup btn btn-default" idtest="<?php 
        echo $retrieved_data->mp_id;
        ?>
Пример #2
0
function gmgt_member_view_paymenthistory()
{
    $mp_id = $_REQUEST['idtest'];
    $fees_detail_result = gym_get_single_membership_payment_record($mp_id);
    $fees_history_detail_result = gym_get_payment_history_by_mpid($mp_id);
    ?>
	<div class="modal-header">
			<a href="#" class="close-btn badge badge-success pull-right">X</a>
			<h4 class="modal-title"><?php 
    echo get_option('gmgt_system_name');
    ?>
</h4>
	</div>
	<div class="modal-body">
	
	<div id="invoice_print"> 
		<table width="100%" border="0">
						<tbody>
							<tr>
								<td width="70%">
									<img style="max-height:80px;" src="<?php 
    echo get_option('gmgt_system_logo');
    ?>
">
								</td>
								<td align="right" width="24%">
									
									<h5><?php 
    $issue_date = 'DD-MM-YYYY';
    $issue_date = $fees_detail_result->created_date;
    echo __('Issue Date', 'gym_mgt') . " : " . date("Y-m-d", strtotime($issue_date));
    ?>
</h5>
									
						<h5><?php 
    echo __('Status', 'gym_mgt') . " : ";
    echo "<span class='btn btn-success btn-xs'>";
    echo get_membership_paymentstatus($fees_detail_result->mp_id);
    echo "</span>";
    ?>
</h5>
								</td>
							</tr>
						</tbody>
					</table>
					<hr>
					<table width="100%" border="0">
						<tbody>
							<tr>
								<td align="left">
									<h4><?php 
    _e('Payment To', 'gym_mgt');
    ?>
 </h4>
								</td>
								<td align="right">
									<h4><?php 
    _e('Bill To', 'gym_mgt');
    ?>
 </h4>
								</td>
							</tr>
							<tr>
								<td valign="top" align="left">
									<?php 
    echo get_option('gmgt_system_name') . "<br>";
    echo get_option('gmgt_gym_address') . ",";
    echo get_option('gmgt_contry') . "<br>";
    echo get_option('gmgt_contact_number') . "<br>";
    ?>
									
								</td>
								<td valign="top" align="right">
									<?php 
    $member_id = $fees_detail_result->member_id;
    $patient = get_userdata($member_id);
    echo $patient->display_name . "<br>";
    echo get_user_meta($member_id, 'address', true) . ",";
    echo get_user_meta($member_id, 'city_name', true) . ",";
    echo get_user_meta($member_id, 'zip_code', true) . ",<BR>";
    echo get_user_meta($member_id, 'state_name', true) . ",";
    echo get_option('gmgt_contry') . ",";
    echo get_user_meta($member_id, 'mobile', true) . "<br>";
    ?>
								</td>
							</tr>
						</tbody>
					</table>
					<hr>
					<table class="table table-bordered" width="100%" border="1" style="border-collapse:collapse;">
						<thead>
							<tr>
								<th class="text-center">#</th>
								<th class="text-center"> <?php 
    _e('Tipo de honorarios', 'gym_mgt');
    ?>
</th>
								<th><?php 
    _e('Total', 'gym_mgt');
    ?>
 </th>
								
							</tr>
						</thead>
						<tbody>
							<td>1</td>
							<td><?php 
    echo get_membership_name($fees_detail_result->membership_id);
    ?>
</td>
							<td><?php 
    echo $fees_detail_result->membership_amount;
    ?>
</td>
						</tbody>
						</table>
						<table width="100%" border="0">
						<tbody>
							
							<tr>
								<td width="80%" align="right"><?php 
    _e('Sub Total :', 'gym_mgt');
    ?>
</td>
								<td align="right"><?php 
    echo $fees_detail_result->membership_amount;
    ?>
</td>
							</tr>
							<tr>
								<td width="80%" align="right"><?php 
    _e('Pago realizado :', 'gym_mgt');
    ?>
</td>
								<td align="right"><?php 
    echo $fees_detail_result->paid_amount;
    ?>
</td>
							</tr>
							<tr>
								<td width="80%" align="right"><?php 
    _e('Cantidad a pagar  :', 'gym_mgt');
    ?>
</td>
								<td align="right"><?php 
    echo $fees_detail_result->membership_amount - $fees_detail_result->paid_amount;
    ?>
</td>
							</tr>
							
						</tbody>
					</table>
					<hr>
					<?php 
    if (!empty($fees_history_detail_result)) {
        ?>
					<h4><?php 
        _e('Payment History', 'gym_mgt');
        ?>
</h4>
					<table class="table table-bordered" width="100%" border="1" style="border-collapse:collapse;">
					<thead>
							<tr>
								<th class="text-center"><?php 
        _e('Date', 'gym_mgt');
        ?>
</th>
								<th class="text-center"> <?php 
        _e('Amount', 'gym_mgt');
        ?>
</th>
								<th><?php 
        _e('Method', 'gym_mgt');
        ?>
 </th>
								
							</tr>
						</thead>
						<tbody>
							<?php 
        foreach ($fees_history_detail_result as $retrive_date) {
            ?>
							<tr>
							<td><?php 
            echo $retrive_date->paid_by_date;
            ?>
</td>
							<td><?php 
            echo $retrive_date->amount;
            ?>
</td>
							<td><?php 
            echo $retrive_date->payment_method;
            ?>
</td>
							</tr>
							<?php 
        }
        ?>
						</tbody>
					</table>
					<?php 
    }
    ?>
	</div>
	</div>
	<?php 
    die;
}