Minggu, 30 Juni 2013

[ASK] gan mohon pencerahnya dunk kasus kyk gini ne...

Bagoes Mahesa 4:31am Jul 1
[ASK] gan mohon pencerahnya dunk kasus kyk gini ne ketika sent ke email ..
thx sebelumnya

Gunawan Mujur Wibisono 4:33am Jul 1
km email pake perintah apa?

Firza Aditya Primandani 4:33am Jul 1
script kirim e-mailnya sekalian dong, biar bisa dicek kesalahan ada dmn :)

Widhiarta Aditif 4:34am Jul 1
kasih header HTML di pengiriman emailnya

Bagoes Mahesa 4:36am Jul 1
------------inputan-----------
<label for="judul">Deksripsi Order</label>
<textarea name="pesan"><p>Kami telah menerima pembayaran order dengan No. Order <?php echo"$order_id";?>,atas nama: <?php echo"$nama_kustomer";?> sebesar Rp. <?php echo"$grand_total_rp"?></p>
<table id="table_liquid" cellspacing="0">
<?php
$query_orders = mysql_query("SELECT * FROM orders WHERE order_id='$ID '");
$no=1;
while ( $hasil_orders = mysql_fetch_array($query_orders)){
//array
$order_id = $hasil_orders ['order_id'];
$nama_kustomer = $hasil_orders ['nama_kustomer'];
$alamat = $hasil_orders ['alamat'];
$telpon = $hasil_orders ['telpon'];
$email = $hasil_orders ['email'];
$order_tgl = tgl_indo($hasil_orders ['order_tgl']);
$order_jam = $hasil_orders ['order_jam'];
$order_status = $hasil_orders ['order_status'];

?>
<tr>

<td><?php echo"$order_tgl"; ?> & <?php echo"$order_jam"; ?></td>
<td>
<?php


$no++;
} ?>
</table>
<form method="post" action="modul/order/order-act.php?act=add" enctype="multipart/form-data">
<table id="table_liquid" cellspacing="0">
<tr>
<th>Nama Produk</th>
<th>Jumlah</th>
<th>Harga Satuan</th>
<th>Sub Total</th>
</tr>
<?php $query_detail = mysql_query("SELECT * FROM order_detail, produk
WHERE order_detail.produk_id=produk.produk_id AND order_detail.order_id='$ID'");
$no=1;
while( $hasil_detail = mysql_fetch_array($query_detail)){
//array
$order_id = $hasil_detail ['order_id'];
$produk_nama = $hasil_detail ['produk_nama'];
$order_tgl = tgl_indo($hasil_orders ['order_tgl']);
$jumlah = $hasil_detail ['jumlah'];
$produk_harga = $hasil_detail ['produk_harga'];
$produk_berat = $hasil_detail ['produk_berat'];
$sub_total_berat = $produk_berat * $jumlah;
$total_berat = $total_berat + $sub_total_berat;
// jika berat 0 maka di bulatkan menjadi 1
if($total_berat==0){
$total_berat = 1;
}

//tampilan RP
//harga satuan
$produk_harga_rp = format_rupiah($produk_harga);
$sub_total = $jumlah*$produk_harga;
$sub_total_rp = format_rupiah($sub_total);
//total
$total = $total + $sub_total;
$total_rp = format_rupiah($total);

?>

<tr>
<td><?php echo"$produk_nama"; ?></td>
<td><?php echo"$jumlah"; ?></td>
<td>Rp. <?php echo"$produk_harga_rp"; ?></td>
<td>Rp. <?php echo"$sub_total_rp"; ?></td>
</tr>

<?php } ?>
<tr>
<td colspan="3" align="right">Total :</td>
<td>Rp. <b><?php echo"$total_rp"; ?></b></td>
</tr>
<tr>
<?php
$ongkos = mysql_query("SELECT * FROM kota,orders WHERE orders.kota_id=kota.kota_id AND order_id='$ID'");
$ongkos_hasil = mysql_fetch_array($ongkos);
$ongkos_kirim = $ongkos_hasil['ongkos_kirim'];
$ongkos_kirim_rp = format_rupiah($ongkos_kirim);

echo"
<td colspan='3' align='right'>Ongkos Kirim Tujuan Kota Pembeli :</td>
<td>Rp. $ongkos_kirim_rp /Kg</td>";

?>
</tr>
<tr>
<?php
$ongkos = mysql_query("SELECT * FROM kota,orders WHERE orders.kota_id=kota.kota_id AND order_id='$ID'");
$ongkos_hasil = mysql_fetch_array($ongkos);
$ongkos_kirim = $ongkos_hasil['ongkos_kirim'];
$ongkos_kirim_rp = format_rupiah($ongkos_kirim);

echo"
<td colspan='3' align='right'>Total Berat Barang :</td>
<td>$total_berat</td>";

?>
</tr>
-------act----------------
<?php
if($act=="kirimemail"){
$ID = $_GET['id'];

mail($_POST[email],$_POST[subjek],$_POST[pesan],"From: guzmahesa@yahoo.com");
echo "<h2>Status Email</h2>
<p>Email telah sukses terkirim ke tujuan</p>";
?>

Bagoes Mahesa 4:37am Jul 1
Widhiarta Aditif : di textareanya gan ?

Gunawan Mujur Wibisono 4:37am Jul 1
^km salah metode ngirim emailnya

Bagoes Mahesa 4:38am Jul 1
Gunawan Mujur Wibisono : kyk gini gan

Widhiarta Aditif 4:39am Jul 1
http://php.net/manual/en/function.mail.php

Bagoes Mahesa 4:39am Jul 1
Firza Aditya Primandani : kyk gini script ane gan.
Gunawan Mujur Wibisono : penanganannya gmana gan ?

Gunawan Mujur Wibisono 4:39am Jul 1
http://css-tricks.com/sending-nice-html-email-with-php/
perhatikan headernya
ngasi manual mail tidak akan membantu tanpa memberi tahu posisi/parameter mana yg akan di edit

Widhiarta Aditif 4:40am Jul 1
tambahin header dibelakang.. Perhatikan contoh disini // To send HTML mail, the Content-type header must be set
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

// Additional headers
$headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
$headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";

// Mail it
mail($to, $subject, $message, $headers);
?>

Andri Ma'ruf Anshori 4:40am Jul 1
coba ini
https://github.com/anddrie69/PHP-Mail

Bagoes Mahesa 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728422206101
--
Manage subscription | Powered by rssforward.com

ada yg tau fitur buat download pdf, atau excel den...

Adi Irawan 4:27am Jul 1
ada yg tau fitur buat download pdf, atau excel dengan php?

Danura Aditya 4:28am Jul 1
fpdf

Eko D. Expired 4:31am Jul 1
numpang ngasi ref ya : http://phpexcel.codeplex.com/

Adi Irawan 4:32am Jul 1
itu apa ko? buat ke excel kah?

Adi Irawan 4:33am Jul 1
tau aja ni eko, sebenernya sy mau yg ke excel :P

Adi Irawan 4:33am Jul 1
tp kok 5MB sih lib nya? ==a

Eko D. Expired 4:35am Jul 1
pdf bisa, ke excel apalagi hehe

Eko D. Expired 4:36am Jul 1
ntar hapus aja docs nya

Adi Irawan 4:36am Jul 1
yg mana aja yg dipake tu?

Adi Irawan 4:36am Jul 1
kalo cuma buat excel

Eko D. Expired 4:36am Jul 1
folder "Classes" nya aja yang dipake

Adi Irawan 4:37am Jul 1
di include aja kan ya? kyk lib fpdf jg?

Adi Irawan 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728418506101
--
Manage subscription | Powered by rssforward.com

misi pak mau tanya, ada yang tau paket hosting & d...

Heru Cmy 4:12am Jul 1
misi pak mau tanya, ada yang tau paket hosting & domain [.]web[.]id murah + cepet prosesnya? makasih.

Heru Cmy 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728397106101
--
Manage subscription | Powered by rssforward.com

misi masster sorry agak OOT :Dbtw ada yang tau ga...

Angga Junior 4:08am Jul 1
misi masster sorry agak OOT :D
btw ada yang tau gak cara nampilin data variable Javascript ke HTML.
klo nampilin data Javascript ke PHP kan kek gini
<input type="text" id="nama" name="nama" value="<?php $data ?>" />

klo di html gimana ya? soalnya extensinya harus .html
*jQueryMobile

thx u

Ruli Armando 4:12am Jul 1
pake jquery aja

$('#nama').val(variable_javascript_tadi);

Angga Junior 4:12am Jul 1
thx u gan ane coba dulu :D

Angga Junior 4:15am Jul 1
cara nyisipinnya gini gan ?
<input type="text" id="nama" name="nama" value="$('#nama').val(j.nama);" />

Angga Junior 4:15am Jul 1
<script type="text/javascript">
$(document).ready(function(){
$("#cek").click(function(){
// Post string
var post_npm = $.trim($("#npm").val());
$.ajax({
type: "GET",
data: ({npm: post_npm}),
dataType: "json",
cache: false,
url: "json_data.php",
timeout: 2000,
error: function() {
alert("Failed to submit");
},
success: function(data) {
$.each(data, function(i, j){
var row = "Nama : "+j.nama+"<br> Kelas : "+j.kelas+"<br> eMail : "+j.email;
$("#tampil").html(row);
});
}
});
});
});
</script>

Ruli Armando 4:17am Jul 1
ya g gitu donk

<script>
$(function(){
$('#nama').val(j.nama);
});
</script>

Ruli Armando 4:18am Jul 1
coding javascript itu musti unobtrusive, jadi jangan sampai mengotori html

Angga Junior 4:20am Jul 1
hehehe mklum gan nubi :D
ane lupa wkwkwk
thx gan dah bisa :D

Angga Junior 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728392406101
--
Manage subscription | Powered by rssforward.com

[ASK]mhon solusi y abang", KK semua y,,,ni knpa ...

Imron Responsible 3:53am Jul 1
[ASK]
mhon solusi y abang", KK semua y,,,
ni knpa y?
error E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) sya jga tdak bsa copy-paste file d folder var/www
terima kasih

Cahya Dsn 3:54am Jul 1
permission?

Lanjutkan Membaca 3:55am Jul 1
udah root?

Imron Responsible 3:56am Jul 1
om Cahya@ bsa d perjelas lgi bang, lanjutkan@ udah jga bang

Lanjutkan Membaca 3:57am Jul 1
ada aplikasi lain yang menggunakan aptitude

Lanjutkan Membaca 3:57am Jul 1
tapi harusnya copypaste ga pake aptitude :v

Imron Responsible 3:58am Jul 1
tu g bsa co-pas lo om d var/www

Lanjutkan Membaca 4:00am Jul 1
coba dari shell aja sudo cp /source /var/www

Imron Responsible 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728372621101
--
Manage subscription | Powered by rssforward.com

mau bli baju php indonesia, kira2 bisa g klo lokas...

Agoez Blackrs 3:42am Jul 1
mau bli baju php indonesia, kira2 bisa g klo lokasi'y d bandung?

Tatang Suryana 3:43am Jul 1
colek om La Jayuhni Yarsyah :)

