<?php
session_start
();

 if (
session_is_registered("valid_user")&&session_is_registered("Priority"))
 {
include(
"../include/FunctionDB.php");
include(
"admin_menu.php");
 
ConnectDB();
$Username $valid_user;
$sql "SELECT * FROM personal_tb WHERE Username='$Username'";
$result mysql_query($sql) ;
$rs mysql_fetch_array($result);
$row mysql_num_rows($result);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<style type="text/css">
<!--
.style2 {color: #003399}
.style17 {font-size: 14px}
.style18 {color: #003399; font-size: 14px; }
.style21 {
    font-size: 16px;
    font-weight: bold;
}
.style22 {font-size: 14px; font-weight: bold; }
-->
</style>
<table width="740" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td><br><fieldset>
            <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_manage.php" >หน้าหลัก</a></font></legend>
            <label><div align="center">
              <form id="form1" name="form1" method="post" action="">
                <?php
/* สร้าง query string เพื่อส่งข้อมูล (ตัวเลข 5 จำนวน) ไปยังไฟล์ line.php 
   และ pie.php */
 
$QStr "data[1]=" $num1*100 .
               
"&data[2]=" $num2*100 
             
"&data[3]=" $num3*100;
        
//       "&data[4]=" . $c4*100 . 
         //      "&data[5]=" . $c5*100;

echo "<center>\n";
echo
"<font face=\"Tahoma\" size=\"4\">";
echo 
"แสดงผลข้อมูลอัตราส่วนวุฒิการศึกษาของอาจารย์วิทยาลัยการสาธารณสุขสิรินธร จังหวัดชลบุรี<br>\n";
/* ใช้แอตทริบิวต์ src ของแท็ก <img> ในการอ้างถึงไฟล์ line.php โดยส่ง 
   query string พ่วงท้ายไปด้วย */
echo "<img src=\"line.php?" $QStr "\" border=2><br><br>\n";
echo 
"แสดงผลโดยใช้แผนภูมิวงกลม<br>\n";
/* ใช้แอตทริบิวต์ src ของแท็ก <img> ในการอ้างถึงไฟล์ pie.php โดยส่ง 
   query string พ่วงท้ายไปด้วย */
echo "<img src=\"pie.php?" $QStr "\" border=2><br>\n";
echo
"</font>";
echo 
"</center>";
?>
                <br>
            </form>
              </div>
            </label>
        </fieldset><br>
        <font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
        </font></td>
    </tr>
</table>
<?php 
    
}
else
{
       echo
"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n";
       echo
"Please Login ";
}
?>