| Server IP : 61.19.30.66 / Your IP : 216.73.216.80 Web Server : Apache/2.2.22 (Ubuntu) System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64 User : www-data ( 33) PHP Version : 5.3.10-1ubuntu3.48 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /var/www/cooperative/ |
Upload File : |
<?
require_once "config/configuser.inc.php";
require_once "heads.php";
$teach=$objResult["Username"];
$sstt=$objResult["statussells"];
$crsql="SELECT (sell_status) FROM `sell_config`";
$slr=mysql_query($crsql) or die(mysql_error()."<br>".$crsql);
$dcrd = mysql_fetch_array($slr);
$status=$dcrd[0];
?>
<html>
<head>
<title>-:- ADMIN -:-</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF">
<script language="javascript">
function fncSubmit()
{
if(document.frmMain.namepro.value == "")
{
alert('ระบุชื่อสินค้า');
document.frmMain.namepro.focus();
return false;
}
document.form1.submit();
}
</script>
<table width="75%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td bgcolor="#003399">
<div align="center"><font color="#FFFFFF" size="+1"><strong>เพิ่มรายการสินค้าบริการ<font color="#FFFF00"></font></strong></font></div></td>
</tr>
<tr>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="1" cellpadding="1">
<tr>
<td><div align="center">
<table width="773" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
</tr>
</table>
<table width="76%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center">
</div>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<form method="post" action="addsaveprost.php" name="frmMain" onSubmit="JavaScript:return fncSubmit();">
<tr>
<td width="140"><div align="right"><font color="#333333" size="2">ชื่อสินค้า
:</font></div></td>
<td width="6"><font size="3">
<input name=namepro id=namepro type=text class="input" size=50 maxlength ="50">
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">ราคาต้นทุน
:</font></div></td>
<td><font size="3">
<input name=cost id=cost type=text class="input" size=10 maxlength ="10">
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">ราคาขาย
:</font></div></td>
<td><font size="3">
<input name=sell id=sell type=text class="input" size=10 maxlength ="10">
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">จำนวน
:</font></div></td>
<td><font size="3">
<input name=unit id=unit type=text class="input" size=10 maxlength ="10" >
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#333333" size="2">บาร์โค้ด
:</font></div></td>
<td><font size="3">
<input name=bacode id=bacode type=text class="input" size=50 maxlength ="50" >
</font></td>
</tr>
<tr>
<td width="100%"><div align="right"><font color="#333333" size="2">รหัสครู : teach ID
:</font></div></td>
<td width="355"><font size="3">
<input name=registeach id=registeacht type=text class="input" readonly='readonly' size=3 value="<?=$objResult["Username"];?>" >
</font></td>
</tr>
<tr>
<td> <font color='red' size='3'></font></td>
<td>
<? if($status == 1)
{
echo "<input name=submit type=submit class=submit style=font-size:30px; value=เพิ่มรายการ >
<input name=submit2 type=reset class=submit style=font-size:20px; value=ยกเลิกข้อมูล >
";
}
else if($status == "")
{
echo "ไม่มีสิทธิ์ขาย";
}
else
{
echo "ไม่มีสิทธิ์ขาย";
}
?>
</td>
</tr>
</form>
</table></td>
</tr>
</table>
</div></td>
</tr>
<tr>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td><div align="center"><? echo "<font size=2 color=#ffffff>$footerweb</font>"; ?></div></td>
</tr>
</table>
<?
require_once "homeprost.php";
?>
</body>
</html>