function get_msk_time() { $t = get_hour(); $t .= ':'; $t .= date('i:s'); return $t; }
<input type="text" name="datevalue" id="datevalue" class="datepicker" readonly="readonly" /> <?php echo nbs(2); ?> <select name="hour"><?php echo get_hour(); ?> </select> : <select name="minute"><?php echo get_minute(); ?> </select> </div> <div id="delayoption" class="hidden"> <select name="delayhour"><?php echo get_hour(); ?> </select> Hour <select name="delayminute"><?php echo get_minute(); ?> </select> Minutes </div> </td> </tr> <tr> <td align="right" class="label"><?php echo lang('kalkun_sms_mode') . ":"; ?> </td>
echo format_date_only($row_res['date']); ?> </td> </tr> <tr> <td valign="top">Tamu</td> <td valign="top">:</td> <td valign="top"><?php echo $row_res['amount']; ?> </td> <td valign="top"> </td> <td valign="top">Jam</td> <td valign="top">:</td> <td valign="top"><?php echo get_hour($row_res['date']); ?> </td> </tr> <tr> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> <td> </td> </tr> </table> <div class="row">
$data['50'] = floor($diff % 1000 % 500 % 100 / 50); $data['20'] = floor($diff % 1000 % 500 % 100 % 50 / 20); $data['10'] = floor($diff % 1000 % 500 % 100 % 50 % 20 / 10); //echo '<pre>'; //print_r($data); return $data; } function get_hour($time_in, $time_out) { $data = round((strtotime($time_out) - strtotime($time_in)) / 3600, 1); $sum_hour = ceil($data); return $sum_hour; } $time_in = $car_log['time_in']; $time_out = $car_log['time_out']; $hour = get_hour($time_in, $time_out); //echo 'rate :'.get_rate($time_in, $time_out);//(วันเวลาเข้า, ชั่วโมงทั้งหมด) //echo '<br/>'; //print_r(cal(1500, get_rate($time_in, $time_out))); $rate = get_rate($time_in, $time_out); //(วันเวลาเข้า, ชั่วโมงทั้งหมด) //echo '<br/>'; $change = cal(1500, get_rate($time_in, $time_out)); ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1">
function gen_colour() { $month = get_month(); $hour = get_hour(); /*$weather = do_mysql ("SELECT weather FROM maps;"); $weather = mysql_result ($weather, 0);*/ switch ($month) { case 1: include 'modules/sp/sp_colour_1.php'; break; case 2: include 'modules/sp/sp_colour_2.php'; break; case 3: include 'modules/sp/sp_colour_3.php'; break; case 4: include 'modules/sp/sp_colour_4.php'; break; case 5: include 'modules/sp/sp_colour_5.php'; break; case 6: include 'modules/sp/sp_colour_6.php'; break; case 7: include 'modules/sp/sp_colour_7.php'; break; case 8: include 'modules/sp/sp_colour_8.php'; break; case 9: include 'modules/sp/sp_colour_9.php'; break; case 10: include 'modules/sp/sp_colour_10.php'; break; case 11: include 'modules/sp/sp_colour_11.php'; break; case 12: include 'modules/sp/sp_colour_12.php'; break; } /* //unset ($NIGHT); //$NIGHT = 1; //unset ($MORNING); //$MORNING = 1; //unset ($DAY); //$DAY = 1; global $UND; if ($UND) $NIGHT = 1; $colour[6] = '#000000'; // osnovnoj tekst $colour[7] = '#0000aa'; // sinie ssylki $colour[8] = '#ff0000'; // krasnye ssylki if (isset ($NIGHT)) { //$colour[3] = '#B5B5B5'; // main for <p> //$colour[4] = '#CFCFCF'; // fair //$colour[5] = '#9C9C9C'; // dark $colour[3] = '#2a2a40'; // main for <p> $colour[4] = '#44444a'; // fair $colour[5] = '#000000'; // dark $colour[6] = '#DEDEF1'; // osnovnoj tekst $colour[7] = '#EBE916'; // "sinie" ssylki $colour[8] = '#ff0000'; // "krasnye" ssylki } else if (isset ($MORNING)) { $colour[3] = '#fef6f8'; // main for <p> $colour[4] = '#fef1f4'; // fair $colour[5] = '#feecf1'; // dark } else if (isset ($DAY)) { $colour[3] = '#FDFBF0'; // main for <p> $colour[4] = '#FFFFFB'; // fair $colour[5] = '#FDFAD9'; // dark } else { //$colour[3] = '#f9eac1'; // main for <p> //$colour[4] = '#faf0d5'; // fair //$colour[5] = '#fee5a2'; // dark $colour[3] = '#f9eac1'; // main for <p> $colour[4] = '#faf0d5'; // fair $colour[5] = '#fee5a2'; // dark $colour[6] = '#000000'; // osnovnoj tekst $colour[7] = '#0000aa'; // sinie ssylki $colour[8] = '#ff0000'; // krasnye ssylki }*/ $colour[3] = '#FDFBF0'; // main for <p> $colour[4] = '#FFFFFB'; // fair $colour[5] = '#FDFAD9'; // dark $colour[6] = '#000000'; // osnovnoj tekst $colour[7] = '#0000aa'; // sinie ssylki $colour[8] = '#ff0000'; // krasnye ssylki return $colour; }
<?php // fail soderzhit zagruzochnuju infu karty // VESHI $items = array('i.f.tra.podorozhnik' => 'i.f.tra.podorozhnik:rbfo|4x5~rbfo|6x5:1', 'i.m.rea.pautina' => 'i.m.rea.pautina:rbfo|8x4~rbfo|7x1:1', 'i.o.sta.rosarock' => 'i.o.sta.rosarock:rbfo|4x3:1', 'i.o.sta.lake' => 'i.o.sta.lake:rbfo|3x3:1', 'i.o.sta.runestone_vk2' => 'i.o.sta.runestone_vk2:rbfo|5x5:1', 'i.o.sta.runestone_vk10' => 'i.o.sta.runestone_vk10:rbfo|7x1:1'); $npc = array('n.a.mouse.1.m2' => 'n.a.mouse.1.m2::5', 'n.a.rabbit.1.0' => 'n.a.rabbit.1.0:rbfo|4x5~rbfo|2x3~rbfo|1x6:3', 'n.x.rabbit.1.2' => 'n.x.rabbit.1.2:rbfo|4x3~rbfo|5x3:2', 'n.a.sinica.1.m2' => 'n.a.sinica.1.m2:rbfo|1x3~rbfo|3x6:1', 'n.a.vorobej.1.m2' => 'n.a.vorobej.1.m2:rbfo|2x1~rbfo|2x3:1', 'n.a.young_rabbit.1.m1' => 'n.a.young_rabbit.1.m1:rbfo|6x2~rbfo|5x5:1', 'n.a.big_rabbit.1.1' => 'n.a.big_rabbit.1.1:rbfo|8x5:1', 'n.a.old_rabbit.1.m1' => 'n.a.old_rabbit.1.m1:rbfo|8x2:1', 'n.s.tuslik' => 'n.s.tuslik:rbfo|4x6:1', 'n.a.utka.1.m1' => 'n.a.utka.1.m1:rbfo|3x3:1', 'n.a.red_bird.3.1' => 'n.a.red_bird.3.1:rbfo|8x3:1', 'n.x.witch.5.0' => 'n.x.witch.5.0:rbfo|5x1:1', 'n.x.black_cat.4.1' => 'n.x.black_cat.4.1:rbfo|5x1:1'); // tekagi q: ninzja nochqju s 00 do 1h. $hour = get_hour(); $q = do_mysql("SELECT COUNT(*) FROM npc WHERE realname = 'n.s.hiroki';"); $cnin = mysql_result($q, 0); if ($hour < 1 && !$cnin) { // sozdaem hiroki include_once 'modules/f_create_npc.php'; create_npc('n.s.hiroki', 'rbfo', 'rbfo|1x6'); } if ($hour > 0 && $cnin) { // udaljaem hiroki do_mysql("DELETE FROM npc WHERE realname = 'n.s.hiroki';"); }
function get_date_hour($data, $written = false) { return get_date($data, $written) . " às " . get_hour($data); }
echo '<li class="ui-widget-header ui-helper-clearfix ui-corner-all header"><span class="day first" title="jour du mois">Jour</span>'; if (!$byEcoute) { echo '<span class="heure">Heure</span>'; } echo '<span class="nombre_ecoutes" title="total">Total</span>'; echo '<span class="nombre_ecoutes" title="téléchargement">Téléchargement</span>'; echo '<span class="nombre_ecoutes" title="player">Player</span>'; if (!$byEcoute) { echo '<span class="title">Titre</span>'; } echo "</li>"; $nb = 0; foreach ($ecoutes as $day => $ecoute) { echo '<li><span class="day">' . get_day($day, $period) . ' ' . strftime("%B", strtotime($date)) . '</span>'; if (!$byEcoute) { echo ' <span class="heure">' . get_hour($day) . ':00</span>'; } echo '<span class="nombre_ecoutes" title="total"><strong>' . $ecoute["nb"] . '</strong></span>'; echo '<span class="nombre_ecoutes" title="téléchargement"><strong>' . $ecoute[1] . '</strong></span>'; echo '<span class="nombre_ecoutes'; if ($byEcoute) { echo " last"; } echo '" title="player"><strong>' . $ecoute[0] . '</strong></span>'; $nb = $nb + $ecoute["nb"]; if (!$byEcoute) { echo ' <span class="title" title="' . str_replace("\"", "\\\"", $ecoute["title"]) . '">' . $ecoute["title"] . '</span>'; } echo "</li>"; } echo "</ul>";
} if ($mon == 7 || $mon == 8) { if (get_hour() > 8 && get_hour() < 21) { $wa[] = 6; } $wa[] = 2; $wa[] = 4; $wa[] = 5; } if ($mon == 9 || $mon == 10) { $wa[] = 2; $wa[] = 4; $wa[] = 5; } if ($mon == 11) { if (get_hour() > 20 && get_hour() < 9) { $wa[] = 0.5; } $wa[] = 2; $wa[] = 3; $wa[] = 4; $wa[] = 5; } if ($mon == 12) { $wa[] = 0; $wa[] = 1; } $num = array_rand($wa); $WEATHER = $wa[$num]; do_mysql("UPDATE maps SET weather = '" . $WEATHER . "';"); do_mysql("UPDATE gamesys SET weather_ch = '" . $time . "' WHERE month = '" . $mon . "';");