Hacked By AnonymousFox

Current Path : C:/AppServ/www/stat/
Upload File :
Current File : C:/AppServ/www/stat/action_page.php

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<script>
var subjectObject = {
  "ศูนย์วิทยาศาสตร์การแพทย์ที่ 7 ขอนแก่น": {
    "ฝ่ายบริหารทั่วไป": ["Links", "Images", "Tables", "Lists"],
    "กลุ่มพัฒนาคุณภาพและวิชาการ": ["Borders", "Margins", "Backgrounds", "Float"],
	"กลุ่ม/งาน/ห้องปฏิบัติการเคมี": ["Borders", "Margins", "Backgrounds", "Float"],
    "กลุ่ม/งาน/ห้องปฏิบัติการพิษวิทยา": ["Variables", "Operators", "Functions", "Conditions"]
  },
  "ศูนย์วิทยาศาสตร์การแพทย์ที่ 8 อุดรธานี": {
    "ฝ่ายบริหารทั่วไป": ["Variables", "Strings", "Arrays"],
    "กลุ่มพัฒนาคุณภาพและวิชาการ": ["SELECT", "UPDATE", "DELETE"]
  }
}
window.onload = function() {
  var subjectSel = document.getElementById("subject");
  var topicSel = document.getElementById("topic");
  var chapterSel = document.getElementById("chapter");
  for (var x in subjectObject) {
    subjectSel.options[subjectSel.options.length] = new Option(x, x);
  }
  subjectSel.onchange = function() {
    //empty Chapters- and Topics- dropdowns
    chapterSel.length = 1;
    topicSel.length = 1;
    //display correct values
    for (var y in subjectObject[this.value]) {
      topicSel.options[topicSel.options.length] = new Option(y, y);
    }
  }
  topicSel.onchange = function() {
    //empty Chapters dropdown
    chapterSel.length = 1;
    //display correct values
    var z = subjectObject[subjectSel.value][this.value];
    for (var i = 0; i < z.length; i++) {
      chapterSel.options[chapterSel.options.length] = new Option(z[i], z[i]);
    }
  }
}
</script>
<body>
<form name="form1" id="form1" action="/action_page.php">
  เลือกข้อมูลหน่วยงาน: 
  <select name="subject" id="subject">
    <option value="" selected="selected">เลือกข้อมูลหน่วยงาน</option>
  </select>
  <br><br>
  Topics: <select name="topic" id="topic">
    <option value="" selected="selected">Please select subject first</option>
  </select>
  <br><br>
  Chapters: <select name="chapter" id="chapter" style="display:none">
    <option value="" selected="selected">Please select topic first</option>
  </select>
  <br><br>
  <input type="submit" value="Submit">
</form>
</body>
</html>

Hacked By AnonymousFox1.0, Coded By AnonymousFox