LAMPIRAN. Universitas Sumatera Utara

Similar documents
Technical Guide Login Page Customization

blink.html 1/1 lectures/6/src/ form.html 1/1 lectures/6/src/

Part A Short Answer (50 marks)

Date Issued: Subject: Editing the HTML files in the C-more panel. Revision: Original

home.php 1/1 lectures/6/src/ include.php 1/1 lectures/6/src/

Create a cool image gallery using CSS visibility and positioning property

Lab 4 CSS CISC1600, Spring 2012

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

주소록만들기 주소록. Input 페이지 Edit 페이지 Del 페이지

LAMPIRAN Kode Program

CP3343 Computer Science Project (Year) Technical Report Document. Mr Stephen Garner

Fetch terms and conditions apply. Fetch is only available for business banking purposes. The Kiwibank Fetch name, logos and related trademarks and

Exam Format: Multiple Choice, True/False, Short Answer (3 points each 75 points total) Write-the-page (25 points)

HTML Forms IT WS I - Lecture 11

CHANGE is not a four-letter word. Kimberly

Understanding Basic SQL Injection

JSF - H:PANELGRID. JSF Tag. Rendered Output. Tag Attributes. The h:panel tag renders an HTML "table" element. Attribute & Description.

Psychology Experiments on the Web Using PHP and MySQL

User's Guide Visual Profile Appendix L Version 7.5.2

Title: Dec 11 3:40 PM (1 of 11)

Problem Set 7: Website Development

Installation & Configuration Guide Version 3.1

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax

CSS Scripting and Computer Environment - Lecture 09

Wireframe :: tistory wireframe tistory.

8 Basic Skinning. Introduction. In this chapter we will cover the following topics:

An Introduction to WebSphere Portal content publishing channels

Using htmlarea & a Database to Maintain Content on a Website


CS134 Web Site Design & Development. Quiz1

Implementing a chat button on TECHNICAL PAPER

PROJECT ON EMPLOYEE DATABASE AND PAYROLL MANAGEMENT SYSTEM

Form Processing in PHP

Lab 7 Introduction to MySQL

Guide to Integrate. ADSelfService Plus with. Outlook Web App.

Web Development and HTML. Shan-Hung Wu CS, NTHU

Information and Communication Technology: TECHNOLOGY (EXTENDED MEANING) presented by: Rhiza S. Sadjad

MVC :: Understanding Views, View Data, and HTML Helpers

Source code for the internal pages

ajax1.html 1/2 lectures/7/src/ ajax1.html 2/2 lectures/7/src/

Member registration and searching(2)

Installation & Configuration Guide Version 2.2

Chapter 1. Introduction to web development and PHP. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C1

LAMPIRAN. a. Kode Program Untuk Halaman Cari Data Proyek

HTML & XHTML Tag Quick Reference

Schenker AB. Interface documentation Map integration

Hyper- Any time any where go to any web pages. Text- Simple Text. Markup- What will you do

Introduction to HTML5

Copyright 2011 Sakun Sharma

SK Telecom. Platform NATE WAP

How to Set Up a Custom Challenge Page for Authentication

<html> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8">

How the Internet Works

introduction to XHTML

XHTML & CSS CASCADING STYLE SHEETS

2.) You need personal webspace. This is usually provided by your Internet service provider. Check with your ISP on how to set up the webspace.

GIMP WEB 2.0 MENUS. Before we begin this tutorial let s visually compare a standard navigation bar and a web 2.0 navigation bar.

Dreamweaver: Portfolio Site

<?php $parts=array('','','tfrec','home'); include '/Webstuff/apacheSites/cms3/CMSpageCode.php';?>

Slide 1. Chapter 5. How to use the MVC pattern to organize your code. 2010, Mike Murach & Associates, Inc. Murach's PHP and MySQL, C5

I Can t Believe It s Not

Computer Science E-1. Understanding Computers and the Internet. Lecture 10: Website Development Wednesday, 29 November 2006

HTML Overview. With an emphasis on XHTML

Web Technologies - by G. Sreenivasulu Handout - 1 UNIT - I

Enter Grade Report. No Place Like Gilbert Duenas. California State University San Marcos. Johnny Koons. CS 441 Software Engineering

(from Chapter 5 & 25.6 of the text)

