<?php if ($_SESSION['barcode'] == 1) { ?> <script type="text/javascript"> setTimeout('window.print()', 1000); setTimeout('move()', 1000); </script> <?php $qry = mysql_query("SELECT barang.*,\r\n\t \t\t\t\t\t\t kategori.*,\r\n\t\t\t\t\t\t\t cetak_barcode.*\r\n\t\t\t\t\t\t FROM barang, kategori, cetak_barcode\r\n\t\t\t\t\t WHERE barang.id_brg = cetak_barcode.id_brg\r\n\t\t\t\t\t\t AND barang.id_kat = kategori.id_kat\r\n\t\t\t\t\t ORDER BY barang.id_brg"); while ($row = mysql_fetch_array($qry)) { $i = 1; while ($i <= $row[qty]) { ?> <div class="barcode"> <?php print bar128(stripslashes($row[barcode]), $row[harga_jual]); ?> </div> <?php $i++; } print "</br>"; $q_delbar = mysql_query("DELETE FROM cetak_barcode WHERE id_bar='{$row['id_bar']}'"); } unset($_SESSION['barcode']); } else { ?> <script type="text/javascript"> setTimeout('self.location.href ="?mod=bar"',1); </script> <?php
$sql_buku = "SELECT jatuh_tempo,bukdet_status,rak_lokasi,buku_id,bukdet_kode FROM buku_detail where buku_id='" . $id . "'"; // echo $sql_buku; exit; $result_buku = mysql_query($sql_buku); while ($data_buku = mysql_fetch_array($result_buku)) { $kode = $data_buku['bukdet_kode']; ?> <table border="1" cellpadding="3" cellspacing="3" align="center" width="100%"> <tr> <td colspan="3" align="center"> <b><?php echo $data_judul['buku_judul']; ?> </b> </td> </tr> <tr> <td align="center"><?php echo bar128(stripslashes($kode)); ?> </td> </tr> <tr> <td align="center"> Perpustakaan, SMK Ma'arif Ponjong </td> </tr> </table> <?php } echo '</div>';
foreach ($_SESSION['id'] as $id) { $sql = "SELECT * FROM anggota WHERE id='{$id}'"; $item = $database->fetch_data($sql); ?> <div class="row-fluid"> <div style="width: 150px; float: left; margin-top: 30px;"> <img width="120" src="<?php echo $addr_img_thumbs . $item['foto']; ?> "> </div> <div class="span4" style="margin-left: 0px;"> <table> <tr> <td colspan="3" align="center"><?php echo bar128($item['kta_baru']); ?> </td> </tr> <tr> <td>Nama</td><td>:</td> <td><?php echo $item['nama']; ?> </td> </tr> <tr> <td>TTL</td><td>:</td> <td><?php echo $item['tempat'] . ", " . $date->dateIndo($item['tgl_lahir']); ?>
$sql = mysql_query("SELECT max(Barcode) + 1 as newbarcode FROM unusedmat"); $row = mysql_fetch_array($sql); $newbarcode = $row["newbarcode"]; $timedatestamp = isset($_GET['timedatestamp']) ? $_GET['timedatestamp'] : ''; $tgl = date('ymd'); include 'bar128.php'; if (isset($_POST['finalbarcode'])) { $finalbarcode = $_POST['finalbarcode']; } $finalbarcode = null; $digit = null; $digit = $newbarcode; $tglbarcode = substr($digit, 1, 6); $finalbarcode = $digit; echo '<div style="border:3px double #ababab; padding:5px;margin:5px auto;width:144px;">'; echo bar128(stripslashes($finalbarcode)); echo '</div>'; echo "             "; ?> <br><br> </font ></td> </tr> <!--untk tampung data yang diinsert user, dan ditampung ke variable yang ada di dosimpanmakananjadi.php--> <input type="hidden" class="inputdata" name="username" value="<?php echo $username; ?> "> <input type="hidden" class="inputdata" name="finalbarcode" value="<?php echo $finalbarcode;
$n = mysql_num_rows($e); $out.=' <table border="1" width="50%">'; // $nox = 1; if($n==0){ $out.=' <tr> <td colspan="2">-</td> </tr>'; }else{ $kolom = 2; $counter = 1; while ($r=mysql_fetch_assoc($e)) { if (($counter-1) % $kolom == 0){ $out.="<tr>"; } // $x ='okok'; $x = bar128(stripcslashes($r['barkode'])); // var_dump($x);exit(); $out.="<div class='barcode'>"; // <font face='code128' size='10'> // $out.="<div class='barcode'>"; $out.=$x; $out.="</div>"; // <br /> // ".$r['kode']." // $out.="<td align='center' cellspacing='5' style='padding: 20px' width='20%'> // <font face='code128' size='10'> // <div class='barcode'>"; // // $out.="<div class='barcode'>"; // $out.=$x; // $out.="</font> // </div>
<?php include "bar128.php"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title> </head> <body> <?php echo bar128(stripslashes("FIRMANSYAH WEB")); ?> </body> </html>