Esempio n. 1
0
                        <a href="#" >
                            <span class="icon-cog"></span>
                            Setting
                        </a>
                    </li>
                    <li>
                        <a href="javascript:logout();">
                            <span class="icon-locked"></span>
                            Logout
                        </a>
                    </li>
                </ul>
            </div>
            <div class="element place-right">
                <?php 
echo 'Last Login : '******'lastloginS']) . ' ( ' . $_SESSION['counterlogS'] . 'x )';
?>
                <i class="icon-clock"></i>
            </div>
        </nav>
    </nav>

    <div class="tile-area tile-area-dark">
        <?php 
$d = 'views/';
if (!isset($_GET['page'])) {
    require $d . 'v_home.php';
} else {
    switch ($_GET['page']) {
        // sistem
        case 'warna':
Esempio n. 2
0
 $startpoint = $page * $limit - $limit;
 $table = "produk";
 if (isset($_GET['page'])) {
     $ahpage = "&hpage={$_GET['page']}";
 } else {
     if (empty($_GET['page'])) {
         $ahpage = "";
     }
 }
 $tampil = mysql_query("SELECT * FROM produk WHERE id_kategori!=46 AND id_kategori!=47 ORDER BY id_produk DESC LIMIT {$startpoint}, {$limit}");
 $no = $startpoint + 1;
 while ($r = mysql_fetch_array($tampil)) {
     $sub = mysql_fetch_array(mysql_query("SELECT * FROM sub_kategori WHERE id_sub_kategori='{$r['id_sub_kategori']}'"));
     $tanggal = tgl_indo($r['tgl_terbit']);
     $tgl_update = tgl_indo($r['tgl_update']);
     $tgl_indo2 = tgl_indo2($r['tgl_update']);
     $harga = format_rupiah($r['harga']);
     echo "<tr><td>{$no}</td>\n                <td class='left'>{$r['judul']}</td>";
     echo "<td class='left'>";
     $kat = mysql_query("SELECT * FROM kategori_produk WHERE id_kategori='{$r['id_kategori']}'");
     $k = mysql_fetch_array($kat);
     echo "{$k['nama_kategori']}";
     echo "</td>";
     echo "<td align=center>{$sub['nama']}</td>";
     echo "<td align=center>{$r['stok']}</td>";
     echo "<td>{$tgl_indo2}</td>\n\t\t            <td><a href=?module=produk&act=editProduk&id={$r['id_produk']}{$ahpage}><img src='images/add-icon.gif'></a></td> \n\t\t            <td><a href={$aksi}?module=produk&act=del&id={$r['id_produk']}&nama_file={$r['gambar']}{$ahpage}><img src='images/hr.gif'></a></td>\n\t\t        </tr>";
     $no++;
 }
 echo "</table>";
 echo pagination($table, $limit, $page, $url);
 break;
Esempio n. 3
0
 $aksi = "modul/mod_promo/aksi_promo.php";
 switch ($_GET['act']) {
     // Tampil Produk
     default:
         echo "<h2 class='hLine'>Promo</h2>";
         echo "<table class='list'>\n          <thead>\n\t\t\t  <tr>\n\t\t\t\t<td class='center'>No.</td>\n\t\t\t\t<td class='center'>Nama</td>\n\t\t\t\t<td class='center'>Judul Buku</td>\n\t\t\t\t<td class='center'>Nama Toko</td>\n\t\t\t\t<td class='center'>No. Struk</td>\n\t\t\t\t<td class='center'>Dilihat</td>\n\t\t\t\t<td class='center'>Tanggal</td>\n\t\t\t\t<td colspan='2' class='center'>Aksi</td>\n\t\t\t  </tr>\n\t\t  </thead>";
         //paging
         $page = (int) (!isset($_GET["page"]) ? 1 : $_GET["page"]);
         $url = "?module={$_GET['module']}&";
         $limit = 10;
         $startpoint = $page * $limit - $limit;
         $table = "promo";
         $tampil = mysql_query("SELECT * FROM promo ORDER BY tanggal DESC LIMIT {$startpoint}, {$limit}");
         $no = $startpoint + 1;
         while ($r = mysql_fetch_array($tampil)) {
             $tgl_indo2 = tgl_indo2($r['tanggal']);
             echo "<tr><td>{$no}</td>\n                <td class='left'>{$r['nama']}</td>\n                <td class='left'>{$r['judul_buku']}</td>\n                <td class='left'>{$r['nama_toko']}</td>\n                <td class='left'>{$r['no_struk']}</td>";
             if ($r['publish'] == 'Y') {
                 echo "<td class='left'>Yes</td>";
             } else {
                 echo "<td class='left'>No</td>";
             }
             echo "<td class='left'>{$tgl_indo2}</td>\n\t\t\t\t";
             echo "\n\t\t            <td><a href=?module=promo&act=editPromo&id={$r['id_promo']}><img src='images/add-icon.gif'></a></td> \n\t\t            <td><a href={$aksi}?module=promo&act=del&id={$r['id_promo']}&nama_file={$r['gambar']}><img src='images/hr.gif'></a></td>\n\t\t        </tr>";
             $no++;
         }
         echo "</table>";
         echo pagination($table, $limit, $page, $url);
         break;
     case "editPromo":
         $edit = mysql_query("SELECT * FROM promo WHERE id_promo='{$_GET['id']}'");
Esempio n. 4
0
$alamat = $dperusahaan['alamat'];
$kota = $dperusahaan['kota'];
$telp = $dperusahaan['telp'];
$fax = $dperusahaan['fax'];
//===============================================================perubahan tanggal dari sini===============================================================\\
$today = date("Y-m-d");
$tgl = substr($today, 8, 2);
$bln = substr($today, 5, 2);
$thn = substr($today, 0, 4);
if ($bln > 9) {
    $all2 = $thn . '-' . $bln . '-' . '00';
} else {
    $all2 = $thn . '-' . $bln . '-' . '00';
}
$all = $thn . '-' . $bln;
$today2 = tgl_indo2($all);
if ($bln == '1') {
    $blnz = '01';
} else {
    if ($bln == '2') {
        $blnz = '02';
    } else {
        if ($bln == '3') {
            $blnz = '03';
        } else {
            if ($bln == '4') {
                $blnz = '04';
            } else {
                if ($bln == '5') {
                    $blnz = '05';
                } else {
Esempio n. 5
0
             $kayam3 = @mysql_fetch_assoc($kayam);
             $hrg_ayam = $kayam3['harga'];
             $total_ayam = $dayam['tonase_real'] * $hrg_ayam;
             $Ttotal_ayam = $Ttotal_ayam + $total_ayam;
         }
     } else {
         $Ttotal_ayam = $dutang['p_ayam'];
     }
 }
 $utang = $Ttotal_ayam + $total_rsap - $total_sap;
 $utang2 = ribuan($utang);
 $kompensasi2 = ribuan($kompensasi);
 $total_sap2 = ribuan($total_sap);
 $total_rsap2 = ribuan($total_rsap);
 $Ttotal_ayam2 = ribuan($Ttotal_ayam);
 $panenbulan = tgl_indo2($dutang['panenbulan']);
 echo "<td align=\"right\">{$total_sap2}</td>";
 echo "<td align=\"right\">{$total_rsap2}</td>";
 echo "<td align=\"right\">{$Ttotal_ayam2}</td>";
 //bop awal
 if ($dutang['bop_awal'] != '') {
     $bop_awal = ribuan($dutang['bop_awal']);
     echo "<td align=\"right\">{$bop_awal}</td>";
 } else {
     $bop_awal = 0;
     echo "<td align=\"right\">0</td>";
 }
 //bonus IP
 if ($dutang['bonus_ip'] != '') {
     $bonus_ip = ribuan($dutang['bonus_ip']);
     echo "<td align=\"right\">{$bonus_ip}</td>";