|
|
@ -16,7 +16,10 @@
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
*/ ?>
|
|
|
|
*/ ?>
|
|
|
|
<?
|
|
|
|
<?
|
|
|
|
$user = $_SESSION['profile'];
|
|
|
|
$query = "select * from `users` where `id`='".intval($_SESSION['profile']['id'])."' and `users`.`deleted`=0";
|
|
|
|
|
|
|
|
$res = mysql_query($query);
|
|
|
|
|
|
|
|
$user = mysql_fetch_assoc($res);
|
|
|
|
|
|
|
|
|
|
|
|
$year = intval(substr($user['dob'], 0, 4));
|
|
|
|
$year = intval(substr($user['dob'], 0, 4));
|
|
|
|
$month = intval(substr($user['dob'], 5, 2));
|
|
|
|
$month = intval(substr($user['dob'], 5, 2));
|
|
|
|
$day = intval(substr($user['dob'], 8, 2));
|
|
|
|
$day = intval(substr($user['dob'], 8, 2));
|
|
|
@ -63,7 +66,7 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
echo "<option";
|
|
|
|
echo "<option";
|
|
|
|
if($day == $i)
|
|
|
|
if($day == $i)
|
|
|
|
echo " selected";
|
|
|
|
echo " selected='selected'";
|
|
|
|
echo ">$i</option>";
|
|
|
|
echo ">$i</option>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
?>
|
|
|
@ -74,7 +77,7 @@
|
|
|
|
{
|
|
|
|
{
|
|
|
|
echo "<option value='$i'";
|
|
|
|
echo "<option value='$i'";
|
|
|
|
if($month == $i)
|
|
|
|
if($month == $i)
|
|
|
|
echo " selected";
|
|
|
|
echo " selected='selected'";
|
|
|
|
echo ">".ucwords(recode("utf-8..html", strftime("%B", mktime(0,0,0,$i,1,date("Y")))))."</option>";
|
|
|
|
echo ">".ucwords(recode("utf-8..html", strftime("%B", mktime(0,0,0,$i,1,date("Y")))))."</option>";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
?>
|
|
|
|