Posts

PWEB9 - Membuat CRUD dengan CodeIgniter

Image
TUGAS 8 - Pemrograman Web Mengimplementasikan CRUD tambah produk dan fitur upload dengan CodeIgniter beserta database Nama : Bastian Farandy NRP : 05111740000190 Kelas : Pemrograman Web C Langkah-langkahnya: Membuat database terlebih dahulu untuk domain tokobuah Pada folder /application/config/database.php, tambahkan kode seperti berikut untuk menghubungkan domain dengan database yang telah kita buat $db['default'] = array( 'dsn' => '', 'hostname' => 'localhost', 'username' => 'root', 'password' => '', 'database' => 'tokobuah', 'dbdriver' => 'mysqli', 'dbprefix' => '', 'pconnect' => FALSE, 'db_debug' => (ENVIRONMENT !== 'production'), 'cache_on' => FALSE, 'cachedir' => '', ...

PBO11 - GUI dalam Java

Image
TUGAS 9 - Pemrograman Berbasis Objek Membuat ImageViewer dengan fitur filter menggunakan GUI dalam java di BlueJ Nama : Bastian Farandy NRP : 05111740000190 Kelas : Pemrograman Berbasis Objek A Source Code: ImageFileManager import java.awt.image.*; import javax.imageio.*; import java.io.*; /** * ImageFileManager is a small utility class with static methods to load * and save images. * * The files on disk can be in JPG or PNG image format. For files written * by this class, the format is determined by the constant IMAGE_FORMAT. * @author Bastian Farandy * @credits Michael Kolling and David J Barnes * @version 2.0 */ public class ImageFileManager { // A constant for the image format that this writer uses for writing. // Available formats are "jpg" and "png". private static final String IMAGE_FORMAT = "jpg"; /** * Read an image file from disk and return it as an imag...

PBO10 - GUI dalam Java

Image
TUGAS 9 - Pemrograman Berbasis Objek Membuat ImageViewer dengan GUI dalam java di BlueJ Nama : Bastian Farandy NRP : 05111740000190 Kelas : Pemrograman Berbasis Objek A Source Code: ImageViewer import java.awt.*; import java.awt.event.*; import java.awt.image.*; import javax.swing.*; import java.io.File; /** * ImageViewer is the main class of the image viewer application. It builds and * displays the application GUI and initialises all other components. * * To start the application, create an object of this class. * * @author Michael Kolling and David J Barnes * @version 1.0 */ public class ImageViewer { // static fields: private static final String VERSION = "Version 1.0"; private static JFileChooser fileChooser = new JFileChooser(System.getProperty("user.dir")); // fields: private JFrame frame; private ImagePanel imagePanel; private JLabel filenameLabel; ...

PWEB8 - Mengimplementasikan Bootstrap

Image
TUGAS 7 - Pemrograman Web Mengimplementasikan Bootstrap dalam HTML Nama : Bastian Farandy NRP : 05111740000190 Kelas : Pemrograman Web 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.php <!DOCTYPE HTML> <html> <head> <title>Pendaftaran Siswa Baru | Institut Coding</title> <link rel="stylesheet" type="text/css" href="css/bootstrap.css"> <script type="text/javascript" src="js/jquery.js"></script> <script type="text/javascript" src="js/bootstrap.js"></script> <style type="text/css...