Parašė Samp_Tevas· 2010 Sau. 12 18:01:33
#1
Sveiki, gal zinote kur gauti nariu gimtadieniu panele. Kad matytusi artimiausio nario gimtadienis?
Parašė Samp_Tevas· 2010 Sau. 12 19:01:33
#3
Skriptu bibliotekoje, rodo gimtadieni tik tuomet kai jis svenciamas, o man reikia, kad rodytu iki artimiausio gimtadienio.
Gal galetumete paredaguoti
<?php
if (file_exists(INFUSIONS."todays_birthday_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."todays_birthday_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."todays_birthday_panel/locale/English.php";
}
openside($locale['co1']);
$heute = "____-".showdate('%m-%d',time());
$result = dbquery("SELECT user_birthdate,user_name,user_id FROM ".$db_prefix."users WHERE user_birthdate like '$heute' ORDER BY user_name ASC");
if (mysql_num_rows($result) == 0) { echo "<div style='text-align:center'>".$locale['co2']."</div>"; }
while ($Zeile = mysql_fetch_array($result)) {
echo "<img src='".INFUSIONS."todays_birthday_panel/birthday.gif'>\n<br> Gimtadienį šiandien švenčia:<br><a href='".BASEDIR."profile.php?lookup=".$Zeile['user_id']."'>".$Zeile['user_name']."</a><br />";
}
closeside();
?>
Redagavo Samp_Tevas· 2010 Sau. 12 19:01:20
Parašė Samp_Tevas· 2010 Sau. 12 20:01:24
#4
Skriptu bibliotekoje, rodo gimtadieni tik tuomet kai jis svenciamas, o man reikia, kad rodytu iki artimiausio gimtadienio.
Gal galetumete paredaguoti
<?php
if (file_exists(INFUSIONS."todays_birthday_panel/locale/".$settings['locale'].".php")) {
include INFUSIONS."todays_birthday_panel/locale/".$settings['locale'].".php";
} else {
include INFUSIONS."todays_birthday_panel/locale/English.php";
}
openside($locale['co1']);
$heute = "____-".showdate('%m-%d',time());
$result = dbquery("SELECT user_birthdate,user_name,user_id FROM ".$db_prefix."users WHERE user_birthdate like '$heute' ORDER BY user_name ASC");
if (mysql_num_rows($result) == 0) { echo "<div style='text-align:center'>".$locale['co2']."</div>"; }
while ($Zeile = mysql_fetch_array($result)) {
echo "<img src='".INFUSIONS."todays_birthday_panel/birthday.gif'>\n<br> Gimtadienį šiandien švenčia:<br><a href='".BASEDIR."profile.php?lookup=".$Zeile['user_id']."'>".$Zeile['user_name']."</a><br />";
}
closeside();
?>