<html>
<head>
</head>
<body>
<div id="body">
<form id="login" method="post" action="">
<div>
<h1><center><b>Laporan Pegawai</b></center>
<br><br><b>Cari Berdasarkan</b> :
<select id="form" name="pencarian">
<option value="1">Laporan Golongan
<option value="2"> Laporan Promosi
</select>
<input type="submit" name="submit" id="submit" value="cari">
</h1>
</div>
<?php
if($_POST['pencarian']==1) {
?>
<?php
$_session['pencarian']="";
$pencarian=isset($_REQUEST['pencarian']) ? $_REQUEST['pencarian'] : '';
if(!empty($pencarian)){
?>
<form id="Form2" name="Form2" method="post" action="form3.php">
Unit Kerja :<select id="form" name="unit" >
<option value="tanaman">tanaman</option>
<option value="pengelolahan"> pengolahan</option>
</select>
</form>
<?php } else { ?>
<form id="Form2" name="Form2" method="post" action="form3.php">
Nama pegawai atau NIP :<input name="cari" type="text" id="form" placeholder="NIP atau Nama Pegawai" size=40>
<input type="submit" name="submit" id="submit" value="cari">
</form>
<?php } } ?>
</div></form>
</div>
</body>
</head>
<script>
$(document).ready(function(){
$("#nowoption").show();
$("#manually").hide();
$("input[name='senddateoption']").click(function() {
if($(this).val()=='option1') { $("#nowoption").show(); }
});
$("input[name='sendoption']").click(function() {
if($(this).val()=='sendoption1') { $("#person").show(); }
});
});
</script>
<h4>Silahkan Isi Form ini untuk mengirimkan SMS</h4>
<fieldset>
<?php
echo form_open('sendsms');
$nomor = "";
$datainbox = $this->Mysms_model->getInbox('all');
foreach($datainbox->result() as $tmp):
$idnya = $tmp->ID;
$dataname ="nomor$idnya";
if($this->input->post($dataname) != null) {
$nomor = $tmp->SenderNumber;
$this->Kalkun_model->masukYa1($idnya);
}
endforeach;
?>
<table>
<tr>
<td width="125px" align="right"><b>Send to</b></td><td width="30px"> : </td>
<td><input type="radio" name="sendoption" value="sendoption1" checked="checked">Input Manual
<input type="radio" name="sendoption" value="sendoption2" checked="checked"/>
Phonebook
</div>
</td>
</tr>
<tr>
<td colspan="2"> </td>
<td><br>
<div id="person">
<div class="note">(Ketikkan Nomor HP, bila lebih dari satu, pisahkan dengan tekan tombol Enter)</div>
<textarea cols="30" rows="3" name="personvalue"><?php echo $nomor; ?></textarea>
</div>
</td>
</tr>
<tr>
<td align="right">Send date</td><td> : </td>
<td><input type="radio" name="senddateoption" value="option1" checked="checked">Now
</td>
</tr>
<tr valign="top">
<td align="right"><b>No Surat</b></td><td> : </td><td><b><input type="text" style="width" name="no surat" />
<tr valign="top">
<td align="right"><b>Subject</b></td><td> : </td><td><b><input type="text" style="width" name="subject" />
<tr valign="top">
<td align="right"><b>From</b></td><td> : </td><td><b><input type="text" style="width" name="from" />
<tr valign="top">
<td align="right"><b>Date</b></td><td> : </td><td><b><input type="Date" style="width" name="Date" />
<tr valign="top">
<td align="right"><b>Message</b></td><td> : </td><td><b>
<textarea class="word_count" cols="45" rows="5" name="message"></textarea><br /><span class="counter"></span></b></td>
</tr>
</table>
<br />
<div align="center"><input type="submit" id="submit" value="Send SMS" /></div>
<?=form_close();?>
</fieldset>
<?php if ($validation_error !='') { ?>
<script type="text/javascript">
alert("<?=$validation_error?>");
</script>
<?php } ?>
<?php
session_start();
include_once "login_session.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>Daftar Barang</title>
</head>
<body>
<table width="600" border="0" cellspacing="1" cellpadding="2">
<tr>
<td width="27" bgcolor="#CCCCCC"><strong>No</strong></td>
<td width="57" bgcolor="#CCCCCC"><strong>Kode Barang</strong></td>
<td width="198" bgcolor="#CCCCCC"><strong>Jenis Barang</strong></td>
<td width="198" bgcolor="#CCCCCC"><strong>Type Barang</strong></td>
<td width="198" bgcolor="#CCCCCC"><strong>Merk Barang</strong></td>
<td width="198" bgcolor="#CCCCCC"><strong>Keterangan Barang</strong></td>
<td width="198" bgcolor="#CCCCCC"><strong>Tanggal Masuk Barang</strong></td>
<td width="198" bgcolor="#CCCCCC"><strong>Satuan Barang</strong></td>
<td width="198" bgcolor="#CCCCCC"><strong>Total Harga Barang</strong></td>
<td width="198" bgcolor="#CCCCCC"><strong>Satuan Barang</strong></td>
<td width="117" align="center" bgcolor="#CCCCCC"><strong>Action</strong></td>
</tr>
<?php
include_once "../librari/inc.koneksidb.php";
include_once "../librari/inc.librari.php";
if($_GET) {
$kdBarang = $_GET['kdBarang'];
$sql = "SELECT barang .*, jenis.nm_jenis, type.nm_type, merk.nm_merk, rekanan.nm_rekanan FROM barang, jenis, type, merk, rekanan WHERE barang.kd_jenis=jenis.kd_jenis, barang.kd_type=type.kd_type, barang.kd_merk=merk.kd_merk, barang.kd_rekanan=rekanan.kd_rekanan AND barang.kd_barang='$kdBarang'";
$query = mysql_query($sql, $koneksiDbs) or die ("Query barang salah : ".mysql_error());
$nomor = 0;
while ($data = mysql_fetch_array($query)) {
$nomor++;
?>
<tr>
<td> <?php echo $nomor; ?> </td>
<td> <?php echo $data['kd_barang']; ?> </td>
<td> <?php echo $data['nm_jenis']; ?> </td>
<td> <?php echo $data['nm_type']; ?> </td>
<td> <?php echo $data['nm_jenis']; ?> </td>
<td> <?php echo $data['ket_barang']; ?> </td>
<td> <?php echo $data['tgl_masuk']; ?> </td>
<td> <?php echo $data['satuan']; ?> </td>
<td> <?php echo $data['total']; ?> </td>
<td> <?php echo $data['nm_rekanan']; ?> </td>
<td align="center">
<a href="barangUbah.php?Kode=<?php echo $data['kd_barang']; ?>" target="_self">Edit</a> |
<a href="barangHapus.php?Kode=<?php echo $data['kd_barang']; ?>" target="_self">Delete</a></td>
</tr>
<?php } ?>
</table>
</body>
</html>
<tr>
<td>
<h4 align='center'>$data[pertanyaan]</h4>
</td>
</tr>
<tr>
<td>
<input type='checkbox' name='satu' value='satu'>$data[satu]</td>
</td>
</tr>
<tr>
<td>
<input type='checkbox' name='dua' value='dua'>$data[dua]</td>
</td>
</tr>