Ejemplo n.º 1
0
 public function voucher_bonus_datatables()
 {
     $members = $this->db->query("SELECT * FROM profile,members,wallet WHERE members.id = profile.id_member  AND members.id = wallet.id_member AND wallet.balance >= 5000000 AND members.voucher_bonus=0 AND members.status=1")->result();
     $output = array();
     foreach ($members as $key => $member) {
         $i = 0;
         $output[] = array($i++ => $this->_aksi($member->username), $i++ => $member->nama, $i++ => $member->email, $i++ => "Rp. " . rupiah($member->balance), $i++ => $member->no_hp, $i++ => "<a href='" . base_url() . "admin/voucher/voucher_bonus_proses/" . $member->id . "?username="******"' class='btn btn-success proses' onClick=\" \$(this).attr('disabled',true); \"> Buat Voucher </a>");
     }
     $return['data'] = $output;
     echo json_encode($return);
 }
Ejemplo n.º 2
0
 function edit($id)
 {
     $this->filter_access('Tax_Employee', 'roled_edit', 'taxes_employees/index');
     $te = new Tax_Employee();
     $rs = $te->where('sp_id', $id)->get();
     $data['id'] = $rs->sp_id;
     $data['sp_status'] = array('name' => 'sp_status', 'value' => $rs->sp_status);
     $data['sp_ptkp'] = array('name' => 'sp_ptkp', 'id' => 'sp_ptkp', 'value' => rupiah($rs->sp_ptkp), 'class' => 'auto-coma', 'style' => 'margin:0!important');
     $data['sp_note'] = array('name' => 'sp_note', 'id' => 'sp_note', 'value' => $rs->sp_note);
     $data['btn_save'] = array('name' => 'btn_save', 'value' => 'Update', "class" => "btn btn-primary");
     $data['title'] = 'Update Taxes Employees';
     $data['message'] = '';
     $data['form_action'] = site_url('taxes_employees/update');
     $data['link_back'] = anchor('taxes_employees/', 'Back', array("class" => "btn btn-danger"));
     $this->load->view('taxes_employees/frm_taxes_employees', $data);
 }
Ejemplo n.º 3
0
				<td align=center>$result[transaksi]</td>
				<td align=center>$result[no_rm]</td>
				<td>$result[kode_obat]</td>
				<td>$result[nama_obat]</td>
				<td align=right>$result[jumlah]</td>
				<td align=right>";
					rupiah($result[jumlah_harga]);
				echo "</td>
				</tr>";
				$no++;
			}
			$q3=mysql_query("SELECT SUM(jumlah_harga) FROM penjualan WHERE month = '".$_POST['month']."' 
			AND year = '".$_POST['year']."'");
			$r3=mysql_fetch_array($q3);
			echo "<tr>
			<td colspan=7 align=right>
			Total :</td><td align=right>";
			rupiah($r3['SUM(jumlah_harga)']);
			echo "</td>
			</tr>";
			echo '</table></td></tr>';
			
			?>
	<tr>
		<td colspan="2">&nbsp;</td>
		<td colspan="2" align="right"></td>
	</tr>
</table>
</body>
</html>
Ejemplo n.º 4
0
					<td align=left>$r2[keterangan]</td>
					<td align=right>"; rupiah($r2[debit]); echo"</td>
					<td align=right>"; rupiah($r2[kredit]); echo"</td>";
			
					$saldo=$saldo+$r2["debit"]-$r2["kredit"];
					$li_saldo=$saldo+$saldoawal;
					if($li_saldo<0)
					{
						$kk=str_replace("-","",$li_saldo);
					} 
	  		echo"<td align=right>"; 
				if($li_saldo>0){
				rupiah($li_saldo);
				}else
				if($li_saldo<0){
				rupiah($kk);
				}
				 echo"</td>
	 			 </tr>";
	 			 $no++;
	 			//mysql_query("update daftar_akun set saldo='$saldo' where no_rek='$r1[no_rek]'");
				//mysql_query("update jurnal_umum set fld01=1 where no_rek='$r1[no_rek]'");
	}
			echo"</table>";
		echo"</td>";
	echo"</tr>";
	echo"<tr><td colspan=5>&nbsp;</td></tr>";
	echo"<tr><td colspan=5>&nbsp;</td></tr>";
