<?php
include("../include/FunctionDB.php");
$msg "&nbsp;";
$reload "";
    if ( !empty(
$MoneyS_M) )
        {
            
$MoneyS_M ereg_replace ("\"","&quot;" ,"$MoneyS_M");
            
ConnectDB();
            
InsertMoneySource($MoneyS_M);
            
$msg "<font color=\"#FF0000\"><strong> เพิ่มข้อมูลแหล่งเงิน '<font color=\#0000FF\">$MoneyS_M </font>' COMPLETE</Strong></font> ";
            
$reload "<script language=\"JavaScript\">\n";
            
$reload $reload."parent.frames.nav.location.reload();\n";
            
$reload $reload."</script>";
            echo
"<meta http-equiv=\"refresh\"content=\"2;URL=SourceList.php\">\n"
            
CloseDB();
        }
        else {
        
        
$msg "<font color=\"#FF0000\"><strong>ยังไม่ได้กรอกข้อมูลแหล่งเงิน </Strong></font> ";
        
        }
    
?>
<html>
<head> 
<title> เพิ่มข้อมูลแหล่งเงิน</title>
<meta http-equiv="Content-Type"content="text/html; charset=windows-874">
<link href="../../../../css/style1.css" rel="stylesheet" type="text/css">
<head>
<body bgcolor="#FFFFFF">
<? $reload?>
<div align="center">
<b><? $msg ?></b>

  <table width="58%" border="0" cellspacing="1" cellpadding="0" align="center">
    <form method="post" action="<? echo  $PHP_SELF ?>">
      <tr align="center" bgcolor="#006699"> 
        <td colspan="3" class="Tahoma8"> <b><font color="#FFFFFF" size="4" face="Tahoma">เพิ่มข้อมูลแหล่งเงิน</font></b> 
        </td>
      </tr>
      <tr> 
        <td width="214"  align=\"right\" bgcolor="#dddddd"><div align="center"><font size="2" face="Tahoma">ชื่อแหล่งเงิน</font></div></td>
        <td width="13"    bgcolor="#dddddd"><font face="Tahoma">&nbsp;<font color="#FF0000" size="3"><strong>*</strong></font></font></td>
        <td width="437"     bgcolor="#dddddd"><font face="Tahoma"> 
          <input name="MoneyS_M" type="text" id="MoneyS_M" title="Fill Money Source Name" size="60" maxlength="20">
          </font></td>
      </tr>
      <tr bgcolor="#006699"> 
        <td colspan="3"    align="right"> 
          <div align="center"><font face="Tahoma"> 
            <input type="submit" name="Submit" value="  เพิ่มข้อมูล ">
            </font></div></td>
      </tr>
    </form>
  </table>
</div>
    </body>
    </html>