Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Script by Rahmad Arif
- session_start();
- if(!isset($_SESSION['username'])) {
- header('location:login.php'); }
- else { $username = $_SESSION['username']; }
- require_once("koneksi.php");
- $query = mysql_query("SELECT * FROM user WHERE username = '$username'");
- $get = mysql_fetch_array($query);
- $user = mysql_query("SELECT * FROM user");
- $transaksi = mysql_query("SELECT * FROM historyall");
- $totaluser = mysql_num_rows($user);
- $totaltransaksi = mysql_num_rows($transaksi);
- $nama = $get['nama'];
- $password = $get['password'];
- $level = $get['level'];
- $saldo = "Rp " . number_format($get['saldo'],2,',','.');
- $uplink = $get['uplink'];
- ?>
- <!DOCTYPE html>
- <html>
- <!-- Mirrored from coderthemes.com/adminto_1.1/light/page-starter.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 24 Mar 2016 18:35:47 GMT -->
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <meta name="description" content="A fully featured admin theme which can be used to build CRM, CMS, etc.">
- <meta name="author" content="Coderthemes">
- <!-- App Favicon -->
- <link rel="shortcut icon" href="assets/images/favicon.ico">
- <!-- App title -->
- <title>Anak Muda Sawahlunto Shop</title>
- <!-- App CSS -->
- <link href="assets/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
- <link href="assets/css/core.css" rel="stylesheet" type="text/css" />
- <link href="assets/css/components.css" rel="stylesheet" type="text/css" />
- <link href="assets/css/icons.css" rel="stylesheet" type="text/css" />
- <link href="assets/css/pages.css" rel="stylesheet" type="text/css" />
- <link href="assets/css/menu.css" rel="stylesheet" type="text/css" />
- <link href="assets/css/responsive.css" rel="stylesheet" type="text/css" />
- <!-- HTML5 Shiv and Respond.js IE8 support of HTML5 elements and media queries -->
- <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
- <!--[if lt IE 9]>
- <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
- <script src="https://oss.maxcdn.com/libs/respond.js/1.3.0/respond.min.js"></script>
- <![endif]-->
- <script src="assets/js/modernizr.min.js"></script>
- <script>
- (function (i, s, o, g, r, a, m) {
- i['GoogleAnalyticsObject'] = r;
- i[r] = i[r] || function () {
- (i[r].q = i[r].q || []).push(arguments)
- }, i[r].l = 1 * new Date();
- a = s.createElement(o),
- m = s.getElementsByTagName(o)[0];
- a.async = 1;
- a.src = g;
- m.parentNode.insertBefore(a, m)
- })(window, document, 'script', '../../../www.google-analytics.com/analytics.js', 'ga');
- ga('create', 'UA-74137680-1', 'auto');
- ga('send', 'pageview');
- </script>
- <style type="text/css">
- <!--
- .shout_box {
- background: #627BAE;
- width: 260px;
- overflow: hidden;
- position: fixed;
- bottom: 0;
- right: 1%;
- z-index:9;
- }
- .shout_box .header .close_btn {
- background: url(images/close_btn.png) no-repeat 0px 0px;
- float: right;
- width: 15px;
- height: 15px;
- }
- .shout_box .header .close_btn:hover {
- background: url(images/close_btn.png) no-repeat 0px -16px;
- }
- .shout_box .header .open_btn {
- background: url(images/close_btn.png) no-repeat 0px -32px;
- float: right;
- width: 15px;
- height: 15px;
- }
- .shout_box .header .open_btn:hover {
- background: url(images/close_btn.png) no-repeat 0px -48px;
- }
- .shout_box .header{
- padding: 5px 3px 5px 5px;
- font: 11px 'lucida grande', tahoma, verdana, arial, sans-serif;
- font-weight: bold;
- color:#fff;
- border: 1px solid rgba(0, 39, 121, .76);
- border-bottom:none;
- cursor: pointer;
- }
- .shout_box .header:hover{
- background-color: #627BAE;
- }
- .shout_box .message_box {
- background: #FFFFFF;
- height: 400px;
- overflow:auto;
- border: 1px solid #CCC;
- }
- .shout_msg{
- margin-bottom: 10px;
- display: block;
- border-bottom: 1px solid #F3F3F3;
- padding: 0px 5px 5px 5px;
- font: 11px 'lucida grande', tahoma, verdana, arial, sans-serif;
- color:#7C7C7C;
- }
- .message_box:last-child {
- border-bottom:none;
- }
- time{
- font: 11px 'lucida grande', tahoma, verdana, arial, sans-serif;
- font-weight: normal;
- float:right;
- color: #D5D5D5;
- }
- .shout_msg .username{
- margin-bottom: 10px;
- margin-top: 10px;
- }
- .user_info input {
- width: 98%;
- height: 25px;
- border: 1px solid #CCC;
- border-top: none;
- padding: 3px 0px 0px 3px;
- font: 11px 'lucida grande', tahoma, verdana, arial, sans-serif;
- }
- .shout_msg .username{
- font-weight: bold;
- display: block;
- }
- -->
- </style>
- <script type="text/javascript" src="js/jquery-1.9.0.min.js"></script>
- <script type="text/javascript">
- $(document).ready(function() {
- // load messages every 1000 milliseconds from server.
- load_data = {'fetch':1};
- window.setInterval(function(){
- $.post('shout.php', load_data, function(data) {
- $('.message_box').html(data);
- var scrolltoh = $('.message_box')[0].scrollHeight;
- $('.message_box').scrollTop(scrolltoh);
- });
- }, 1000);
- //method to trigger when user hits enter key
- $("#shout_message").keypress(function(evt) {
- if(evt.which == 13) {
- var iusername = $('#shout_username').val();
- var imessage = $('#shout_message').val();
- post_data = {'username':iusername, 'message':imessage};
- //send data to "shout.php" using jQuery $.post()
- $.post('shout.php', post_data, function(data) {
- //append data into messagebox with jQuery fade effect!
- $(data).hide().appendTo('.message_box').fadeIn();
- //keep scrolled to bottom of chat!
- var scrolltoh = $('.message_box')[0].scrollHeight;
- $('.message_box').scrollTop(scrolltoh);
- //reset value of message box
- $('#shout_message').val('');
- }).fail(function(err) {
- //alert HTTP server error
- alert(err.statusText);
- });
- }
- });
- //toggle hide/show shout box
- $(".close_btn").click(function (e) {
- //get CSS display state of .toggle_chat element
- var toggleState = $('.toggle_chat').css('display');
- //toggle show/hide chat box
- $('.toggle_chat').slideToggle();
- //use toggleState var to change close/open icon image
- if(toggleState == 'block')
- {
- $(".header div").attr('class', 'open_btn');
- }else{
- $(".header div").attr('class', 'close_btn');
- }
- });
- });
- </script>
- <script type="text/javascript">
- $(function() {
- $(this).bind("contextmenu", function(e) {
- e.preventDefault();
- });
- });
- </script>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js" type="text/javascript"></script>
- </head>
- <body class="fixed-left">
- <div class="shout_box">
- <div class="header">Chat Box <div class="close_btn"> </div></div>
- <div class="toggle_chat">
- <div class="message_box">
- </div>
- <div class="user_info">
- <input name="username" id="shout_username" type="hidden" value="<?php echo $nama; ?>" maxlength="15" />
- <input name="message" id="shout_message" type="text" placeholder="Type Message Hit Enter" maxlength="100" />
- </div>
- </div>
- </div>
- <!-- Begin page -->
- <div id="wrapper">
- <!-- Top Bar Start -->
- <div class="topbar">
- <!-- LOGO -->
- <div class="topbar-left">
- <a href="index-2.html" class="logo"><span>AMS<span>shop</span></span><i class="zmdi zmdi-layers"></i></a>
- </div>
- <!-- Button mobile view to collapse sidebar menu -->
- <div class="navbar navbar-default" role="navigation">
- <div class="container">
- <!-- Page title -->
- <ul class="nav navbar-nav navbar-left">
- <li>
- <button class="button-menu-mobile open-left">
- <i class="zmdi zmdi-menu"></i>
- </button>
- </li>
- <li>
- <h4 class="page-title">AMS Shop</h4>
- </li>
- </ul>
- </div><!-- end container -->
- </div><!-- end navbar -->
- </div>
- <!-- Top Bar End -->
- <!-- ========== Left Sidebar Start ========== -->
- <div class="left side-menu">
- <div class="sidebar-inner slimscrollleft">
- <!-- User -->
- <div class="user-box">
- <div class="user-img">
- <img src="assets/images/users/avatar-1.jpg" alt="user-img" title="Mat Helme" class="img-circle img-thumbnail img-responsive">
- <div class="user-status offline"><i class="zmdi zmdi-dot-circle"></i></div>
- </div>
- <h5><a href="#"><?php echo $nama; ?></a> </h5>
- <ul class="list-inline">
- <li>
- <a href="logout.php" class="text-custom">
- <i class="zmdi zmdi-power"></i> Logout
- </a>
- </li>
- </ul>
- </div>
- <!-- End User -->
- <!--- Sidebar -->
- <div id="sidebar-menu">
- <ul>
- <li class="text-muted menu-title">Navigation</li>
- <li>
- <a href="index.php" class="waves-effect"><i class="zmdi zmdi-view-dashboard"></i> <span> Dashboard </span> </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('item/instafollow2')" class="waves-effect"><i class="zmdi zmdi-view-dashboard"></i> <span> Dashboard </span> </a>
- </li>
- <li class="text-muted menu-title">Sosial Media</li>
- <li class="has_sub">
- <a href="javascript:void(0);" class="waves-effect"><i class="zmdi zmdi-instagram"></i> <span> Instagram </span> <span class="menu-arrow"></span></a>
- <ul class="list-unstyled">
- <li>
- <a href="javascript:;" onclick="buka('item/instafollow1');"> Instagram Followers
- </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('item/instalike1');"> Instagram Likes
- </a>
- </li>
- </ul>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('item/likefb');" class="waves-effect"><i class="zmdi zmdi-facebook-box"></i> <span> Facebook </span> </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('item/viewyt');" class="waves-effect"><i class="zmdi zmdi-youtube"></i> <span> YouTube </span> </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('item/scp');" class="waves-effect"><i class="zmdi zmdi-soundcloud"></i> <span> SoundCloud </span> </a>
- </li>
- <li class="text-muted menu-title">Informasi</li>
- <li>
- <a href="javascript:;" onclick="buka('info');" class="waves-effect"><i class="zmdi zmdi-facebook-box"></i> <span> Cara Bali </span> </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('syarat');" class="waves-effect"><i class="zmdi zmdi-facebook-box"></i> <span> Syarat & Ketentuan</span> </a>
- </li>
- <?php if($level == 'Admin') { ?>
- <li class="text-muted menu-title">User Fitur</li>
- <li class="has_sub">
- <a href="javascript:void(0);" class="waves-effect"><i class="zmdi zmdi-invert-colors"></i> <span> Admin Fitur</span> <span class="menu-arrow"></span></a>
- <ul class="list-unstyled">
- <li>
- <a href="javascript:;" onclick="buka('panel/tambahstockv');">
- Tambah Stock Voucher Game
- </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('panel/cekstockv');">
- Cek Stock Voucher Game
- </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('panel/cekuser');">
- Cek User
- </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('panel/cekorder');">
- Cek Order
- </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('panel/gantistatusorder');">
- Ganti Status Order
- </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('panel/tambahkode');">
- TopUp Saldo
- </a>
- </li>
- <li>
- <a href="javascript:;" onclick="buka('panel/buatkode');">
- Buat Kode Voucher TopUp Saldo
- </a>
- </li>
- </ul>
- </li>
- <?php } else { ?><?php } ?>
- </ul>
- <div class="clearfix"></div>
- </div>
- <!-- Sidebar -->
- <div class="clearfix"></div>
- </div>
- </div>
- <!-- Left Sidebar End -->
- <!-- ============================================================== -->
- <!-- Start right Content here -->
- <!-- ============================================================== -->
- <div class="content-page">
- <!-- Start content -->
- <div class="content">
- <div class="container">
- <div class="row">
- <div class="col-lg-3 col-md-6">
- <div class="card-box widget-user">
- <div class="text-center">
- <h2 class="text-custom" data-plugin="counterup"><?php echo $saldo; ?></h2>
- <h5>Pitih</h5>
- </div>
- </div>
- </div>
- <div class="col-lg-3 col-md-6">
- <div class="card-box widget-user">
- <div class="text-center">
- <h2 class="text-pink" data-plugin="counterup"><?php echo $level; ?></h2>
- <h5>Pangkek</h5>
- </div>
- </div>
- </div>
- <div class="col-lg-3 col-md-6">
- <div class="card-box widget-user">
- <div class="text-center">
- <h2 class="text-warning" data-plugin="counterup"><?php echo $totaltransaksi ?></h2>
- <h5>Total Transaksi Sado'e</h5>
- </div>
- </div>
- </div>
- <div class="col-lg-3 col-md-6">
- <div class="card-box widget-user">
- <div class="text-center">
- <h2 class="text-info" data-plugin="counterup"><?php echo $totaluser ?> Urang</h2>
- <h5>Total Anggota Sado'e</h5>
- </div>
- </div>
- </div>
- </div>
- <!-- end row -->
- <div class="row">
- <div class="col-lg-12">
- <div id="konten">
- <div class="panel panel-custom panel-border">
- <div class="panel-heading">
- <h3 class="panel-title">Kontak Admin</h3>
- </div>
- <div class="panel-body"></br>
- <div>
- <center><img src="assets/images/users/Screenshot_12.png" class="img-circle thumb-xl img-thumbnail m-b-10" alt="profile-image"></center>
- <center><h2 class=" m-b-30" style="color: black;">
- <strong> Rahmad Arif </strong>
- </h2></center>
- <div class="text-left">
- <center> <h5><i class="zmdi zmdi-facebook-box" > </i> Facebook :<span class="m-l-15"> ( <a href="http://facebook.com/messages/100011466409267">Chat</a> )</span></h5>
- <h5><i class="zmdi zmdi-phone" > </i> No HP :<span class="m-l-15"> 085375440767</span></h5>
- <h5><i class="zmdi zmdi-phone" > </i> Line :<span class="m-l-15"> 085375440767</span></h5>
- <h5><i class="zmdi zmdi-smartphone-android" > </i> BBM :<span class="m-l-15"> 5E4598E1</span></h5></center>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div><!-- end col -->
- <div class="col-lg-12">
- <div class="panel panel-border panel-pink">
- <div class="panel-heading">
- <h3 class="panel-title"> Bukti Balanjo</h3>
- </div>
- <div class="panel-body" id="result">
- <p>
- Submit lah fiturnyo lu Ndan
- </p>
- </div>
- </div>
- </div><!-- end col -->
- </div>
- </div> <!-- container -->
- </div> <!-- content -->
- <footer class="footer">
- 2016 © Adminto.
- </footer>
- </div>
- <!-- End content-page -->
- <!-- ============================================================== -->
- <!-- End Right content here -->
- <!-- ============================================================== -->
- <!-- Right Sidebar -->
- <div class="side-bar right-bar">
- <a href="javascript:void(0);" class="right-bar-toggle">
- <i class="zmdi zmdi-close-circle-o"></i>
- </a>
- <h4 class="">Notifications</h4>
- <div class="notification-list nicescroll">
- <ul class="list-group list-no-border user-list">
- <li class="list-group-item">
- <a href="#" class="user-list-item">
- <div class="avatar">
- <img src="assets/images/users/avatar-2.jpg" alt="">
- </div>
- <div class="user-desc">
- <span class="name">Michael Zenaty</span>
- <span class="desc">There are new settings available</span>
- <span class="time">2 hours ago</span>
- </div>
- </a>
- </li>
- <li class="list-group-item">
- <a href="#" class="user-list-item">
- <div class="icon bg-info">
- <i class="zmdi zmdi-account"></i>
- </div>
- <div class="user-desc">
- <span class="name">New Signup</span>
- <span class="desc">There are new settings available</span>
- <span class="time">5 hours ago</span>
- </div>
- </a>
- </li>
- <li class="list-group-item">
- <a href="#" class="user-list-item">
- <div class="icon bg-pink">
- <i class="zmdi zmdi-comment"></i>
- </div>
- <div class="user-desc">
- <span class="name">New Message received</span>
- <span class="desc">There are new settings available</span>
- <span class="time">1 day ago</span>
- </div>
- </a>
- </li>
- <li class="list-group-item active">
- <a href="#" class="user-list-item">
- <div class="avatar">
- <img src="assets/images/users/avatar-3.jpg" alt="">
- </div>
- <div class="user-desc">
- <span class="name">James Anderson</span>
- <span class="desc">There are new settings available</span>
- <span class="time">2 days ago</span>
- </div>
- </a>
- </li>
- <li class="list-group-item active">
- <a href="#" class="user-list-item">
- <div class="icon bg-warning">
- <i class="zmdi zmdi-settings"></i>
- </div>
- <div class="user-desc">
- <span class="name">Settings</span>
- <span class="desc">There are new settings available</span>
- <span class="time">1 day ago</span>
- </div>
- </a>
- </li>
- </ul>
- </div>
- </div>
- <!-- /Right-bar -->
- </div>
- <!-- END wrapper -->
- <script>
- var resizefunc = [];
- </script>
- <!-- jQuery -->
- <script src="assets/js/jquery.min.js"></script>
- <script src="assets/js/bootstrap.min.js"></script>
- <script src="assets/js/detect.js"></script>
- <script src="assets/js/fastclick.js"></script>
- <script src="assets/js/jquery.slimscroll.js"></script>
- <script src="assets/js/jquery.blockUI.js"></script>
- <script src="assets/js/waves.js"></script>
- <script src="assets/js/jquery.nicescroll.js"></script>
- <script src="assets/js/jquery.scrollTo.min.js"></script>
- <!-- App js -->
- <script src="assets/js/jquery.core.js"></script>
- <script src="assets/js/jquery.app.js"></script>
- <script>
- // Script by Ichlas Wardy Gustama
- function buka(nama) {
- $("#konten").html('<div class="portlet-heading"><div class="portlet-title"><h4>Loading konten...</h4></div><div class="clearfix"></div></div><div class="portlet-body"><div class="progress progress-striped active"><div class="progress-bar progress-bar-info" style="width: 100%"></div></div></div>');
- $.ajax({
- url : nama+'.php',
- type : 'GET',
- dataType: 'html',
- success : function(isi){
- $("#konten").html(isi);
- },
- });
- }
- function post(){
- $('#result').html('<div class="progress progress-striped active"><div class="progress-bar progress-bar-inverse" style="width: 100%"></div></div>');
- $("input").attr("disabled", "disabled");
- $("select").attr("disabled", "disabled");
- $("button").attr("disabled", "disabled");
- $("textarea").attr("disabled", "disabled");
- }
- function hasil(){
- $("input").removeAttr("disabled");
- $("select").removeAttr("disabled");
- $("button").removeAttr("disabled");
- $("textarea").removeAttr("disabled");
- }
- </script>
- </body>
- <!-- Mirrored from coderthemes.com/adminto_1.1/light/page-starter.html by HTTrack Website Copier/3.x [XR&CO'2014], Thu, 24 Mar 2016 18:35:47 GMT -->
- </html>
Add Comment
Please, Sign In to add comment