|
Server : Apache/2.2.2 (Fedora) System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686 User : apache ( 48) PHP Version : 5.2.9 Disable Function : NONE Directory : /home/pathumthani_integration/integration/application/indicator/ |
Upload File : |
<?php
session_start() ;
$cmss_master = "cmss_master" ;
$lead_general = "general";
$view_general = "view_general";
$now_dbname = "cmss_". $xxsiteid ;
include("../../config/config_epm.inc.php");
//include("../../common/common_competency.inc.php");
//include("../../common/class_create_temp.php");
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874" />
<title>ค้นหา</title>
<style type="text/css">
<!--
.style1 {font-weight: bold}
-->
</style></head>
<style type="text/css">
.body,td,th{
font-size:12px;}
</style>
<body style="font-size:12px;">
<script language="javascript" src="js/daily_popcalendar.js"></script>
<script language="javascript" src="js/displayelement.js"></script>
<script>
function show_source_search() {
if(document.getElementById("check_source_search").checked == true){
document.getElementById("show_source_search").style.display = "";
}else{
document.getElementById("show_source_search").style.display = "none";
document.getElementById("source_search").value = "";
}
}
function show_index_name_search() {
//alert("ddd");
if(document.getElementById("check_index_name_search").checked == true){
document.getElementById("show_index_name_search").style.display = "";
}else{
document.getElementById("show_index_name_search").style.display = "none";
document.getElementById("index_name_search").value = "";
}
}
function show_upd_freq_search() {
if(document.getElementById("check_upd_freq_search").checked == true){
document.getElementById("show_upd_freq").style.display = "";
}else{
document.getElementById("show_upd_freq").style.display = "none";
document.getElementById("upd_freq_search").options.selectedIndex = "";
}
}
function returnvalue(){
var o = new Object();
o.index_name_search = document.form1.index_name_search.value;
o.source_search = document.form1.source_search.value;
o.upd_freq_search = document.form1.upd_freq_search.options[document.form1.upd_freq_search.options.selectedIndex].value;
o.upd_freq_name_search = document.form1.upd_freq_search.options[document.form1.upd_freq_search.options.selectedIndex].text;
if(document.form1.check_upd_freq_search.checked)
{
if(o.upd_freq_search == "")
{
alert("กรุณาระบุความถี่ในการอัพเดตข้อมูล");
document.form1.upd_freq_search.focus();
return false;
}
}
else
{
o.upd_freq_name_search = "";
}
window.returnValue = o;
window.close();
}
function closeSearch(){
var o = new Object();
o.resetSearch = true;
window.returnValue = o;
window.close();
}
//เช็ค การ key ตัวเลข
function isNumberKey(evt){
var charCode = (evt.which) ? evt.which : event.keyCode;
if (charCode > 31 && (charCode < 48 || charCode > 57)){
alert("กรอกได้เฉพาะ ตัวเลข เท่านั้น");
return false;
}else{
return true;
}
}
</script>
<style type="text/css">
<!--
.style1 {
border-bottom-width: thin; border-bottom-style: groove; border-bottom-color:#5595CC;
}
-->
</style>
<table width="100%" border="0" cellspacing="0" cellpadding="10">
<tr>
<td>
<form name="form1" action="index.php?p=search&b_search=1" method="get" >
<table width="100%" border="1" cellspacing="0" cellpadding="3" align="center" bordercolor="#5595CC" style="border-collapse:collapse;">
<tr>
<td height="40" bgcolor="#E6E6E6" ><img id="IM_tb_seearch" src="img/folder-explorer-32x32.png" align="absmiddle"/> <strong>เครื่องมือค้นหา<?=$pagename?></strong></td>
</tr>
</table>
<table width="100%" border="0" align ="center">
<tr> </tr>
<tr>
<td>
<table width="634" border="0" cellspacing="0" cellpadding="5" bgcolor="#3399CC" align="center" >
<tr bgcolor="#FFFFFF">
<td width="30%" class="style1">ตัวชี้วัด</td>
<td class="style1" >
<?php
if($_GET['index_name_search'] != ''){
$check = ' checked="checked" ';
$style = 'style="display:"';
}else{
$check = '';
$style = 'style="display:none"';
}
?>
<input name="check_index_name_search" type="checkbox" value="1" id="check_index_name_search" onClick="show_index_name_search()" <?=$check?>><span <?=$style?> id="show_index_name_search"><input type="text" size="50" name="index_name_search" value="" id="index_name_search"/></span></td></tr>
<!--<tr bgcolor="#FFFFFF">
<td class="style1"><strong>เนื้อหาในคำสั่ง</strong></td>
<td align="left" class="style1">
<input name="check_letter_detail_search" type="checkbox" value="1" id="check_letter_detail_search" onClick="show_detail()">
<span style="display:none" id="show_detail">
<input type="text" size="45" name="letter_detail_search" value="<?$_GET['letter_detail_search']?>" id="letter_detail_search"/>
</span> </td>
</tr>-->
<tr bgcolor="#FFFFFF">
<td class="style1"><strong>แหล่งข้อมูล/หน่วยงานที่รับผิดชอบ</strong></td>
<td align="left" class="style1">
<?php
if($_GET['source_search'] != ''){
$check = ' checked="checked" ';
$style = 'style="display:"';
}else{
$check = '';
$style = 'style="display:none"';
}
?>
<input name="check_source_search" type="checkbox" value="1" id="check_source_search" onClick="show_source_search()" <?=$check?>><span <?=$style?> id="show_source_search"><input name="source_search" type="text" value="" id="source_search"></span> </td>
</tr>
<tr bgcolor="#FFFFFF">
<td class="style1"><strong>ความถี่ในการอัพเดตข้อมูล</strong></td>
<td align="left" class="style1">
<?php
if($_GET['upd_freq_search'] != ''){
$check = ' checked="checked" ';
$style = 'style="display:"';
}else{
$check = '';
$style = 'style="display:none"';
}
?>
<input name="check_upd_freq_search" type="checkbox" value="1" id="check_upd_freq_search" onClick="show_upd_freq_search()" <?=$check?>><span <?=$style?> id="show_upd_freq"><select name="upd_freq_search" id="upd_freq_search">
<option value="">ระบุความถี่ในการอัพเดตขัอมูล</option>
<?php
$strSQL_indicator_frequency = "SELECT * FROM indicator_frequency ORDER BY runid";
$rsConn_indicator_frequency = mysql_query($strSQL_indicator_frequency);
while ( $Result_indicator_frequency = mysql_fetch_array($rsConn_indicator_frequency) ) {
?>
<option value="<?=$Result_indicator_frequency['runid']?>"><?=$Result_indicator_frequency['freq_name']?></option>
<?
}
?>
</select></span></td>
</tr>
<tr>
<td colspan="2" align="center" bgcolor="#BFDFFF">
<input type="button" name="b_search" value="ค้นหา" onclick="returnvalue();"/>
<input type="reset" value=" ยกเลิก " onclick="window.close();"/></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</td>
</tr>
</table>
</body>
</html>