Postingan

Menampilkan postingan dari 2018

EAS_PWEB

Gambar
Arini Indah Nur Fuadah 05111740007003 PWEB C 1. Login aplikasi dengan user dan password 2. Mengisi formulir pendaftaran 3. Edit profil dan biodata calon pendaftar 4. Memilih sekolah tujuan yang dipilih 5. View formulir pendaftaran yang sudah permanen 6. Download formulir pendaftaran 1. .env DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=rpl_blog DB_USERNAME=root DB_PASSWORD= DB_DATABASE adalah nama database masing-masing APP_NAME=Laravel APP_ENV=local APP_KEY=base64:TNuy/ndNpNl8gtJE0CBEmiK+Vmxq7r09Rff683O3bu0= APP_DEBUG=true APP_URL=http://localhost LOG_CHANNEL=stack DB_CONNECTION=mysql DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=rpl_blog DB_USERNAME=root DB_PASSWORD= BROADCAST_DRIVER=log CACHE_DRIVER=file QUEUE_CONNECTION=sync SESSION_DRIVER=file SESSION_LIFETIME=120 REDIS_HOST=127.0.0.1 REDIS_PASSWORD=null REDIS_PORT=6379 MAIL_DRIVER=smtp MAIL_HOST=smtp.mailtrap.io MAIL_PORT=2525 MAIL_USERNAME=null MAIL_PASSWORD=...

FrameWork

Gambar
Arini Indah Nur Fuadah 05111740007003 PWEB C Source Code Products.php <?php defined('BASEPATH') OR exit('No direct script access allowed'); class Products extends CI_Controller { public function __construct() { parent::__construct(); $this->load->model("product_model"); $this->load->library('form_validation'); } public function index() { $data["products"] = $this->product_model->getAll(); $this->load->view("admin/product/list", $data); } public function add() { $product = $this->product_model; $validation = $this->form_validation; $validation->set_rules($product->rules()); if ($validation->run()) { $product->save(); $this->session->set_flashdata('success', 'Berhasil disimpan'); } $this->loa...

Bootstrap

Gambar
Arini Indah Nur Fuadah 05111740007003 PWEB C  Source Code config.php <?php $server = "localhost"; $user = "root"; $password = ""; $nama_database = "pendaftaran_siswa"; $db = mysqli_connect($server, $user, $password, $nama_database); if( !$db ){ die("Gagal terhubung dengan database: " . mysqli_connect_error()); } ?> index.html <!DOCTYPE html> <html> <head> <link href="css/bootstrap.min.css" rel="stylesheet"></link> <link href="css/bootstrap.css" rel="stylesheet"></link> <script> function loadsiswa() { var xhttp; if (window.XMLHttpRequest) { xhttp = new XMLHttpRequest(); } else { xhttp = new ActiveXObject("Microsoft.XMLHTTP"); } xhttp.onreadystatechange =...

AJAX

Arini Indah Nur Fuadah 05111740007003 index.php <!DOCTYPE html> <html> <head> <title>Pendaftaran Siswa Baru | SMK Coding</title> <script type="text/javascript" src="script.js"></script> </head> <body> <header> <h3>Pendaftaran Siswa Baru</h3> <h1>SMK Coding</h1> </header> <h4>Menu</h4> <div class="menu"> <ul> <button><a onclick="daftar()">Daftar Baru</a></button><br><br> <button><a onclick="tampil()">Pendaftar</a></button> </ul> <div id="demo"> </div> <?php if(isset($_GET['status'])): ?> <p> <?php if($_GET['status'] == 'sukses'){ echo "Pendaftaran siswa ba...