Вы находитесь на странице: 1из 40

UNIVERSITY

MULTIMEDIA

DIT 5618
INDUSTRIAL TRAINING
REPORT
Flexiroam Sdn. Bhd.
BY

1131120272
KESHVAR A/L S.PARAMASIVAM
DIPLOMA IN INFORMATION TECHNOLOGY
TRIMESTER 3 2014/2015

ABSTRACT
Industrial training is a part of course structure which all Diploma students should
undergo. With the motive of wanting to experience a unique working environment and to
learn all the efficient problem solving skills in an industry. I was able to achieve
everything that I aimed for. With one project in 12 weeks, I was able to gain programming
skills, communication skills, problem solving skills and my self-confidence. Joining with
less expectation, I was provided with lots of knowledge which I was amazed of. As a
student, I was expecting a fun based working environment.

ACKNOWLEDGEMENT
First and foremost, I would like to thank my supervisor, Mr. Tan Li Choong as the VP of
Network and Support who had taken a lot of efforts to guide me throughout this 12 weeks
journey. Without guidance from him, I surely wouldnt have made it through successful
with all my motives that I had and also to complete my report. Also, I would like to
extend my thanks to Mr. Tan Li Choong for his cooperation and endless patience in
letting me shadow him around for most of tasks. His cooperation indeed make my work
became easier and faster.
Secondly, I would like to acknowledge my thanks to the Operations Department of
Flexiroam, Ms. Elfreda Ong and Ms. Yong Fei Lim for their kindness and their trust,
giving me the chance to have my industrial training in there. I would also like to extend
my gratitude to VP of Product of Development, Miss Lim Xin Yu for her patience and
kind help in completing my project. On the other hand, I would also like show my
appreciation to Senior Developer, Mr. Mahmood Raza Khan and also App Programmer,
Mr. Afzal Ansari who really helped me out with my programming skills to get my project
done on time.
And at the same time, I would like to take this opportunity to express my deeply thankful
to the entire people in Flexiroam Sdn. Bhd., whom always never fail to give a hand when
needed and also for always being supportive. Never forget too, I would like acknowledge
my thanks to my academic advisor, Madam Nurul Aini Bt Nordan for assisting me to get
done with the paper works before industrial training and also helping me out throughout
my industrial training.
Finally, I would like to express my heartfelt gratitude to my family, friends and also
lecturer for their support, constructive suggestion and also criticism.

TABLE OF CONTENTS
ABSTRACT
ACKNOWLEDGEMENT

2
3

PART 1: THE COMPANY


1.1 Background of the company..................................................................................... 5
1.2 Organization structure........................................................................................... 6-7
1.3 Nature of businesses................................................................................................. 7
1.4 Products or Services.............................................................................................. 8-9
PART 2: COMPANY INFRASTRUCTURE
2.1 Structure of Department attached to ...................................................................... 10
2.2 Network Infrastructure........................................................................................... 11
2.3 Hardware and Software.................................................................................. 11
PART 3: TASKS/PROJECTS ASSIGNED
3.1 Task/Project 1: 365 Voucher System
3.1.1 Description of project.......................................................................................... 12
3.1.2 Roles and responsibilities.................................................................................... 13
3.1.3 Screenshot ......................................................................... 13-15
PART 4: TRAINING ANALYSIS
4.1 Strengths and weaknesses....................................................................................... 16
4.2 Knowledge/skills gained......................................................................................... 16
4.3 Suitability of placement.............................................................................. 17
4.4 Networking Skills........................................................................... 17
4.5 Jobs/Career Opportunities.......................................................................... 18
4.6 Recommendations/ Suggestions............................................................................ 18
PART 5: APPENDIX
5.1 Self-evaluation form.......................................................................................19-20
5.2 Weekly logs............................................................................................... 21-32
5.3 Source codes...................................................................................... 33-39
5.4 References............................................................................................. 39
5.5 Feedback..................................................................................................40

PART 1: THE COMPANY


1.1.

Background of the company

