Advertisement
gundambison

perbaikan

Feb 23rd, 2020
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.83 KB | None | 0 0
  1. <div class="grid-x grid-padding-x grid-margin-y">
  2.                                             <div class="large-12 medium-12 small-12 cell">
  3.                                                 <div class="large-12 medium-12 small-12 cell">
  4.                                                     <div class="large-12 medium-12 small-12  table-server-scroll cell">
  5.                                                         <table class="unstriped">
  6.                                                             <thead>
  7.                                                                 <tr>                                                            
  8. <th>Mesin Virtual</th>
  9. <th>vCPU</th>                                                               <th>Harga</th>                                                                    
  10.                                                                 </tr>
  11.                                                             </thead>
  12.                                                             <tbody>
  13.  
  14.                                                                <?php
  15.  
  16.  
  17.  
  18. $ovh = new Api($applicationkey, $applicationsecret, $endpoint, $consumerkey);
  19.  
  20. $vcpu = ["1 vCore (s)", "1 vCore (s)", "2 vCore (s)"];
  21. for ($x2 = 0;$x2 <= 3;$x2++)
  22. {
  23. echo "<tr>";
  24.     $machine = ["Openstack KVM"];
  25.     for ($x = 0;$x <= 1;$x++)
  26.     {
  27.  
  28.     $virtual1 = $machine[$x];
  29.     echo "<td>";
  30.     echo $virtual1;
  31.     echo "</td>";
  32.     }
  33.  
  34.     $vcpu2 = $vcpu[$x2];
  35.     echo "<td>";
  36.     echo $vcpu2;
  37.     echo "</td>";
  38.  
  39.     for ($i = 1;$i <= 3;$i++)
  40.     {
  41.     $result = $ovh->get('/price/vps/2018v1/ssd/model/model' . $i);
  42.     echo "<td>";
  43.  
  44.     $a = $result[value];
  45.  
  46.     $b = "4.65";
  47.     $c = $money;
  48.     $total = $a + $b;
  49.     $total2 = $total * $c + "10%";
  50.     echo "Rp " . rupiah($total2);
  51.  
  52.     echo "</td>";
  53.     }
  54.     echo "</tr>";
  55. }
  56.  
  57.  ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement