| Server IP : 61.19.30.66 / Your IP : 216.73.216.15 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/sell/ |
Upload File : |
<?
require_once "../config/confiteacher.inc.php";
?>
<html>
<head>
<?
$teach=$objResult["teachcode"];
?>
<html>
<head>
<title>sme</title>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="80%" 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="right"><font color="#ff0000" size="2"><font color="#333333">ยินดีต้อนรับ
:</font> <font color="#ff0000"> <?=$objResult["teachcode"];?> <?=$objResult["name"];?> <?=$objResult["lastname"];?>
<font color="#666666">เข้าสู่ระบบค่ะ </font></font></font></div></td>
</tr>
<tr>
<td><div align="right"><font color="#666666" size="2"><a href="menu.php">หน้าหลักระบบ</a>
| <a href="logout.php">ออกจากระบบ</a></font></div></td>
</tr>
<tr>
<td><div align="center">
</td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<tr>
</tr>
<tr>
<td><div align="center">
<font size="+1"><strong><font color="#003366" size="2">
<?php
$sql_1="select * from stocin join product on product.ProductID=stocin.idcodin where idstocin = '$_GET[id]'";
$db_query=mysql_db_query($db,$sql_1);
//$result1=mysql_fetch_array($db_query);
$idmember =$result1['idstocin'];
$idcodestoc =$result1['idcodin'];
$namestoc =$result1['ProductName'];
$pricinstoc =$result1['pricbuy'];
$pricsellstoc =$result1['pricein'];
$unitstoc =$result1['unitin'];
$bacode =$result1['bacode'];
?>
</font></strong></font> </div>
<table width="100%" border="0" align="center" cellpadding="1" cellspacing="1">
<form method="post" action="editsavestocin.php" name="webForm" onSubmit="return checkpost()">
<tr>
<td width="100%"><div align="right"><font color="#333333" size="3">รหัสสินค้า
:</font></div></td>
<td width="300"><font size="3">
<? echo $idcodestoc; ?>
<input type="hidden" name="idmember" value=<? echo "$idmember"; ?>>
</font></td>
</font></div></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="3">ชื่อสินค้า </font></div></td>
<td><font size="3">
<input name=namestoc id=namestoc type=text class="input" size=50 value='<? echo $namestoc; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="3">ราคาซื้อทั้งหมด
</font></div></td>
<td><font size="3">
<input name=pricbuy id=pricbuy type=text class="input" size=10 maxlength ="10" value='<? echo $pricinstoc; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="3">ราคาขาย/หน่วย
</font></div></td>
<td><font size="3">
<input name=pricein id=pricein type=text class="input" size=10 maxlength ="10" value='<? echo $pricsellstoc; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="3">จำนวนนำเข้า
</font></div></td>
<td><font size="3">
<input name=unitin id=unitin type=text class="input" size=10 maxlength ="10" value='<? echo $unitstoc; ?>'>
</font></td>
</tr>
<tr>
<td><div align="right"><font color="#FF0000" size="3">บาร์โค้ด
</font></div></td>
<td><font size="3">
<input name=bacode id=bacode type=text class="input" size=50 maxlength ="50" value='<? echo $bacode; ?>'>
</font></td>
</tr>
<tr>
<td> </td>
<td><font size="3">
<input name="submit" type="submit" class="submit" value="บันทึก!">
</font></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>
</body>
</html>