Пример #1
0
echo $aftertom1;
?>
',2)">모레</font>
	</td>
</tr>
<tr>
	<td width=8></td><td><img src='./image/dot_04.gif'></td>
	<td>
	<select id='birthlay1'>
	<?php 
for ($i = 3; $i < 11; $i++) {
    $o = $i < 10 ? "0" . $i : $i;
    $xday = getPlusDay(0, 0, $i, "Ymd");
    ?>
	<option value='<?php 
    echo moon(substr($xday, 0, 4), substr($xday, 4, 2), substr($xday, 6, 2));
    ?>
'><?php 
    echo $o;
    ?>
일후</option>
	<?php 
}
?>
	</select>
	<input type=button value='조회' style='height:20;' onclick="dateQue('MB_BIRTH',document.getElementById('birthlay1').value,2)">
	</td>
</tr>
</table>

<br>
Пример #2
0
 function get_transit($object, $mjd0, $hour, $ourlong)
 {
     //loop through all 24 hours of the day and store the sign of the angle in an array
     //actually loop through 25 hours if we reach the 25th hour with out a transit then no transit condition today.
     while ($hour < 25.0) {
         $instant = $mjd0 + $hour / 24.0;
         $t = ($instant - 51544.5) / 36525;
         if ($object == 0) {
             moon($t, $ra, $dec);
         } else {
             sun($t, $ra, $dec);
         }
         $lha = lmst($instant, $ourlong) - $ra;
         $LA = $lha * 15.04107;
         //convert hour angle to degrees
         $sLA = $LA / abs($LA);
         //sign of angle
         $hourarray[$hour] = $sLA;
         $hour++;
     }
     //search array for the when the angle first goes from negative to positive
     $i = 0;
     while ($i < 25) {
         $loc_transit = $i;
         if ($hourarray[$i] - $hourarray[$i + 1] == -2) {
             //we found our hour
             break;
         }
         $i++;
     }
     //check for no transit, return zero
     if ($loc_transit > 23) {
         // no transit today
         $loc_transit = 0.0;
         return $loc_transit;
     }
     //loop through all 60 minutes of the hour and store sign of the angle in an array
     $mintime = $loc_transit;
     while ($min < 60) {
         $instant = $mjd0 + $mintime / 24.0;
         $t = ($instant - 51544.5) / 36525;
         if ($object == 0) {
             moon($t, $ra, $dec);
         } else {
             sun($t, $ra, $dec);
         }
         $lha = lmst($instant, $ourlong) - $ra;
         $LA = $lha * 15.04107;
         $sLA = (int) ($LA / abs($LA));
         $minarray[$min] = $sLA;
         $min++;
         $mintime = $mintime + 0.016667;
         //increment 1 minute
     }
     $i = 0;
     while ($i < 60) {
         if ($minarray[$i] - $minarray[$i + 1] == -2) {
             //we found our min
             break;
         }
         $i++;
         $loc_transit = $loc_transit + 0.016667;
     }
     return $loc_transit;
 }
Пример #3
0
        ?>
		<?php 
        if (($i == 1 && $startday == $j || $day > 0) && $day < $endday) {
            $day++;
            ?>
			<?php 
            if (Skin_ExisCal($onday)) {
                ?>
<b style='color:black;'><u><?php 
            }
            ?>

			<?php 
            $thisDnexp[1] = $thisDnexp[2] = $thisMnexp[1] = $thisMnexp[2] = '';
            $thisDname = getSdate($cal_month . $pday);
            $thisMname = getMdate(substr(moon($cal_year, $cal_month, $pday), 4, 4));
            if ($thisDname) {
                $thisDnexp = explode('=', $thisDname);
            }
            if ($thisMname) {
                $thisMnexp = explode('=', $thisMname);
            }
            ?>

			<a style='cursor:pointer;' onclick="SkinViewCal('<?php 
            echo $cal_year;
            ?>
','<?php 
            echo $cal_month;
            ?>
','<?php