5 Langkah Mudah Membuat CRUD Dengan Framework Langit Inspirasi #4

 5 Langkah Mudah Membuat CRUD Dengan Framework Langit Inspirasi #4

Setelah membuat Model Users atau file ModelUsers.php, langkah selanjutnya yaitu membuat pada bagian View. Ada beberapa bagian View yang harus dibuat, untuk lebih jelasnya anda dapat mengikuti langkah-langkah berikut :

MEMBUAT VIEW USERS

Setelah membuat bagian Model Users, langkah selanjutnya yaitu membuat View Users yang fungsinya untuk menampilkan data-data users .

1. Buka kembali text editor anda dan bukalah halaman baru, kemudian ketikkan script PHP berikut ini kedalamnya.

<?php
 /**
     * @Author  : Langit Inspirasi <web@langitinspirasi.co.id>
     * @Date : 24/01/19 - 00:06 AM
  * @Phone   : 0856-2555-665
  *
  * @Warning : Please don't delete this notes !
    */
 
    $hal = (isset($_GET['hal']) &amp;&amp; $_GET['hal']) ? $_GET['hal'] : '';
?>

<!DOCTYPE HTML>
<html>
<head>
<title>.:: CRUD LANGIT INSPIRASI::.</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Glance Design Dashboard Responsive web template, Bootstrap Web Templates, Flat Web Templates, Android Compatible web template, 
SmartPhone Compatible web template, free WebDesigns for Nokia, Samsung, LG, SonyEricsson, Motorola web design" />
<script type="application/x-javascript"> addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>

<!-- Bootstrap Core CSS -->
<link href="assets/css/bootstrap.css" rel='stylesheet' type='text/css' />

<!-- Custom CSS -->
<link href="assets/css/style.css" rel='stylesheet' type='text/css' />

<!-- font-awesome icons CSS -->
<link href="assets/css/font-awesome.css" rel="stylesheet"> 
<!-- //font-awesome icons CSS-->

<!-- side nav css file -->
<link href='assets/css/SidebarNav.min.css' media='all' rel='stylesheet' type='text/css'/>
<!-- //side nav css file -->
 
 <!-- js-->
<script src="assets/js/jquery-1.11.1.min.js"></script>
<script src="assets/js/modernizr.custom.js"></script>

<!--webfonts-->
<link href="//fonts.googleapis.com/css?family=PT+Sans:400,400i,700,700i&amp;subset=cyrillic,cyrillic-ext,latin-ext" rel="stylesheet">
<!--//webfonts--> 

<!-- chart -->
<script src="assets/js/Chart.js"></script>
<!-- //chart -->

<!-- Metis Menu -->
<script src="assets/js/metisMenu.min.js"></script>
<script src="assets/js/custom.js"></script>
<link href="assets/css/custom.css" rel="stylesheet">
<!--//Metis Menu -->
<style>
#chartdiv {
  width: 100%;
  height: 295px;
}
</style>
<!--pie-chart --><!-- index page sales reviews visitors pie chart -->
<script src="assets/js/pie-chart.js" type="text/javascript"></script>
<script type="text/javascript">

        $(document).ready(function () {
            $('#demo-pie-1').pieChart({
                barColor: '#2dde98',
                trackColor: '#eee',
                lineCap: 'round',
                lineWidth: 8,
                onStep: function (from, to, percent) {
                    $(this.element).find('.pie-value').text(Math.round(percent) + '%');
                }
            });

            $('#demo-pie-2').pieChart({
                barColor: '#8e43e7',
                trackColor: '#eee',
                lineCap: 'butt',
                lineWidth: 8,
                onStep: function (from, to, percent) {
                    $(this.element).find('.pie-value').text(Math.round(percent) + '%');
                }
            });

            $('#demo-pie-3').pieChart({
                barColor: '#ffc168',
                trackColor: '#eee',
                lineCap: 'square',
                lineWidth: 8,
                onStep: function (from, to, percent) {
                    $(this.element).find('.pie-value').text(Math.round(percent) + '%');
                }
            });

           
        });

    </script>
<!-- //pie-chart --><!-- index page sales reviews visitors pie chart -->

0 Reviews

Leave a Reply

Your email address will not be published. Required fields are marked *

13 − two =

Secured By miniOrange