echo"</table>";
}
?>
Ejemplo n.º 5
0
											
											//echo "<td></td>";
											if (($pmonth == $result2['ex_month']) AND ($pyear == $result2['ex_year']))
											{ 
												echo "<td width=70px align=center><font color=blue>$result[expire_date]</font></td>";
											}
											else if (($pmonth > $result2['ex_month']) AND ($pyear > $result2['ex_year']) AND ($pdate > $result2['ex_date'])) 
											{
												$qy = mysql_query("UPDATE ms_barang SET status='Non-Aktif' WHERE kd_barang='$result[kd_barang]'"); 
												echo "<td width=70px align=center><font color=red>$result2[expire_date]</font></td>";
											}
											else if (($ppmonth == $result2['ex_month']) AND ($pyear == $result2['ex_year']))
											{
												echo "<td width=70px align=center><font color=blue>$result2[expire_date]</font></td>";
											}
											else
											{
											 	echo "<td width=70px align=center>$result2[expire_date]</td>";
											}
											
										
											echo "<td align=left width=70px>"; rupiah($result2['harga']); echo "</td>
												  <td align=center width=70px>";rupiah($result2['subtotal']); echo "</td>
												  </td>";
											echo"</tr>";
										
										$no++;
									}
?>

Ejemplo n.º 6
0
    ?>
</td>
            <td align="right"><?php 
    echo $id !== $data->id ? rupiah($data->margin_rupiah) : NULL;
    ?>
</td>
            <td align="center"><?php 
    echo $id !== $data->id ? $data->diskon_persen : NULL;
    ?>
</td>
            <td align="right"><?php 
    echo $id !== $data->id ? rupiah($data->diskon_rupiah) : NULL;
    ?>
</td>
            <td align="right"><?php 
    echo $id !== $data->id ? rupiah($data->harga_jual) : NULL;
    ?>
</td>
            <td><?php 
    echo $data->nama_barang;
    ?>
</td>
            <td><?php 
    echo $data->kemasan;
    ?>
</td>
            <td align="center"><?php 
    echo $data->jumlah;
    ?>
</td>
            <td align="center" class="aksi">
Ejemplo n.º 7
0
    ?>
</td>
        <td><?php 
    echo $data->profesi;
    ?>
</td>
        <td><?php 
    echo $data->no_str;
    ?>
</td>
        <td><?php 
    echo $data->spesialis;
    ?>
</td>
        <td align="center"><?php 
    echo rupiah($data->fee);
    ?>
</td>
        <td class='aksi' align='center'>
            <a class='edition' onclick="edit_dokter('<?php 
    echo $str;
    ?>
');" title="Klik untuk edit dokter">&nbsp;</a>
            <a class='deletion' onclick="delete_dokter('<?php 
    echo $data->id;
    ?>
', '<?php 
    echo $page;
    ?>
');" title="Klik untuk hapus dokter">&nbsp;</a>
        </td>
Ejemplo n.º 8
0
					
					<tr>
						<td align="right">&nbsp;</td><td width="582" align="right">
							  <div align="right"><font size="-2">Bayar </font></div>
							</td>
						<td width="122" align="right"><font size="-1">
						  <input type="text" name="u_bayar" size="20" value="<? echo $bayar ?>" >
					  </font></td><td width="21">&nbsp;</td>
						</tr>
					<font size="-1">						</font>
					<tr>
						<td align="right">&nbsp;</td><td align="right"><font size="-2">
							  <div align="right">Kembali </div>
							</font></td>
						<td width="122" align="right"><font size="-1">
						  <input type="text" name="kembali" size="20" value="<?php rupiah($kembali)?>" readonly=>
					  </font></td><td width="21">&nbsp;</td>
						</tr>
					<font size="-1">
						<input type="submit" name="byr" style="visibility:hidden" >
						</font>
					                                                                                </table>
</form>
									
									
									<?php
										echo "</td>
												</tr>";
									
									
									echo "</fieldset><br>";
Ejemplo n.º 9
0
?>
</td>
              </tr>
              <tr>
                <td><strong>Keterangan</strong></td>
                <td><strong>:</strong></td>
                <td><?php 