Agoez Blackrs 3:43am Jul 1
colek colek.. hhe

Agoez Blackrs 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728359656101
--
Manage subscription | Powered by rssforward.com

gan ane mo nnya.pada tabel master itu blh ada fo...

Yudi Sparkly Core Xii 3:58am Jul 1
gan ane mo nnya.

pada tabel master itu blh ada foreign key gg?

misal tabel jurusan : programid, program
tabel mahasiswa : nim,nama,tglLahir,jkel,alamat,telp

nah di tabel mahasiswa ane mo tambahin programid dari jurusan itu.
bisa gg itu gan?

Makasih :)

Yudi Sparkly Core Xii 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728378541101
--
Manage subscription | Powered by rssforward.com

[SHARE]slide presentasi Meetup 5 PHP Surabaya h...

Deory Pndu Putra 3:53am Jul 1
[SHARE]

slide presentasi Meetup 5 PHP Surabaya
https://docs.google.com/presentation/d/1gMzxm3iVhBDLXjIXWEm6nSwTC7xnJICm1HJGFe9N40I/edit?usp=sharing

Deory Pndu Putra 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728371651101
--
Manage subscription | Powered by rssforward.com

[Tanya] Bedanya PHP "Non Thread Safe" ama "Thread ...

Nugrahadi Wuri 3:42am Jul 1
[Tanya] Bedanya PHP "Non Thread Safe" ama "Thread Safe" itu dmn-nya sih?
Terimakasih sebelumnya

