You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
221 lines
13 KiB
PHP
221 lines
13 KiB
PHP
<?php
|
|
use NN\Session;
|
|
use NN\Module\DB;
|
|
use NN\Module\Perusahaan as perush;
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="en" data-textdirection="ltr">
|
|
<!-- BEGIN: Head-->
|
|
<head>
|
|
<meta name="robots" content="noindex">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
|
|
<meta name="author" content="VDS">
|
|
<?php if(APPNAME === 'usp'): ?>
|
|
<title>Login Page Koperasi | <?php echo e(perush::get('nama_perusahaan')); ?></title>
|
|
<?php else: ?>
|
|
<title>Login Page Accounting | <?php echo e(perush::get('nama_perusahaan')); ?></title>
|
|
<?php endif; ?>
|
|
<link rel="apple-touch-icon" href="<?php echo e(ASSET); ?>/<?php echo e(LOGO); ?>">
|
|
<link rel="shortcut icon" type="image/x-icon" href="<?php echo e(ASSET); ?>/<?php echo e(LOGO); ?>">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/open-sans.css">
|
|
|
|
<!-- BEGIN: Vendor CSS-->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/vendors.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/tables/datatable/datatables.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/toastr.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/select2.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/bootstrap-datepicker.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/jquery.datetimepicker.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/dropzone.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/plugins/sweetalert2.min.css">
|
|
<!-- END: Vendor CSS-->
|
|
|
|
<!-- BEGIN: Theme CSS-->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/bootstrap.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/bootstrap-extended.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/colors.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/components.min.css">
|
|
<!-- END: Theme CSS-->
|
|
|
|
<!-- BEGIN: Page CSS-->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/core/menu/menu-types/vertical-menu-modern.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/core/colors/palette-gradient.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/core/colors/palette-callout.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/vendors/css/charts/morris.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/fonts/simple-line-icons/style.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/toastr.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/wizard.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/uploaders.dropzone.min.css">
|
|
<!-- <link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/dropzone.min.css"> -->
|
|
<!-- END: Page CSS-->
|
|
|
|
<!-- BEGIN: Custom CSS-->
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/login-register.min.css">
|
|
<link rel="stylesheet" type="text/css" href="<?php echo e(ASSET); ?>/assets/css/style.css">
|
|
<!-- END: Custom CSS-->
|
|
|
|
</head>
|
|
<!-- END: Head-->
|
|
|
|
<!-- BEGIN: Body-->
|
|
<body class="vertical-layout vertical-menu-modern 1-column blank-page" data-open="click" data-menu="vertical-menu-modern" data-col="1-column">
|
|
|
|
<!-- BEGIN: Content-->
|
|
<div class="app-content content">
|
|
<div class="content-overlay"></div>
|
|
<div class="content-wrapper">
|
|
<div class="content-header row"></div>
|
|
<div class="content-body">
|
|
<section class="row flexbox-container">
|
|
<div class="col-12 d-flex align-items-center justify-content-center">
|
|
<div class="col-lg-4 col-md-8 col-10 box-shadow-2 p-0">
|
|
<div class="card border-grey border-lighten-3 px-1 py-1 m-0">
|
|
<div class="text-center">
|
|
<img src="<?php echo e(ASSET); ?>/<?php echo e(LOGO); ?>" width="120px" alt="">
|
|
</div>
|
|
<div class="card-header border-0">
|
|
<div class="card-title text-center">
|
|
<h1><b><?php echo e(perush::get('nama_perusahaan')); ?></b></h1>
|
|
<?php if(APPNAME === 'acc'): ?>
|
|
<h5><b>ACCOUNTING</b></h5>
|
|
<?php endif; ?>
|
|
<?php if(APPNAME === 'setup'): ?>
|
|
<h5><b>Setting APP</b></h5>
|
|
<?php endif; ?>
|
|
<?php if(APPNAME === 'usp'): ?>
|
|
<h5><b>KOPERASI</b></h5>
|
|
<?php endif; ?>
|
|
</div>
|
|
<h6 class="card-subtitle line-on-side text-muted text-center font-small-3 pt-1">
|
|
<span>Login</span>
|
|
</h6>
|
|
</div>
|
|
<div class="card-content">
|
|
<div class="card-body">
|
|
<?php if(APPNAME === 'setup'): ?>
|
|
<form id="flogin" method="post" class="form-horizontal" action="<?php echo e(PATH); ?>/loginrequestadmin" autocomplete="off">
|
|
<?php elseif(APPNAME === 'acc'): ?>
|
|
<form id="flogin" method="post" class="form-horizontal" action="<?php echo e(PATH); ?>/loginrequestacc" autocomplete="off">
|
|
<?php else: ?>
|
|
<form id="flogin" method="post" class="form-horizontal" action="<?php echo e(PATH); ?>/loginrequest" autocomplete="off">
|
|
<?php endif; ?>
|
|
<fieldset class="form-group position-relative has-icon-left">
|
|
<input name="username" type="text" class="form-control" id="user-name" placeholder="Your Username" required>
|
|
<div class="form-control-position">
|
|
<i class="la la-user"></i>
|
|
</div>
|
|
</fieldset>
|
|
<fieldset class="form-group position-relative has-icon-left">
|
|
<input name="password" type="password" class="form-control" id="user-password" placeholder="Enter Password" required>
|
|
<div class="form-control-position">
|
|
<i class="la la-key"></i>
|
|
</div>
|
|
</fieldset>
|
|
<div class="row">
|
|
<div class="col-sm-6">
|
|
<button type="submit" class="btn btn-outline-info btn-block"><i class="ft-unlock"></i> Login</button>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<button type="button" onclick="location.href = '/';" class="btn btn-outline-danger btn-block"><i class="ft-x"></i> Exit</button>
|
|
</div>
|
|
</div>
|
|
<h6 class="card-subtitle line-on-side text-muted text-center font-small-3 pt-1">
|
|
<span>Menu APP</span>
|
|
</h6>
|
|
<div class="row">
|
|
<div class="col-sm-6 mt-1">
|
|
<a data-kode="usp" href="/usp" class="btn btn-outline-info btn-block">Koperasi</a>
|
|
</div>
|
|
<div class="col-sm-6 mt-1">
|
|
<a data-kode="acc" href="/acc" class="btn btn-outline-info btn-block">Accounting</a>
|
|
</div>
|
|
<div class="col-sm-6 mt-1">
|
|
<a data-kode="setup" href="/administrator" class="btn btn-outline-info btn-block">Setting APP</a>
|
|
</div>
|
|
<div class="col-sm-6 mt-1">
|
|
<a data-kode="module" href="/administrator/module/app" class="btn btn-outline-info btn-block">Dokumentasi</a>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- END: Content-->
|
|
<div class="sidenav-overlay"></div>
|
|
<div class="drag-target"></div>
|
|
|
|
<!-- BEGIN: Footer-->
|
|
<footer class="footer fixed-bottom footer-light navbar-border navbar-shadow">
|
|
<p class="clearfix blue-grey lighten-2 text-sm-center mb-0 px-2"><span class="float-md-left d-block d-md-inline-block">Copyright © 2023 <?php echo e(perush::get('nama_perusahaan')); ?></span><span class="float-md-right d-none d-lg-block"><i class="ft-layers text-warning"></i> App Ver. <?php echo e(perush::get('version_app')); ?><span id="scroll-top"></span></span></p>
|
|
</footer>
|
|
<!-- END: Footer-->
|
|
|
|
<!-- BEGIN: Vendor JS-->
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/vendors.min.js"></script>
|
|
<!-- BEGIN Vendor JS-->
|
|
|
|
<!-- BEGIN: Page Vendor JS-->
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/tables/datatable/datatables.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/toastr.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/select2.full.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/bootstrap-datepicker.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/jquery.datetimepicker.full.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/jquery.steps.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/dropzone.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/plugins/sweetalert2.all.min.js"></script>
|
|
<!-- END: Page Vendor JS-->
|
|
|
|
<!-- BEGIN: Page Vendor JS-->
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/charts/chart.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/charts/raphael-min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/vendors/js/charts/morris.min.js"></script>
|
|
<!-- END: Page Vendor JS-->
|
|
|
|
<!-- BEGIN: Theme JS-->
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/core/app-menu.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/core/app.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/scripts/customizer.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/scripts/footer.min.js"></script>
|
|
<!-- END: Theme JS-->
|
|
|
|
<!-- BEGIN: Page JS-->
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/jquery.floatThead.min.js"></script>
|
|
<script src="<?php echo e(ASSET); ?>/assets/js/printThis.js"></script>
|
|
<!-- END: Page JS-->
|
|
<script>
|
|
var datademo = '<?php echo json_encode(DB::query_result_object("SELECT * FROM username WHERE setup = '".KODEAPP."' AND demo = 1")); ?>';
|
|
datademo = JSON.parse(datademo);
|
|
if(datademo.length > 0){
|
|
$("#user-name").val(
|
|
datademo[0].username
|
|
);
|
|
$("#user-password").val(
|
|
datademo[0].password
|
|
);
|
|
};
|
|
Array.from(document.querySelectorAll('[data-kode]')).forEach(function(r){
|
|
if(r.dataset.kode == '<?php echo e(APPNAME); ?>'){
|
|
r.className = 'btn btn-primary btn-block';
|
|
};
|
|
});
|
|
</script>
|
|
<?php if(Session::get('message') != ''): ?>
|
|
<script>
|
|
toastr.warning("Username atau password salah silahkan ulangi kembali","Maaf",{positionClass:"toast-top-full-width",progressBar:!0});
|
|
</script>
|
|
<?php
|
|
Session::delete('message');
|
|
?>
|
|
<?php endif; ?>
|
|
|
|
</body>
|
|
<!-- END: Body-->
|
|
</html><?php /**PATH /var/www/html/usp/views/landing/home.blade.php ENDPATH**/ ?>
|