echo $konten->order_keterangan;
?>
</td>
              </tr>
              <tr>
                <td><strong>Total</strong></td>
                <td><strong>:</strong></td>
                <td><?php 
echo rupiah($konten->order_total);
?>
</td>
              </tr>
            </table>
          </div><!-- /.box-body -->
        </div><!-- /.box -->

        <!-- Chat komentar-->
        <div class="box box-solid box-info">
          <div class="box-header">
            <i class="fa fa-comments-o"></i>
            <h3 class="box-title">Komentar</h3>
            <div class="box-tools pull-right" data-toggle="tooltip" title="Status">
              <div class="btn-group" data-toggle="btn-toggle" >
          <!-- <button type="button" class="btn btn-default btn-sm active"><i class="fa fa-square text-green"></i></button>
    ?>
                <tr>
                  <td><?php 
    echo $value->payment_id;
    ?>
</td>
                  <td><?php 
    echo $value->order_id;
    ?>
</td>
                  <td><?php 
    echo tanggal($value->payment_date);
    ?>
</td>
                  <td><?php 
    echo rupiah($value->payment_total);
    ?>
</td>
                  <td><?php 
    echo ucwords($value->payment_status);
    ?>
</td>
                  <td>
                    <a class="btn btn-info btn-flat"  href="<?php 
    echo base_url('dashboard/pembayaran/detail/' . $value->payment_id);
    ?>
"><i class="fa fa-eye"></i></a>
                    <a class="btn btn-danger btn-flat"  href="<?php 
    echo base_url('dashboard/pembayaran/delete/' . $value->payment_id);
    ?>
"><i class="fa fa-trash-o"></i></a>
Ejemplo n.º 11
0
    ?>
</td>
                                            <td><?php 
    echo $debitur;
    ?>
</td>
                                            <td><?php 
    echo tgl_indo($date);
    ?>
</td>
                                            <td align="right"><?php 
    echo rupiah($jumlah);
    ?>
</td>
                                            <td align="right"><?php 
    echo rupiah($payment_amount);
    ?>
</td>
                                            <td><?php 
    echo $paymentStatusW;
    ?>
</td>
                                            <td><?php 
    echo $description;
    ?>
</td>
                                        </tr>  
                                        <?php 
}
?>
                                </tbody>
Ejemplo n.º 12
0
    ?>
                                        <tr>
                                            <td align="right"><?php 
    echo tgl_indo($date);
    ?>
</td>
                                            <td align="right"><?php 
    echo "Rp. " . rupiah($jumlahIn);
    ?>
</td>
                                            <td align="right"><?php 
    echo "Rp. " . rupiah($jumlahOut);
    ?>
</td>
                                            <td align="right"><?php 
    echo "Rp. " . $minus . " " . ltrim(rupiah($selisih), ",");
    ?>
</td>
                                            <td width="10%">
                                                <button class="btn btn-info" id="detail" onclick="cekDetail('<?php 
    echo $date;
    ?>
')">DETAIL</button>
                                            </td>
                                        </tr>  
                                        <?php 
}
?>
                                </tbody>
                            </table>
                        </div>
Ejemplo n.º 13
0
	 		<td align=left>$r2[nama_rek]</td>";
			$subtot2=$jsal2;
			$beban=$beban+abs($subtot2);
			if($subtot2<0)
			{
			 $jml5=str_replace("-","",$subtot2);
			 echo"<td align=right>"; rupiah($jml5); echo"</td>";
			}else
			{ echo"<td align=right>"; rupiah($subtot2); echo"</td>";
			}
			echo"<td>&nbsp;</td></tr>";
	}
	echo"<tr><td colspan=2>&nbsp;</td>
		<td style=' border-top-style:solid;  border-top-width:thin'>&nbsp;</td>
		<td align=right>"; if($beban<0){
		 			$beban1=str_replace("-","",$pend);
					rupiah($beban1); }else
				{ rupiah($beban); } echo"</td></tr><tr><td>&nbsp;</td></tr>";
		
		$total=$pend-$beban;
	echo"<tr><td colspan=3 align=right><strong>Laba/Rugi</strong></td>
		<td align=right style=' border-top-style:solid;  border-top-width:thin'><strong>"; if($total<0){
		 			$total1=str_replace("-","",$total);
					rupiah($total1); }else
				{ rupiah($total); } echo"</strong></td></tr><tr><td>&nbsp;</td></tr>";
  ?>
