Trial And Eror

Knowledge Is Free..!
Start Working Smart, Not Hard
Start Sharing, Not Selling

Wednesday 26 November 2014

Script Print Halaman WEB Bedasarkan Bagian yang dimau menggunakan Javascript

Disini saya akan membagikan Cara Print Halaman WEB atau Script Print Halaman WEB. Anda mungkin sudah berada di halaman web dan ingin mencetak halaman untuk referensi nanti. Bukankah lebih besar untuk dapat memberikan pengunjung ke situs Anda untuk dapat melakukan hal itu? Tutorial ini untuk pengembang web akan menunjukkan kepada Anda bagaimana menggunakan fungsi window.print JavaScript, lengkap dengan contoh!
Memakai Windows Print
<html>
  <head>
    <title>Contoh WEB Print</title>
  </head>
  <body>
   <h1>Selamat Datang Bray.....!</h1>
   <a href="javascript:window.print()">Klik Disini untuk Print</a>
  </body>
</html>

Print WEB Menurut Bagian yang di mau
<html>
  <head>
    <title>Contoh WEB Print</title>
  </head>
  <body>
   <div id="printableArea">
     <table>
       <tr>
         <th>Nama</th>
         <th>Kelas</th>
         <th>Sekolah</th>
       </tr>
       <tr>
         <td>Amin Yusuf</td>
         <td>XI - RPL</td>
         <td>SMK Negeri 2 Bandung</td>
       </tr>
     </table>
<script>
function printDiv(divName){
     var printContents = document.getElementById(divName).innerHTML;
     var originalContents = document.body.innerHTML;

     document.body.innerHTML = printContents;

     window.print();

     document.body.innerHTML = originalContents;
}
</script>
   </div>
  </body>
</html>

Saturday 22 November 2014

WEB DINAMIS BIODATA DENGAN FITUR PRINT

Disini saya akan membagikan WEB DINAMIS BIODATA DENGAN FITUR PRINT buatan saya sendiri, mohon yang membaca berikan G+ atau Komen, Pelajari dengan serius Bro.

Databases Table Struktur

Login
Beranda

Daftar Siswa
Detail BIODATA
Langsung saja nih Link Download nya (Y)
WEB DINAMIS BIODATA DENGAN FITUR PRINT

User dan Pass:
silogos / enter



Cara LOGIN PHP MySql dan Desain nya


Disini saya akan membagikan Cara LOGIN PHP MySql dan Desain nya, cie yang lagi belajar PHP serius banget semangat yah, ngoding gampang kok kalo masih tingkat software doang tapi kalo udah nyambung sama hardware itu baru susah. Ok Langsung Ajh saya berikan koding nya, jangan cuman COPAS doang pelajari yah.
Nih Langsung saja kodingnya :

PHP + HTML
<?php
include'config/<a href="http://www.trialanderor.tk/2014/11/membuat-koneksi-databases-mysql-php.html">koneksi.php</a>';
session_start();
    echo"
<!DOCTYPE HTML>
<html>
<head>
    <title>Belajar Bikin Login di PHP</title>
    <link rel='stylesheet' href='css/default.css' type='css/text' media='screen'/>
</head>

<body>
<div id='main-wrapper'>

<div id='header-wrapper'>
<a href='index.php'><img src='img/CGeks.png' height='150px' width='450px'/></a>
</div>
<hr />
<h1 align='center'>BIODATA
</h1>
<div>
<hr />
<label>
<form action='?login_attempt=1' method='post' name='login'>
<p><input id='email' name='id_user' type='text' placeholder='Username' style='background: #eee url(img/username.png) no-repeat 8px 12px;'/></p>
<p><input id='password' name='password' type='password' placeholder='Password' style='background: #eee url(img/password.png) no-repeat 8px 12px;'/></p>
<p><input id='submit' type='submit' name='Login' value='Login'/></p>
</form>
</label>
</div>
<br/>
<div id='footer'>
Created by <a href='http://www.trialanderor.tk' target='_blank'>Trial And Eror</a>

</div>

