/** * 将阴历转换为阳历 * @param year 阴历-年 * @param month 阴历-月,闰月处理:例如如果当年闰五月,那么第二个五月就传六月,相当于阴历有13个月,只是有的时候第13个月的天数为0 * @param date 阴历-日 */ function convertLunarToSolar($year, $month, $date) { $yearData = $this->lunarInfo[$year - $this->MIN_YEAR]; $between = $this->getDaysBetweenLunar($year, $month, $date); $res = mktime(0, 0, 0, $yearData[1], $yearData[2], $year); $res = date('Y-m-d', $res + $between * 24 * 60 * 60); $day = split_date($res); $year = $day[0]; $month = $day[1]; $day = $day[2]; return array($year, $month, $day); }
require_once DIR_APP . 'users.php'; if (empty($_SESSION['logged_in'])) { redirect('index.php'); } if (isset($_POST['update_profile'])) { updateUser($_POST); } $message = ''; if (isset($_POST['upload'])) { $message = getVerified(); } $user = getUserData($_SESSION['uid']); if (!$user) { exit; } $date = split_date($user['birthday']); ?> <div class="inner-page-wrapper"> <div class="account inner-page content"> <?php include DIR_INCLUDE . 'left_nav.php'; ?> <div class="main-content"> <div class="content-block personal-details"> <div class="content-left-col">
?> " maxlength="100"/> <input type="checkbox" name="publish" <?php if ($row['Publish'] == 1) { echo 'checked="yes"'; } else { echo ""; } ?> ></input> Publish</label></td> </tr> <td height="32" width="70">Date Of Birth</td> <td> </td> <?php list($d, $m, $y) = split_date($row['DOB']); ?> <td width="50" height="62"><select name="dd" class="Selection" id="dd" style="width:50px"> <option><?php echo $d; ?> </option> <?php for ($i = 1; $i <= 31; $i++) { ?> <option value="<?php echo $i; ?> " > <?php echo $i;