Merge branch 'master' of disposed.de:scattport
This commit is contained in:
73
application/views/admin/parameters/create.php
Normal file
73
application/views/admin/parameters/create.php
Normal file
@@ -0,0 +1,73 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="title">
|
||||
<h2><?=_('Add a new parameter');?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<form name="addParameter" method="post" action="<?=site_url('admin/parameters/create/' . $program['id']);?>">
|
||||
<ul>
|
||||
<li>
|
||||
<?=form_label(_('Name'), 'name');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="name" id="name" class="short text" value="<?=set_value('name');?>" />
|
||||
<?=form_error('name');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Human-readable name'), 'readable');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="readable" id="readable" class="medium text" value="<?=set_value('readable');?>" />
|
||||
<?=form_error('readable');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Unit'), 'unit');?>
|
||||
<div>
|
||||
<input type="text" name="unit" id="unit" class="short text" value="<?=set_value('unit');?>" />
|
||||
<?=form_error('unit');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Description'), 'description');?>
|
||||
<div>
|
||||
<textarea name="description" id="description" rows="6" cols="60" class="textarea"><?=set_value('description');?></textarea>
|
||||
<?=form_error('description');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Type'), 'type');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<select name="type" id="type" class="drop">
|
||||
<?php
|
||||
foreach ($types as $type):
|
||||
?>
|
||||
<option value="<?=$type;?>" <?=set_select('type', $type);?>><?=$type;?></option>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</select>
|
||||
<?=form_error('type');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Default value'), 'default_value');?>
|
||||
<div>
|
||||
<input type="text" name="default_value" id="default_value" class="short text" value="<?=set_value('default_value');?>" />
|
||||
<?=form_error('default_value');?>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<a class="button save" href="javascript:void(0);" onclick="$('form[name=addParameter]').submit();"><?=_('Save');?></a>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer');?>
|
||||
74
application/views/admin/parameters/edit.php
Normal file
74
application/views/admin/parameters/edit.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="title">
|
||||
<h2><?php printf(_("Edit parameter '%s'"), $parameter['name']);?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<form name="editParameter" method="post" action="<?=site_url('admin/parameters/edit/' . $parameter['id']);?>">
|
||||
<ul>
|
||||
<li>
|
||||
<?=form_label(_('Name'), 'name');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="name" id="name" class="short text" value="<?=set_value('name', $parameter['name']);?>" />
|
||||
<?=form_error('name');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Human-readable name'), 'readable');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="readable" id="readable" class="medium text" value="<?=set_value('readable', $parameter['readable']);?>" />
|
||||
<?=form_error('readable');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Unit'), 'unit');?>
|
||||
<div>
|
||||
<input type="text" name="unit" id="unit" class="short text" value="<?=set_value('unit', $parameter['unit']);?>" />
|
||||
<?=form_error('unit');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Description'), 'description');?>
|
||||
<div>
|
||||
<textarea name="description" id="description" rows="6" cols="60" class="textarea"><?=set_value('description', $parameter['description']);?></textarea>
|
||||
<?=form_error('description');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Type'), 'type');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<select name="type" id="type" class="drop">
|
||||
<?php
|
||||
foreach ($types as $type):
|
||||
?>
|
||||
<option value="<?=$type;?>" <?=set_select('type', $type, $parameter['type'] == $type);?>><?=$type;?></option>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</select>
|
||||
<?=form_error('type');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Default value'), 'default_value');?>
|
||||
<div>
|
||||
<input type="text" name="default_value" id="default_value" class="short text" value="<?=set_value('default_value', $parameter['default_value']);?>" />
|
||||
<?=form_error('default_value');?>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<a class="button save" href="javascript:void(0);" onclick="$('form[name=editParameter]').submit();"><?=_('Save');?></a>
|
||||
<a class="button cancel" href="<?=site_url('admin/programs/edit/' . $parameter['program_id']);?>"><?=_('Cancel');?></a>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer');?>
|
||||
74
application/views/admin/programs/edit.php
Normal file
74
application/views/admin/programs/edit.php
Normal file
@@ -0,0 +1,74 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
$('#parameters').tableDnD({
|
||||
onDrop: function(table, row) {
|
||||
$.post(SITE_URL + 'ajax/sort_parameters', $.tableDnD.serialize());
|
||||
},
|
||||
dragHandle: 'drag_handle'
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div id="debug"></div>
|
||||
|
||||
<div class="title">
|
||||
<h2><?php printf(_("Edit program '%s'"), $program['name']);?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<form name="createUser" method="post" action="<?=site_url('admin/programs/edit/' . $program['id'])?>">
|
||||
<h3><?=_('Required information');?></h3>
|
||||
<ul>
|
||||
<li>
|
||||
<?=form_label(_('Name of the program'), 'name');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="name" id="name" class="medium text" value="<?=set_value('name', $program['name']);?>" />
|
||||
<?=form_error('name')?>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<a class="button save" href="javascript:void(0);" onclick="$('form[name=createUser]').submit();"><?=_('Save');?></a>
|
||||
<a class="button cancel" href="<?=site_url('admin/programs');?>"><?=_('Cancel');?></a>
|
||||
</p>
|
||||
|
||||
<h3><?=_('Parameters');?></h3>
|
||||
<table class="tableList sortable" id="parameters">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"> </th>
|
||||
<th scope="col"><?=_('Readable name');?></th>
|
||||
<th scope="col"><?=_('Unit');?></th>
|
||||
<th scope="col"><?=_('Type');?></th>
|
||||
<th scope="col"><?=_('Actions');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($parameters as $parameter):
|
||||
?>
|
||||
<tr id="<?=$parameter['id'];?>">
|
||||
<td class="drag_handle"></td>
|
||||
<td><?=$parameter['readable'];?></td>
|
||||
<td><?=$parameter['unit'];?></td>
|
||||
<td><?=$parameter['type'];?></td>
|
||||
<td><?=anchor('admin/parameters/edit/' . $parameter['id'], _('Edit'));?> | <a href="javascript:deleteConfirm('<?=site_url('admin/parameters/delete/' . $parameter['id']);?>');"><?=_('Delete');?></a></td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
<p>
|
||||
<a class="button add" href="<?=site_url('admin/parameters/create/' . $program['id']);?>"><?=_('Add new parameter');?></a>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer');?>
|
||||
36
application/views/admin/programs/list.php
Normal file
36
application/views/admin/programs/list.php
Normal file
@@ -0,0 +1,36 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<div id="content">
|
||||
|
||||
<div class="title">
|
||||
<h2><?=_('Programs');?></h2>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<h3><?=_('Available programs');?></h3>
|
||||
<table class="tableList paginated">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col"><?=_('Name');?></th>
|
||||
<th scope="col"><?=_('Actions');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($programs as $program):
|
||||
?>
|
||||
<tr>
|
||||
<td><?=$program['name'];?></td>
|
||||
<td><?=anchor('admin/programs/edit/' . $program['id'], _('Edit'));?> | <a href="javascript:deleteConfirm('<?=site_url('admin/programs/delete/' . $program['id']);?>');"><?=_('Delete');?></a></td>
|
||||
</tr>
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p><a class="button add" href="<?=site_url('admin/programs/create')?>"><?=_('Add program')?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer');?>
|
||||
@@ -12,6 +12,7 @@
|
||||
<ul>
|
||||
<li>
|
||||
<?=form_label(_('Username'), 'username');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="username" id="username" class="short text" value="<?=set_value('username');?>" />
|
||||
<?=form_error('username')?>
|
||||
@@ -20,6 +21,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Email address'), 'email');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="email" id="email" class="medium text" value="<?=set_value('email');?>" />
|
||||
<?=form_error('email')?>
|
||||
@@ -27,6 +29,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Password'), 'password');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="password" name="password" id="password" class="short text" />
|
||||
<?=form_error('password')?>
|
||||
@@ -34,6 +37,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Confirm password'), 'password_confirm');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="password" name="password_confirm" id="password_confirm" class="short text" />
|
||||
<?=form_error('password_confirm')?>
|
||||
@@ -41,6 +45,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('First name'), 'firstname');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="firstname" id="firstname" class="short text" value="<?=set_value('firstname');?>" />
|
||||
<?=form_error('firstname')?>
|
||||
@@ -48,6 +53,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Last name'), 'lastname');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="lastname" id="lastname" class="short text" value="<?=set_value('lastname');?>" />
|
||||
<?=form_error('lastname')?>
|
||||
@@ -71,13 +77,6 @@
|
||||
</div>
|
||||
<label class="note"><?=('Example');?>: +49 123 456789</label>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Language'), 'language');?>
|
||||
<div>
|
||||
<?=form_dropdown('language', array('English'), null, 'id="language" class="drop"');?>
|
||||
<?=form_error('language')?>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<a class="button save" href="javascript:void(0);" onclick="$('form[name=createUser]').submit();"><?=_('Save');?></a>
|
||||
|
||||
@@ -12,6 +12,7 @@
|
||||
<ul>
|
||||
<li>
|
||||
<?=form_label(_('Email address'), 'email');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="email" id="email" class="medium text" value="<?=set_value('email', $user['email']);?>" />
|
||||
<?=form_error('email')?>
|
||||
@@ -19,6 +20,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('First name'), 'firstname');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="firstname" id="firstname" class="short text" value="<?=set_value('firstname', $user['firstname']);?>" />
|
||||
<?=form_error('firstname')?>
|
||||
@@ -26,6 +28,7 @@
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Last name'), 'lastname');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="lastname" id="lastname" class="short text" value="<?=set_value('lastname', $user['lastname']);?>" />
|
||||
<?=form_error('lastname')?>
|
||||
@@ -49,13 +52,6 @@
|
||||
</div>
|
||||
<label class="note"><?=_('Example');?>: +49 123 456789</label>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Language'), 'language');?>
|
||||
<div>
|
||||
<?=form_dropdown('language', array('English'), null, 'id="language" class="drop"');?>
|
||||
<?=form_error('language')?>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
<p>
|
||||
<a class="button save" href="javascript:void(0);" onclick="$('form[name=createUser]').submit();"><?=_('Save');?></a>
|
||||
|
||||
@@ -16,6 +16,7 @@
|
||||
<th scope="col"><?=_('Actions');?></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
foreach ($users as $user):
|
||||
?>
|
||||
@@ -27,7 +28,6 @@
|
||||
<?php
|
||||
endforeach;
|
||||
?>
|
||||
<tbody>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
11
application/views/auth/email/forgot_password.php
Normal file
11
application/views/auth/email/forgot_password.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?=$username?>,
|
||||
|
||||
To reset your password, please go to the following page:
|
||||
|
||||
{unwrap}<?=site_url('auth/reset_password' . $forgotten_password_code);?>{/unwrap}
|
||||
|
||||
Your password will be automatically reset, and a new password will be emailed to you.
|
||||
|
||||
If you do not wish to reset your password, ignore this message. It will expire in 24 hours.
|
||||
|
||||
Thank you!
|
||||
@@ -0,0 +1,8 @@
|
||||
<?=$username?>,
|
||||
|
||||
Here is your new login information:
|
||||
|
||||
Username: <?=$username?>
|
||||
Password: <?=$password?>
|
||||
|
||||
Thank you!
|
||||
57
application/views/auth/forgot_password.php
Normal file
57
application/views/auth/forgot_password.php
Normal file
@@ -0,0 +1,57 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?=substr($this->config->item('language'), 0, 2);?>">
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<title>ScattPort | <?=_('Login');?></title>
|
||||
|
||||
<?=link_tag('assets/css/login.css');?>
|
||||
<?=link_tag('assets/css/form.css');?>
|
||||
|
||||
<?=script_tag('assets/js/minmax.js');?>
|
||||
<?=script_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js');?>
|
||||
<?=script_tag('assets/js/scattport.js');?>
|
||||
<script type="text/javascript">
|
||||
var SITE_URL = '<?=site_url()?>';
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="box">
|
||||
<h2>Scattport <span class="light"><?=_('Login');?></span></h2>
|
||||
|
||||
<?php
|
||||
if (isset($errors) && is_array($errors)) {
|
||||
foreach ($errors as $e) {
|
||||
echo "<p class=\"error\"><strong>" . _('Error') . ":</strong> " . $e . "</p>";
|
||||
}
|
||||
} else if (isset($messages) && is_array($messages)) {
|
||||
foreach ($messages as $m) {
|
||||
echo "<p class=\"success\"><strong>" . _('Success') . ":</strong> " . $m . "</p>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form name="password" action="<?= site_url('auth/forgot_password') ?>"
|
||||
method="post">
|
||||
<ul>
|
||||
<li>
|
||||
<label><?=form_label(_('Email address'), 'email');?></label>
|
||||
<div>
|
||||
<input type="text" name="email" id="email" class="text max" value="<?=set_value('email');?>" />
|
||||
<?=form_error('email');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<input type="submit" class="button" name="forgot_password" value="<?=_('Submit');?>" />
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
<p><?=anchor('auth/login', _('Back to login page'));?></p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1,60 +1,72 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?=substr($this->config->item('language'), 0, 2);?>">
|
||||
<head>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<title>ScattPort | Login</title>
|
||||
<title>ScattPort | <?=_('Login');?></title>
|
||||
|
||||
<?= link_tag('assets/css/login.css'); ?>
|
||||
<?= link_tag('assets/css/form.css'); ?>
|
||||
|
||||
<?= script_tag('assets/js/minmax.js'); ?>
|
||||
<?= script_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'); ?>
|
||||
<?= script_tag('assets/js/scattport.js'); ?>
|
||||
<?= link_tag('assets/css/login.css'); ?>
|
||||
<?= link_tag('assets/css/form.css'); ?>
|
||||
|
||||
<?= script_tag('assets/js/minmax.js'); ?>
|
||||
<?= script_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js'); ?>
|
||||
<?= script_tag('assets/js/scattport.js'); ?>
|
||||
<script type="text/javascript">
|
||||
var SITE_URL = '<?=site_url()?>';
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="wrapper">
|
||||
<div id="wrapper">
|
||||
|
||||
<div id="box">
|
||||
<h2>Scattport <span class="light">Login</span></h2>
|
||||
<div id="box">
|
||||
<h2>Scattport <span class="light"><?=_('Login');?></span></h2>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
if (isset($error))
|
||||
foreach ($error as $e)
|
||||
echo "<div class=\"error\">" . $e . "</div>";
|
||||
if (isset($notice))
|
||||
foreach ($notice as $n)
|
||||
echo "<div class=\"notice\">" . $n . "</div>";
|
||||
if (isset($success))
|
||||
foreach ($success as $s)
|
||||
echo "<div class=\"success\">" . $s . "</div>";
|
||||
?>
|
||||
</p>
|
||||
<?php
|
||||
if (isset($errors)) {
|
||||
foreach ($errors as $e) {
|
||||
echo "<p class=\"error\"><strong>" . _('Error') . ":</strong> " . $e . "</p>";
|
||||
}
|
||||
} else if (isset($messages) && is_array($messages)) {
|
||||
foreach ($messages as $m) {
|
||||
echo "<p class=\"success\"><strong>" . _('Success') . ":</strong> " . $m . "</p>";
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form action="<?= site_url('auth/login') ?>" method="post" name="loginform">
|
||||
<ul>
|
||||
<li>
|
||||
<?=form_label(_('Username'), 'username');?>
|
||||
<div>
|
||||
<input type="text" name="username" id="username" class="text max" value="<?=set_value('username');?>" />
|
||||
<?=form_error('username');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Password'), 'password');?>
|
||||
<div>
|
||||
<input type="password" name="password" id="password" class="text max" />
|
||||
<?=form_error('password');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<input type="checkbox" name="remember" id="remember" class="radio" value="1"<?=set_checkbox('remember', 1);?> />
|
||||
<label for="remember" class="choice"><?=_('Remember me on this computer')?></label>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<input type="submit" class="button" name="login" value="<?=_('Log in');?>" />
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
<form action="<?= site_url('auth/login') ?>" method="post" name="loginform">
|
||||
<ul>
|
||||
<li>
|
||||
<label>Benutzername</label>
|
||||
<div><input type="text" name="username" class="text medium" /></div>
|
||||
</li>
|
||||
<li>
|
||||
<label>Passwort</label>
|
||||
<div><input type="password" name="password" class="text medium" /></div>
|
||||
</li>
|
||||
<li>
|
||||
<div>
|
||||
<input type="submit" class="button" name="login" value="Einloggen" />
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</form>
|
||||
|
||||
<p><a href="#">Passwort vergessen?</a></p>
|
||||
</div>
|
||||
<p><?=anchor('auth/forgot_password', _('Forgotten password?'));?></p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
100
application/views/auth/settings.php
Normal file
100
application/views/auth/settings.php
Normal file
@@ -0,0 +1,100 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<div id="content">
|
||||
<form name="settings" action="<?=site_url('auth/settings');?>" method="post">
|
||||
<div class="title">
|
||||
<h2><?=_('Settings');?></h2>
|
||||
</div>
|
||||
<ul class="tabs">
|
||||
<li class="active"><a href="#personal"><?=_('Personal information');?></a></li>
|
||||
<li><a href="#settings"><?=_('Settings');?></a></li>
|
||||
<li><a href="#password"><?=_('Password');?></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab_container">
|
||||
<div id="personal" class="tab_content">
|
||||
<ul>
|
||||
<li>
|
||||
<?=form_label(_('First name'), 'firstname');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="firstname" id="firstname" class="short text" value="<?=set_value('firstname', $firstname);?>" />
|
||||
<?=form_error('firstname');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Last name'), 'lastname');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="lastname" id="lastname" class="short text" value="<?=set_value('lastname', $lastname);?>" />
|
||||
<?=form_error('lastname');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Email address'), 'email');?>
|
||||
<span class="req">*</span>
|
||||
<div>
|
||||
<input type="text" name="email" id="email" class="medium text" value="<?=set_value('email', $email);?>" />
|
||||
<?=form_error('email');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Institution'), 'institution');?>
|
||||
<div>
|
||||
<input type="text" name="institution" id="institution" class="medium text" value="<?=set_value('institution', $institution);?>" />
|
||||
<?=form_error('institution');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Phone number'), 'phone');?>
|
||||
<div>
|
||||
<input type="text" name="phone" id="phone" class="short text" value="<?=set_value('phone', $phone);?>" />
|
||||
<?=form_error('phone');?>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="settings" class="tab_content">
|
||||
<ul>
|
||||
<li>
|
||||
<input type="checkbox" id="projects_sortrecently" name="projects_sortrecently" value="1" class="checkbox"/>
|
||||
<label for="projects_sortrecently"><?=_('Sort projects by date of the last access');?></label><br />
|
||||
<label class="note"><?=_('If the projects are sorted by the data of the last access, the rarely used projects "slip" to the end of the list.');?></label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="password" class="tab_content">
|
||||
<ul>
|
||||
<li>
|
||||
<?=form_label(_('Current password'), 'old_password');?>
|
||||
<div>
|
||||
<input type="password" name="old_password" id="old_password" class="short text" value="<?=set_value('old_password');?>" />
|
||||
<?=form_error('old_password');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('New password'), 'new_password');?>
|
||||
<div>
|
||||
<input type="password" name="new_password" id="new_password" class="short text" />
|
||||
<?=form_error('new_password');?>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<?=form_label(_('Confirm new password'), 'new_password_confirm');?>
|
||||
<div>
|
||||
<input type="password" name="new_password_confirm" id="new_password_confirm" class="short text" />
|
||||
<?=form_error('new_password_confirm');?>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tab_buttons">
|
||||
<p>
|
||||
<a class="button save" href="javascript:void(0);" onclick="$('form[name=settings]').submit();"><?=_('Save settings');?></a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer'); ?>
|
||||
@@ -21,7 +21,7 @@
|
||||
<div class="box">
|
||||
<h3><?=_('Administration');?></h3>
|
||||
<p>
|
||||
<a class="button left big" href="#"><?=_('Manage servers');?></a><a class="button middle big" href="#"><?=_('Manage applications');?></a><a class="button right big" href="<?=site_url('users');?>"><?=_('Manage users');?></a>
|
||||
<a class="button left big" href="#"><?=_('Manage servers');?></a><a class="button middle big" href="<?=site_url('admin/programs');?>"><?=_('Manage programs');?></a><a class="button right big" href="<?=site_url('admin/users');?>"><?=_('Manage users');?></a>
|
||||
</p>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<div id="footer">
|
||||
<?
|
||||
if($this->session->userdata('group') == 'admins'):
|
||||
if ($this->access->isAdmin()):
|
||||
?>
|
||||
<span class="left"><strong><?=_('Administration')?> - </strong>
|
||||
<a href="<?=site_url('admin/settings')?>"><?=_('Global settings')?></a> |
|
||||
<a href="<?=site_url('admin/servers')?>"><?=_('Manage calculation servers')?></a> |
|
||||
<a href="<?=site_url('admin/users')?>"><?=_('Manage users')?></a> |
|
||||
<a href="<?=site_url('admin/programs')?>"><?=_('Manage applications')?></a>
|
||||
<a href="<?=site_url('admin/programs')?>"><?=_('Manage programs')?></a>
|
||||
</span>
|
||||
<?
|
||||
endif;
|
||||
|
||||
@@ -1,33 +1,16 @@
|
||||
<?
|
||||
|
||||
/*
|
||||
* Copyright (c) 2011 Karsten Heiken <karsten@disposed.de>
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
if (is_array($messages)):
|
||||
foreach ($messages as $type => $msgs):
|
||||
if (count($msgs > 0)):
|
||||
foreach ($msgs as $message):
|
||||
echo ('<div class="' . $type .'">' . $message . '</div>');
|
||||
endforeach;
|
||||
endif;
|
||||
endforeach;
|
||||
endif;
|
||||
<?php
|
||||
if (is_array($messages)):
|
||||
foreach ($messages as $type => $msgs):
|
||||
if (count($msgs > 0)):
|
||||
foreach ($msgs as $message):
|
||||
?>
|
||||
<div class="<?=$type;?>">
|
||||
<?=$message;?>
|
||||
<a href="javascript:void(0);" onclick="$(this).parent().hide()" class="cross"><span>X</span></a>
|
||||
</div>
|
||||
<?php
|
||||
endforeach;
|
||||
endif;
|
||||
endforeach;
|
||||
endif;
|
||||
?>
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"><head>
|
||||
<!DOCTYPE html>
|
||||
<html lang="<?=substr($this->config->item('language'), 0, 2);?>">
|
||||
<head>
|
||||
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<meta charset="utf-8" />
|
||||
|
||||
<title>ScattPort</title>
|
||||
|
||||
@@ -13,10 +14,12 @@
|
||||
<?=script_tag('https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js');?>
|
||||
<?=script_tag('assets/js/scattport.js');?>
|
||||
<?=script_tag('assets/js/tablednd.jquery.js');?>
|
||||
<?=script_tag('assets/js/jtip.js');?>
|
||||
<script type="text/javascript">
|
||||
var SITE_URL = '<?=site_url()?>';
|
||||
</script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<div id="header">
|
||||
@@ -27,7 +30,7 @@
|
||||
<option value="<?=site_url('projects');?>">Projekte verwalten</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="menu"><?= _('Hello,') ?> <a href="<?=site_url('');?>"><?=$this->user->profile()->firstname;?> <?=$this->user->profile()->lastname;?></a>! | <?=lang_select('assets/images');?> | <a href="#"><?=_('Help')?></a> | <?=anchor('settings', _('Settings'));?> | <?=anchor('auth/logout', _('Logout'));?></div>
|
||||
<div class="menu"><?= _('Hello,') ?> <a href="<?=site_url('');?>"><?=$this->user->profile()->firstname;?> <?=$this->user->profile()->lastname;?></a>! | <?=lang_select('assets/images');?> | <a href="#"><?=_('Help')?></a> | <?=anchor('auth/settings', _('Settings'));?> | <?=anchor('auth/logout', _('Logout'));?></div>
|
||||
</div>
|
||||
|
||||
<div id="wrapper">
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,48 +0,0 @@
|
||||
<?php $this->load->view('header');?>
|
||||
|
||||
<div id="content">
|
||||
<form action="#" method="post">
|
||||
<div class="title">
|
||||
<h2><?=_('Settings');?></h2>
|
||||
</div>
|
||||
<ul class="tabs">
|
||||
<li class="active"><a href="#personal"><?=_('Personal Information');?></a></li>
|
||||
<li><a href="#settings"><?=_('Settings');?></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="tab_container">
|
||||
<div id="personal" class="tab_content">
|
||||
<ul>
|
||||
<?php foreach($profile_fields as $field):?>
|
||||
<li>
|
||||
<label><?=$field[1]?></label>
|
||||
<div>
|
||||
<input type="<?=$field[2]?>" name="<?=$field[0]?>" class="short text" />
|
||||
</div>
|
||||
</li>
|
||||
<?php endforeach;?>
|
||||
</ul>
|
||||
</div>
|
||||
<div id="settings" class="tab_content">
|
||||
<ul>
|
||||
<li>
|
||||
<label><?=_('Language');?></label>
|
||||
<div>
|
||||
<select id="language_select" name="language_select" class="drop">
|
||||
<option value="de">Deutsch</option>
|
||||
<option value="en">Englisch</option>
|
||||
</select>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<input type="checkbox" id="projects_sortrecently" name="projects_sortrecently" value="1" class="checkbox"/>
|
||||
<label for="projects_sortrecently"><?=_('Sort projects by date of the last access');?></label><br />
|
||||
<label class="note"><?=_('If the projects are sorted by the data of the last access, the rarely used projects "slip" to the end of the list.');?></label>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<?php $this->load->view('footer'); ?>
|
||||
Reference in New Issue
Block a user