</div>
</body>
</html>";
if(isset($_GET['login_attempt'])){
    $id_user=$_POST['id_user'];
    $pass=md5($_POST['password']);
    $cek=mysql_query("SELECT*FROM user WHERE id_user='$id_user' AND password='$pass'");
    $row=mysql_fetch_array($cek);
    $hasil=mysql_num_rows($cek);
    if($hasil==1){
        $_SESSION['loginhast']=$row[id_user];
        $_SESSION['nama']=$row[nama];
        $_SESSION['level']=$row[level];
        header("location:biodata.php?page=beranda");
    }else{
        echo"<script>alert('Username atau Password Salah...!');window.location='#login_attempt=1'; </script>";
    }
}
?>



CSS
*{
    margin:0; padding:0;
    font-family:calibri, ‚segoe ui?, arial, tahoma, sans-serif;
    }
    body{
        background: #f0f0f0 ;
    }
    #main-wrapper{
        margin: 0 auto;
        margin-top: 80px;
        padding: 20px;
        width: 450px;
        background-color: white;
        border: silver solid;
        border-radius: 10px 10px 10px 10px;
    }
    #header-wrapper{
        width: 100%;
        margin: 0 auto;
    }
    #navigasi{
        width: 100%;
        margin: 0 auto;      
    }
    ul{
        background-color: brown;
    }
    ul li{
        list-style-type:none;
        list-style:none
    }
    li{
        float: left;
        padding: 5px;
        border-right: 5px;
    }
    #footer{
        clear:both;
        margin-top:20px;
        text-align:center;
        background-color: #ccc;
        padding:5px; color:#555555;
        text-decoration: none;
    }
    input {
width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
padding: 10px; min-height: 44px; font-size: 14px !important; border: 0; color: #999;
background: #eee; padding-left: 30px;
    }
    input#submit{
        padding: 12px 0;
        border: 0;
        text-transform: uppercase;
        font-size: 13px;
        text-shadow: 1px 1px rgba(0,0,0,0.2);
        box-shadow: 0 2px 3px rgba(0,0,0,0.3);
        }

Friday 21 November 2014

Cara Menampilkan Record Databases MySql PHP

Disini saya akan membagikan cara menampilkan Record Databases MySql PHP, cie yang lagi belajar PHP serius banget semangat yah, ngoding gampang kok kalo masih tingkat software doang tapi kalo udah nyambung sama hardware itu baru susah.
Ok Langsung Ajh saya berikan koding nya, jangan cuman COPAS doang pelajari yah.
Nih Kodingnya :
Koding Cara Menampilkan Record Databases MySql PHP
<?php
      $query=mysql_query("Select * FROM nama_table");
      $row=mysql_fetch_array($query);
      echo"$row['field'] /*field_dari_record_table*/
      ";
?>

#Salam #Knowledge_Is_Free

Thursday 20 November 2014

Membuat koneksi databases Mysql PHP


Hypertext Preprocessor adalah bahasa skrip yang dapat ditanamkan atau disisipkan ke dalam HTML.
PHP banyak dipakai untuk memrogram situs web dinamis.PHP dapat digunakan untuk membangun sebuah CMS.
Oke Langsung saja nih saya berikan syntax nya

Syntax Koneksi databases Mysql
<?php
$server="localhost"; /*Servernya*/
$username="root"; /*Username Server*/
$pass=""; /*Password Server*/
$database="kg"; /*Nama Databases*/
mysql_connect ($server,$username,$pass) or die("Gagal");
mysql_select_db($database) or die("Database tidak di temukan");
?>

Download All Free Ebook Microsoft