Nugrahadi Wuri 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728360276101
--
Manage subscription | Powered by rssforward.com

temen2 mohon bantuan'a , , , ,jd gni,sy mau mangg...

Muhammad Zikri 3:27am Jul 1
temen2 mohon bantuan'a , , , ,
jd gni,sy mau manggil script untuk penghapusan pada table dgn perintah :

<a href="StokUbah.php?kdubah=<? echo $data['id_obat']; ?>"><img src=../icon/update.png border=0/></a>

nah tp stlah sya msukan ke source code yg sya kerjakan kok malah eror,kira2 gmn ya?
mohon bntuan'a.

ini source table'a :
<?php
session_start();
include_once "../include2/librari.php";
include_once "../include2/session.php";
?>
<html>
<head>
<title>Daftar Obat</title>
<link href="../css/css.css" media="screen" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../js/jquery-1.5.1.min.js"></script>
<script type="text/javascript">
// When document is ready: this gets fired before body onload :)
$(document).ready(function(){
// Write on keyup event of keyword input element
$("#kwd_search").keyup(function(){
// When value of the input is not blank
if( $(this).val() != "")
{
// Show only matching TR, hide rest of them
$("#my-table tbody>tr").hide();
$("#my-table td:contains-ci('" + $(this).val() + "')").parent("tr").show();
}
else
{
// When there is no input or clean again, show everything back
$("#my-table tbody>tr").show();
}
});
});
// jQuery expression for case-insensitive filter
$.extend($.expr[":"],
{
"contains-ci": function(elem, i, match, array)
{
return (elem.textContent || elem.innerText || $(elem).text() || "").toLowerCase().indexOf((match[3] || "").toLowerCase()) >= 0;
}
});

