Initial commit
This commit is contained in:
72
application/views/auth/login.php
Executable file
72
application/views/auth/login.php
Executable file
@@ -0,0 +1,72 @@
|
||||
<?php $this->load->view('header'); ?>
|
||||
|
||||
<script type="text/javascript">
|
||||
var message = function(title, message) {
|
||||
Ext.Msg.show({
|
||||
title: title,
|
||||
msg: message,
|
||||
minWidth: 200,
|
||||
modal: true,
|
||||
icon: Ext.Msg.INFO,
|
||||
buttons: Ext.Msg.OK
|
||||
});
|
||||
};
|
||||
|
||||
var loginForm = new Ext.form.FormPanel({
|
||||
frame: true,
|
||||
width: 340,
|
||||
labelWidth: 120,
|
||||
defaults: {
|
||||
width: 180
|
||||
},
|
||||
items: [
|
||||
new Ext.form.TextField({
|
||||
id: "username",
|
||||
fieldLabel: "Benutzername",
|
||||
allowBlank: false,
|
||||
blankText: "Benutzernamen eingeben"
|
||||
}),
|
||||
new Ext.form.TextField({
|
||||
id:"password",
|
||||
fieldLabel: "Passwort",
|
||||
inputType: 'password',
|
||||
allowBlank: false,
|
||||
blankText: "Passwort eingeben"
|
||||
})
|
||||
],
|
||||
buttons: [{
|
||||
text: "Login",
|
||||
handler: function() {
|
||||
if (loginForm.getForm().isValid()) {
|
||||
loginForm.getForm().submit({
|
||||
url: BASE_URL + 'auth/do_login',
|
||||
waitMsg: "Lade...",
|
||||
success: function(loginForm) {
|
||||
message("Erfolg", "Willkommen zurück");
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}, {
|
||||
text: "Zurücksetzen",
|
||||
handler: function() {
|
||||
loginForm.getForm.reset();
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
||||
var loginWindow = new Ext.Window({
|
||||
title: "Willkommen zu scattport",
|
||||
layout: 'fit',
|
||||
height: 140,
|
||||
width: 340,
|
||||
closable: false,
|
||||
resizable: false,
|
||||
draggable: false,
|
||||
items: [loginForm]
|
||||
});
|
||||
|
||||
loginWindow.show();
|
||||
</script>
|
||||
|
||||
<?php $this->load->view('footer'); ?>
|
||||
2
application/views/footer.php
Normal file
2
application/views/footer.php
Normal file
@@ -0,0 +1,2 @@
|
||||
</body>
|
||||
</html>
|
||||
22
application/views/header.php
Normal file
22
application/views/header.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<title>Scattport</title>
|
||||
<meta charset="utf-8" />
|
||||
<?=link_tag('assets/js/ext/resources/css/ext-all.css');?>
|
||||
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
|
||||
<!-- ExtJS library: base/adapter -->
|
||||
<?=script_tag('assets/js/ext/adapter/jquery/ext-jquery-adapter.js');?>
|
||||
<!-- ExtJS library: all widgets -->
|
||||
<?=script_tag('assets/js/ext/ext-all.js');?>
|
||||
<script type="text/javascript">
|
||||
var BASE_URL = '<?=base_url();?>' + 'index.php/';
|
||||
var BASE_PATH = '<?=base_url();?>';
|
||||
|
||||
$(document).ready(function() {
|
||||
Ext.QuickTips.init();
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
10
application/views/index.html
Executable file
10
application/views/index.html
Executable file
@@ -0,0 +1,10 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user