-
Notifications
You must be signed in to change notification settings - Fork 9
/
staff_insert.php
77 lines (63 loc) · 1.78 KB
/
staff_insert.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<?php
include "session.php";
include "connectdb.php";
$center_code = trim($_POST[center_code]);
$user_type = trim($_POST[user_type]);
$loginname = trim($_POST[loginname]);
$code = trim($_POST[code]);
$dfcode = trim($_PORT[dfcode]);
$name = trim($_POST[name]);
$lastname = trim($_POST[lastname]);
$name_eng = trim($_POST[name_eng]);
$lastname_eng = trim($_POST[lastname_eng]);
$password = trim($_POST[password]);
$password = md5($password);
?>
<script language=JavaScript src="frames_body_array_<?php echo $LANGUAGE ?>.js" type=text/javascript></script>
<script language=JavaScript src="mmenu.js" type=text/javascript></script>
<body bgcolor="#d4d4d4">
<?php
echo "<strong><a href=staff_new.php>Add New Start</a> </strong><br />";
$sql = "insert INTO xray_user (CODE, DF_CODE, LOGIN, NAME,LASTNAME,NAME_ENG,LASTNAME_ENG, USER_TYPE_CODE, PASSWORD, CENTER_CODE)
VALUES
('$code','$dfcode','$loginname','$name','$lastname','$name_eng','$lastname_eng','$user_type','$password','$center_code')";
mysql_query($sql);
$sql = "insert INTO xray_user_right (SUPER_ADMIN) VALUES ('0')";
mysql_query($sql);
//echo $sql;
?>
<table width="794" border="0" align=center bgcolor=#FFFFFF>
<tr><td bgcolor=#79acf3 colspan=2>Add New Staff</td></tr>
<tr>
<td width="191"><font face="MS Sans Serif"><img src="icon/pen.gif" width="54" height="59" align="middle"><br />New Staff Insert</font></td>
<td width="587" bgcolor="#f8d290">
<?php
echo "<br />";
echo "Add username : $username $lastname <br />";
echo "Login : $loginname <br />";
echo "Center : $center_code <br /> User Type : $user_type <br />";
?>
</td></tr>
</table>
<?php
/*
ID
CODE
DF_CODE
LOGIN
NAME
LASTNAME
NAME_ENG
LASTNAME_ENG
USER_TYPE_CODE
PREFIX
PASSWORD
CENTER_CODE
CREATED_TIME
SESSION
ENABLE
ALL_CENTER
LOGINTIME
TEXT_SIGNATURE
*/
?>