</div>
</table>
</body>
</html>
Ejemplo n.º 14
0
    echo $data->nama_barang;
    ?>
</td>
            <td align="center"><?php 
    echo $data->kemasan;
    ?>
</td>
            <td align="center"><?php 
    echo $data->qty;
    ?>
</td>
            <td align="right"><?php 
    echo rupiah($data->harga_jual);
    ?>
</td>
            <td align="right"><?php 
    echo rupiah($data->subtotal);
    ?>
</td>
        </tr>
    <?php 
    if ($id !== $data->id) {
        $no++;
    }
    $id = $data->id;
}
?>
</tbody>
</table>
<?php 
echo paging_ajax($total_data, $limit, $page, '1', $_GET['search']);
Ejemplo n.º 15
0
											$jenis='-';
									}
					echo"<td align=center><font size=-1>$jenis</font></td>
						<td align=center><font size=-1>$r1[no_resep]</font></td>
						<td align=right><font size=-1>";rupiah($r1[total]);echo"</font></td>
						</tr>";
					$no++;
					}
					$q3=mysql_query("SELECT SUM(total) FROM penjualan_head WHERE tgl = '$sekarang'");
					$r3=mysql_fetch_array($q3);
					
					
					$sub = $r3['SUM(total)'];
					echo"<tr>
						<td colspan=4 align=right><font size=-1>Subtotal </font></td>
						<td align=right><font size=-1>";rupiah($sub);echo"</font></td>
						</tr>";
				
		?>
		</font>
		</table>
		</div></td>
  </tr>
  <tr>
  	<td height="44">&nbsp;</td>
	<td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><font size="-2" style="font-style:italic"><div align="right">Date Printed : <? echo $hari; ?> Nama Petugas: <? echo $user; ?></div></font></td>
  </tr>
Ejemplo n.º 16
0
                <tr>
                  <td><strong>Lama Pengerjaan</strong></td>
                  <td><strong>:</strong></td>
                  <td><?php 
echo $order->paket_jangkawaktu;
?>
</td>
                </tr>
                <tr>
                  <td><strong>Deskripsi</strong></td>
                  <td><strong>:</strong></td>
                  <td><?php 
echo $order->paket_deskripsi;
?>
</td>
                </tr>
                <tr>
                  <td><strong>Harga</strong></td>
                  <td><strong>:</strong></td>
                  <td><?php 
echo rupiah($order->paket_harga);
?>
</td>
                </tr>
              </table>
            </div><!-- /.box-body -->
          </div><!-- /.box -->
        </div><!-- /.col -->
      </div><!-- /.row -->
    </section><!-- /.content -->
</div><!-- /.content-wrapper -->
Ejemplo n.º 17
0
">
                        <button type="button" class="btn btn-info btn-xs"><i class="fa fa-newspaper-o fa-fw"></i></button>
                    </a>
                </h4>
                <tr class="info">
                    <td style="text-align:center;">No</td>
                    <td style="text-align:center;">Kegiatan</td>
                    <td style="text-align:center;">Total (Rp)</td>
                    <td style="text-align:center;">Tanggal Ambil</td>
                </tr>
