Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: del gimtadienio paneles
Parašė arturas97· 2008 Rugs. 29 21:09:19
#1
@openside('Gimtadieniai');
$result=dbquery(
"SELECT user_id, user_name, DATE_FORMAT(user_birthdate, '%d') AS birth_day, EXTRACT(MONTH FROM user_birthdate) AS birth_month ".
"FROM ".$db_prefix."users ".
"WHERE EXTRACT(MONTH FROM user_birthdate)>EXTRACT(MONTH FROM NOW()) OR ".
"(EXTRACT(MONTH FROM user_birthdate)=EXTRACT(MONTH FROM NOW()) AND EXTRACT(DAY FROM user_birthdate)>=EXTRACT(DAY FROM NOW())) ".
"ORDER BY birth_month , birth_day LIMIT 0,7"
);
// Calculate Today's Date
$today = strftime("%b %d");
echo "<table width='100%' cellpadding='0' cellspacing='0'>";
if (dbrows($result) != 0) {
$months = explode("|", $locale['shortmonths']);
while ($data = dbarray($result)) {
$birthdate = $months[$data['birth_month']]." ".$data['birth_day'];
// If It's a Birthday, bold it
if ($birthdate == $today) {
$birthdate = "<span style='font-weight:bold'>Šiandien! - </span><i><a href='messages.php?msg_send=".$data['user_id']."'><font color=brown><b>sveikinti?</b></color></a></i></span>";
}
echo "<table width='100%' cellpadding='0' cellspacing='0'><tr><td>
<a href='".BASEDIR."profile.php?lookup=$data[user_id]'
onmouseover=\"gpe('text: <b>".$data['user_name']."</b><hr>".$locale['XXX_004'].": ".$data['user_location']."<br><br> ".$data['user_msn'].";')\">";
echo "$data[user_name]</a></td><td class='small2' align='right'>".$birthdate."</td></tr>";
}
}
echo "</table>";
closeside();
kai imetu toki koda man pasiraso
Notice: Undefined index: XXX_004 in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24
Notice: Undefined index: user_location in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24
Notice: Undefined index: user_msn in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24
Notice: Undefined index: XXX_004 in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24
Notice: Undefined index: user_location in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24
Notice: Undefined index: user_msn in /home/idomu/idomu.uzeik.in/administration/panel_editor.php(128) : eval()'d code on line 24
Agne22 Gru 21
cepukas
Redagavo ramon· 2008 Rugs. 29 22:09:39
Parašė ex-it· 2008 Rugs. 29 21:09:08
#2
Gal off smilus? Pirma
Parašė MAnjack· 2008 Rugs. 30 07:09:47
#3
MAn ji veikia. Gal pas tave v7?
Parašė edis2· 2008 Rugs. 30 13:09:37
#4
man viskas veikia ;)
Parašė arturas97· 2008 Rugs. 30 16:09:15
#5
Jo,pas mane V7,ka taisyti?
Parašė MAnjack· 2008 Rugs. 30 16:09:17
#6
Užklausą.
Parašė arturas97· 2008 Rugs. 30 17:09:18
#7
galit kas nors cia imesti gimtadienio koda ant v7
Parašė Fanio· 2008 Rugs. 30 17:09:57
#8
arturas97 parašė:
galit kas nors cia imesti gimtadienio koda ant v7
Pirma pats naudok paieška, bet kogero jos dar nėra ant v7 ir reikia pačiam persidaryti.
Parašė MAnjack· 2008 Rugs. 30 17:09:43
#9
Ne ko gero, o tikrai nėra, nes v7modų išvis mažai yra.