001.
<?php
002.
session_start();
003.
if
(
$_SESSION
==NULL){
004.
echo
"<script type='text/javascript'>alert('MUST LOGIN BEFORE')</script>"
;
005.
session_destroy();
006.
007.
}
008.
require_once
(
'DSSEduDBConnect.php'
);
009.
mysql_select_db(
"dss_education"
);
010.
011.
012.
$sql
=
" SELECT * FROM member WHERE 1"
;
013.
$query
= mysql_query(
$sql
,
$DSSEduDBConnect
)
or
die
(mysqli_error());
014.
$result
= mysql_fetch_array(
$query
);
015.
while
(
$result
[
'username'
]!=
$_SESSION
[
'username'
]){
016.
$result
= mysql_fetch_array(
$query
);
017.
}
018.
019.
$_SESSION
[
'ID'
] =
$result
[
'memberID'
];
020.
$_SESSION
[
'pass'
] =
$result
[
'password'
];
021.
?>
022.
<!DOCTYPE html>
023.
<html>
024.
<head>
025.
026.
<meta name=
"ROBOTS"
content=
"NOINDEX, NOFOLLOW"
/>
027.
<title>Admission</title>
028.
<link rel=
"stylesheet"
href=
"usercss.css"
type=
"text/css"
/>
029.
<link rel=
"stylesheet"
type=
"text/css"
href=
"css/jquery.jscrollpane.css"
media=
"all"
/>
030.
</head>
031.
<body>
032.
<header id=
"menu"
class
=
"body"
>
033.
<nav><ul>
034.
<li><a href=
"home.php"
>HOME</a></li>
035.
<li><a href=
"Nowshowing.php"
>MODELS</a></li>
036.
<li><a href=
"#"
>ABOUT</a></li>
037.
</ul></nav>
038.
</header>
039.
<header id=
"status"
>
040.
<ul id=
"status"
align=
"center"
>
041.
<?php
042.
session_start();
043.
if
(
$_SESSION
[
'username'
]!=NULL)
044.
{
045.
echo
"
046.
<li>
047.
<a href=
'user.php'
onmouseover=
'showOrHide(log-out)'
>
048.
WELCOME:
".$_SESSION['username']."
049.
</a>
050.
<ul
class
=
'sub-menu'
>
051.
<li>
052.
<a href=
'logout.php'
>logout</a>
053.
</li>
054.
</ul>
055.
</li>";
056.
}
057.
else
058.
{
059.
060.
}
061.
?>
062.
</ul>
063.
064.
</header>
065.
<br/>
066.
<br/>
067.
068.
<article
class
=
"select"
>
069.
070.
<div>
071.
<div
class
=
"tabcontents"
bgproperties=
"fixed"
>
072.
<div id=
'tab2'
>
073.
<form method=
"post"
action=
"curriculumn.php"
>
074.
<?php
075.
if
(
$_POST
[
'ctg'
]=
"11"
){
076.
077.
echo
'<h4>GPA :<input name="gpa" type="text" id="editgpa" value='
.
$result
[
'GPA'
].
'></h4>'
;
078.
echo
'<h4>ONET01 :<input name="onet01" type="text" id="editonet01" value='
.
$result
[
'ONET01'
].
'></h4>'
;
079.
echo
'<h4>ONET02 :<input name="onet02" type="text" id="editonet02" value='
.
$result
[
'ONET02'
].
'></h4>'
;
080.
echo
'<h4>ONET03 :<input name="onet03" type="text" id="editonet03" value='
.
$result
[
'ONET03'
].
'></h4>'
;
081.
echo
'<h4>ONET04 :<input name="onet04" type="text" id="editonet04" value='
.
$result
[
'ONET04'
].
'></h4>'
;
082.
echo
'<h4>ONET05 :<input name="onet05" type="text" id="editonet05" value='
.
$result
[
'ONET05'
].
'></h4>'
;
083.
echo
'<h4>ONET06 :<input name="onet06" type="text" id="editonet06" value='
.
$result
[
'ONET06'
].
'></h4>'
;
084.
echo
'<h4>GAT :<input name="gat" type="text" id="editgat" value='
.
$result
[
'GAT'
].
'></h4> '
;
085.
echo
'<h4>PAT2 :<input name="pat2" type="text" id="editpat2" value='
.
$result
[
'PAT2'
].
'></h4>'
;
086.
echo
'<input type="submit" name="Submit" value="Calculate">'
;
087.
}
088.
else
{
089.
echo
'Error'
;
090.
}
091.
?>
092.
</form>
093.
</div>
094.
</div>
095.
</div>
096.
<br>
097.
</article>
098.
<footer id=
"footer"
class
=
"body"
><p>
101.
</footer>
102.
</body>
103.
</html>