$year_range = array(); while ($item = mysql_fetch_assoc($query)) { $year_range[] = (int) $item['year_thai']; } array_push($year_range, $year_dropdown); require "header.php"; ?> <fieldset class="no_print"> <legend>Юевм║║рцАй╢╖╪е╣ра╩у╖╨╩цпарЁ</legend> <form name="frmSearch" method="post" action="user_checkup.php"> <table width="599" border="0"> <tr> <td> <label for="txtKeyword">Юевм║╩у: </label> <?php echo getYearList('years', true, $year_dropdown, $year_range); ?> <input type="submit" value="╓И╧кр"> <input type="hidden" name="by" value="date"> </td> </tr> </table> </form> </fieldset> <?php $by = input_post('by'); if ($by === 'date') { $year_select = input_post('years'); $prev_year = $year_select - 1; $date_start = $prev_year . '-10-01'; $date_end = $year_select . '-09-30';
<label for="run_number">�Ţ��� ��:</label> <input type="text" id="run_number" name="run_number" > </div> </div> <div class="col"> <div class="cell"> <label for="run_number">�ѹ/��/��:</label> <?php $def_day = date('d'); getDateList('select_day', $def_day); $def_month = date('m'); getMonthList('select_month', $def_month); $def_year = date('Y'); getYearList('select_year', true, $def_year); ?> </div> </div> <?php if ( $type !== 'nhso-lmc' ) { ?> <div class="col"> <div class="cell"> <label for="run_number">���¹ ����ӹ�¡���ç��Һ�� :</label> <input type="text" name="to"> </div> </div> <?php }
<td><?php echo form_dropdown('month', getMonthList(), $month); ?> </td> </tr> <tr> <th><label for="quarter">Quarter</label></th> <td><?php echo form_dropdown('quarter', array(1 => 1, 2, 3, 4), $quarter); ?> </td> </tr> <tr> <th><label for="fiscial_year">Fiscal Year</label></th> <td><?php echo form_dropdown('fiscial_year', getYearList(), $fiscial_year); ?> </td> </tr> <tr> <th><label for="num_sr_education_program_emergency_responders">Number of SR Education Program for Emergency Responders</label></th> <td><?php echo form_input('num_sr_emergency_responders', $num_sr_emergency_responders, 'style="width: auto;" size="3"'); ?> </td> </tr> <tr> <th><label for="num_sr_education_emergency_responder_participants">Number of SR Education Emergency Responder Participants</label></th> <td><?php echo form_input('num_sr_education_emergency_responder_participants', $num_sr_education_emergency_responder_participants, 'style="width: auto;" size="3"'); ?>
$def_year = get_year_checkup(true, true); $range_year = range(( $def_year - 13 ), $def_year); ?> <div class="col no-print" id="top-container"> <div class="cell"> <div> <a href="eye_from.php"><< ��Ѻ�˹����ش����¹��</a> </div> <h3>��ª��ͼ�������ͧ�� ���º��º�Ѻ��Թԡ����ҹ</h3> <div> <form action="report_dm_eye.php" method="post"> <div class="col"> <div class="cell"> <label for="">���͡�է�����ҳ</label> <?php echo getYearList('years', true, $def_year, $range_year); ?> </div> </div> <div class="col"> <div class="cell"> <button type="submit">��ŧ</button> <input type="hidden" name="action" value="show"> </div> </div> </form> </div> </div> </div> <?php
getMonthList($conn); break; case 'getItemGroup': getItemGroup($conn); break; case 'getItemList': getItemList($conn); break; case 'getShipmentStatus': getShipmentStatus($conn); break; case "getFundingSource": getFundingSource($conn); break; case "getYearList": getYearList($conn); break; case "getUnit": getUnit($conn); break; case "getDosesForm": getDosesForm($conn); break; case "getFormulation": getFormulation($conn); break; case "getFacilityType": getFacilityType($conn); break; case "getFacilityLevel": getFacilityLevel($conn);
function getCalender($year = '', $month = '') { $dateYear = $year != '' ? $year : date("Y"); $dateMonth = $month != '' ? $month : date("m"); $date = $dateYear . '-' . $dateMonth . '-01'; $currentMonthFirstDay = date("N", strtotime($date)); $totalDaysOfMonth = cal_days_in_month(CAL_GREGORIAN, $dateMonth, $dateYear); $totalDaysOfMonthDisplay = $currentMonthFirstDay == 7 ? $totalDaysOfMonth : $totalDaysOfMonth + $currentMonthFirstDay; $boxDisplay = $totalDaysOfMonthDisplay <= 35 ? 35 : 42; ?> <div id="calender_section"> <h2> <a href="javascript:void(0);" onclick="getCalendar('calendar_div','<?php echo date("Y", strtotime($date . ' - 1 Month')); ?> ','<?php echo date("m", strtotime($date . ' - 1 Month')); ?> ');"><<</a> <select name="month_dropdown" class="month_dropdown dropdown"><?php echo getAllMonths($dateMonth); ?> </select> <select name="year_dropdown" class="year_dropdown dropdown"><?php echo getYearList($dateYear); ?> </select> <a href="javascript:void(0);" onclick="getCalendar('calendar_div','<?php echo date("Y", strtotime($date . ' + 1 Month')); ?> ','<?php echo date("m", strtotime($date . ' + 1 Month')); ?> ');">>></a> </h2> <div id="event_list" class="none"></div> <div id="calender_section_top"> <ul> <li>Minggu</li> <li>Senin</li> <li>Selasa</li> <li>Rabu</li> <li>Kamis</li> <li>Jumat</li> <li>Sabtu</li> </ul> </div> <div id="calender_section_bot"> <ul> <?php $dayCount = 1; for ($cb = 1; $cb <= $boxDisplay; $cb++) { if (($cb >= $currentMonthFirstDay + 1 || $currentMonthFirstDay == 7) && $cb <= $totalDaysOfMonthDisplay) { //Current date $currentDate = $dateYear . '-' . $dateMonth . '-' . $dayCount; $eventNum = 0; //Include db configuration file include 'dbConfigCalendar.php'; //Get number of events based on the current date $result = $db->query("SELECT title FROM events WHERE date = '" . $currentDate . "' AND status = 1"); $eventNum = $result->num_rows; //Define date cell color if (strtotime($currentDate) == strtotime(date("Y-m-d"))) { echo '<li date="' . $currentDate . '" class="yellow date_cell">'; } elseif ($eventNum > 0) { echo '<li date="' . $currentDate . '" class="yellow date_cell">'; } else { echo '<li date="' . $currentDate . '" class="date_cell">'; } //Date cell echo '<span>'; echo $dayCount; echo '</span>'; //Hover event popup echo '<div id="date_popup_' . $currentDate . '" class="date_popup_wrap none">'; echo '<div class="date_window">'; echo '<div class="popup_event">Events (' . $eventNum . ')</div>'; echo $eventNum > 0 ? '<a href="javascript:;" onclick="getEvents(\'' . $currentDate . '\');">Lihat events</a>' : ''; echo '</div></div>'; echo '</li>'; $dayCount++; ?> <?php } else { ?> <li><span> </span></li> <?php } } ?> </ul> </div> </div> <script type="text/javascript"> function getCalendar(target_div,year,month){ $.ajax({ type:'POST', url:'functions.php', data:'func=getCalender&year='+year+'&month='+month, success:function(html){ $('#'+target_div).html(html); } }); } function getEvents(date){ $.ajax({ type:'POST', url:'functions.php', data:'func=getEvents&date='+date, success:function(html){ $('#event_list').html(html); $('#event_list').slideDown('slow'); } }); } function addEvent(date){ $.ajax({ type:'POST', url:'functions.php', data:'func=addEvent&date='+date, success:function(html){ $('#event_list').html(html); $('#event_list').slideDown('slow'); } }); } $(document).ready(function(){ $('.date_cell').mouseenter(function(){ date = $(this).attr('date'); $(".date_popup_wrap").fadeOut(); $("#date_popup_"+date).fadeIn(); }); $('.date_cell').mouseleave(function(){ $(".date_popup_wrap").fadeOut(); }); $('.month_dropdown').on('change',function(){ getCalendar('calendar_div',$('.year_dropdown').val(),$('.month_dropdown').val()); }); $('.year_dropdown').on('change',function(){ getCalendar('calendar_div',$('.year_dropdown').val(),$('.month_dropdown').val()); }); $(document).click(function(){ $('#event_list').slideUp('slow'); }); }); </script> <?php }
<div class="section_header"> <a href="javascript:void(0);" onclick="getCalendar('calendar_div','<?php echo date("Y", strtotime($date . ' - 1 Month')); ?> ','<?php echo date("m", strtotime($date . ' - 1 Month')); ?> ');"><<</a> <select name="month_dropdown" class="month_dropdown dropdown"> <?php echo getAllMonths($dateMonth); ?> </select> <select name="year_dropdown" class="year_dropdown dropdown"> <?php echo getYearList($dateYear); ?> </select> <a href="javascript:void(0);" onclick="getCalendar('calendar_div','<?php echo date("Y", strtotime($date . ' + 1 Month')); ?> ','<?php echo date("m", strtotime($date . ' + 1 Month')); ?> ');">>></a> </div> <table class="calendar_table"> <thead> <th>Sun</th> <th>Mon</th> <th>Tue</th>
</tr> </table> </form> <form action="eye_report.php" method="post"> <table border="1" cellpadding="0" cellspacing="0" bordercolor="#666666" style="border-collapse:collapse"> <tr class="forntsarabun" align="center"> <td colspan="2" bgcolor="#99CC99">Юевм║║рцАй╢╖╪е╣ра╩у╖╨╩цпарЁ (╣ьер╓а - ║я╧брб╧)</td> </tr> <tr class="forntsarabun" align="center"> <td colspan="2"> <?php $def_year = get_year_checkup(true, true); $range_year = range(( $def_year - 13 ), $def_year); ?> Юевм║╩у: <?=getYearList('y_start', true, $def_year, $range_year);?> </td> </tr> <tr class="forntsarabun" align="center"> <td colspan="2"> <button class="forntsarabun" type="submit">╣║е╖</button> <input type="hidden" name="checkup" value="yes"> <input type="hidden" name="submit" value="submit"> </td> </tr> </table> </form> </div> <?php