Flexiroam was established in 2011 by Mr. Jef Ong in Malaysia with a mission to bring
affordable roaming solutions to travelers worldwide. Since its founding in 2011,
Flexiroam Sdn Bhd has continued to doggedly pursue affordable roaming technologies
for travelers. From its beginning as voice-only roaming provider for Malaysian travelers,
Flexiroam has developed into a voice plus data roaming service available for outbound
travels of eight different countries: Malaysia, Singapore, Indonesia, Hong Kong,
Australia, Canada, USA and UK. They have succeeded in triggering a ripple effect to
totally revolutionize the International Roaming Industry through our affordable and
convenient roaming service.
To date, Flexiroam has access to 580 telecommunication networks worldwide and
enabled global travelers to save over USD3 million worth of roaming charges. Flexiroam
currently operates within 4 international airports in Malaysia and is expanding its
presence in major international airports within the region. In less than 3 years, Flexiroam
has grown its subscription to over 300,000, enabling users to save over RM 16.2 million
on their roaming bills. With the introduction of the various Flexiroam SIM cards and
attractive voice & data roaming packages, Flexiroam expect a consistent five-fold average
annual growth in the next 5 years.
Going forward, Flexiroam is actively focused on expanding globally and delivering
profitable growth; optimizing customer value served to travelers; and building a highperforming organization.

1.2.

Organization structure

One of the unique feature of Flexiroam, compare with any other firms culture,
Flexiroams culture stands out. Flexiroam adopts the F.U.N. (Flexibility, Utmost, and
Noble) policies as the employees constantly renew their minds to make the impossible,
possible. Flexibility in working, employees are willing to change plans and activities
without getting upset by focusing on a bigger purpose. Utmost innovation, employees
think out of the box and constantly strive to make things better. Noble in character.
Employees demonstrate qualities of high moral character at work and at play.
Flexiroam has total of five departments. Sales and marketing department, which has
another four more sub divisions which is categorized into Roaming Specialist, Marketing
Team, Sales Support and Ambassadors. Roaming specialist are those who makes sales of
all the Flexiroam products and services. Marketing Team are those who solely works on
advertising and trying the possible ways to make more sales every day. Sales Support are
those who support the Roaming Specialist and also with sales issues. Ambassadors are the
airport staffs who works in the main four airports.
Secondly, Product Development department who works in two ways. Back end, who
develops the systems and apps. Front end, who gives the interface for the system and with
all the designs for the developed product. Thirdly, Network and Support department who
solely works with networking of all the products and services also supports customers
with their technical problems. Fourthly, Operations department who plays a role of
Human Resource in the company. Lastly, the Business Development department who
plays the role of making sure the company has a healthy growth complying to the the
government as well as the public. They also play a role as a public relation but more
towards of selling the business to improve the performance.

Figure A.1: Flexiroam Organization Structure

1.3

Nature of businesses

Flexiroams nature of businesses is telecommunication based. They are the fastest


growing international roaming provider in the Asia-Pacific.

1.4

Product and Services

Flexiroam provides roaming service as cheap as RM10/day. Their products and services
can be categorized into two which is Roaming Pass and SIM Products. The Roaming Pass
are divided into two, Single Country Roaming Pass and Multiple Country Roaming Pass.
With the Call Forwarding/Call Diverting technology, Flexiroam revolutionizes the
roaming industry where the customers could maintain their local mobile number while
they are in overseas. On the other hand, Flexiroam has their own SIM products such as
Beyond Sim, Infinity Sim and Buzz Sim. All three Sims has their own special rates and
features such as unlimited data and charges as per usage features.
Roaming Pass

BUZZ SIM

Infinity SIM

PART 2: COMPANY INFRASTRUCTURE


2.1

Structure of Department attached to

