Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php require('sakacalendar.php') ?>
- <?php
- function hitung_abc($tgl1, $tgl2='')
- {
- $a = substr($tgl1, 8, 2);
- $b = substr($tgl1, 5, 2);
- $c = substr($tgl1, 0, 2);
- $d = substr($tgl1, 2, 2);
- if(!empty($tgl2))
- {
- $aa = substr($tgl2, 8, 2);
- $bb = substr($tgl2, 5, 2);
- $cc = substr($tgl2, 0, 2);
- $dd = substr($tgl2, 2, 2);
- $a = $a + ((int)$aa%9);
- $b = $b + $bb;
- $c = $c + $cc;
- $d = $d + $dd;
- }
- $a1 = substr($a,0,1);
- $a2 = substr($a,1,1);
- $b1 = substr($b,0,1);
- $b2 = substr($b,1,1);
- $c1 = substr($c,0,1);
- $c2 = substr($c,1,1);
- $d1 = substr($d,0,1);
- $d2 = substr($d,1,1);
- $ax = $a1+$a2;
- $ax1 = substr($ax,0,1);
- $ax2 = substr($ax,1,1);
- $ay = $ax1+$ax2;
- $bx = $b1+$b2;
- $bx1 = substr($bx,0,1);
- $bx2 = substr($bx,1,1);
- $by = $bx1+$bx2;
- $cx = $c1+$c2;
- $cx1 = substr($cx,0,1);
- $cx2 = substr($cx,1,1);
- $cy = $cx1+$cx2;
- $dx = $d1+$d2;
- if($dx == 0) $dx = 5;
- else $dx = $d1+$d2;
- $dx1 = substr($dx,0,1);
- $dx2 = substr($dx,1,1);
- $dy = $dx1+$dx2;
- $e = $ay + $by;
- $e1 = substr($e,0,1);
- $e2 = substr($e,1,1);
- $ex = $e1+$e2;
- $f = $cy + $dy;
- $f1 = substr($f,0,1);
- $f2 = substr($f,1,1);
- $fx = $f1+$f2;
- $g = $ex + $fx;
- $g1 = substr($g,0,1);
- $g2 = substr($g,1,1);
- $gx = $g1+$g2;
- $h = $fx + $gx;
- $h1 = substr($h,0,1);
- $h2 = substr($h,1,1);
- $hx = $h1+$h2;
- $i = $ex + $gx;
- $i1 = substr($i,0,1);
- $i2 = substr($i,1,1);
- $ix = $i1+$i2;
- $j = $hx + $ix;
- $j1 = substr($j,0,1);
- $j2 = substr($j,1,1);
- $jx = $j1+$j2;
- $k = $ay + $ex;
- $k1 = substr($k,0,1);
- $k2 = substr($k,1,1);
- $kx = $k1+$k2;
- $l = $by + $ex;
- $l1 = substr($l,0,1);
- $l2 = substr($l,1,1);
- $lx = $l1+$l2;
- $m = $cy + $fx;
- $m1 = substr($m,0,1);
- $m2 = substr($m,1,1);
- $mx = $m1+$m2;
- $n = $dy + $fx;
- $n1 = substr($n,0,1);
- $n2 = substr($n,1,1);
- $nx = $n1+$n2;
- return array(
- "A" => $ay,
- "B" => $by,
- "C" => $cy,
- "D" => $dy,
- "E" => $ex,
- "F" => $fx,
- "G" => $gx,
- "H" => $hx,
- "I" => $ix,
- "J" => $jx,
- "K" => $kx,
- "L" => $lx,
- "M" => $mx,
- "N" => $nx
- );
- }
- ?>
- <!DOCTYPE html>
- <html lang="en">
- <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <title><?php echo $_SERVER['HTTP_HOST']; ?> - Ramalan Pasangan Suami Istri</title>
- <meta name="keyword" content="tradisi tenung dan keyakinan di Bali">
- <meta name="description" content="Ramalan perjodohan, ramalan pasangan suami dan istri, ramalan pasangan pacaran, tenung patemon, prembon jodoh">
- <meta name="robot" content="noindex, nofollow">
- <meta name="language" content="indonesia">
- <meta name="resource-type" content="document" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- </head>
- <body>
- <div class="container">
- <a class="type1" href="#"><font face="Arial" size="2" color="black">masukan tanggal Lahir</font> <font face="Arial" size="2" color="blue"><b>(tahun-bulan-tanggal)</font></b></a>
- <?php
- $tgl1 = isset($_GET['tanggal1'])?$_GET['tanggal1']:date(' ');
- $tgl2 = isset($_GET['tanggal2'])?$_GET['tanggal2']:date(' ');
- $abc = hitung_abc($tgl1, $tgl2);
- $tanggal1 = new SakaCalendar($tgl1);
- $tanggal2 = new SakaCalendar($tgl2);
- ?>
- <form action="" method="get">
- Anda <input size="10" id="tanggal1" type="text" maxlength="10" name="tanggal1" value=""></br>
- Pasangan Anda <input size="10" id="tanggal2" type="text" maxlength="10" name="tanggal2" value=""></br>
- <button class="btn btn-xs btn-info">SUBMIT</button>
- </form>
- </div>
- </br>
- <strong><?php echo date('d F Y', strtotime($tgl1)); ?></strong>
- <div class="container">
- <?php
- $abcd = hitung_abc($tgl1);
- $ay = $abc['A'];
- $by = $abc['B'];
- $cy = $abc['C'];
- $dy = $abc['D'];
- $ex = $abc['E'];
- $fx = $abc['F'];
- $gx = $abc['G'];
- $hx = $abc['H'];
- $ix = $abc['I'];
- $jx = $abc['J'];
- $kx = $abc['K'];
- $lx = $abc['L'];
- $mx = $abc['M'];
- $nx = $abc['N'];
- ?>
- <table border="0" style="width: 300px; text-align: center; font-size: 10pt;">
- <tr>
- <td> </td>
- <td><?php echo $abc["A"] ?></td>
- <td><?php echo $abc["B"] ?></td>
- <td><?php echo $abc["C"] ?></td>
- <td><?php echo $abc["D"] ?></td>
- <td> </td>
- </tr>
- <tr>
- <td></td>
- <td></td>
- <td><?php echo $abc["E"] ?></td>
- <td><?php echo $abc["F"] ?></td>
- <td></td>
- <td></td>
- <td> </td>
- </tr>
- <tr>
- <td><?php echo $abc["K"] ?></td>
- <td><?php echo $abc["L"] ?></td>
- <td colspan="2"><?php echo $abc["G"] ?></td>
- <td><?php echo $abc["M"] ?></td>
- <td><?php echo $abc["N"] ?></td>
- <td> </td>
- </tr>
- <tr>
- <td></td>
- <td></td>
- <td><?php echo $abc["H"] ?></td>
- <td><?php echo $abc["I"] ?></td>
- <td></td>
- <td></td>
- <td> </td>
- </tr>
- <tr>
- <td></td>
- <td></td>
- <td colspan="2"><?php echo $abc["J"] ?></td>
- <td></td>
- <td></td>
- <td> </td>
- </tr>
- </table>
- </div>
- </br>
- <strong><?php echo date('d F Y', strtotime($tgl2)); ?></strong>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement