/var/www/hkosl.com/oneMotorChunHing_delete20240201/html/salesmandetail.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?
require("inc/configure.php");
require(
"inc/global.php");
require(
"inc/checklogin.php");
if (
$logged_in == 0) {
    
//echo 'Not logged in. <a href="login.php">Login</a>';
    
header('Window-target: _parent');
    
header('Location: login.php');
    exit();
}
?>
<?
$salesid    
$_GET['salesid'];
$formname    $_GET['formname'];

$sql "
select * from SYS_USER
where userid = 
$salesid
"
;
$result mysql_query($sql);
if (
$row mysql_fetch_array($result,MYSQL_ASSOC))
{
    
$username        $row{'username'};
}
?>
<html>
<head>
<title><?=$systitle?></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="main.css" type="text/css">
<body bgcolor="#FFFFFF" leftmargin="10" topmargin="10" marginwidth="0" marginheight="0">
<form action="" name="" method="post">
<table>
    <tr><td class="content">Salesman:</td>
        <td class="content"><?=$username?></td></tr>
    <tr><td class="content">Phone no:</td>
        <td><input type="text" name="telno" value="<?=$telno?>" class="content" size="20" maxlength="20"></td></tr>
    <tr><td class="content">Fax no:</td>
        <td><input type="text" name="telno" value="<?=$telno?>" class="content" size="20" maxlength="20"></td></tr>
    <tr><td class="content">Email:</td>
        <td><input type="text" name="telno" value="<?=$telno?>" class="content" size="20" maxlength="20"></td></tr>
    <tr><td class="content"></td>
        <td><input type="submit" value="Submit" class="content"><input type="reset" value="Close" onclick="window.close()" class="content"></td></tr>
</table>
</form>
</body>
</html>