<?php 
$i = 0;
foreach ($spp as $rows) {
    $i++;
    $kegiatan = $rows->kegiatan;
    $total = rupiah($rows->total) . ',-';
    $tgl_ambil = $rows->tgl_ambil;
    ?>
                    <tr>

                        <td style="text-align:center;"><?php 
    echo $i;
    ?>
</td>
                        <td style="text-align:left;"><?php 
    echo $kegiatan;
    ?>
</td>
                        <td style="text-align:right;"><?php 
    echo $total;
    ?>
Ejemplo n.º 18
0
<?php 
}
?>
<script type="text/javascript">
$('#biaya-apt').html('<?php 
echo $jasa;
?>
');
<?php 
if (isset($cek->id)) {
    if ($cek->sisa < 0) {
        $kekurangan = '0';
    } else {
        $kekurangan = $cek->sisa;
    }
    ?>
    
        var str = '<tr class=adding><td>Total Terbayar:</td><td>Rp <?php 
    echo rupiah($cek->terbayar);
    ?>
, 00</td></tr>'+
                  '<tr class=adding><td>Kekurangan:</td><td>Rp <span id=kekurangan><?php 
    echo rupiah($kekurangan);
    ?>
</span>, 00</td></tr>';
        $('#detail_harga_jual').append(str);

<?php 
}
?>
</script>
Ejemplo n.º 19
0
										echo "<td width=70px>$result2[kd_barang]</td>
											<td width=180px>$result2[nama]</td>";
											if ($result2[3] == 0)
											{
												echo "<td align=right width=60px><font color=red>$result2[3]</font></td>";
											}
											else if ($result2['min_stok'] >= $result2[3])
											{
												echo "<td align=right width=60px><font color=blue>$result2[3]</font></td>";
											}
											else
											{
												echo "<td align=right width=60px>$result2[3]</td>";
											}
											echo "<td align=right width=80px>";
											rupiah($result2[harga_dosp]);
											echo "</td>";
											if (($pmonth == $result2['ex_month']) AND ($pyear == $result2['ex_year']))
											{ 
												echo "<td width=70px align=center><font color=blue>$result2[expire_date]</font></td>";
											}
											else if ((($ppmonth > $result2['ex_month']) AND ($pyear >= $result2['ex_year']) AND ($pdate > $result2['ex_date'])) OR 
											(($ppmonth > $result2['ex_month']) AND ($pyear >= $result2['ex_year'])))
											{
												//$qy = mysql_query("UPDATE barang_unit SET flags='0' WHERE barang_id='$result[barang_id]'"); 
												echo "<td width=70px align=center><font color=red>$result2[expire_date]</font></td>";
											}
											else if (($ppmonth == $result2['ex_month']) AND ($pyear == $result2['ex_year']))
											{
												echo "<td width=70px align=center><font color=red>$result2[expire_date]</font></td>";
											}
Ejemplo n.º 20
0
                                                <?php
                                                if ($no%2){                                                    
      												echo "<tr valign=top>";                                                    
        										}else{        										  
        											echo "<tr bgcolor=#CCCCCC valign=top style=font-color:#FF0000>";
        										}                                                
                                                if ($fetchHeader[po_created]==0){
                                                    $poStatus = "NONE";
                                                }else{
                                                    $poStatus = "PO Created";
                                                }
                                                ?>
                                                <td align=center><?=$fetchHeader[spb_no]?></td>
                                                <td align=right><?=$fetchHeader[tgl_req]?></td>
                                                <!--<td align=right><?=rupiah($fetchHeader[total])?></td>-->
                                                <td align=center><?=$fetchHeader[request_by]?></td>
                                                <td align=center><?=$fetchHeader[status]?></td>
                                                <td align=center><?=$poStatus?></td>
                                                <td width='50px' align='center' style='padding-bottom: 2px; padding-top: 2px;'>
                                                <div id="frm<?=$no?>">
                                                    <form method="post" action="home.php?hal=content/list_spb" enctype="multipart/form-data" name="frm<?=$no?>">
                                                        <input type="hidden" name="stream" value="<?=$fetchHeader[id]?>" />
                                                <?php
                                                $stream = $fetchHeader[id];
                                                if ($fetchHeader[po_created]==0){
                                                    print ("<input type=submit name=submit value='Create PO' /></td>
                                                    </form><div></tr>");
                                                }else{
                                                ?>
                                                    <a style="border: 1px solid #CCCCCC; background-color: #F0F0F0; text-decoration: none; border-spacing: 2px" 
Ejemplo n.º 21
0
										else if ((($ppmonth > $result['ex_month']) AND ($pyear >= $result['ex_year']) AND ($pdate > $result['ex_date'])) OR 
										(($ppmonth > $result['ex_month']) AND ($pyear >= $result['ex_year'])))
										{
											//$qy = mysql_query("UPDATE barang_unit SET flags='0' WHERE barang_id='$result[barang_id]'"); 
											echo "<td width=70px align=center><font color=red>$result[expire_date]</font></td>";
										}
										else if (($ppmonth == $result['ex_month']) AND ($pyear == $result['ex_year']))
										{
											echo "<td width=70px align=center><font color=red>$result[expire_date]</font></td>";
										}
										else
										{
											 echo "<td width=70px align=center>$result[expire_date]</td>";
										}
											
										echo "<td align=right>";rupiah($result[harga_dosp]); echo"</td>
											<td align=right>$result[stok_ms]</td>
											<td align=right>$result[stok_apt]</td>
											<td align=right>$result[stok_rj]</td>
											<td align=right>$result[stok_ri]</td>
											<td align=right>$result[stok_igd]</td>
											<td align=right>$result[stok_oca]</td>
											<td align=right>$result[stok_lab]</td>
											<td align=right>$result[stok_rad]</td>
											<td align=right>$result[jumlah]</td>";
										$no++;
										
									}
									echo '</table><br>';
									?>
							</td>
Ejemplo n.º 22
0
    public static function printB3l1Deal($lgcp)
    {
        $hrg_dipakai = $lgcp->camp_paket_hemat_price;
        if ($lgcp->camp_type == 2) {
            //bulk only
            $hrg_dipakai = $lgcp->camp_satuan_price;
        }
        //ganti angka dengan XXX
        if (!Auth::isLogged()) {
            $hrg_dipakai = self::convertXXX($hrg_dipakai);
            $lgcp->camp_satuan_price = self::convertXXX($lgcp->camp_satuan_price);
            $lgcp->camp_bulk_qty = "X";
        }
        ?>
<div class="deal_beli">
    <div class="col-md-6">
        <div class="camp_image" >
           <a href="<?php 
        echo _SPPATH;
        ?>
cw/campaign/<?php 
        echo $lgcp->camp_id;
        ?>
/<?php 
        echo urlencode($lgcp->camp_name);
        ?>
/1">
           <img src="<?php 
        echo _SPPATH . _PHOTOURL;
        echo $lgcp->camp_foto_panjang;
        ?>
" width="100%">
           </a>
       </div>
    </div>
    <div class="col-md-6">
        <div class="campaign_text">
            <div style="float:right; width: 95px; text-align: center; padding: 5px;">
                <button style="width: 100%;" onclick="document.location='<?php 
        echo _SPPATH;
        ?>
cw/campaign/<?php 
        echo $lgcp->camp_id;
        ?>
/<?php 
        echo urlencode($lgcp->camp_name);
        ?>
/1';" class="btn btn-default"><?php 
        echo Lang::t('VIEW');
        ?>
</button>
                
            </div>
            <h2 class="ct">
            <a href="<?php 
        echo _SPPATH;
        ?>
cw/campaign/<?php 
        echo $lgcp->camp_id;
        ?>
/<?php 
        echo urlencode($lgcp->camp_name);
        ?>
/1">
            <?php 
        echo stripslashes($lgcp->camp_name);
        ?>
</a>
            </h2>

            <!--
            <div class="descr">
            <?php 
        echo stripslashes($lgcp->camp_descr);
        ?>
            </div>-->
            <div class="rupiah storeprice">Store Price : <span style="text-decoration: line-through;" class="coret">Rp.<?php 
        echo rupiah($lgcp->camp_ori_price);
        ?>
</span></div>

            <!--<div class="rupiah pahe satuan">Harga Satuan : Rp.<?php 
        echo rupiah($lgcp->camp_satuan_price);
        ?>
</div>-->
            <div  class="rupiah pahe">
                Rp.<?php 
        echo rupiah($hrg_dipakai);
        ?>
 
                <?php 
        if ($lgcp->camp_type < 2) {
            ?>
                <span style="cursor:pointer; font-size: 13px; color:blue; text-decoration: underline;" onclick="$('#camp_<?php 
            echo $lgcp->camp_id;
            ?>
').toggle();" >?</span>
                <div id="camp_<?php 
            echo $lgcp->camp_id;
            ?>
" style="display:none; background-color: #dedede; font-size: 13px; padding: 10px; margin: 5px;">
                Beli <?php 
            echo $lgcp->camp_bulk_qty;
            ?>
 dan kelipatannya untuk mendapatkan harga lebih murah dari toko...
                </div>
                <?php 
        }
        ?>
            </div>
            <?php 
        if (!Auth::isLogged()) {
            ?>
            <div style="margin-top: 20px;">
                <div style="text-decoration: underline; color:#d2322d;cursor: pointer;" onclick="document.location='<?php 
            echo _SPPATH;
            ?>
register';" ><?php 
            echo Lang::t('LOGIN UNTUK DAPAT MELIHAT HARGA');
            ?>
</div>
            </div>
                <?php 
        }
        ?>


        </div>
    </div>
    <div class="clearfix"></div>
</div>           
         <?php 
    }
Ejemplo n.º 23
0
    $kode = $tbl->id_outcome;
    $date = $tbl->date;
    $jumlah = $tbl->amount;
    $description = $tbl->description;
    ?>
                                        <tr>
                                            <td><?php 
    echo $kode;
    ?>
</td>
                                            <td><?php 
    echo tgl_indo($date);
    ?>
</td>
                                            <td align="right"><?php 
    echo "Rp. " . rupiah($jumlah);
    ?>
</td>
                                            <td><?php 
    echo $description;
    ?>
</td>
                                            <td width="15%">
                                                <button class="btn btn-warning" id="edit" onclick="edit('<?php 
    echo $kode;
    ?>
')">EDIT</button>
                                            </td>
                                        </tr>  
                                        <?php 
}
Ejemplo n.º 24
0
pwa/p/<?php 
    echo $prod->prod_id;
    ?>
/<?php 
    echo urlencode($prod->prod_name);
    ?>
">
                <?php 
    echo $prod->prod_name;
    ?>
            </a>
        </div>
        <div class="prod_descr">

            <div class="prod_price"><?php 
    echo rupiah($prod->prod_price);
    ?>
</div>
        </div>
    </div>
</div>
<?php 
}
?>

