Initial commit

This commit is contained in:
Eike Foken
2011-04-16 13:57:38 +02:00
parent cd3750db95
commit b570685ae8
924 changed files with 172926 additions and 0 deletions

View 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'); ?>

View File

@@ -0,0 +1,2 @@
</body>
</html>

View 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
View File

@@ -0,0 +1,10 @@
<html>
<head>
<title>403 Forbidden</title>
</head>
<body>
<p>Directory access is forbidden.</p>
</body>
</html>