Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: nariu gimtadieniu panele

Parašė Samp_Tevas· 2010 Sau. 12 20:01:24
#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&#303; &scaron;iandien &scaron;ven&#269;ia:<br><a href='".BASEDIR."profile.php?lookup=".$Zeile['user_id']."'>".$Zeile['user_name']."</a><br />";
   }
closeside();
?>