<div class="clearfix"></div>

    <div class="gantihal" style="text-align: center;">

        <?php 
//begin pagination
Ejemplo n.º 25
0
         echo "            <td width='150'>Nama</td>\n";
         echo "            <td width='180'>Alamat</td>\n";
         echo "            <td width='90'>Gaji Pokok</td>\n";
         echo "            <td width='30' align='center'>Gol.</td>\n";
         echo "            <td width='90' align='center'>Rekening</td>\n";
         echo "        </tr>";
         if (mysqli_num_rows($cari) == 0) {
             echo "    <tr class='no-data'><td colspan='6'>Data Tidak Ditemukan.</td></tr>\n";
         } else {
             $no = 1;
             while ($datacari = mysqli_fetch_array($cari)) {
                 echo "<tr class='data'>\n";
                 echo "    <td align='center'>{$no}</td>\n";
                 echo "    <td><a href='index.php?page=transfer-gaji&id_karyawan={$datacari['id_karyawan']}' title='Transfer Gaji &rarr; {$datacari['nama']}'>{$datacari['nama']}</a></td>\n";
                 echo "    <td>{$datacari['alamat']}</td>\n";
                 echo "    <td>Rp. " . rupiah($datacari['gapok']) . "</td>\n";
                 echo "    <td align='center'>{$datacari['golongan']}</td>\n";
                 echo "    <td align='center'>{$datacari['no_rekening']}</td>\n";
                 echo "</tr>\n";
                 $no++;
             }
         }
         echo "    </table>\n";
         echo "    <p>Hasil Pencarian Data</p>\n";
         echo "</div>\n";
     }
     ?>
         <?php 
 } else {
     ?>
         <div class="box">
Ejemplo n.º 26
0
            <td></td>
            <td align="right"><?php 
echo rupiah($total_pengeluaran);
?>
</td>
            <td align="right"><?php 
echo $hpps + $ttl_beban_usaha;
?>
</td>
        </tr>
        <?php 
$result_nominal = $total_pendapatan - $total_pengeluaran;
if ($result_nominal < 0) {
    $hasil = "(" . rupiah(abs($result_nominal)) . ")";
} else {
    $hasil = rupiah($result_nominal);
}
$result_percent = round($percentage_pendapatan_barang + $percentage_jasa_apt + $percentage_pend_lain, 2) - ($hpps + $ttl_beban_usaha);
if ($result_percent < 0) {
    $hasil_percent = "(" . abs($result_percent) . ")";
} else {
    $hasil_percent = $result_percent;
}
?>
        <tr class="odd" style="font-weight: bold;">
            <td>&nbsp;LABA (RUGI)</td>
            <td align="right"></td>
            <td></td>
            <td align="right"><?php 
echo $hasil;
?>
Ejemplo n.º 27
0
											</tr>";
										$no++;
									}
									echo '</table>';
								?>
							</td>
						</tr>
					</table>
					</div><br>
					<table border="0" cellpadding="0" cellspacing="0" width="100%">
						<tr>
							<td>Sub Total : <input type="text" name="sub_tot" size="18" value="<?php rupiah($r3['SUM(subtotal)'])?>"></td>
							<td width="80px"></td>
							<td>Biaya Racik : <input type="text" name="ppn" size="12" value="<?php rupiah($biaya)?>"></td>
							<td width="80px"></td>
							<td>Grand Total : <input type="text" name="grand_total" size="20" value="<?php rupiah($grand)?>"></td>
						</tr>
					</table>
					</font>
					</td>
					<td width="15px">&nbsp;</td>
				</tr>
			</table>
	</tr>
	<tr>
		<td><img src="images/bawah_isi.png"></td>
	</tr>
