inrichten base applicatie
This commit is contained in:
@@ -58,7 +58,7 @@ $autoload['packages'] = array();
|
||||
|
|
||||
| $autoload['libraries'] = array('user_agent' => 'ua');
|
||||
*/
|
||||
$autoload['libraries'] = array();
|
||||
$autoload['libraries'] = array('database', 'session');
|
||||
|
||||
/*
|
||||
| -------------------------------------------------------------------
|
||||
|
||||
@@ -19,12 +19,18 @@ class MY_Controller extends CI_Controller {
|
||||
|
||||
private function handle()
|
||||
{
|
||||
|
||||
$this->environment();
|
||||
}
|
||||
|
||||
function clean_input( $post )
|
||||
{
|
||||
return str_replace( 'null', '', $this->db->escape_str( $this->input->post( $post ), TRUE ) );
|
||||
$value = $this->input->post( $post );
|
||||
|
||||
// $escapedValue = $this->db->escape_string( $value, TRUE );
|
||||
|
||||
$denulledValue = str_replace( 'null', '', $value);
|
||||
|
||||
return $denulledValue;
|
||||
}
|
||||
|
||||
public function json($data)
|
||||
|
||||
@@ -34,25 +34,28 @@
|
||||
</head>
|
||||
<body class="animsition page-login-v3 layout-full">
|
||||
<!-- Page -->
|
||||
<div class="page vertical-align text-center" data-animsition-in="fade-in" data-animsition-out="fade-out">>
|
||||
<?php $this->load->view('specials/notifyme_modal'); ?>
|
||||
<div class="page vertical-align text-center" data-animsition-in="fade-in" data-animsition-out="fade-out">
|
||||
<div class="page-content vertical-align-middle animation-slide-top animation-duration-1">
|
||||
<div class="panel">
|
||||
<div class="panel" id="login-form">
|
||||
<div class="panel-body">
|
||||
<div class="brand">
|
||||
<img class="brand-img" src="css/images/logo_dbo.png" alt="...">
|
||||
<h2 class="brand-text font-size-18">projectbeheer</h2>
|
||||
</div>
|
||||
<form method="post" action="#">
|
||||
<div>
|
||||
<div class="form-group form-material floating" data-plugin="formMaterial">
|
||||
<input type="text" class="form-control" name="email" />
|
||||
<input type="text" class="form-control" name="email"
|
||||
data-bind="textInput:username" />
|
||||
<label class="floating-label">gebruikersnaam</label>
|
||||
</div>
|
||||
<div class="form-group form-material floating" data-plugin="formMaterial">
|
||||
<input type="password" class="form-control" name="password" />
|
||||
<input type="password" class="form-control" name="password"
|
||||
data-bind="textInput:password" />
|
||||
<label class="floating-label">wachtwoord</label>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary btn-block btn-lg mt-40">Log in</button>
|
||||
</form>
|
||||
<button type="button" class="btn btn-primary btn-block btn-lg mt-40" data-bind="click:login">Log in</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -102,5 +105,9 @@
|
||||
<script src="js/vendor/Plugin/switchery.js"></script>
|
||||
<script src="js/vendor/Plugin/jquery-placeholder.js"></script>
|
||||
<script src="js/vendor/Plugin/material.js"></script>
|
||||
|
||||
<script src="js/vendor/Knockout.min.js"></script>
|
||||
<script src="js/lib/modules/login/loginModule.js"></script>
|
||||
<script src="js/lib/modules/specials/notifyModule.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
<div class="modal" tabindex="-1" role="dialog" id="notify-me">
|
||||
<div class="modal-dialog" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" data-bind="text:title"></h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<p data-bind="text:message"></p>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<!-- ko if : notify() -->
|
||||
<button type="button" class="btn btn-primary"
|
||||
data-bind="text:yesText; click:closeYes"></button>
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal"
|
||||
data-bind="text:noText; click:closeNo"></button>
|
||||
<!-- /ko -->
|
||||
<!-- ko if : ! notify() -->
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal"
|
||||
data-bind="click:closeOk">OK</button>
|
||||
<!-- /ko -->
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user