Beruflich Dokumente
Kultur Dokumente
IN
KULLIYAH OF ENGINEERING
ENGINEERING
KULLIYYAH OF ENGINEERING
JANUARY 2016
DECLARATION
I hereby declare that this is the result of my own investigations, except where otherwise stated.
I also declare that is has not been previously or concurrently submitted as a whole for any other
I certify that I have supervised and read this study and that in my opinion, it conforms to
acceptable standards of scholarly presentation and is fully adequate in scope and quality, as
Final Year Project as partial fulfillment for a degree of Bachelor in Engineering (Computer and
................................................
Supervisor
................................................
Examiner 1
................................................
Examiner 2
ii
ABSTRACT
Manual filing system using the cabinet as a medium to store records nowadays is becoming
less important, as it is not efficient and creates latency in works. Thus, this project is developed
to overcome this problem. This project is about designing and developing a web-based
management system for post graduate unit in Kulliyyah of engineering. This system was
developed by using open source software MySQL, PHP and Apache server through XAMPP.
A research about the requirements has been done before the design and implementation. The
system database was managed through phpMyAdmin and testing it with PHP script in a web
browser. This system is a custom system created especially for the post graduate unit in
Kulliyyah of engineering. All the basic features of a database management system should have
are included. This system can help the unit to work more efficient, and more productive in
iii
ACKNOWLEDGEMENTS
Alhamdulillah to the greatest Allah s.w.t for giving us patience and the courage to finish
this project. Thousands of appreciation to my supervisor, Dr. Afidalina Tumian for the
guidance and support during the project development. I am deeply inadequate to thank her, for
her encouragement, suggestions and constructive comments, during the completion of this
project. I also would like to express my gratitude to Mr. Sulong and Mr. Noryussaini Sahak,
for helping in understanding web development and the coding, and also to my beloved family
Finally, I would like to thank to my friends who have contributed their ideas, suggestion,
iv
TABLE OF CONTENTS
DECLARATION ............................................................................................... i
ACKNOWLEDGEMENTS .............................................................................iv
CHAPTER 1 ..................................................................................................... 1
1.3 OBJECTIVE................................................................................................................ 2
CHAPTER 2 ..................................................................................................... 4
2.1 OVERVIEW................................................................................................................ 4
v
CHAPTER 3 ................................................................................................... 12
3.1 OVERVIEW.............................................................................................................. 12
CHAPTER 4 ................................................................................................... 29
4.1 RESULTS.................................................................................................................. 29
vi
4.1.2 Admin Homepage .............................................................................................. 30
CHAPTER 5 ................................................................................................... 35
BIBLIOGRAPHY ........................................................................................... 36
APPENDIX A ................................................................................................. 37
APPENDIX B ................................................................................................. 38
APPENDIX C ................................................................................................. 44
vii
LIST OF TABLES
Table 2.1: Solution and the technology used (Christian, 2014, p. 3). ............................ 8
viii
LIST OF FIGURES
Figure 2.3: XDSched block diagram for website management system (Christian,
2014). ............................................................................................................................. 7
Figure 2.4: XDSched mobile application and website relation block diagram
Figure 3.7: htdocs (all web development coding are stored here) ............................... 23
ix
Figure 4.1: Expected Home page of the system .......................................................... 29
x
1 CHAPTER 1
INTRODUCTION
1.1 BACKGROUND
This project is mainly about designing a database system which manages the viva voce
process for postgraduate unit in Kulliyyah of Engineering (KOE). Apparently, there is a dire
need for such system due to the inefficient and manual process adopted in the unit. For
example, there has been complaint on the lack of varieties in the choices of examiners, as
some academics become examiners more often than the others. Therefore, in this particular
matter, the staff of Postgraduate unit need to monitor the number of times an examiner has
examined a thesis.
All the records of examiners have been kept in filing-cabinet system. Since all
process. Below are the specific situations that need a revamped process:
a) The staffs at Deputy Dean Post Graduate (DDPG) office in KOE need to remind the
examiners about the due date of submitting their thesis evaluation report. Since the
current system is paper-based system, the staff needs to check the examiners’ file one by
one and this will delay the time to release reminder letter to the examiners, and thus
1
b) Report and letter are produced manually. Thus, this causes inefficiency and time
1.3 OBJECTIVE
a) To understand the current process in managing viva voce process in postgraduate unit
b) To propose and develop a web-based database management system using the concept
current system.
Information Gathering:
o Having discussion with Sr. Noor Hidayah Arasad, the staff at the Deputy Dean of
o Discuss on items that will be included in the Web App and highlight the important
Planning:
2
Modeling:
Construction
o Prototypes are developed using different web building software, such as XAMPP
for local development, plus phpMyAdmin and MySQL were included for free, and
Flash Develop for coding were used. For more dynamic website, javascript and
o Finalizing prototype by uploading files and information onto the localhost and final
Deployment:
Documentation:
o Report is written based on the study and the building of the WCMS for RDBMS of
examiners.
In the first chapter is about the background of the project, regarding the problem
statement, objectives and the overview of the project. In second chapter is about literature
review on past papers such as Faculty Information System (Geanne, 2015), Examiners’ duty
schedule (Christian, 2014) and FYP Online System (Abdul Mutholib, 2011). In third chapter,
it is about the research methodology that have been used to do the project. Then, in fourth
chapter, is about the result obtained from the research and discussions. Lastly, chapter five,
3
2CHAPTER 2
LITERATURE REVIEW
2.1 OVERVIEW
Document collection, submission and reports are one of the major concerns in any
Malaysian Qualifications Agency (MQA), and other agencies based on related industries such
as Engineering Accreditation Council (EAC) for engineering audit, the goal is the same, which
is to maintain the quality of education in Malaysia. In this section, I reviewed some of related
According to (Geanne, 2015), Geanne has developed a web-based system for De La Salle
Information System (FIS). The system objective is to tackle problems such as “(1) confusion
due to multiple copies of records submitted by the faculty through the years (2) manual
consolidation and sorting of faculty information, (3) monitoring problem due to Faculty
Information Form (FIF) are submitted through email, (4) record conflict due to submission is
sent to several administration personal e.g. department chair, department secretary, dean,
Quality Management Office (QMO) and IAA, and (5) different data format like dates, country,
monetary values, proper names of institutions, and others” (Geanne, 2015). Thus, Geanne Ross
(2015) proposed the system design as in Figure 2.1, by using Rapid Application Development
4
Figure 2.1: FIS design in block diagram (Geanne, 2015)
The system focused on four type of users, who are the system administrator, the manager,
the faculty and the assistant. To support each user tasks, eight module were created namely the
user authentication module, the data entry module, the faculty personal information module,
the degrees earned/pursue module, the work history module, the publication module, the grants
5
and awards to faculty module, and generate reports module as shown in Figure 2.1. Other than
that, the tools that were used for the development are common web tools such as Hypertext
Markup Language (HTML), Cascading Style Sheet (CSS), Javascript (JS) and Bootstrap. For
the dynamic web function, (Geanne, 2015) use Hypertext Preprocessor (PHP), MySQL and
Javascript Object Notation (JSON) are used for system development and database and
information storage respectively. Lastly, (Geanne, 2015) conclude that, the system really helps
the IAA office documentations before and after accreditation process. Besides that, problems
such as multiple copies, repetitive submissions, and non-related reports generation are solved.
In addition, the system is online, which make the system mobile, and can be access remotely.
In (Christian, 2014), Christian has developed a system called “XDSched”, which is a short
form of Examiner Duty’s Schedule. The system main function is to smooth the conduction of
2. Lack of direct contact between the scheduling authorities and final end examiners.
3. No proper means for immediate notification of any duty or schedule changes [to the
4. No mechanism which can directly track any error(s) if exists in the schedule or duty
allocation [ Human allocation errors because of manual process like improper exam date
and time, or same examiner being allocated to different centers at the same date/time, etc.].
5. The major problem that arises is the delay in information passing, as it depends on
6
Due to above problems, (Christian, 2014) proposed the system which consist of two
parts, online management system and mobile application (apps) for the system, which the
Figure 2.3: XDSched block diagram for website management system (Christian, 2014).
Figure 2.4: XDSched mobile application and website relation block diagram (Christian, 2014).
7
In Figure 2.3, (Christian, 2014) present that, examiners have their own account, where they
can update their expertise and contact details. They also can request for change or cancel their
status as examiner. In addition, they can view the examiners’ duty schedule and also the
allocated examiners (done by the dean through the website), including the centers that they
have been assigned to (Christian, 2014, p. 2). Besides that, all information in the website, is
also updated in the mobile apps, where the examiners also could get notification from there
such as duty reminder and the location of the examination center will be held (Christian, 2014,
p. 3). Other than that, it works similar to the website. The technologies used in (Christian, 2014)
Table 2.1: Solution and the technology used (Christian, 2014, p. 3).
Finally, Christian conclude that old manual system is not efficient as it exposed to
human error, communication problem, that leads to delay in the processes, and the system
developed really helps to minimize the chance of errors, and violation of rules. Furthermore,
the duration of process is optimized. Hence, all works become more efficient and agile in time
as the system can be accessed from anywhere and anytime (Christian, 2014).
In (Abdul Mutholib, 2011), they have developed a system to manage students’ final year
Malaysia. Abdul Mutholib et al. stated that, the technologies they used are “GNU Linux
Ubuntu, Apache for the web server, MySQL for the relation database management system
8
(RDBMS), PHP server scripting and jQuery java script framework which is addressed by
Google” (Abdul Mutholib, 2011). Furthermore the design approach that they used is RAD,
which is similar to (Geanne, 2015) method instead of traditional method. In Figure 2.5, it shows
the differences between Traditional and RAD development methodology, as (Abdul Mutholib,
2011, p. 1314) present that RAD approaches is better in terms of functionality and performance,
Figure 2.5: Comparison between RAD and Traditional development methodology (Abdul Mutholib,
2011).
9
Table 2.2: FYP Procedure (Abdul Mutholib, 2011).
Thus, the system is developed based on the FYP procedure shown in Table 2.2, which
consists of three modules: Registration, Student Progress and Submission. From the table, six
10
All in all, (Abdul Mutholib, 2011) conclude that, the system is a success, as the students
gain more knowledge and realizing the university goals. Other than that, the evaluation for the
FYP students become more effective and efficient as the system makes it more objective and
2.5 SUMMARY
In conclusion, all the reviewed papers, have a lot in common, such that, the development
of the system is to assist the faculty or departments to meet the standards set by their respective
accreditation council. Due to that, a lot of documentations need to be done, which most of the
problems are caused by manual process which results in more major problems such as time
lag, miscommunication, lost files, outdated information or record, and etc. Hence, this system
(Viva Voce Management System) is needed in Deputy Dean of Post Graduate office of
11
3 CHAPTER 3
METHODOLOGY
3.1 OVERVIEW
The structure of the viva voce management system website is built in three steps:
In this sections, we are going to explain the research background and information
To begin developing the “Web based Management System for Post Graduate Unit in Kulliyyah
following the Waterfall Model. This traditional Software Development Life Cycle (SDLC)
follows five steps for the completion of the project. The steps are as follows:
Figure 3.1: Waterfall Model (Pressman, Software Engineering: Practitioner's Approach 7th Edition,
2009, p. 39)
12
Therefore, the development methodology for our software is based on this software is
based on this Software Development Life Cycle. However, necessary modifications are made
Communication and requirement identification phase is the first and the main step in
building an application. In this step, the users, requirements and other relative information
regarding this application are determined. After determining the users, the requirement
identification step is proceeded with, by meeting with the expected users. The users and
3.2.1 Requirements
There are few requirements that have been specified by the staff in DDPG Office,
13
Table 3.2: Viva Voce Management System
Examiners:
Name of Examiner 1 [ Use scroll up
and Down button]-Choose from
Database of Examiner table, KPGC
Approval, Date sending Thesis, Date
received Evaluation Report, Type of
Examiner (automatic generated from
database of Examiner table)
14
Checking Evaluation due date.
To generate report of the
Examiners who had exceeded
the due date.
Checking Coding: “Date sending Thesis
(from Management of Thesis
Evaluation form) + 35 days”
Generation of Reminder Letter
(Template will be given to you)
From i, generation of reminder letter
(automate) could be done. Parameter of
this letter:
Name of Examiner [Management of
Thesis Evaluation Table]
Office Address (Database of Examiner
Table)
Name of Student (Management of
Thesis Evaluation Table)
Title of Thesis (Management of Thesis
Evaluation Table)
Date of Sending Thesis (Management
of Thesis Evaluation Table)
15
c) Conducting of Report generated from (Management of Thesis
Viva Voce
Evaluation Table)
i. Examiner Report
Table 3.3: Examiner report sample
e) Suggested Data a) IIUM SERVER (Maybe we could deal with the KOE
Storage Webmaster and ITD to get some space for the data
storage.) So that, this system could be viewed in KOE’s
Website.
b) Or else you have to use Open source database (MYSQL
maybe)
c) Or, build stand-alone system, share in KOE’s network.
16
3.2.1.2 Functional Requirements
a) The application must be available for most of operating systems existed such as
a) The system must be working efficiently in terms of bandwidth usage, memory, traffic
and etc.
c) Well presented, and have nice aesthetic value for the user interface.
d) Make sure, the system development is well documented for future use.
17
3.3 SYSTEM DESCRIPTION
can log into the system, and the privileged given to them are all access, including view, add,
edit, upload examiner’s CV, download reports and delete. As for Post Graduate Coordinator
(PG Co.) and Head of Department (HOD), they can log into the system and ‘view only’.
Besides that, in Figure 3.3 (Management of Thesis Evaluation) shows that, the
administrator could fill the thesis evaluation form, which consist of student’s details (Name,
Matric no., Programme, Mode of Study, Title and Date of submission), examiner 1 and 2
details (Name, Date of KPGC approval, Date sending thesis, Date received evaluation report
and type of examiner), and then the data will be insert into database of thesis evaluation
(thesis_evaluation). Some data from examiner’s database (examiner_vivavoce) are used for
selection of names, which are already existed in the database. After that, calculation of
checking evaluation due date (Date of sending thesis + 35 days) and warning (Date of sending
thesis + 45 days) is made. Then the letters will be emailed to the examiners. Other than that,
admin can do any other common access such as add, edit and delete. As for PG Co. and HOD,
In Figure 3.4 (Conducting of Viva Voce), after PG Co. and HOD logged in, the can
view the thesis evaluation report, where it consist of students details and both examiners (data
obtained from thesis evaluation database). While, administrator have all access and manage
the tables.
18
3.3.1 Examiners’ Management
Login
Login
Verify user name,
type of user and
Lo password
Lo
Fill Form
- Details of Database
examiner of
- Upload CV Examiners
Table
Report Generated
View only a)Nationality
-All
-Malaysian
-International
Access all data
(View, Edit, Add, b)ASCII data
Download and etc)
Exit
Function
Figure 3.2: Initialize Database of Examiners
19
3.3.2 Management of Thesis Evaluation
Login Login
Exit
20
3.3.3 Conduction of Viva Voce
Login Login
Report generated:
a) Examiner report.
b) Automation: Letter of
appointment(Examiner
)
c) Automation: Letter for
invitation of VIVA
VOCE
Exit
21
3.4 DEVELOMENT TOOLS
3.4.1 XAMPP
This is a Windows web development where it allows creating web applications with
Apache, PHP and a MySQL database; these three tools are offline together with the system.
a) XAMPP homepage – This is the homepage as shown in Figure 3.5, to set or change how
the user wants to manage the system. Here user can enter phpMyAdmin page, or change
b) phpMyAdmin – This option will launch phpMyAdmin access as shown in Figure 3.6, In
phpMyAdmin user can manage, query, select and browse the MySQL databases. Other than
c) htdocs – Here are the files, where files can be uploaded and stored there, HTML, PHP,
22
d) MySQL – Here the databases can be created and user can view existing database, and they
Figure 3.7: htdocs (all web development coding are stored here)
23
Figure 3.8: Database, Web server and phpMyAdmin details
24
3.4.2 MySQL Database
MySQL is a popular open source database tools. In basic terms, a MySQL database
is capable of storing any type of that data. It will let us quickly store and retrieve
information (Robert, Web Hosting FAQs, 2008). MySQL is the database of choice for
several different web programming languages including PHP, Perl, Ruby, Python and etc.
3.4.3 phpMyAdmin
much easier to manage database using a graphical user interface (GUI) (Robert, Web
Hosting FAQs, 2008). PhpMyAdmin is a web-based application that ease the management
of MySQL database.PhpMyAdmin will let user add, remove and manages databases, tables
and entries; backup the database, run specific SQL queries, search and import record, and
more. Figure 3.9 show the phpMyAdmin page for MySQL database.
25
3.4.4 PHP
source general-purpose scripting language that is especially suited for web development
and can be embedded into HTML (Bill Abt, 2001-2015). For this purpose, PHP code is
embedded into the HTML source document and interpreted by a web server with a PHP
processor module, which generates the web page document. As a general purpose
line mode performing desired operating system operations and producing program output
on its standard output channel. It may also function as a graphical application. PHP is
available as a processor for most modern web servers and as a standalon interpreter on most
Database for admin are called admin_vivavoce, consist of two table: ‘user’and
‘dept’ – These table were used to store user information, when the new info are added. The
field and data type are shown in Figure 3.10– 1 and Figure 3.10 – 2 respectively.
26
3.5.2 Database for examiners
‘examiner_table’, ‘nation’ and ‘pdf’ – These table were used to store examiner information,
when the new info are added. The field and data type are shown in Figure 3.11 – 1, Figure 3.11
27
3.5.3 Database for Management of Thesis Evaluation
Database for thesis evaluation are called thesis_evaluation, consist of four table:
were used to store thesis evaluation information, when the new info are added. The field and
3.6 SUMMARY
All in all, the project is developed based on the requirements gathering, and it is
implemented and deployed through common web development tools such as XAMPP,
MySQL, phpMyAdmin, PHP, HTML, CSS and Javascript (JS). The result of the
28
4 CHAPTER 4
4.1 RESULTS
In this semester, we have finished the coding, and we are more focused on the
functionality rather than the aesthetic graphical user interface. Thus, this is the preview of the
Login page. Here, admin and other user can log in. The different between user and admin page
is user can only view data that has been updated such as examiners and thesis evaluation table,
but admin can manage users, and add or edit or delete data in examiners and thesis evaluation
table.
29
4.1.2 Admin Homepage
Figure 4.2 below shows the homepage of the system for admin, which consist of a main
picture of IIUM and five tabs on the top-right, which are Home (for homepage), Admin
(for administrating user), Examiners (for managing examiners records), and Thesis
30
4.1.3 Admin Page
Figure 4.3 shows the Admin page, where it consist of two parts, which are the ‘Add New
User’ form on the top and users’ table below. In this page, administrator can add or edit or
delete user’s details such as username, full name, staff designation, email address,
password, department and status. Below is Table 4.1 which describe the button in the
system.
Edit/Change data
31
4.1.4 Examiners Page
Figure 4.4 above, shows the Examiners Page, which consists of two parts, first part is ‘Add
New Examiner’ form, and the next part is the bottom part which shows the list of examiners
details, after being added into the database. In this page, an administrator can add or modify
or delete the data. The data that the administrator can modify are the examiner’s name,
designation, office address, university, email address, phone number, mobile phone
Figure 4.5 and Figure 4.6 below shows the parts’ of Thesis Evaluation page, top
and bottom respectively, where on top, admin can fill the thesis evaluation form and
bottom, admin can view the data that has been added.
32
Figure 4.5: Thesis Evaluation form
33
4.2 DISCUSSION
In this project, we have faced a lot of problems through the coding, because, it is quite
difficult what type of software to used and what programming language is suitable. However,
we have decided to use PHP and MySQL for the start. Other than that, is the coding, it is
quite difficult because, we have no background in PHP and MySQL except basic in Object
Oriented Programming (OOP), thus, we need to learn on our own. Besides that, there are
Other than that, there are few requirements that are not fulfilled due to resource and
time constraints, such as Generation of reminder and warning letter, invitation letter, email
automation and frequency of examiners usage. However, these requirements can be done in
future, as there is still a lot space to improve. Generation of the mentioned letters can be done
as the library coding is available, but time to explore more on the report template and to
match with the coding is needed. Email automation also is possible, however, most of the
websites out there are using cron job, which is operating system of the server are needed to
handle the automation such Unix or Linux. Thorough study is needed for this part. Other than
that, frequency of examiners usage can be done, but study on suitable algorithm is needed.
However, examiners and thesis evaluation report from examiners and thesis evaluation
database are done, but still need improvement in prompting user for confirmation such as
“Are you confirm to add/edit/delete?”,. This is needed to avoid administrator from mistake
during data entry and accidentally delete data. Other than that, the code can be improve in
terms of security, because currently the coding is focused on functionality. Besides that, the
server that is currently used is a localhost, thus further discussion with Information
Technology Department (ITD) is needed as ITD is known for high network security and it
34
5 CHAPTER 5
In this project, Viva Voce management system for post graduate unit in KOE was
developed to help the unit to manage the database of examiners efficiently. This system is
implemented by using XAMPP, MySQL, PHP and Apache. Besides that, this system can
handle large number of database and can eliminate time consuming problem. Other than
that, there are additional features in this system that gives benefit to user. Throughout this
project, many new things we have learned and gain more knowledge especially in software
development. This developed system is not stable version, and need more improvement. It
is hoped that, that this system can be upgraded in the future in terms of security, aesthetic
value and further complex usage. Other than that, maybe, there will be mobile app for this
system such as in XDSched (Christian, 2014). More on future work, can refer the flowchart
in appendix C.
35
BIBLIOGRAPHY
Abdul Mutholib, T. S. (2011). Development of FYP Online System for Outcome Based
Education. TENCON 2011 - 2011 IEEE Region 10 Conference (pp. 1312-1316). Bali:
IEEE.
Christian, M. (2014). XDSched-A synchronized web based and mobile based solution for
Dedoimedo. (2011, February). Apache Web Server Complete Guide. Retrieved May 11,
System. TENCON 2015 - 2015 IEEE Region 10 Conference (pp. 1-5). Macao: IEEE.
Lerdorf, R. (2007). PHP on Hormones. Retrieved May 11, 2015, from itc conversation
network: http://itc.conversationsnetwork.org/shows/detail3298.html
Oracle. (2011). Top 10 Reasons to Use MySQL as an Embedded Database. Retrieved May
to-use-mysql-as-an-embedded-database/
McGraw-Hill.
Robert. (2008). Web Hosting FAQs. Retrieved from Host Shopper: http://www.host-
shopper.com/what-is-a-mysql-database.html
Robert. (2008). Web Hosting FAQs. Retrieved May 8, 2015, from Host Shopper:
http://www.host-shopper.com/what-is-a-mysql-database.html
36
6 APPENDIX A
37
7 APPENDIX B
CODING
Adminuser.php
<?php
error_reporting(0);
session_start();
require_once('db.php');
include('checkuser.php');
include('modules.php');
?>
<HTML>
<HEAD>
<TITLE>System User Add</TITLE>
<link rel="stylesheet" type="text/css" href="mystyle1.css" />
</HEAD>
<BODY>
<?php
pheader();
?>
<div style="margin-top:35px;">
<?php
date_default_timezone_set('Asia/Kuala_lumpur');
$time = date("H:i:s");
$today = date("d/m/Y");
38
var date = '{$today}'
var time = '{$time}'
echo "<div>";
echo "<form method='POST' action='adminuser_add.php'> ";
echo "<table border='1' width='50%'>";
echo "<tr style='align:center;color:#FFFF00'><th colspan='2' class='listh'>Add
New User</th><tr> ";
echo "<tr style='align:center;color:#FFFF00'><td class='listh'>Username</td><td
class='list1'><input type='text' name='user' size='30'></td></tr>";
echo "<tr style='align:center;color:#FFFF00'><td class='listh'>Full Name</td><td
class='list1'><input type='text' name='name' size='60'></td></tr>";
echo "<tr style='align:center;color:#FFFF00'><td class='listh'>Staff
Designation</td><td class='list1'><input type='text' name='designation'
size='60'></td></tr>";
echo "<tr style='align:center;color:#FFFF00'><td class='listh'>Email
Address</td><td class='list1'><input type='text' name='email' size='60'></td></tr>";
echo "<tr style='align:center;color:#FFFF00'><td class='listh'>Password</td><td
class='list1'><input type='password' name='password' size='30'></td></tr>";
echo "<tr style='align:center;color:#FFFF00'><td class='listh'>Department</td>
<td class='list1' style='align:center;color:#FFFF00'><select
name='dept'> ";
$resultrec = mysql_query("SELECT * FROM dept order by deptno");
while($row11 = mysql_fetch_array($resultrec))
{
echo "<option value='$row11[deptno]'> $row11[description]
</option> ";
}
echo "</select> </td> </tr>";
echo "<tr style='align:center;color:#FFFF00'><td class='listh'>Status</td>
39
<td class='list1' style='align:center;color:#FFFF00'><select
name='status'> ";
echo "<option value=1> Active </option> ";
echo "<option value=0> Inactive </option> ";
echo "</select> </td> </tr>";
echo " <tr><td class='list1'></td> <td class='list1'>
<input type='image' src='images/ok24g.png' name='save'
value='save' alt='save' >
<input type='image' src='images/close24y.png' name='cancel' value='cancel'
alt='cancel' >
</td> </tr> ";
//echo " <input type='hidden' name='company' value='SIB' >";
echo "</table>";
echo "</div>";
echo "<div height='auto'>";
echo "<table border='1' width='90%'>";
echo "<tr style='align:center;color:#FFFF00'>
<th class='listh' width='5%'>No</th>
<th class='listh' width='10%'>USERNAME</th>
<th class='listh' width='30%'>FULL NAME</th>
<th class='listh' width='10%'>DESIGNATION</th>
<th class='listh' width='10%'>DEPARTMENT</th>
<th class='listh' width='20%'>EMAIL</th>
<th class='listh' width='10%'>STATUS</th>
<th class='listh' width='10%'>ACTION</th>
</tr>";
$i = 1;
$result1 = mysql_query("SELECT * FROM user ORDER BY
user");
while($row1 = mysql_fetch_array($result1))
40
{
$user = $row1[user];
$name = $row1[name];
$designation = $row1[Designation];
$dept = $row1[dept];
$stat = $row1[status];
41
<a id='del'
href='adminuser_del.php?name=$row1[user]' name='$row1[user]'
onCLick='confirmdelete(this.name)'>
<img src='images/close24y.png' border='0' alt='Delete'></a></td>";
$i++;
}
echo "</table>";
echo "</div>";
?>
<script>
function confirmdelete(str) {
var bool = confirm("Are you SURE you want to delete this record : "+ str +" ?");
if (bool == true){
document.getElementById("del").href="adminuser_del.php?name="+ str +"" ;
} else{
42
document.getElementById("del").href="adminuser.php?name=null";
}
</script>
</div>
<?php
if (!empty($_SESSION[user]) )
{
pfooter();
}
?>
</BODY>
</HTML>
*note: for more coding you can visit this link:
https://drive.google.com/folderview?id=0B8W93zAfOC2jb2tLZE5GU2x5TGM&usp=sharing or
email me at marwanshuhaimi@gmail.com for more inquiries.
43
8 APPENDIX C
44