Tolong pilih kategori sesuai, jenis posting (pertanyaan atau bukan) dan sertakan tag/topik yang sesuai misal komputer, php, mysql, dll.
Promosi atau posting tidak pada tempatnya akan kami hapus.
Klik link berikut untuk informasi cara menyisipkan kode program supaya tampil rapi dan terformat dengan baik di diskusiweb.com: http://www.diskusiweb.com/discussion/50415/cara-menyisipkan-kode-program-di-diskusiweb-com

Baca cara posting gambar/image di post Anda: http://www.diskusiweb.com/discussion/47345/cara-menyisipkan-menyertakan-image-pada-posting/p1

Bagaimana cara mencetak tanggal ke pinggir??

kan ini tanggalnya kebawah


tah kalau pengen tanggalnya ke samping kaya gini gimana yah ini saya contohnya pake exel



Untuk Source code nya

<style type="text/css"> div{ -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } body{ font-family:Arial, Helvetica, sans-serif; font-size:11px; } .hari{ float:left; padding:5px; width:40px; text-align:center; margin:2px; background:#0CF; background-image:-webkit-linear-gradient(top,#ffffff 0%,#3e9ad2 100%); background-image:-moz-linear-gradient(top,#ffffff 0%,#3e9ad2 100%); background-image:-o-linear-gradient(top,#ffffff 0%,#3e9ad2 100%); background-image:-ms-linear-gradient(top,#ffffff 0%,#3e9ad2 100%); background-image:linear-gradient(top,#ffffff 0%,#3e9ad2 100%); } .tgl{ float:left; padding:5px; width:40px; text-align:center; margin:2px; background:#CCC; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6)); background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6); background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); } .tgl:hover{ background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd)); background-image: -moz-linear-gradient(top, #049cdb, #0064cd); background-image: -ms-linear-gradient(top, #049cdb, #0064cd); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd)); background-image: -webkit-linear-gradient(top, #049cdb, #0064cd); background-image: -o-linear-gradient(top, #049cdb, #0064cd); background-image: linear-gradient(top, #049cdb, #0064cd); color:#FFF; } .float_habis{ padding:1px; text-align:center; } .tgl_blank{ float:left; padding:5px; width:40px; text-align:center; margin:2px; background:#F8F8F8; color:#CCC; } .tgl_skrng{ float:left; padding:5px; width:40px; text-align:center; margin:2px; background:#FC0; } .blokbaris{ padding:5px; text-align:center; margin:2px; } </style> <?php $now = getdate(time()); $time = mktime(0,0,0, $now['mon'], 1, $now['year']); $date = getdate($time); $dayTotal = cal_days_in_month(0, $date['mon'], $date['year']); //Print the calendar header with the month name. print '<strong>' . $date['month'] . '</strong>'; print '<div class=blokbaris>'; $hari=array('Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'); for ($i = 0; $i < 7; $i++) { print "<div class='hari'>$hari[$i]</div>"; } print '<div class=float_habis>&nbsp;</div></div>'; for ($i = 0; $i < 6; $i++) { print '<div class=blokbaris>'; for ($j = 1; $j <= 7; $j++) { $dayNum = $j + $i*7 - $date['wday']; //Print a cell with the day number in it. If it is today, highlight it. print '<div'; if ($dayNum > 0 && $dayNum <= $dayTotal) { print ($dayNum == $now['mday']) ? ' class=tgl_skrng>' : ' class=tgl>'; print "$dayNum"; } else { //Print a blank cell if no date falls on that day, but the row is unfinished. print ' class=tgl_blank> - '; } print '</div>'; } print '<div class=float_habis>&nbsp;</div></div>'; if ($dayNum >= $dayTotal && $i != 6) break; } ?>

Comments

  • kan ini tanggalnya kebawah


    tah kalau pengen tanggalnya ke samping kaya gini gimana yah ini saya contohnya pake exel



    Untuk Source code nya


    <style type="text/css"> div{ -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; } body{ font-family:Arial, Helvetica, sans-serif; font-size:11px; } .hari{ float:left; padding:5px; width:40px; text-align:center; margin:2px; background:#0CF; background-image:-webkit-linear-gradient(top,#ffffff 0%,#3e9ad2 100%); background-image:-moz-linear-gradient(top,#ffffff 0%,#3e9ad2 100%); background-image:-o-linear-gradient(top,#ffffff 0%,#3e9ad2 100%); background-image:-ms-linear-gradient(top,#ffffff 0%,#3e9ad2 100%); background-image:linear-gradient(top,#ffffff 0%,#3e9ad2 100%); } .tgl{ float:left; padding:5px; width:40px; text-align:center; margin:2px; background:#CCC; background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(25%, #ffffff), to(#e6e6e6)); background-image: -webkit-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-image: -moz-linear-gradient(top, #ffffff, #ffffff 25%, #e6e6e6); background-image: -ms-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-image: -o-linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); background-image: linear-gradient(#ffffff, #ffffff 25%, #e6e6e6); } .tgl:hover{ background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd)); background-image: -moz-linear-gradient(top, #049cdb, #0064cd); background-image: -ms-linear-gradient(top, #049cdb, #0064cd); background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd)); background-image: -webkit-linear-gradient(top, #049cdb, #0064cd); background-image: -o-linear-gradient(top, #049cdb, #0064cd); background-image: linear-gradient(top, #049cdb, #0064cd); color:#FFF; } .float_habis{ padding:1px; text-align:center; } .tgl_blank{ float:left; padding:5px; width:40px; text-align:center; margin:2px; background:#F8F8F8; color:#CCC; } .tgl_skrng{ float:left; padding:5px; width:40px; text-align:center; margin:2px; background:#FC0; } .blokbaris{ padding:5px; text-align:center; margin:2px; } </style> <?php $now = getdate(time()); $time = mktime(0,0,0, $now['mon'], 1, $now['year']); $date = getdate($time); $dayTotal = cal_days_in_month(0, $date['mon'], $date['year']); //Print the calendar header with the month name. print '<strong>' . $date['month'] . '</strong>'; print '<div class=blokbaris>'; $hari=array('Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'); for ($i = 0; $i < 7; $i++) { print "<div class='hari'>$hari[$i]</div>"; } print '<div class=float_habis>&nbsp;</div></div>'; for ($i = 0; $i < 6; $i++) { print '<div class=blokbaris>'; for ($j = 1; $j <= 7; $j++) { $dayNum = $j + $i*7 - $date['wday']; //Print a cell with the day number in it. If it is today, highlight it. print '<div'; if ($dayNum > 0 && $dayNum <= $dayTotal) { print ($dayNum == $now['mday']) ? ' class=tgl_skrng>' : ' class=tgl>'; print "$dayNum"; } else { //Print a blank cell if no date falls on that day, but the row is unfinished. print ' class=tgl_blank> - '; } print '</div>'; } print '<div class=float_habis>&nbsp;</div></div>'; if ($dayNum >= $dayTotal && $i != 6) break; } ?>

Sign In or Register to comment.