</script>
</head>

<?php

include "../include2/header.html";
include "./include/koneksi2.php";

{

?>
</div>

<tr>
<td id="tengah" valign="top">
<?php
echo "<center>";
echo "<table>";
$batasan=5; // nilai awal utk kelipatan 5
$file="stoktampil.php";
$batas=$_GET['batas']; // limit yang dinamis
$halaman=$_GET['halaman'];

if(empty($halaman)){
$posisi=0;
$halaman=1;
}
else{
$posisi = ($halaman-1) * $batas;
}
$tampil2="select a.id_obat, a.nama_obat, a.harga_jual, a.jumlah_stok, a.khasiat_obat, a.id_golongan, b.satuan, a.idlayanan from obat a, satuan_besar b where a.id_satuanb=b.id_satuanb group by b.id_satuanb";
$hasil2=mysql_query($tampil2);
$jmldata=mysql_num_rows($hasil2);
echo "<tr>
<td align='center'><h2>Daftar Stok Obat</h2></td>
</tr>
<tr>
<td align='center'><b><p>Jumlah keseluruhan : $jmldata Item</p></b></td>
</tr>";
echo "<tr>
<td><form method=get action='$file'>
<input type=hidden name=halaman value=$halaman>
Tentukan Tampilan Data Per Halaman:
<select name=batas onChange='this.form.submit()'>";
for ($i=1;$i<=10;$i++){
$angka=$batasan*$i;
if ($batas==$angka)
echo "<option value=$angka selected>$angka</option>";
else
echo "<option value=$angka>$angka</option>";
}
echo "</select></form>";
?>Search: <input type="text" id="kwd_search" value=""/><?php
echo "</td></tr>";

// Langkah 1
if(empty($batas)){
$batas=$batasan;
}
else{
$batas=$batas;
}

// Langkah 2: Sesuaikan perintah SQL

$tampil="select a.id_obat, a.nama_obat, a.harga_jual, a.jumlah_stok, a.khasiat_obat, a.id_golongan, b.satuan, a.idlayanan from obat a, satuan_besar b where a.id_satuanb=b.id_satuanb limit $posisi,$batas";
$hasil=mysql_query($tampil);
echo "<tr>
<td><table border='2' id='my-table' width='700px' align='center'>
<thead><tr><th>No</th><th>ID</th><th>Nama Obat</th><th>Harga Jual</th><th>Jumlah Stok</th><th>Khasiat Obat</th><th>Golongan<th>Satuan</th><th>Layanan</th><th colspan=\"2\">Operasi</th></tr></thead>";

$no=$posisi+1;
while ($data=mysql_fetch_array($hasil)){
$id_obat=$data["id_obat"];
if ($no%2==0)
{
$warna = "#ffffff";
}
else
{
$warna = "#CBDCE2";
}
echo "<tr bgcolor=".$warna.">";
if ($no<=400)
{
echo "<td align='center'>$no</td><td>$data[0]</td><td>$data[1]</td><td>Rp.$data[2]</td><td align='center'>$data[3]</td><td>$data[4]</td><td>$data[5]</td><td align='center'>$data[6]</td><td align='center'>$data[7]</td>";

echo "<td align='center'><button title='Ubah Data' style='width: 30px;'onClick=\"window.open('StokUbah.php?id_obat=".$id_obat."');\"><img src='../icon/update.png'/></td></button>
<td align='center'><button title='Hapus' style='width: 30px;' onClick=\"window.open('form.php?id_obat=".$id_obat."');\"><img src='../icon/hapus.png'/></button></td>
</tr>";
}

$no ++;
}
echo "</table></tr></td>";

// Langkah 3: Hitung total data dan halaman serta link 1,2,3 ...
echo "<tr>
<td>Halaman : ";

$jmlhalaman=ceil($jmldata/$batas);

for($i=1;$i<=$jmlhalaman;$i++)
if ($i != $halaman){
echo " <a href=$file?halaman=$i&batas=$batas>$i</A> | ";
}
else{
echo " <b>$i</b> | ";
}
echo "</td>
</tr>";
echo "</table>";
echo "</center>";

}

?>
</td>
</tr>
</table><?php include "../include2/footer.html";?>
</body>
</html>

Muhammad Zikri 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728343036101
--
Manage subscription | Powered by rssforward.com

Mau naya masalah @media untuk menentukan CSS mana ...

Jonathan Rinaldy 3:29am Jul 1
Mau naya masalah @media untuk menentukan CSS mana yang di pake
Untuk Source ini
<link rel="stylesheet" media="(max-width: 800px)" href="example.css" />
<link rel="stylesheet" media="(min-width: 800px)" href="example2.css" />

apakah source itu bisa di jalankan saat screen resulusi di besarkan lebih atau kurang dari 800px???

Rie Surya 3:36am Jul 1
bisa :) IMO, knp gak ditulis dalam satu file aja @media screen nya? bisa hemat HTTP Request :)

Jonathan Rinaldy 3:39am Jul 1
contoh nya gan?

Jonathan Rinaldy 01 Jul, 2013


-
Source: http://www.facebook.com/groups/35688476100/?id=10151728345561101
--
Manage subscription | Powered by rssforward.com