The department that I was attached to was Network and Support. Being in this department
as an apprentice, my daily job scope is to assist customers with their technical problems
and also making sure the customers understand how to use it before they depart. Mr Li
Choong, VP of Network and Support, who does network system administration mainly as
well as managing wholesale network partnership and spearheading the development of
firm, technical backend for Flexiroam. Besides, they have System Analyst, Mr. Zulhilmi
who imports, clean, transform, validate or modeling data with the purpose of
understanding or making conclusions from the data for decision making purposes. On the
other hand, the Network Support Executive, Mr. Carlos who ensures that customers does
not face any problems throughout the service period. Troubleshooting most technical
problems in the company as well as for customers is one of his main role. All of us has
our own hierarchy of following the order and reports, yet we also have the privilege of
having direct contact with the VP.

Figure A.2: Network & Support Hierarchy

10

2.2

Network Infrastructure

In Flexiroam, the network infrastructure type are the combination of both Bus and Hybrid
Topology. Flexiroam does not have a physical server instead they use AWS (Amazon Web
Services. Below is the visualization of the network infrastructure of Flexiroam.

Figure A.3: Flexiroam Network Infrastructure

2.3

Hardware and Software

Flexiroam does not have a physical server room or application. Flexiroam uses AWS
(Amazon Web Services) as for most of the products and services. Thus, the risk of losing
data is very minimal as its all in the cloud. Besides, they use Unify as the Internet
Service Provider which is routed by switch and Asus Wi-Fi Router. With this Wi-Fi, it is
then accessed by DocuCentre-V C3375 Colour Multifunction Printer and all of the
employees laptops/netbooks and PCs. On the software side, they use FileZilla, Navicat
Premium, Adobe Collections, Notepad ++ , Google Apps and Microsoft Office.

11

PART 3: TRAINING/PROJECT/TASK ASSIGNED


3.1

PROJECT/TASK 1: 365 VOUCHER SYSTEM

3.1.1

Description of project

365 Voucher System is a system that is solely meant to make the work of employees easy
and faster. 365 is a new program that will be launched on June 2015 also means the
number of travel agency that Flexiroam collaborate with. Thus, this system would keep
track the number of vouchers sent, delivered and also would help the organization in
decision making with all the reports presented by this system. It begins with planning of
the system by brainstorming of how and what are needed in this system. This involved VP
of Network Support, Mr. Li Choong, VP of Product Development, Ms. Xin, main
employees who mainly would be using this system in the future and also me myself. With
all the sketches and ideas tabulated on drafts, I encountered a though challenge in
understanding all of it in a very short period of time. On the other hand, with very basic
level of programming skills, it was quite hard for me to execute the project. Yet, I was
guided throughout the whole project. The project consists total of 5 modules. First, is to
create the interface and able to call the data from database. Secondly, to store data and
also retrieve it in a dynamic ways. Third, is to execute the first and second module in
another 3 pages which functions different. Fourth, to add in more new features which
would assist user to have the best experience as well as programming for HTML to PDF
conversion for the Delivery Order. Fifth, is to create the delivery order draft and also
reports based on delivery and projection. This project requires a very minimal amount of
software such as SFTP software (FileZilla), database software (Navicat Premium) and
Notepad++/Adobe Dreamweaver.

12

3.1.2

Roles and responsibilities


Planning - Brainstorming with users and sketching a rough draft based on

requirement.

Analysis Had interview users to know more details about their requirement.

Beneficial in terms of understanding the system more before I could execute.

Coding Created web pages with back-end scripting (PHP and HTML) and front-

end scripting (JavaScript and JQuery).

Maintenance Had run several testing with the system once it was completed by

entering data. Fixing bugs as I found errors to be fix. Executed modification in terms of
settings, interface as well as features.

3.1.3

Screen shot

Figure B.1: Update Country & TA. A page where user could add all the countries they
wish to key in as well as all the Travel Agencys details.

13

Figure B.2: 365 Travel Agency Projection. Page where user can key in the projected
amount of voucher based on months for the required countries

Figure B.3: 365 Travel Agency Voucher Delivery. Page where user could update the
amount of vouchers that would be delivered based on monthly calculation.
.

14

Figure B.4: Search DO. Full form, Search Delivery Order. User will be able to find all
the DO that has been generated through this system.

Figure B.5: Reporting. This page and all three subpage functions as reports for the firm
to know about the vouchers statistics.

15

PART 4: TRAINING ANALYSIS

4.1

Strength and weaknesses

During this 3 months of my industrial training, I was able to know my own strength and
weaknesses with the tasks given to me in the firm. I was able to perform well in my
English communication skills as well as written skills. With my previous experience in
presentation and also events in campus, I was able to show a good leadership skills and
also teamwork. Yet, I quite felt slow and hard in organizing my tasks given and also to
perform under pressure. On the other side, there are quite number of subjects that I have
studied in my previous semesters that really assisted me in this industrial training.
Example of subjects are Program Design, System Analysis Design (SDLC), Programming
in Java, Object Oriented Programming and Internet Web Publishing.

4.2

Knowledge/skills gained

Pursuing my industrial in Flexiroam is truly a privilege as I get to gain new knowledge on


networking and also in programming. Besides, I was able to gain self-confidence as I'll be
facing various types of customers. Despite, I was able to enhance my communication
skills indirectly. In terms of software and programming skills, new methods and efficient
way of programming are those I mainly gained. Furthermore, I also learned new
programming language as JQuery and also SQL Queries.

16

4.3

Suitability of placement
Overall, the 3 months I spent in Flexiroam, was worth the while, I had gained very
insightful knowledge about the telecommunication industry, my internship was very
useful for my chosen carrier and also my final year project. Some of the core
principles that Flexiroam inculcated into me that I very much cherish s their FUN
working environment. I can boldly say that my productivity level has increased and
also I am much more result oriented than I used to be. From all the training and skills
that Flexiroam gave me, I think I am now more than ever prepared to face my all my
future endeavors especially at the workplace, I feel truly honored to had been part of
the Flexiroam Family. Thus, with all these reasons, I am sure any students would be
love to pursue their industrial training in here. As a student, he/she should be an
outspoken person and willing to learn and explore more than what they have been
expecting.

4.4

Networking Skills

No. Name

Designation

Qualification/ Date

(Department) Professional
1.
2.

3.

Adriel Low Product

membership
Diploma

Carlos

Development
Network & Diploma

Adjetey

Support

Abdul

Executive
Marketing

Laziz

joined

Year of
Name of
graduation
University

company
12/01/2015 2015

Saito

27/03/2014 2014

College
Mentissa
College

Bachelors in 05/02/2014 2014

UTP

Business
Info.

17

4.5

Jobs/Career Opportunities

As far as I am aware with the culture and environment, Flexiroam is expecting interns
who are willing to go for further mileage in learning new knowledge and skills. And they
offer placement for all students who have Information Technology knowledge. But they
mainly give importance on Networking and Programming regardless if its back-end or
front-end.

4.6

Recommendation/ Suggestion

The period I spent with Flexiroam brought me up to speed with what was trending in the
telecom industry, and also gave me detailed explanations of what an employee expects
from his/her employers when hired. Most importantly I learned how to be a team player,
work independently, responsible, be accountable, work under supervision and without
supervision, and the importance of helping others members on your team, were just a tip
of the iceberg with regards to what I have learned in Flexiroam for this short while. Thus
with all these reasons, I boldly would recommend and suggest to any students who will be
undergoing industrial training in the future.

18

PART 5: APPENDIX

19

Self-Evaluation Form

STUDENT SELF-EVALUATION FORM


To be attached in the training report (appendix)
Instruction: Please tick ( ) in the appropriate box.
The following questions will assist us in determining the effectiveness of the
overall internship.
Appraisal Rating Measurements:5
Excellent
4
Very Good
3
Good
2
Satisfactory
1
Unsatisfactory

Students Assessment
(Through my internship, I can see improvement in.

1.English communication skills

2.Written skills

3.Punctuality
4.Leadership skills

5.Critical thinking (ability to think clearly and rationally)

6.Self-motivation/initiative
7.Teamwork skills

8.Working under pressure

9.Problem-solving skills

10. Understanding of appropriate codes of practise

and industry standards.

How do you rate yourself?


1

20

5.2

Weekly logs

1st Week

21

2nd Week

22

3rd Week

23

4th Week

24

5th Week

25

6th Week

26

7th Week

27

8th Week

28

9th Week

29

10th Week

30

11th Week

31

12th Week

32

5.3

Source code

<?php
include('database.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>365 Travel Agency Projection</title>
<link rel="stylesheet"
href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jqueryui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<link rel="stylesheet" type="text/css" href="style.css">
<style type="text/css" >
table {
border-collapse: collapse;
border-spacing: 0;
}
p { margin: 10px 0;}
#sticky.stick {
position: fixed;
top: 0;
width: 97.1%;
background-color:#FFF;
}
</style>
</head>
<body style="padding: 20px;">
<?php
include('navigationbar.php');
$countryqry1= mysql_query("SELECT * FROM country");
$countryrow1=mysql_num_rows($countryqry1);
$countryarr=mysql_fetch_array($countryrow1);
$ctryid=$countryarr['country_id'];
?>
<h1>&nbsp;</h1>
<h1>&nbsp;</h1>
<h1>365 Travel Agency Projection</h1>
<br/><br/>
<form name="form" method="get" action="365_VoucherProjection.php">
<?php
$TAlist= mysql_query("SELECT ta_id,travel_agency FROM TA");
$num_ta = mysql_num_rows($TAlist);
if ($num_ta != 0) {
echo '<label>Travel Agency: ';
echo '<select name="TAdropdown" id="TAdropdown">';

33

while ($row = mysql_fetch_array($TAlist)) {


$ta_id = $row['ta_id'];
$ta_name = $row['travel_agency'];
$selected='';
if($_REQUEST["TAdropdown"]==$ta_id)
$selected='selected';
echo '<option value="' .$ta_id. '"'.$selected.'>' .$ta_name.
'</option>';
}
echo '</select>';
echo '</label><br><br>';
}
$years= mysql_query("SELECT * FROM year");
$year_num = mysql_num_rows($years);
if ($year_num != 0) {
echo '<label>Year : ';
echo '<select name="yeardropdown" id="yeardropdown">';
while ($row = mysql_fetch_array($years)) {
$year_id = $row['year_id'];
$year = $row['year'];
$selected='';
if($_REQUEST["yeardropdown"]==$year)
$selected='selected';
echo '<option value="' .$year. '"'.$selected.'>' .$year. '</option>';
}
echo '</select>';
echo '</label>';
}
?>
<small style="color:red;"><p>*Records are shown based on yearly duration
but starting with April - March of the following year. Eg: April,2015 March,2016</p></small><br>
<div>
<label><a href="365_VoucherProjection.php">
<input type="submit" name="button" id="button" value="Display !" />
Reset</a></label>
</div>
<br>
</form>
<?php
if($_GET["button"]!="")
{
$taid=$_GET['TAdropdown'];
$year=$_GET['yeardropdown'];
echo displayProjection($taid,$year);
}
if($_GET["updatebutton"]!="")
{
$countttl_arr=array();
$jan = $_GET['jan'];
$feb = $_GET['feb'];

34

$march = $_GET['march'];
$april = $_GET['april'];
$may = $_GET['may'];
$june = $_GET['june'];
$july = $_GET['july'];
$aug = $_GET['aug'];
$sept = $_GET['sept'];
$oct = $_GET['oct'];
$nov = $_GET['nov'];
$dec = $_GET['dec'];
$ttlvoucher = $_GET['ttlvoucher'];
$selectedtaid = $_GET['selectedtaid'];
$selectedyear = $_GET['selectedyear'];
$country = $_GET['country'];
//mysql_query("");
for($a=0;$a<$countryrow1;$a++)
{
$totalsumofvoucher= $jan[$a]+$feb[$a]+$march[$a]+$april[$a]+$may[$a]+
$june[$a]+$july[$a]+$aug[$a]+$sept[$a]+$oct[$a]+$nov[$a]+$dec[$a];
//echo '<br>';
if($ttlvoucher[$a] < $totalsumofvoucher)
{
$totalvoucher=$totalsumofvoucher;
}else{
$totalvoucher=$ttlvoucher[$a];
}
$ctryid=$country[$a];
$countttlarr=$countttl_arr[$a];
$one=$jan[$a];
$two=$feb[$a];
$three=$march[$a];
$four=$april[$a];
$five=$may[$a];
$six=$june[$a];
$seven=$july[$a];
$eight=$aug[$a];
$nine=$sept[$a];
$ten=$oct[$a];
$eleven=$nov[$a];
$twelve=$dec[$a];
//echo "INSERT INTO voucher
(ta_id,country_id,year_vp,jan_vp,feb_vp,march_vp,april_vp,may_vp,jun_vp,
july_vp,aug_vp,sept_vp,oct_vp,nov_vp,dec_vp,total_vp,entry_date) VALUES
('$selectedtaid','$ctryid','$selectedyear','$one','$two','$three','$four
','$five','$six','$seven','$eight','$nine','$ten','$eleven','$twelve','$
totalvoucher',NOW())";
mysql_query("INSERT INTO voucher
(ta_id,country_id,year_vp,jan_vp,feb_vp,march_vp,april_vp,may_vp,jun_vp,
july_vp,aug_vp,sept_vp,oct_vp,nov_vp,dec_vp,total_vp,entry_date) VALUES
('$selectedtaid','$ctryid','$selectedyear','$one','$two','$three','$four
','$five','$six','$seven','$eight','$nine','$ten','$eleven','$twelve','$
totalvoucher',NOW())");

35

}
echo displayProjection($selectedtaid,$selectedyear);
}

function displayProjection($taid,$year)
{
// $taid=$_GET['TAdropdown'];
//$year=$_GET['yeardropdown'];
$year1=$year;
$fromdate=$year.'04'.'01';
$todate=($year+1).'03'.'31';
echo '<br><p style="color:blue; font-weight:bold">Travel Agency:
'.getTA($taid).'</p>';
echo '<p style="color:blue; font-weight:bold">Year: April,'.$year.' March,'.($year+1).'</p>';
$countryqry= mysql_query("SELECT * FROM country");
$countryrow=mysql_num_rows($countryqry);
if($countryrow)
{
?></p>
<div id="sticky-anchor"></div>
<div id="sticky">
<table colspacing="0" colpadding="0" style="border-color: #AAA; bordercollapse: collapse; margin-bottom: 0px;" width="100%" border="1">
<tr>
<td width="14%" rowspan="2" style="padding:4px 0;"
align="center">Country</td>
<td colspan="12" align="center">Distributed Months</td>
<td width="14%" style="padding:4px 0;" rowspan="2"
align="center">Total</td>
</tr>
<tr>
<td width="6%" style="padding:4px 0;" align="center">April</td>
<td width="6%" style="padding:4px 0;" align="center">May</td>
<td width="6%" style="padding:4px 0;" align="center">June</td>
<td width="6%" style="padding:4px 0;" align="center">July</td>
<td width="6%" style="padding:4px 0;" align="center">August</td>
<td width="6%" style="padding:4px 0;" align="center">September</td>
<td width="6%" style="padding:4px 0;" align="center">October</td>
<td width="6%" style="padding:4px 0;" align="center">November</td>
<td width="6%" style="padding:4px 0;" align="center">December</td>
<td width="6%" style="padding:4px 0;" align="center">January</td>
<td width="6%" style="padding:4px 0;" align="center">February</td>
<td width="6%" style="padding:4px 0;" align="center">March</td>
</tr>
</table>
</div>
<p>
<?php
while($countryrow=mysql_fetch_array($countryqry))
{
$country_id=$countryrow['country_id'];

36

$country_name=$countryrow['country_name'];
?>
</p>
<div style="width: 100%;">
<form method="get" action="365_VoucherProjection.php">
<input type="hidden" name="selectedtaid" id="selectedtaid" value="<?php
echo $taid?>" />
<input type="hidden" name="selectedyear" id="selectedyear" value="<?php
echo $year?>" />
<table width="100%" border="1" style="border-color: #AAA; bordercollapse: collapse; margin-bottom: 20px;" colspacing="0" colpadding="0">
<tr>
<td width="14%" align="center" style="color:#006; font-weight:bold;
padding:4px 0;"><?php echo getcountry($country_id);?>
<input value="<?php echo $country_id;?>" name="country[]" id="country[]"
type="hidden"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'april_vp')?>" name="april[]"
id="april[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'may_vp')?>" name="may[]"
id="may[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'jun_vp')?>" name="june[]"
id="june[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'july_vp')?>" name="july[]"
id="july[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'aug_vp')?>" name="aug[]"
id="aug[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'sept_vp')?>" name="sept[]"
id="sept[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'oct_vp')?>" name="oct[]"
id="oct[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'nov_vp')?>" name="nov[]"
id="nov[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'dec_vp')?>" name="dec[]"
id="dec[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'jan_vp')?>" name="jan[]"
id="jan[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php

37

getProjection($taid,$year,$country_id,'feb_vp')?>" name="feb[]"
id="feb[]"></td>
<td width="6%" align="center" style="padding:4px 0;"><input type="text"
style="text-align:center; width:94%; padding:5px 0;"value="<?php
getProjection($taid,$year,$country_id,'march_vp')?>" name="march[]"
id="marchs[]"></td>
<td width="14%" ><input type="text" style="text-align:center; width:98%;
padding:5px 0;"value="<?php getProjection($taid,$year,
$country_id,'total_vp')?>" name="ttlvoucher[]" id="ttlvoucher[]"></td>
</tr>
</table>
<?php
}
?>
<br><div style="text-align:center">
<input type="submit" name="updatebutton" id="updatebutton"
style="height:25px; width:75px" value="Update"/>
</div></form>
</div>
<?php
}
else
{
echo "No data available";
}
}
function getcountry($cid)
{
$cqry= mysql_query("SELECT country_name FROM country WHERE
country_id=$cid");
$ccount=mysql_num_rows($cqry);
if($ccount)
{
$crow=mysql_fetch_array($cqry);
return $crow['country_name'];
}else{
return "N/A";
}
}
function getTA($taid)
{
$traagen= mysql_query("SELECT travel_agency FROM TA WHERE
ta_id=$taid");
$ccount=mysql_num_rows($traagen);
if($ccount)
{
$tarow=mysql_fetch_array($traagen);
return $tarow['travel_agency'];
}else{
return "No such TA yet !";
}
}

38

function getProjection($taid,$year,$country_id,$month_col)
{//echo "SELECT $month_col FROM voucher WHERE country_id=$country_id
AND ta_id=$taid AND year_vp=$year ORDER BY id DESC";echo '<br>';
$cqry= mysql_query("SELECT $month_col FROM voucher WHERE
country_id=$country_id AND ta_id=$taid AND year_vp=$year ORDER BY v_id
DESC LIMIT 0,1");
$ccount=mysql_num_rows($cqry);
if($ccount)
{
$crow=mysql_fetch_array($cqry);
if($crow[$month_col]>0)
echo $crow[$month_col];
else
echo '';
}else{
echo "";
}
}
?>
<script>
function sticky_relocate() {
var window_top = $(window).scrollTop();
var div_top = $('#sticky-anchor').offset().top;
if (window_top > div_top) {
$('#sticky').addClass('stick');
} else {
$('#sticky').removeClass('stick');
}
}
$(function () {
$(window).scroll(sticky_relocate);
sticky_relocate();
});
</script>
</body>

5.4

References
H.M Deitel, P. J. Deitel, T. R. Nieto, (2001). e-Business & e-Commerce How to
Program (Fourth Edition), Prentice Hall, 885-914

39

5.5

Feedback

40

Вам также может понравиться