Remove all views.

We're gonna create new ones.
The old ones suck.

Signed-off-by: Karsten Heiken <karsten@disposed.de>
This commit is contained in:
Karsten Heiken
2011-07-22 16:06:02 +02:00
parent 98434eddbb
commit e6d51fa0b5
11 changed files with 0 additions and 404 deletions

View File

@@ -1,89 +0,0 @@
<!DOCTYPE html>
<html lang="<?=$this->config->item('lang_selected');?>">
<head>
<title>Scattport</title>
<meta charset="utf-8" />
<?=link_tag('assets/css/main.css');?>
<?=link_tag('assets/js/ext/resources/css/ext-all.css');?>
<!-- ExtJS library: base/adapter -->
<?=script_tag('assets/js/ext/adapter/ext/ext-base.js');?>
<!-- ExtJS library: all widgets -->
<?=script_tag('assets/js/ext/ext-all.js');?>
<script type="text/javascript">
var BASE_URL = '<?=site_url('/');?>';
var BASE_PATH = '<?=base_url();?>';
</script>
<?=script_tag('assets/js/language/' . $this->config->item('language') . '.js');?>
<?=script_tag('assets/js/common.js');?>
</head>
<body>
<script type="text/javascript">
var loginForm = new Ext.form.FormPanel({
frame: true,
border: false,
width: 340,
labelWidth: 120,
url: BASE_URL + 'auth/login',
method: 'POST',
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"
}),
<?php if ($this->config->item('remember_users', 'auth')): ?>
new Ext.form.Checkbox({
id: 'remember',
height: 20,
boxLabel: "Eingeloggt bleiben"
}),
<?php endif; ?>
],
buttons: [{
text: "Login",
handler: function() {
if (loginForm.getForm().isValid()) {
loginForm.getForm().submit({
success: function() {
window.location = BASE_URL;
},
failure: function(result, response) {
message("Fehler", response.result.message);
}
});
}
}
}, {
text: "Zurücksetzen",
handler: function() {
loginForm.getForm.reset();
}
}]
});
var loginWindow = new Ext.Window({
title: "Willkommen zu scattport",
layout: 'fit',
height: 200,
width: 340,
closable: false,
resizable: false,
draggable: false,
items: [loginForm]
});
loginWindow.show();
</script>
</body>
</html>

View File

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

View File

@@ -1,30 +0,0 @@
<!DOCTYPE html>
<html lang="<?=$this->config->item('lang_selected');?>">
<head>
<title>Scattport</title>
<meta charset="utf-8" />
<?=link_tag('assets/css/main.css');?>
<?=link_tag('assets/js/ext/resources/css/ext-all.css');?>
<!-- ExtJS library: base/adapter -->
<?=script_tag('assets/js/ext/adapter/ext/ext-base.js');?>
<!-- ExtJS library: all widgets -->
<?=script_tag('assets/js/ext/ext-all.js');?>
<script type="text/javascript">
var BASE_URL = '<?=site_url('/');?>';
var BASE_PATH = '<?=base_url();?>';
</script>
<?=script_tag('assets/js/language/' . $this->config->item('language') . '.js');?>
<?=script_tag('assets/js/SettingsWindow.js');?>
<?=script_tag('assets/js/common.js');?>
</head>
<body>
<div id="header">
<?=img(array('src' => 'assets/images/logo.png', 'style' => 'margin-left: 5px'));?>
<div style="float: right; margin-top: 15px; margin-right: 10px; color: #ccc;">
<a href="javascript:void(0);" onclick="settings.show();" style="padding: 5px">Einstellungen</a> |
<a href="javascript:void(0);" onclick="logout();" style="padding: 5px">Logout</a>
</div>
<?=img(array('src' => 'assets/images/lang_' . $this->config->item('lang_selected') . '.png', 'style' => 'float: right; margin-top: 18px; margin-right: 5px;'));?>
</div>

View File

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

View File

