Example #1
0
<?php
include 'bootstrap.php';

$title = '╗с╧г╧╪ыИ╩Хгб╥я╧╣║ццаАб║╣райт╥╦тЛ';
include 'templates/classic/header.php';

// Default year checkup
$checkup = get_year_checkup(true);
$show = input_post('show_result');
$yearSelect = input_post('year_select', $checkup);
?>
<div class="cell no-print">
	<div class="col">
		<ul class="nav">
			<li><a href="../nindex.htm">к╧Иркея║Б╩цА║ца SHS</a></li>
		</ul>
	</div>
</div>
<div class="cell">
	<div class="col">
		<h3>╗с╧г╧╪ыИ╩Хгб╥я╧╣║ццаАб║╣райт╥╦тЛ ╩у <?=$yearSelect;?></h3>
	</div>
</div>
<div class="cell">
	<div class="col">
		<form action="report_dental_ptright.php" method="post" class="no-print">
			<div class="cell">
				<div class="col">
					<label for="yearSelect">
						Юевм║╩у╖╨╩цпарЁ <input type="text" id="yearSelect" name="year_select" value="<?=$yearSelect;?>">
					</label>
Example #2
0
<?php

include '../bootstrap.php';
// ╩у╖╨╩цпарЁ
$year_dropdown = get_year_checkup(true, true);
// Юевм║ range ╒м╖╩у
$sql = "SELECT SUBSTRING(`thidate`, 1, 4) AS `year_thai` \nFROM `diabetes_clinic` GROUP BY `year_thai`";
$query = mysql_query($sql) or die(mysql_error());
$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>
Example #3
0
<?php

include 'bootstrap.php';
include 'templates/classic/header.php';

$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">&lt;&lt;&nbsp;��Ѻ�˹����ش����¹��</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>
Example #4
0
		$violences = array(1 => '�дѺ 1 �آ�Ҿ��ͧ�ҡ�� ����տѹ�� ������Թ�ٹ ����ҵ�Ǩ�����������',
		'�дѺ 2 ����տѹ�ط���ͧ�ش ���Թ�ٹ��������ä��Էѹ�� ������Ѻ��÷Ӥ������Ҵ��ͧ�ҡ��Ф��й�㹡�ô����آ�Ҿ��ͧ�ҡ',
		'�дѺ 3 �տѹ�� ���ä��Էѹ�� ��������ҡ���ʴ� ������Ѻ����ѡ������ 12 ��͹',
		'�дѺ 4 �ѹ�ط����ç����ҷ �ѹ���ä��Էѹ�� ���ҡ���ʴ��ѹ�¡ �Ǵ �˧�͡�����˹ͧ �ҡ�ѹ��ҧ �ѹ�ش����ҡ�㹪�ͧ�ҡ ������Ѻ����ѡ����觴�ǹ');
		?>
		<table class="custom-table outline-header border box-header outline width-2of5">
			<thead>
				<tr>
					<th>�дѺ�����ع�ç</th>
					<th width="10%">�ӹǹ</th>
				</tr>
			</thead>
			<tbody>
				<?php
				$year_checkup = get_year_checkup(true);
				$sh_year = get_year_checkup();
				$cat = 'n';
				$where_category = '';
				if( $filter_category !== false ){
					$cat = $filter_category;
					$where_category = "AND `section` = '$filter_category'";
				}
				$total = 0;

				

				foreach($violences as $key => $vio):
					
					$sql = "SELECT COUNT(`hn`) AS `count` 
					FROM `survey_oral` 
					WHERE `date` LIKE '$date%' 
Example #5
0
<?php

// $default_date = ( date('Y') + 543 );
$default_date = get_year_checkup(true);
$year = input('year', $default_date);
$show = input('show');

?>
<div class="col">
	<div class="cell">
		<h3>�š�����Ǩ������آ�Ҿ��ͧ�ҡ���ѧ�� ��.</h3>
		
		<form class="no-print" action="survey_oral.php?task=report" method="post">
			<div class="cell">
				<div class="col">
					<label for="year">�շ���ͧ����ʴ���</label>
					<input type="text" id="year" name="year" value="<?=$year?>">
				</div>
			</div>
			<div class="cell">
				<div class="col">
					<button type="submit">�ʴ���</button>
					<input type="hidden" name="task" value="report">
					<input type="hidden" name="show" value="true">
				</div>
			</div>
		</form>
		<?php if( $show === 'true' ){ ?>
		<table class="custom-table outline-header border box-header outline">
			<thead>
				<tr>
Example #6
0
		if( !empty($match['0']) && $mouth_list[$key] == 1 ){
			$test_max_value = $match['0'];
		}
	}
	
	$lists = array(
		'details' => serialize($mouth_list),
		'max' => $test_max_value
	);
	
	return $lists;
}

if($action === 'save'){
	
	$year_checkup = get_year_checkup();
	$sql = "SELECT `id`,`hn` FROM `survey_oral` WHERE `hn` = :hn AND `yearcheck` = '$year_checkup';";
	// DB::select($sql, array(':hn' => $_POST['hn']));
	$db->select($sql, array(':hn' => $_POST['hn']));
	$item = $db->get_item();
	$rows = count($item);

	// $rows = DB::rows();
	if( $rows > 0 ){
		redirect('survey_oral.php', 'HN: '.$_POST['hn'].' Ю╓б╨я╧╥ж║╒ИмаыеД╩Юцуб╨цИмбАеИгЦ╧цм╨╩у╖╨╩цпарЁ '.$year_checkup);
		exit;
	}
	
	$item = serialize_and_setmax($_POST['mouth_detail']);

	// dump($_POST);
<?php

session_start();
require "../connect.php";
require "../includes/functions.php";
// Verify user before load content
if (authen() === false) {
    die('Session ка╢мрбь <a href="../login_page.php">╓ет║╥уХ╧уХ</a> Ю╬вХм╥с║рцЮ╒ИрйыХцп╨╨му║╓цяИ╖');
}
require "header.php";
$this_year = date('Y') + 543;
$year_chk = get_year_checkup(true, 'th');
if ($this_year === $year_chk) {
    $default_start = $year_chk - 1 . '-10-01';
    $default_end = $year_chk . '-09-30';
} else {
    $default_start = $year_chk . '-10-01';
    $default_end = $year_chk + 1 . '-09-30';
}
list($y, $m, $d) = explode('-', $default_start);
?>
<form action="report_hypertensionofyear.php" method="post" style="font-family: 'TH SarabunPSK'; font-size: 18pt;">
	<p><b>Юевм║║рцАй╢╖╪е╣ра╙Хг╖Югер</b></p>
	<div>
		гя╧╥уХЮцтХа╣И╧ <input type="text" name="date_start" value="<?php 
echo $default_start;
?>
">
	</div>
	<div>
		гя╧йтИ╧йь╢ <input type="text" name="date_end" value="<?php