Apache/2.4.7 (Ubuntu) Linux sman1baleendah 3.13.0-24-generic #46-Ubuntu SMP Thu Apr 10 19:11:08 UTC 2014 x86_64 uid=33(www-data) gid=33(www-data) groups=33(www-data) safemode : OFF MySQL: ON | Perl: ON | cURL: OFF | WGet: ON > / var / www / html / sman1baleendahok / modul / | server ip : 104.21.89.46 your ip : 172.69.7.43 H O M E |
Filename | /var/www/html/sman1baleendahok/modul/tag_pesan.php |
Size | 1.06 kb |
Permission | rw-rw-r-- |
Owner | ulung : ulung |
Create time | 27-Apr-2025 11:12 |
Last modified | 05-Feb-2025 08:55 |
Last accessed | 06-Jul-2025 18:24 |
Actions | edit | rename | delete | download (gzip) |
View | text | code | image |
<?php
$tag .='<form action="../functions/salam.php" methode="post"><script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value =""
}
</script><marquee direction="up" onMouseover="this.stop()" onMouseOut="this.start()"
scrollAmount=2 scrollDelay=90 direction=up height=100 align="center">';
$sql="select * from t_pesan order by id desc limit 0,10";
if(!$alan=mysql_query($sql)) die ("Pengambilan gagal pesan pinggir");
while ($row=mysql_fetch_array($alan)) {
$pengirim=strip_tags($row[pengirim]);
$pesan=strip_tags($row[pesan]);
$tag.= "<font class='tah10' ><b>$pengirim</b>
<br>$row[waktu]<br>$pesan</font><br><br>";
}
$tag .="</marquee><br><input class='editbox' type=text name='pengirim' title='Nama Pengirim' onfocus=clearText(this) value='Nama' size='10' maxlength='10'>
<input class='editbox' type=text name='pesan' onfocus=clearText(this) value='Pesan' maxlength='50' size='10' title='Pesan/Salam yang akan disampaikan'> <input class='button' name='submit' type=submit value='Kirim'></form>";
?>
$tag .='<form action="../functions/salam.php" methode="post"><script>
function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value =""
}
</script><marquee direction="up" onMouseover="this.stop()" onMouseOut="this.start()"
scrollAmount=2 scrollDelay=90 direction=up height=100 align="center">';
$sql="select * from t_pesan order by id desc limit 0,10";
if(!$alan=mysql_query($sql)) die ("Pengambilan gagal pesan pinggir");
while ($row=mysql_fetch_array($alan)) {
$pengirim=strip_tags($row[pengirim]);
$pesan=strip_tags($row[pesan]);
$tag.= "<font class='tah10' ><b>$pengirim</b>
<br>$row[waktu]<br>$pesan</font><br><br>";
}
$tag .="</marquee><br><input class='editbox' type=text name='pengirim' title='Nama Pengirim' onfocus=clearText(this) value='Nama' size='10' maxlength='10'>
<input class='editbox' type=text name='pesan' onfocus=clearText(this) value='Pesan' maxlength='50' size='10' title='Pesan/Salam yang akan disampaikan'> <input class='button' name='submit' type=submit value='Kirim'></form>";
?>