</table>
</body>
</html>
Ejemplo n.º 28
0
											echo "<td width=65px>$rr[fld02]</td>";
											}else
											{
										echo "<td width=65px>$rr[kode_obat]</td>";
											}
											if($rr['racikan']=='YA')
											{
												echo "<td width=250px><a href='javascript:void(0);' onClick=\"PopupCenter('content/daftar_racik.php?no_resep=$rr[no_resep]&no_racik=$rr[fld02]', 'myPop1',800,400);\">$rr[fld01]</a></td>";
											}
											else
											{
												echo "<td width=250px>$ro[nama]</td>";
											}
										echo "<td width=45px align=center>$rr[racikan]</td>
											<td width=160px>$rd[deskripsi] ($rr[ket])</td>
											<td width=40px align=right>$rr[diberi]</td>
											<td align=right width=90px>";
											 	rupiah($ro[harga_dosp]);
										echo "</td>
											<td align=right width=90px>";
											 	rupiah($rr[sub_total]);
										echo "</td>
											<td>$rr[ket_banyak]</td>
											</tr> ";
										$no++;
										
									}
									echo "<tr>
											<td colspan=8>
											</table>";
									?>
Ejemplo n.º 29
0
										}else if($result1["kategori"]==2)
										{
										 $kat="Kewajiban";
										}else if($result1["kategori"]==3)
										{
										 $kat="Modal";
										}else if($result1["kategori"]==4)
										{
										 $kat="Pendapatan";
										}else if($result1["kategori"]==5)
										{
										 $kat="Beban";
										} */
										echo"<td align=center >$result1[motor]</td>";
										echo"<td align=center >$result1[mobil]</td>";
										echo"<td align=right >"; rupiah($result1[total]); echo"</td>";
										echo"<td align=center ><a href='javascript:void(0);' onClick=\"PopupCenter('content/edit_transaksi_parkir.php?no_trans=$result1[no_trans]','myPop1',400,200);\">EDIT</a></td>";
										echo"</tr>";
										$no++;
									}
								}
									echo"</table>";
									
									echo '<div align=center><br>';

									$query   = "SELECT COUNT(id) AS numrows FROM parkir order by no_trans asc ";
									$result  = mysql_query($query) or die('Error, query failed');
									$row     = mysql_fetch_array($result, MYSQL_ASSOC);
									$numrows = $row['numrows'];

									$maxPage = ceil($numrows/$rowsPerPage);
Ejemplo n.º 30
0
            <td align="right"><?php 
    echo rupiah($data->keluar);
    ?>
</td>
            <td align="right"></td>
            
        </tr>
    <?php 
    $total_masuk = $total_masuk + $data->masuk;
    $total_keluar = $total_keluar + $data->keluar;
}
?>
</tbody>
<tfoot>
    <tr>
        <td colspan="2" align="right"><b>TOTAL</b></td>
        <td align="right"><b><?php 
echo rupiah($total_masuk);
?>
</b></td>
        <td align="right"><b><?php 
echo rupiah($total_keluar);
?>
</b></td>
        <td align="right"><b><?php 
echo rupiah($total_masuk - $total_keluar);
?>
</b></td>
    </tr>
</tfoot>
</table>