Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="grid-x grid-padding-x grid-margin-y">
- <div class="large-12 medium-12 small-12 cell">
- <div class="large-12 medium-12 small-12 cell">
- <div class="large-12 medium-12 small-12 table-server-scroll cell">
- <table class="unstriped">
- <thead>
- <tr>
- <th>Mesin Virtual</th>
- <th>vCPU</th> <th>Harga</th>
- </tr>
- </thead>
- <tbody>
- <?php
- $ovh = new Api($applicationkey, $applicationsecret, $endpoint, $consumerkey);
- $vcpu = ["1 vCore (s)", "1 vCore (s)", "2 vCore (s)"];
- for ($x2 = 0;$x2 <= 3;$x2++)
- {
- echo "<tr>";
- $machine = ["Openstack KVM"];
- for ($x = 0;$x <= 1;$x++)
- {
- $virtual1 = $machine[$x];
- echo "<td>";
- echo $virtual1;
- echo "</td>";
- }
- $vcpu2 = $vcpu[$x2];
- echo "<td>";
- echo $vcpu2;
- echo "</td>";
- for ($i = 1;$i <= 3;$i++)
- {
- $result = $ovh->get('/price/vps/2018v1/ssd/model/model' . $i);
- echo "<td>";
- $a = $result[value];
- $b = "4.65";
- $c = $money;
- $total = $a + $b;
- $total2 = $total * $c + "10%";
- echo "Rp " . rupiah($total2);
- echo "</td>";
- }
- echo "</tr>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement