• Home
  • Outdoor Adventure
    • Hiking
    • Backpacking
    • Camping
    • Caving
  • Travel
  • Life Style
    • Diploma Life
    • Degree Life
    • Work and Part Time
  • Code Test and Project
  • FYP

Jack Hau Story

facebook twitter instagram

There is no expectation to live tonight, where to go, what to eat. This trip can be excited, exciting, thrilling, cool to express my feelings. Thank you, people who have helped me on the road, and let me feel the world
第一次进宾岛就玩了五天四夜
走透透 乔治市 拍壁画
吃喝 penang food
娱乐 penang clubbing night
探险 penang 百年鬼屋 和 penang art museum




Penang Port is unique, as it is the only port operator in Malaysia that operates ferry services linking between Georgetown


Day 1 reggae mansion penang 外面有的听band 里面有club

 

 大八爪鱼人行天桥


Share
Tweet
Pin
Share
No comments

Broga is a small town in Semenyih, Hulu Langat District, Selangor, Malaysia. Short drive from Nottingham University.


The carpark facility has a charge of RM2 per car for every entry.


Share
Tweet
Pin
Share
No comments

6 months ago we started FYP project MyHomestay which allows users to make reservation via website.

Deepest thanks to our beloved group members who always stick and work hard together in order to produce a good project. The teamwork and cooperation of our groups are much appreciated.

Last but not least, we would like to take this golden opportunity to thank to the Centre for Diploma Programme of Multimedia University Melaka Campus for offering this subject, Computing Project. It gave us an opportunity to participate and learn about the web developing and web design. Indeed, we have become more confident on programming skills.


Finally in CDP Star Awards 2014 competition, our team able to achieve 3rd prize winner

Share
Tweet
Pin
Share
No comments

Admin Page :
  • Create a search function at admin main page.
  • Login password using md5 encryption function which human not readable to protect the system.
  • Who approved the member becomes an owner.
  • Updated the latest status which is promotion or announcement.
  • Increase the font size of the page wills more prefects.
Member Page :
  • Login validation error.
  • Create the password with md5 encryption function.
  • Add random number in front of picture.
  • Split the user and owner if not will mess up the database.
  • Homestay list can list can open a new column for action for delete or edit function.
  • When users change their password must force them the logout and login with new password because we using session.
  • Upload multiple pictures with Jquery. 
md5 encryption : Php
$member_signup_pass = md5(trim($_POST["member_signup_pass"]));
$member_signup_Conpass = md5(trim($_POST["member_signup_Conpass"]));
Share
Tweet
Pin
Share
No comments
  • Create a reservation table with attributes deposit, balance, balance cost and balance pay.
  • Set a minimum deposit to every reservation with credit card.
  • Owner and member able to view who make reservation and view history of homestay.




The picture above is showing the entire homestay list from all the owner who had uploaded their homestay. The homestay list show all the information of the particular homestay with their homestay name, owner name, posted date, homestay information, homestay picture, owner picture, price and rating.
Share
Tweet
Pin
Share
No comments

Datepicker is tied to a standard form input field which allow user click to open an interactive calendar in a small overlay. Implemented Jquery to set min Date and max Date 


<script>
$(function() {
$( "#check_in" ).datepicker({
    defaultDate: "+1w",
    changeMonth: true,
    minDate: 0,
    onClose: function( selectedDate ) {
        var selectedDate = $(this).datepicker('getDate');
            if (selectedDate) {
                  selectedDate.setDate(selectedDate.getDate() + 1);
            }
    $( "#check_out" ).datepicker( "option", "minDate", selectedDate );
    }
    });
$( "#check_out" ).datepicker({
    defaultDate: "+1w",
    changeMonth: true,
    minDate: 0,
    onClose: function( selectedDate ) {
    $( "#check_in" ).datepicker( "option", "maxDate", selectedDate );
    }
    });
});
</script>
Share
Tweet
Pin
Share
No comments
  • Create a search function for member page.
  • Create page for member reservation homestay, rating homestay and view history of their reservation.




The picture above is showing the homestay information. The right side column is show the member selected check-In date and check-out date it will auto calculate how many nights that the member selected and the total booking amount.



After confirm the check-In check-out date and booking amount, click the payment button it will direct jump to Paypal sandbox system. The picture above is showing the order summary with the name of the homestay.


In the other hand, our system can generate PDF statement. The statement details included guest name, homestay name, check-In date, check-out date, night and total amount.


This is the member dashboard with homestay list. Once the owner done the add function it will direct go to homestay list and the have several homestay that the owner before. We did the edit and delete function for the homestay list also but cannot multiple edit homestay information.



Share
Tweet
Pin
Share
No comments
Member Page :
  • Create a table for Member at phpMyAdmin.
  • Create a member registration and login page with not duplicate email and password.
Member Dashboard :
  • Create a dashboard for members include function view and edit.
  • Create another page for members which are used to store homestay details. In this page, members are able to view, edit, delete and view each of the homestay details.
  • How to upload multiple image in one time to my homestay.

  • Create member registration and login page for MyHomestay.
  • Create a member dashboard.

This is the member homepage. The sign up form is a pop up function and the user in order to do a reservation must sign up as a member first. Other than that, user must key in their real email and the mobile number start with 6 due to our system will send out message if the member done any reservation or cancellation.


The picture above is showing Myhomestay reservation member dashboard. It has 6 features that we focus which is reservation, myhomestay lisy, transaction history, member profile, homestay list and log out button.


This is the member dashboard with add homestay information. Once the member become an owner he or she has the authority to add homestay with key in the homestay name, category, address, description of homestay, price and upload less than 5 photo of the homestay.


Share
Tweet
Pin
Share
No comments
  • Create a button and pagination at administration list for print the PDF report.
Last found out Working PHP Pagination Function
also here how to modify the limit the pagination


This is all the Reservation that reserved by members. The admin are able to keep tracking the homestay reservation details which have been made by members and who are the homestay owners.
Share
Tweet
Pin
Share
No comments

FPDF is a PHP class which allows to generate PDF files with pure PHP.

Design and generate PDF. Reservation statement


Sample code : 

<?php 

require('fpdf.php');
include("../connection.php");

$reservation_id = $_REQUEST['reservation_id'];
$member_id = $_REQUEST['member_id'];

$sql = "select member_name from member where member_id = $member_id";
$result_member = mysql_query($sql);
$row_member = mysql_fetch_assoc($result_member);
$member_name = $row_member['member_name'];

$sql = "select * from reservation join homestay on reservation.homestay_id = homestay.homestay_id ".
        "join member on homestay.member_id = member.member_id where reservation.reservation_id = $reservation_id";
$result = mysql_query($sql);
$row = mysql_fetch_assoc($result);

$start = $row['checkIn_date'];
$end = $row['checkOut_date'];
$reservation_date = $row['reservation_date'];
$night = (strtotime($end)- strtotime($start))/24/3600; 

class PDF extends FPDF
{
// Page header
function Header()
{
    // Logo
    $this->Image('../images/homestay-logo.png',10,10,50);   
    // Move to the right
    $this->Cell(100);
    // Arial bold 15
    $this->SetFont('Arial','B',20);
    // Title
    $this->Cell(0,20,'Statement of Reservation','C');
    // Line break
    $this->Ln(20);
}

// Page footer
function Footer()
{
    // Position at 1.5 cm from bottom
    $this->SetY(-15);
    // Arial italic 8
    $this->SetFont('Arial','I',8);
    // Page number
    $this->Cell(0,10,'Page '.$this->PageNo().'/{nb}',0,0,'C');
}
}


// Instanciation of inherited class
$pdf = new PDF();
$pdf->AddPage();

$pdf->SetFont('Times','B',18);
$pdf->Cell(80,10,'MyHomestay');
$pdf->Ln();
$pdf->SetFont('Times','',11);
$pdf->Cell(80,0,'1234 ST.');
$pdf->Ln();
$pdf->SetFont('Times','',11);
$pdf->Cell(80,7.5,'Denver, CO 80202');
$pdf->Ln();
$pdf->SetFont('Times','',11);
$pdf->Cell(80,0,'Phone:(60)123-4567');
$pdf->Ln();
$pdf->SetFont('Times','',11);
$pdf->Cell(80,7.5,'myhomestaymmu@gmail.com');
$pdf->Ln();
$pdf->SetFont('Times','',11);
$pdf->Cell(80,0,'www.homestay.com');
$pdf->Ln();
$pdf->Cell(130);
$pdf->SetFont('Arial','',12);
$reservation_date = date("Y-m-d",strtotime($reservation_date));
$pdf->Cell(0,-40,'Reservation Date :  '.$reservation_date,'C');
$pdf->Cell(0,-40,'','C');

$date = date("Y-m-d");
$pdf->Cell(-53.5,-25,'Generate Date :  '.$date,0,1,'C');

$pdf->Cell(0,40,'',0,1,'R');



$word = "To,".
        "\n$member_name".
        "\nDear Sir/Madam,".
        "\nThank you for your reservation. We confirm with pleasure your accommodation.".
        "\nPlease note the information below for accuracy".
        "\nPlease review it and report any discrepancies.";
$pdf->Multicell(160,6,$word);

$pdf->Cell(0,10,'',0,1,'R');

$pdf->SetFillColor(169, 169, 169);
$pdf->SetTextColor(0);
$pdf->SetDrawColor(255, 255, 255);
$pdf->Cell(18,7,'Res.Id',0,0,'L',true);
$pdf->Cell(35,7,'Guest Name',0,0,'L',true);
$pdf->Cell(35,7,'Homestay Name',0,0,'L',true);
$pdf->Cell(28,7,'Check In',0,0,'C',true);
$pdf->Cell(28,7,'Check Out',0,0,'C',true);
$pdf->Cell(18,7,'Nights',0,0,'C',true);
$pdf->Cell(26,7,'Amount',0,1,'C',true);

$pdf->Cell(0,0,'',0,1,'R');
$pdf->Cell(15,7,$row['reservation_id'],1,0,'C',0);
$pdf->Cell(28,7,$member_name,1,0,'C',0);
$pdf->Cell(44,7,$row['homestay_name'],1,0,'C',0);
$pdf->Cell(28,7,$row['checkIn_date'],1,0,'C',0);
$pdf->Cell(30,7,$row['checkOut_date'],1,0,'C',0);
$pdf->Cell(17,7,$night,1,0,'C',0);
$pdf->Cell(25,7,$row['reservation_total_price'],1,0,'C',0);

// Linienfarbe auf Blau einstellen 
$pdf->SetDrawColor(0, 0, 0);

// Linienbreite einstellen, 0.5 mm
$pdf->SetLineWidth(0.5);

// Linie zeichnen
$pdf->Line(10,132,198,132);

$pdf->SetFont('Arial','B',12);

$reservation_total_price = $row['reservation_total_price'];

$pdf->Cell(0,18,'',0,1,'R');
$pdf->Cell(182,3,'Total:  RM'.$reservation_total_price,0,1,'R');
$pdf->Cell(0,3,'',0,1,'R');


$pdf->Output();

?>
Share
Tweet
Pin
Share
No comments
  • Create admin table.
  • Generate login page for administration page
  • Generate admin page and edit profile page with JQuery
  • Add one attribute at admin table to track when the last is updated.
  • Create the login page with validation. The error message should show with red color.
  • Add on Admin_Image at admin table and while upload the image it will directly save into folder not database.
This is the admin that add normal admin in the system. The add normal admin will only display if the admin level is master admin in MyHomestay.
sample using JQuery validation

<pre style="background:#0c1021;color:#f8f8f8"><span style="color:#aeaeae">//validate functions</span>
    <span style="color:#fbde2d">function</span> <span style="color:#ff6400">validateName</span>()
    {
        <span style="color:#aeaeae">//if it's NOT valid</span>
        <span style="color:#fbde2d">if</span>(admin_name<span style="color:#8da6ce">.val</span>()<span style="color:#8da6ce">.length</span> <span style="color:#fbde2d">&lt;</span> <span style="color:#d8fa3c">4</span>)
        {
            admin_name<span style="color:#8da6ce">.addClass</span>(<span style="color:#61ce3c">"boxred"</span>);
            nameInfo<span style="color:#8da6ce">.html</span>(<span style="color:#61ce3c">"&lt;div class='alert alert-warning span4'>"</span><span style="color:#fbde2d">+</span>
                                <span style="color:#61ce3c">"&lt;strong>Wrong!&lt;/strong> The names must with more than 3 letters!"</span><span style="color:#fbde2d">+</span>
                            <span style="color:#61ce3c">"&lt;/div>"</span>);
            <span style="color:#8da6ce">$</span>('<span style="color:#ff6400">#update_name</span>')<span style="color:#8da6ce">.attr</span>(<span style="color:#61ce3c">"disabled"</span>, <span style="color:#d8fa3c">true</span>);
            <span style="color:#8da6ce">$</span>('<span style="color:#ff6400">#update_name</span>')<span style="color:#8da6ce">.fadeTo</span>(<span style="color:#d8fa3c">10</span>,<span style="color:#d8fa3c">0.5</span>);          
        }
        <span style="color:#aeaeae">//if it's valid</span>
        <span style="color:#fbde2d">else</span>
        {
            admin_name<span style="color:#8da6ce">.removeClass</span>(<span style="color:#61ce3c">"boxred"</span>);
            nameInfo<span style="color:#8da6ce">.html</span>(<span style="color:#61ce3c">"&lt;div class='alert alert-success span4'>"</span><span style="color:#fbde2d">+</span>
                                <span style="color:#61ce3c">"&lt;strong>Correct!&lt;/strong> Now can click the save button"</span><span style="color:#fbde2d">+</span>
                            <span style="color:#61ce3c">"&lt;/div>"</span>);     
            <span style="color:#8da6ce">$</span>('<span style="color:#ff6400">#update_name</span>')<span style="color:#8da6ce">.removeAttr</span>(<span style="color:#61ce3c">"disabled"</span>);
            <span style="color:#8da6ce">$</span>('<span style="color:#ff6400">#update_name</span>')<span style="color:#8da6ce">.fadeTo</span>(<span style="color:#d8fa3c">10</span>,<span style="color:#d8fa3c">1.0</span>);          
        }
    }
</pre>
Share
Tweet
Pin
Share
No comments

  • Find out how to send SMS from PHP code.
last I found out Malaysia iSMS offers international SMS service covering more than 700 mobile Operators worldwide for Peer to Peer SMS, streaming content services (like factory alerts, news alerts, stock updates) and bulk SMS communications based on high quality as well as reliable connectivity.

Picture above showing the user received an e-mail and SMS after he done the sign up step. The e-mail will mentioned that you just create a new account at MyHomestay reservation system and it will release your login email and password also.
Task of the week :
  • Create Admin table at phpMyAdmin.
  • One of the attributes from admin is admin_level. While login it can determine you are master or a normal member.
  • Create a login page for administration page.
  • Create an admin profile page.
  • Create admin page with edit function and validation.
Share
Tweet
Pin
Share
No comments
As an intern at the Times Software I assigned to support department around one month. Handle customers’ enquiries and complaints by email and telephone communication. Since the company Times Software Sdn Bhd service in Malaysia, the communication includes multiple languages such as English, Bahasa Malaysia, Mandarin and Cantonese. Conceptualize clients’ requirements to actual system implementation. It used TeamViewer 8.0 to remote control customer computer teach them and help customer foxed problem.

Times Payroll 8.0 System is a Client-Server based payroll and Leave software. By using the famous database engine – Advantage Database Server is a scalable, high performance client-server RDBMS for networked, standalone, Internet and mobile database applications. As a support executive have to know how to calculate EPF contribution and PCB deduction formula. During testing on the Times Payroll 8.0 System I made a crossover cable to do backup from one computer to another computer before colleague format the computer.

One month over I assigned to developer department to study the Times E-Module Web Application that used Internet technologies to support the web-based paperless for your employee. The Times E-Module includes E-Leave, E-Claim, E-HR, E-Payslip and E-Attendance. One of the example E-Leave, It helps to keep staff up-to-date theirs leaves information without disturbing HR department staff and their supervisors. It assists HR professionals to streamline tedious Leave management and monthly leaves reports generation for each departmental heads. It assists to manage the leave float and staff could plan up their leave application that link to the Times Pay/HR 8.0 HR Administrator can easily assess employees’ current leaves status, details and retrieve the leave data required for internal leave costing. All departmental heads could easily monitor their own staff leave and view all leaves in Calendar presentation and leave reports. 

The Times Software used Visual C# ASP.NET Web Application to develop the Times E-Module. The company has given the testing module E-Leave source code to me study. I has install Microsoft Visual Studio 2010 that able to open the testing module E-Leave, Microsoft Report Viewer 2010 that able to view report on the website. Setup Internet Information Server (IIS) Web Server provided by Microsoft that is able to hast and run web applications. The E-Leave was using ASP.NET Web Application Framework to designed, Server scripting with C# and using Advantage Database Server as database server. The Times Payroll 8.0 System and Times E-Module Web Application both database tables can view on Advantage Data Architect that import and convert other table types (such as Paradox, dBASE, Access, Btrieve, Pervasive and MS SQL Server) to Advantage compatible tables. Also create and maintain Advantage data dictionaries and define referential integrity rules, record and field level constraints. Using cmd command telnet test connectivity the different ports on the servers that can be access.

While surveying the company network infrastructure that I know that the Domain Controller (DC) is a server that handles all the security requests from other computer and servers within the Windows Server domain. The domain controller originated in Windows NT and managed the access to various resources granted to users and other servers through the use of a username and password. By using cmd command dcpromo install Active Directory into the server Domain Control Server. Open Active Directory Users and Computers to create new user accounts and manage existing user accounts. Other that, testing how to setup a wireless router as an access point that able to share the Internet or increase the range of wireless signal. Learning how the Intranet computer network that uses Internet Protocol technology to share information, operational systems, or computing services within an organization. Since, the four servers are connected to the Ethernet switches that can be access servers file sharing over wireless.
Share
Tweet
Pin
Share
No comments
Currently the Times E-Claim Web Application the report view at client report definition which is .rdlc format. The senior assigned task that convert the current report format to Crystal Report. Create and design report layout on new Web Page that can view report by use SQL Query to retrieval the data from database tables in C#. For this assignment, I installed SAP Crystal Report version for Visual Studio 2010. Start on 5th May and end of 10th May.

The example above shows that the designing the claim report on Microsoft Visual Studio 2010.
Share
Tweet
Pin
Share
No comments
Currently the Times E-Module doesn’t have the session timeout function. In this case, the development department (Mr.Wan Ping) assigned a task while I am doing the testing on Times E-Module. The task is that when the user login into Times E-Module setting the session timeout display an alert and redirect to login page. Start on 2nd April and end of 3rd April.

The example above shows that session timeout and gives an alert to users.
Share
Tweet
Pin
Share
No comments
Currently the Times E-Module when the user logout it’s direct to the login page doesn’t display any message to the user for a successful logout. In this case, the development department (Mr.Wan Ping) assigned a project to design a new logout page by using default CSS. The difficult part is to read the default CSS and use it in the logout page. The objective of the project is to help the users to know and for sure that they are successfully exited the Times E-Module Web Application. Then users will be taken to a logout confirmation page.

The example above shows that design of logout page
Share
Tweet
Pin
Share
No comments
During testing of the Times E-Module Web Application, I found that the Times E-Module required the user to change the password at first time login into the Times E-Module. I inform to my senior that the problem is that after change of the password it should get back to login page but here it’s remain in the same page. The senior suggested me to modify the code behind for the employee who is first time login the Times E-Module required to set a new password and give alert redirect to the login page. The difficult part is to create source code by using programming in C#. It is very similar to Java in its syntax with a major difference begin that all variable types are descended from a common ancestor class. After changing the password and give an alert without re-enter website URL automatically redirected to login page is convenient to the user and saving time in that case. It does not break the Back button functionality of the browser. 
 The example above shows that give alert without renter website URL redirect automatically to login page
Share
Tweet
Pin
Share
No comments

This form is Patient Information for staff to enter patients details such as patient id, patient name, patient gender, patient ic, patient contact no and patient email. Besides that, we set few button at the bottom for easy way to key in record, delete record or switch to other page. Those buttons such as Main, delete record, add record, save record, search record and proceed to appointment form button. It’s useful because we can proceed to next form or switch back to that form easily. The advantage that we design this form is to reduce data redundancy and save time. It can avoid our database appear repeated data.


This is a complete report that show all patients information such as patient id, patient name, patient gender, patient contact no, patient email. The advantage come out of this report is for staff to view their clinic have how many patient.


This form is Staff Information for staff to enter staff details such as staff id, staff name, staff gender, staff ic, staff contact no and staff email. The advantage that we design this form is to reduce data redundancy and save time. It can avoid our database appear repeated data


This report complete to show staff detail such as staff id, staff name, staff contact no, staff email. The advantage come out of this report is easy for clinic keep track staff. For example, some emergency case needs immediacy calling staff come back clinic


This form is about Patient Appointment. We can enter a unique appointment code, patient id, staff id, appointment date and appointment reason. At the same time, we use combo box in Staff ID, so that when adding new staff the system will automatically update on Appointment form. The advantage come out with this form is measure appointment time with no collision happens


This report clearly list out all the staff and every day of patient appointment such as staff id, patient id, appointment id, appointment date, appointment reason. The advantage come out of this report is for staff to explicitly view their appointment at which date and the patient appointment reason

Sample VB code showing appointment in dialog :
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        PrintDialog1.Document = PrintDocument1
        PrintDialog1.PrinterSettings = PrintDocument1.PrinterSettings
        PrintDialog1.AllowSomePages = True
        If PrintDialog1.ShowDialog = DialogResult.OK Then
            PrintDocument1.PrinterSettings = PrintDialog1.PrinterSettings
            PrintDocument1.Print()
        End If
    End Sub
Share
Tweet
Pin
Share
No comments
Newer Posts
Older Posts

About me



Jack is a programmer, hiker who loves to take challages. Programming can be hard, but no pain no gain. Beside that, Jack like to use cooking for stress relief. “Cooking is a great destresser because it serves as a creative outlet”. During cooking the chef have to well handle of food ingredients. “Cooking is like giving birth because you are mixing things together to create something new and wonderful.”

Labels

Backpacking Camping car Caving Code Test and Project Degree Life Diploma Life Event FYP Hiking Mountain Internship MMU Cyberjaya MMU Melaka Outdoor Adventure Part Time and Work Penang Singapora Thailand Trip and Travel

recent posts

Follow Us

Blog Archive

  • ►  2018 (2)
    • ►  May (1)
    • ►  January (1)
  • ►  2017 (8)
    • ►  August (2)
    • ►  July (1)
    • ►  May (1)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2016 (22)
    • ►  December (3)
    • ►  November (1)
    • ►  October (2)
    • ►  September (3)
    • ►  July (1)
    • ►  May (2)
    • ►  April (6)
    • ►  March (2)
    • ►  February (1)
    • ►  January (1)
  • ►  2015 (3)
    • ►  December (1)
    • ►  September (2)
  • ▼  2014 (19)
    • ▼  October (1)
      • Penang 5day 4night
    • ►  September (2)
      • Say hi to Semenyih Broga Hill
      • FYP Presentation Web Based My Homestay System
    • ►  July (4)
      • Week 7 : My Homestay Login Password
      • Week 6 : My Homestay Make Reservation
      • Code Test Select Date use Jquery
      • Week 5 : My Homestay Member Reservation
    • ►  June (5)
      • Week 4 : My Homestay Member Registration
      • Week 3 : My Homestay Admin Pagination
      • Code Test Generate PDF with php fpdf
      • Week 2 : My Homestay Validate Admin Page JQuery
      • Week 1 : My Homestay SMS from PHP code
    • ►  April (2)
      • Knowledge and Skill Gained
      • Task 4 : Create a Crystal Report for Times E-Claim
    • ►  March (3)
      • Task 3 : Implement Session Timeout after User Login
      • Task 2 : Design Logout Page
      • Task 1 : Maintenance Times E-Module Web Application
    • ►  January (2)
      • VB Assignment Clinic Appointment
  • ►  2013 (10)
    • ►  December (2)
    • ►  November (1)
    • ►  October (1)
    • ►  September (1)
    • ►  August (3)
    • ►  June (2)
  • ►  2012 (4)
    • ►  September (1)
    • ►  June (2)
    • ►  February (1)
  • ►  2011 (2)
    • ►  December (1)
    • ►  August (1)
Powered by Blogger.