<? global $vis_language; ?>
<div class="m-r-n m-l-n">
  <table class="table table-hover m-b-none" data-ride="datatables">
	<thead class="table_head">
		<th><? echo $vis_language['TXTTITLE']; ?></th><th class="txt_nowrap"><? echo $vis_language['TXTVALIDITY']; ?></th><th class="txt_nowrap"><? echo $vis_language['TXTAMOUNT'].' ('.VIS_DOMAIN_CURRENCY.')'; ?></th><th></th>
	</thead>
	<tbody>	
		<? if($product!=-1) for($i=0;$i<count($product);$i++) { ?>
		<tr>
			<td><?= $product[$i]['title']; ?></td>
           <? if($product[$i]['validity']==0) $validityname='TXTVALIDITYONETIME'; 
              elseif ($product[$i]['validity']==1) $validityname='TXTVALIDITYMONTHLY'; 
              elseif ($product[$i]['validity']==2) $validityname='TXTVALIDITYQUARTERLY'; 
              elseif ($product[$i]['validity']==3) $validityname='TXTVALIDITYSEMIANNUALLY'; 
              else $validityname='TXTVALIDITYANNUALLY'; 
           ?>
			<td><?= $vis_language[$validityname]; ?></td>
			<td><?= $product[$i]['amount']; ?></td>
			<td><a href="?/billing/product-details/<?= str_replace(' ','-',strtolower($product[$i]['title'])).'/'.$product[$i]['product_id']; ?>" class="btn btn-sm btn-primary"><?= $vis_language['TXTORDERNOW']; ?></a></td>
		</tr><? } ?>
	</tbody>
  </table>
</div>
 <script> $(document).ready(function() { $(".selectpicker").selectpicker(); });</script>