image
Introducing Windows 8.1 for IT Professionals 
PDF EPUB MOBI
image
Windows 7 Keyboard Shortcuts 
PDF
image
Word Online Keyboard Shortcuts 
PDF
image
Windows PowerShell 4.0 Examples 
PDF
image
Windows 8 Keyboard Shortcuts 
PDF
image
How To Recover That Un-Saved Office Document 
PDF
image
Discover SharePoint 
PDF
image
Windows PowerShell 4.0 Language Quick Reference 
PDF
image
Excel 2013 Keyboard Shortcuts 
PDF
image
Windows PowerShell Integrated Scripting Environment 4.0 
PDF
image
Introducing Windows 8: An Overview for IT Professionals 
PDF EPUB MOBI
image
Work Smart: Windows 8 Shortcut Keys 
DOCX
image
Word 2013 Keyboard Shortcuts 
PDF
image
Getting To Know Office 365 
PDF
image
Secrets of PowerShell Remoting DOCX
Save As PDF Avail

image
Microsoft System Center: Troubleshooting Configuration Manager 
PDF EPUB MOBI
W7PUG Cover-free
Windows 7 Power Users Guide

PDF
image
Windows PowerShell Desired State Configuration Overview 
PDF
image
Windows 8.1 Deployment Planning - A Guide for Education 
PDF
image
Windows 8.1 Deployment to PCs - A Guide for Education 
PDF
image
Windows PowerShell Web Access Quick Reference 
PDF
image
Explore SharePoint 2013 
DOC PDF EPUB MOBI
image
Windows 8.1 Update Power User Guide for Business 
PDF
image
Deployment guide for SharePoint 2013 
DOC PDF EPUB MOBI
image
Deployment Guide for Office 2013 
DOC PDF EPUB
image
OneNote 2013 Keyboard Shortcuts 
PDF
image
The Wiki Ninjas Guide to SharePoint 2013 
PDF
image
Windows 8.1 Update Quick Guide for Business
PDF
image
Explore Windows 8.1 Update
DOCX
image
Microsoft Excel 2013 Quick Start Guide
image
Windows 8.1 Product Guide 
PDF
image
Windows 8 End User Training Brochure 
PDF

Introducing Windows Server 2012 – RTM Edition! 
PDF EPUB MOBI
image
SharePoint Adoption Guide 
PDF
image
The Big Book of PowerShell Gotchas 
DOCX
Save As PDF Avail

image
Introducing Microsoft SQL Server 2014 
PDF EPUB MOBI
image
Introducing Windows Server 2012 R2 
PDF EPUB MOBI
imageWindows PowerShell Networking Guide DOCX
Save As PDF Avail

image
Outlook 2013 Keyboard Shortcuts 
PDF
image
Windows To Go - A Guide for Education 
PDF
image
Windows Store Apps - A Deployment Guide for Education 
PDF
image
The Community Book of PowerShell Practices DOCX
Save As PDF Avail

image
Programming Windows 8 Apps with HTML, CSS, and JavaScript 
EPUB MOBI PDF
image
Access 2013 Keyboard Shortcuts 
PDF
image
Office 2010 User Resources 
ZIP
image
Creating HTML Reports in PowerShell 
DOCX
Save As PDF Avail

image
The Big Book of PowerShell Error Handling DOCX
Save As PDF Avail

image
Install Microsoft Exchange server 2013 step by step with DAG 
PDF
imageMaking Historical and Trend Reports in PowerShell DOCX
Save As PDF Avail

image
Windows 8 Product Guide for Business 
PDF
image
Programming Windows Store Apps with HTML, CSS and JavaScript 
PDF EPUB MOBI Companion Files
image
Start working in CRM 
PDF
image
The Wiki Ninjas Guide to SharePoint 2013 – Part II 
PDF
image
Introducing Microsoft SQL Server 2012 
PDF EPUB MOBI
image
Microsoft Word 2013 Quick Start Guide
image
.NET Technology Guide for Business Applications 
PDF
image
Programming Windows Store Apps with HTML, CSS, and JavaScript, Second Edition (Second Preview) 
PDF Companion Files
image
Visio 2013 Keyboard Shortcuts 
PDF
imageIntroducing Microsoft System Center 2012 R2 PDF EPUB MOBI
image
TCP/IP Fundamentals for Microsoft Windows
PDF

Followers

Translate

Copyright © Trial And Eror | Powered by Blogger

Design by Anders Noren | Blogger Theme by NewBloggerThemes.com