MINI SHELL

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 :  /var/www/html/pathumthani_eoffice/application/agenda/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_eoffice/application/agenda/config_menu.php
<?
session_start();
include("../../config/config.inc.php");
include("function/function.php");
if(!isset($session_username)){
header("Location: login.php");
}
include("header_menu.php");



if($_SERVER['REQUEST_METHOD'] == "POST"){
	
	if(count($status_f) > 0){
		foreach($status_f as $k => $v){
		
			$sql_up = "UPDATE  tbl_config_meeting SET status='$v'  WHERE field_id='$k'";
			$result_up = mysql_query($sql_up);
			
		} // end 	foreach($status_f as $k => $v){
			if($result_up){
				echo "
				<script language=\"javascript\">
				alert(\"ระบบทำการบันทึกเรียบร้อยแล้ว\\n \");
				location.href='?';
				</script>
				";
				exit();

			}

	}// end if(count($status_f) > 0){
		
}// end if($_SERVER['REQUEST_METHOD'] == "POST"){

?><html>
<head>
<title><?=$show_title?></title>
<META http-equiv=Content-Type content="text/html; charset=windows-874">
<link href="common/style.css" type="text/css" rel="stylesheet" />
<script language='javascript' src='daily_popcalendar.js'></script>
<script language='javascript' src='displayelement.js'></script>
<style type="text/css">
<!--
body {  margin: 0px  0px; padding: 0px  0px}
a:link { color: #005CA2; text-decoration: none}
a:visited { color: #005CA2; text-decoration: none}
a:active { color: #0099FF; text-decoration: underline}
a:hover { color: #0099FF; text-decoration: underline}
-->
</style>

<SCRIPT LANGUAGE="JavaScript">
function CheckForm(){
	missinginfo = "";
	missinginfo1 = "";

	if (document.form.subject.value == "")  {missinginfo1 += "\n- กรุณากรอก เรื่องร้องเรียน "; }		
	if (document.form.subject_no_in.value == "")  {missinginfo1 += "\n- กรุณากรอก เลขที่หนังสือ "; }	
	if (document.form.date_start.value == "")  {missinginfo1 += "\n- กรุณากรอก วันเริ่มต้น "; }	
	if (document.form.date_end.value == "")  {missinginfo1 += "\n- กรุณากรอก สิ้นสุด "; }	
	
	if (missinginfo1 != "") { 	
		missinginfo += "ไม่สามารถบันทึกข้อมูลได้  เนื่องจาก \n";
		missinginfo +="_____________________________\n";
		missinginfo = missinginfo + missinginfo1  ;
		missinginfo += "\n___________________________";
		missinginfo += "\nกรุณาตรวจสอบ อีกครั้ง";
		alert(missinginfo);
		return false;
	}
}
</SCRIPT>
<script language="javascript">
function popWindow(url, w, h){

	var popup		= "Popup"; 
	if(w == "") 	w = 420;
	if(h == "") 	h = 300;
	var newwin 	= window.open(url, popup,'location=0,status=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h + ',top=20');
	newwin.focus();

}
function popWindow1(url, w, h){

	var popup		= "Popup"; 
	if(w == "") 	w = 420;
	if(h == "") 	h = 300;
	var newwin 	= window.open(url, popup,'location=0,status=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h + ',top=20');
	newwin.focus();

}
function popWindow2(url, w, h){

	var popup		= "Popup"; 
	if(w == "") 	w = 420;
	if(h == "") 	h = 300;
	var newwin 	= window.open(url, popup,'location=0,status=no,scrollbars=no,resizable=no,width=' + w + ',height=' + h + ',top=20');
	newwin.focus();

}

</script>
<script language="javascript">
function clearselect()
{
	document.post.salary_day.disabled=true;
	document.post.salary_month.disabled=true;
	document.post.salary_year.disabled=true;
	document.post.label_date.disabled=true;
	
	 if (document.post.salary_day.value!="")
 	{
       document.post.salary_day.value="";
	   document.post.salary_day.disabled=true;
    }
	 if (document.post.salary_month.value!="")
 	{
       document.post.salary_month.value="";
	   document.post.salary_month.disabled=true;
    }
	
	 if (document.post.salary_year.value!="")
 	{
       document.post.salary_year.value="";
	   document.post.salary_year.disabled=true;
    }
	 if (document.post.label_date.value!="")
 	{
       document.post.label_date.value="";
	   document.post.label_date.disabled=true;
    }
}
</script>
</head>
<body style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#FFFFFF', EndColorStr='#FFFFFF');">
<table width="100%" border="0" cellpadding="0" cellspacing="0" style="filter:progid:DXImageTransform.Microsoft.Gradient(GradientType=0, StartColorStr='#144C85', EndColorStr='#FFFFFF');">
<form name="post" action="?" method="post">
  <tr>
    <td align="center" valign="top" bgcolor="#000000">
	<table width="100%" border="0" cellspacing="1" cellpadding="3">
      <tr>
        <td colspan="4" align="left" bgcolor="#B0C6E6"><b><a href="login_admin.php"><img src="../../images_sys/home.gif" alt="กลับหน้าหลัก" width="20" height="20" border="0"></a>&nbsp;จัดการการแสดงผลรายการ</b></td>
        </tr>
      <tr>
        <td width="7%" align="center" bgcolor="#B0C6E6"><strong>ลำดับ</strong></td>
        <td width="74%" align="center" bgcolor="#B0C6E6"><strong>ชื่อฟิลด์</strong></td>
        <td width="11%" align="center" bgcolor="#B0C6E6"><strong>เปิด</strong></td>
        <td width="8%" align="center" bgcolor="#B0C6E6"><strong>ปิด</strong></td>
      </tr>
	  <?
	  $strSQL = "SELECT * FROM tbl_config_meeting";
	  $Result = mysql_db_query($dbname,$strSQL);
	  $i=0;
	  while($Rs = mysql_fetch_object($Result)){
	  $bg = ($i%2)?'#F1F1F1':'#FFFFFF';$i++;
	  ?>
      <tr bgcolor="<?=$bg?>">
        <td align="center"><?=$i?></td>
        <td align="left"><?=$Rs->field_name?></td>
        <td align="center"><label>
          <input name="status_f[<?=$Rs->field_id?>]" type="radio" value="1" <? if($Rs->status == 1){ echo "checked='checked'";}?> >
        </label></td>
        <td align="center"><label>
          <input name="status_f[<?=$Rs->field_id?>]" type="radio" value="0" <? if($Rs->status == 0){ echo "checked='checked'";}?>>
        </label></td>
      </tr>
	 <?
	  }
	  ?>
      <tr>
        <td colspan="4" align="center" bgcolor="#FFFFFF"><label>
          <input type="submit" name="Submit" value="บันทึก">
        </label></td>
        </tr>
    </table>
	</td>
  </tr>
  </form>
</table>
</body>
</html>

Anon7 - 2021