{block:description} <meta name="description" content="{description}"/> {/block:description}

Lecture 6 Session Control and User Authentication. INLS 760 Web Databases Spring 2013 Rob Capra

Computer Science E-75 Building Dynamic Websites

map1.html 1/1 lectures/8/src/

Outline. Link HTML With Style Sheets &6&7XWRULDO &66 ;+70/ (GZDUG;LD

Basic CSS Lecture 17

Wed 02 Nov :01:06 AM EST modpow.html

L A M P I R A N. Universitas Sumatera Utara

P - 13 Bab 10 : PHP MySQL Lanjut (Studi Kasus)

By the end of this section of the practical, the students should be able to:

CSS stands for Cascading Style Sheets Styles define how to display HTML elements

Dreamweaver CS3 Lab 2

Tables *Note: Nothing in Volcano!*

ASP.NET Security. 7/26/2017 EC512 Prof. Skinner 1

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

HTML HTML5. DOM(Document Object Model) CSS CSS

CMT111-01/M1: HTML & Dreamweaver. Creating an HTML Document

By the end of this chapter, you will have a very basic, but fully functional blogging system.

Web Publishing Intermediate 2

Overview. Part I: Portraying the Internet as a collection of online information systems HTML/XHTML & CSS

HTML HTML. Chris Seddon CRS Enterprises Ltd 1

Intro to html. --- define every element, attribute, and entity along with the rules for their use

CE419 Web Programming. Session 3: HTML (contd.), CSS

Output a HTML Table to file PDF use FPDF

UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS. CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat

JavaScript (5A) JavaScript

A designers guide to creating & editing templates in EzPz

Web Publishing Basics I

HyperText Markup Language (HTML)

(X)HTML. Internet Engineering. Spring Bahador Bakhshi CE & IT Department, Amirkabir University of Technology

ITS331 IT Laboratory I: (Laboratory #11) Session Handling

COMPUTER APPLICATIONS IN BUSINESS FYBMS SEM II

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

ASP.NET Pearson Education, Inc. All rights reserved.

Transcription:

LAMPIRAN

1. Index.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> <title>login Administrator</title> <link rel="stylesheet" href="style.css" media="screen" /> </head> <body> <div id="loginuser"> <div class="loginboxiphone"> <div class="loginlogo"><img src="images/logopro.gif" width="223" height="40" /> <form action="periksa.php" method="post" name="login"> Username <input name="username" type="text" id="username" /><br /> Password <input name="password" type="password" id="password" /> <span class="item-1"><input name="login" type="submit" id="login" value="login" class="button-blue12px" /></span> </form> </body> </html> 2. Inbox.php include "header.php"; $rs_perhal = 10; if(isset($_get['hal'])) $nohal = $_GET['hal']; else $nohal = 1; $offset = ($nohal - 1) * $rs_perhal; $query = "SELECT * FROM inbox ORDER BY ID DESC LIMIT $offset, $rs_perhal"; $result = mysql_query($query) or die('error'); $duplicates = mysql_num_rows($result); if ($duplicates < 1)

$nomsg="tidak Ada Pesan Masuk ke Folder Inbox"; $br_ganjil = "#CCFFFF"; $br_genap = "#CCCCCC"; $br_heading = "#FF9900" <div class="kolom1"> php include"menuinbox.php"; <div class="kolom2"> <h2 align="center">inbox</h2> <div style="margin-left: 30px; margin-top: 10px; width: 300px; float:left;">php echo"$nomsg"; <div style="float:right; margin-right: 20px; margin-bottom: 5px; width: 80px;"><img src="images/inbox.jpg" width="60" /> <table width="95%" border="0" align="center" bordercolor="#ffffff"> <tr bgcolor= echo "$br_heading" valign="middle"> <th width="5%" height="50" align="center" valign="middle">no</th> <th width="25%" height="50" align="center" valign="middle">from</th> <th width="40%" height="50" align="center" valign="middle">message</th> <th width="20%" height="50" align="center" valign="middle">received Time</th> <th width="10%" height="50" align="center" valign="middle">action</th> $hitung = 1; $no=0; while($data = mysql_fetch_row($result)) if ($hitung % 2 == 0) $colour = $br_genap; else $colour = $br_ganjil; $no++ <tr bgcolor= echo "$colour" > <td align="center" valign="middle"> echo "$no"; </td> <td align="center" valign="middle"> echo "$data[3]"; </td> <td align="center" valign="middle"> echo "$data[8]"; </td> <td align="center" valign="middle"> echo "$data[1]"; </td> <td align="center" valign="middle"> <a href="inbox_del.php"?id= echo "$data[9]"; onclick="return konfirmasi()"> <img src="images/icon/del.png" width="20" height="20" border="0" /></a> </td> $hitung++;

// end while echo "</table><br><br><center>"; $query = "SELECT COUNT(*) AS rs_jumlah FROM inbox"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); //----Paging : Menampilkan data per halaman -------- $rs_jumlah = $data['rs_jumlah']; $jumpage = ceil($rs_jumlah/$rs_perhal); if ($nohal > 1) echo "<a href='".$_server['php_self']."?hal=inbox&hal=".($nohal-1)."'><< Prev</a>"; for($hal = 1; $hal <= $jumpage; $hal++) if ((($hal >= $nohal - 3) && ($hal <= $nohal + 3)) ($hal == 1) ($hal == $jumpage)) if (($showpage == 1) && ($hal!= 2)) echo "..."; if (($showpage!= ($jumpage - 1)) && ($hal == $jumpage)) echo "..."; if ($hal == $nohal) echo " <b>".$hal."</b> "; else echo " <a href='".$_server['php_self']."?hal=inbox&hal=".$hal."'>".$hal."</a> "; $showpage = $hal; if ($nohal < $jumpage) echo "<a href='".$_server['php_self']."?hal=inbox&hal=".($nohal+1)."'>next >></a></center>"; php include"footer.php"; 3. Phonebook.php include "header.php"; $rs_perhal = 10; if(isset($_get['hal'])) $nohal = $_GET['hal']; else $nohal = 1; $offset = ($nohal - 1) * $rs_perhal; $query = "SELECT * FROM phones_book LIMIT $offset, $rs_perhal"; $result = mysql_query($query) or die('error');

$hitugdatanya = mysql_num_rows($result); if ($hitugdatanya < 1) $nophone="tidak Ada Data dalam Phones Book"; <div class="kolom1"> php include"menuphonesbook.php"; <div class="kolom2"> <h2 align="center">phones Book Manager</h2> <div style="margin-left: 30px; margin-top: 10px; width: 300px; float:left;">php echo"$nophone"; <div style="float:right; margin-right: 20px; margin-bottom: 5px; width: 80px;"><img src="images/phonebook.jpg" width="60" /> <table width="95%" border="0" align="center" bordercolor="#ffffff"> <tr bgcolor="#b0c4de"> <th width="4%" height="50" align="center" valign="middle">no</th> <th width="17%" height="50" align="center" valign="middle">hp Number </th> <th width="21%" align="center" valign="middle">name</th> <th width="30%" height="50" align="center" valign="middle">address</th> <th width="12%" height="50" align="center" valign="middle">group ID</th> <th width="20%" height="50" align="center" valign="middle">action</th> $no=0; while($data = mysql_fetch_row($result)) $i++; if ($i % 2) echo "<tr bgcolor=fof8ff>"; else echo "<tr bgcolor=ffff00>"; $no++; <td align="center" valign="middle"> echo "$no"; </td> <td align="center" valign="middle"> echo "$data[1]"; </td> <td align="center" valign="middle"> echo "$data[2]"; </td> <td align="center" valign="middle"> echo "$data[3]"; </td> <td align="center" valign="middle"> echo "$data[4]"; </td> <td align="center" valign="middle">

<a href="phonesbook_sms.php?id= echo "$data[0]"; "><img src="images/icon/sms.png" width="20" height="20" border="0" /></a> <a href="phonesbook_edit.php?id= echo "$data[0]"; "><img src="images/icon/edit.png" width="20" height="20" border="0" /></a> <a href="phonesbook_del.php?id= echo "$data[0]"; "><img src="images/icon/del.png" width="20" height="20" border="0" /></a> </td> //end while echo "</table><br><br><center>"; $query = "SELECT COUNT(*) AS jumdata FROM phones_book"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); //----Paging : Menampilkan data per halaman -------- $rs_jumlah = $data['jumdata']; $jumpage = ceil($rs_jumlah/$rs_perhal); if ($nohal > 1) echo "<a href='".$_server['php_self']."?hal=phonesbook&hal=".($nohal-1)."'><< Prev</a>"; for($hal = 1; $hal <= $jumpage; $hal++) if ((($hal >= $nohal - 3) && ($hal <= $nohal + 3)) ($hal == 1) ($hal == $jumpage)) if (($showpage == 1) && ($hal!= 2)) echo "..."; if (($showpage!= ($jumpage - 1)) && ($hal == $jumpage)) echo "..."; if ($hal == $nohal) echo " <b>".$hal."</b> "; else echo " <a href='".$_server['php_self']."?hal=phonesbook&hal=".$hal."'>".$hal."</a> "; $showpage = $hal; if ($nohal < $jumpage) echo "<a href='".$_server['php_self']."?hal=phonesbook&hal=".($nohal+1)."'>next >></a></center>"; php include"footer.php"; 4. include "header.php"; $rs_perhal = 10; if(isset($_get['hal']))

$nohal = $_GET['hal']; else $nohal = 1; $offset = ($nohal - 1) * $rs_perhal; $query = "SELECT * FROM sentitems ORDER BY ID DESC LIMIT $offset, $rs_perhal"; $result = mysql_query($query) or die('error'); $duplicates = mysql_num_rows($result); if ($duplicates < 1) $noob="tidak Ada Pesan Terkirim"; $br_ganjil = "#CCFFFF"; $br_genap = "#CCCCCC"; $br_heading = "#FF9900"; <div class="kolom1"> php include"menuoutbox.php"; <div class="kolom2"> <h2 align="center">outbox</h2> <div style="margin-left: 30px; margin-top: 10px; width: 300px; float:left;">php echo"$noob"; <div style="float:right; margin-right: 20px; margin-bottom: 5px; width: 80px;"><img src="images/outbox.jpg" width="60" /> <table width="95%" border="0" align="center" bordercolor="#ffffff"> <tr bgcolor= echo "$br_heading" valign="middle"> <th width="5%" height="50" align="center" valign="middle">no</th> <th width="25%" height="50" align="center" valign="middle">to</th> <th width="40%" height="50" align="center" valign="middle">message</th> <th width="20%" height="50" align="center" valign="middle">status</th> <th width="10%" height="50" align="center" valign="middle">action</th> $hitung = 1; $no=0; while($data = mysql_fetch_row($result)) if ($hitung % 2 == 0) $colour = $br_genap; else $colour = $br_ganjil; $no++

<tr bgcolor= echo "$colour" > <td align="center" valign="middle"> echo "$no"; </td> <td align="center" valign="middle"> echo "$data[5]"; </td> <td align="left" valign="middle"> echo "$data[10]"; </td> <td align="center" valign="middle"> echo "$data[14]"; </td> <td align="center" valign="middle"> <a href="outbox_del.php?id= echo "$data[11]"; "> <img src="images/icon/del.png" width="20" height="20" border="0" /></a> </td> $hitung++; // end while echo "</table><br><br><center>"; $query = "SELECT COUNT(*) AS rs_jumlah FROM sentitems"; $hasil = mysql_query($query); $data = mysql_fetch_array($hasil); //----Paging : Menampilkan data per halaman -------- $rs_jumlah = $data['rs_jumlah']; $jumpage = ceil($rs_jumlah/$rs_perhal); if ($nohal > 1) echo "<a href='".$_server['php_self']."?hal=outbox&hal=".($nohal-1)."'><< Prev</a>"; for($hal = 1; $hal <= $jumpage; $hal++) if ((($hal >= $nohal - 3) && ($hal <= $nohal + 3)) ($hal == 1) ($hal == $jumpage)) if (($showpage == 1) && ($hal!= 2)) echo "..."; if (($showpage!= ($jumpage - 1)) && ($hal == $jumpage)) echo "..."; if ($hal == $nohal) echo " <b>".$hal."</b> "; else echo " <a href='".$_server['php_self']."?hal=outbox&hal=".$hal."'>".$hal."</a> "; $showpage = $hal; if ($nohal < $jumpage) echo "<a href='".$_server['php_self']."?hal=outbox&hal=".($nohal+1)."'>next >></a></center>"; php include"footer.php";