@@ -1,119 +0,0 @@
<?php $this->load->view('header'); ?>
<script type="text/javascript">
var projectTree = new Ext.tree.TreePanel({
region: 'west',
title: "Projekte",
height: 250,
bodyStyle: 'margin-bottom: 6px;',
autoScroll: true,
enableDD: false,
rootVisible: false,
lines: false,
useArrows: true,
id: 'treePanel',
tbar: [{
icon: BASE_PATH + 'assets/images/icons/box--plus.png',
text: "Neues Projekt",
scope: this
},{
id: 'delete',
icon: BASE_PATH + 'assets/images/icons/box--minus.png',
text: "Entfernen",
scope: this
}],
dataUrl: BASE_URL + 'projects/getAvailable',
root: {
nodeType: 'async',
text: "Projekte",
expanded: true,
id: 'projects'
}
});
projectTree.on('click', loadProjectInfo);
var tabPanel = new Ext.TabPanel({
xtype: 'tabpanel',
resizeTabs: false,
minTabWidth: 115,
tabWidth: 135,
enableTabScroll: true,
layoutOnTabChange: true,
border: false,
activeItem: 'tab_welcome',
autoDestroy: false,
items: [{
xtype: 'panel',
id: 'tab_welcome',
bodyStyle: 'padding: 10px',
title: "Willkommen",
closable: true
}]
});
var layoutCenter = new Ext.Panel({
id: 'content-panel',
region: 'center',
layout: 'card',
margins: '0 5 5 0',
activeItem: 0,
border: true,
items: [tabPanel]
});
var layoutMain = new Ext.Viewport({
layout: 'border',
items: [{
height: 46,
region: 'north',
xtype: 'box',
el: 'header',
border: false
}, {
region: 'west',
baseCls: 'x-plain',
xtype: 'panel',
autoHeight: true,
width: 190,
minWidth: 190,
maxWidth: 300,
border: false,
split: true,
margins: '0 0 0 5',
items: [projectTree]
}, layoutCenter]
});
function loadProjectInfo(n) {
if (n.isLeaf()) {
Ext.Ajax.request({
url: BASE_URL + 'projects/detail/' + n.prjId,
method: 'get',
success: function(result, request) {
var theResponse = Ext.util.JSON.decode(result.responseText);
tabPanel.add({
title: "New Tab",
html: "Lade Projekt...",
closable: true
}).show();
},
failure: function(result, request) {
switch(result.status) {
case 404:
Ext.MessageBox.alert("Fehler", "Das gewünschte Projekt konnte nicht gefunden werden.");
break;
case 401:
Ext.MessageBox.alert("Fehler", "Sie besitzen nicht die nötigen Zugriffsrechte, um dieses Projekt zu lesen."
+ "Wenden Sie sich an den Projektbesitzer, um Zugriff zu erhalten.");
break;
};
}
});
}
}
</script>
<div id="main"></div>
<?php $this->load->view('footer'); ?>

View File

@@ -1,37 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Configuration <?=$name?></title>
<link rel="stylesheet" href="<?=base_url()?>/assets/css/inuit.css" />
</head>
<body>
<div class="grids">
<div class="grid grid-10">
<table>
<tr>
<th colspan="2">
Konfigurationsdetails
</th>
</tr>
<tr>
<td>ID</td><td><?=$id?></td>
</tr>
<tr>
<td>Name</td><td><?=$name?></td>
</tr>
</table>
</div>
<div class="grid grid-6">
<table>
<tr>
<th>Beschreibung</th>
</tr>
<tr>
<td><?=nl2br($description)?></td>
</tr>
</table>
</div>
</div>
</body>
</html>

View File

@@ -1,4 +0,0 @@
<?php echo $this->load->view('web/header'); ?>
<?=form_open_multipart();?>
<?=form_close();?>

View File

@@ -1,8 +0,0 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Scattport</title>
<?=link_tag('assets/css/inuit.css');?>
</head>
<body>

View File

@@ -1,40 +0,0 @@
<!DOCTYPE html5>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Create Project</title>
<link rel="stylesheet" href="/ScattPort/assets/css/inuit.css" />
</head>
<body>
<div class="grids">
<div class="grid grid-8">
<?=form_open('web/projects/create')?>
<table>
<tr><th colspan="2">Create a new project</th></tr>
<tr>
<td>
Name:
</td>
<td>
<input type="text" name="f_name" value="<?=$name?>"/><?=form_error('f_name')?>
</td>
</tr>
<tr>
<td>
Beschreibung:
</td>
<td>
<input type="text" name="f_description" value="<?=$description?>"/><?=form_error('description')?>
</td>
</tr>
<tr>
<td align="right" colspan="2">
<input type="submit" />
</td>
</tr>
</table>
<?=form_close()?>
</div>
</div>
</body>
</html>

View File

@@ -1,41 +0,0 @@
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Project <?=$name?></title>
<link rel="stylesheet" href="<?=base_url();?>/assets/css/inuit.css" />
</head>
<body>
<div class="grids">
<div class="grid grid-8">
<table>
<tr><th colspan="2">Projektdetails</th></tr>
<tr>
<td>ID</td>
<td><?=$id?></td>
</tr>
<tr>
<td>Name</td>
<td><?=$name?></td>
</tr>
<tr>
<td>Beschreibung</td>
<td><?=$description?></td>
</tr>
</table>
</div>
<div class="grid grid-8">
<table>
<tr><th>Konfigurationen</th></tr>
<? foreach($configs as $config): ?>
<tr><td><?=anchor('web/configurations/detail/'.$config['id'], $config['name'])?></td></tr>
<? endforeach; ?>
</table>
</div>
</div>
</body>
</html>

View File

@@ -1,24 +0,0 @@
<!DOCTYPE html5>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>List of projects</title>
<link rel="stylesheet" href="<?=base_url();?>/assets/css/inuit.css" />
</head>
<body>
<table>
<tr>
<td><b>id</b></td>
<td><b>name</b></td>
<td><b>owner</b></td>
</tr>
<? foreach($projects as $project): ?>
<tr>
<td><?=anchor('web/projects/detail/'.$project['id'], $project['id'])?></td>
<td><?=$project['name']?></td>
<td><?=$project['owner']?></td>
</tr>
<? endforeach; ?>
</table>
</body>
</html>