adding the new control panel (completed)
parent
16fdc11cb0
commit
44f8e67fd2
|
|
@ -27,6 +27,18 @@ if ($user->isAdmin()) {
|
||||||
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
||||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/sortable.js"></script>
|
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/sortable.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
window.onload = function() {
|
||||||
|
contenedor = new Fx.Style('divMessages', 'opacity', {duration: 5000, onComplete:
|
||||||
|
function() {
|
||||||
|
document.getElementById('divMessages').style.display="none";
|
||||||
|
}
|
||||||
|
});
|
||||||
|
contenedor.custom(1,0);
|
||||||
|
}
|
||||||
|
-->
|
||||||
|
</script>
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="screen">
|
||||||
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
||||||
</style>
|
</style>
|
||||||
|
|
@ -52,31 +64,31 @@ if ($user->isAdmin()) {
|
||||||
<li><a href="<?=$conf->urlGelato;?>/admin/user.php">Add user</a></li>
|
<li><a href="<?=$conf->urlGelato;?>/admin/user.php">Add user</a></li>
|
||||||
<li class="selected"><a href="#">Users</a></li>
|
<li class="selected"><a href="#">Users</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
<p> </p>
|
||||||
<?
|
<?
|
||||||
if (isset($_GET["added"])) {
|
if (isset($_GET["added"])) {
|
||||||
if ($_GET["added"]=="true") {
|
if ($_GET["added"]=="true") {
|
||||||
echo "<div class=\"exito\">The user has been added successfully.</div>";
|
echo "<div class=\"exito\" id=\"divMessages\">The user has been added successfully.</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["delete"])) {
|
if (isset($_GET["delete"])) {
|
||||||
if ($_GET["delete"]=="true") {
|
if ($_GET["delete"]=="true") {
|
||||||
echo "<div class=\"exito\">The user has been eliminated successfully.</div>";
|
echo "<div class=\"exito\" id=\"divMessages\">The user has been eliminated successfully.</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["modified"])) {
|
if (isset($_GET["modified"])) {
|
||||||
if ($_GET["modified"]=="true") {
|
if ($_GET["modified"]=="true") {
|
||||||
echo "<div class=\"exito\">The user has been modified successfully.</div>";
|
echo "<div class=\"exito\" id=\"divMessages\">The user has been modified successfully.</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_GET["error"])) {
|
if (isset($_GET["error"])) {
|
||||||
if ($_GET["error"]==1) {
|
if ($_GET["error"]==1) {
|
||||||
echo "<div class=\"error\">The username is not available.</div>";
|
echo "<div class=\"error\" id=\"divMessages\">The username is not available.</div>";
|
||||||
} elseif ($_GET["error"]==2) {
|
} elseif ($_GET["error"]==2) {
|
||||||
echo "<div class=\"error\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
|
echo "<div class=\"error\" id=\"divMessages\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
|
|
@ -1,344 +0,0 @@
|
||||||
/* Estructura */
|
|
||||||
|
|
||||||
*{ padding:0; margin:0;}
|
|
||||||
|
|
||||||
body {
|
|
||||||
background-color: #F7F7F7;
|
|
||||||
color: #333333;
|
|
||||||
font-family: "Trebuchet MS", Vendana, Arial, sans-serif;
|
|
||||||
font-size: 10pt;
|
|
||||||
font-weight: normal;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
#div-process {
|
|
||||||
padding-left: 22px;
|
|
||||||
font: normal 14.5px/17px georgia, "times new roman", serif;
|
|
||||||
background: url(../../images/proceso.gif) no-repeat 0% 10%;
|
|
||||||
float: right;
|
|
||||||
height: 20px;
|
|
||||||
width: 150px;
|
|
||||||
border: 1px solid #000066;
|
|
||||||
background-color:#FFFFCC;
|
|
||||||
color:#011940;
|
|
||||||
}
|
|
||||||
|
|
||||||
#titulo {
|
|
||||||
background-color: #FcFcFc;
|
|
||||||
border:1px solid #FcFcFc;
|
|
||||||
margin-top: 0;
|
|
||||||
padding-top: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
#contenido {
|
|
||||||
background-color: #F7F7F7;
|
|
||||||
border:1px solid #F7F7F7;
|
|
||||||
}
|
|
||||||
.piccola{ width:30%; margin: 0 auto;}
|
|
||||||
.center{ width:60%; margin: 0 auto;}
|
|
||||||
.right{ width:40%; float:right;}
|
|
||||||
.left{ width: 60%; float:left; }
|
|
||||||
.ventana{ margin:10px; padding:0 0 4px 0; border:1px solid #999; background-color:#DEDEDE;}
|
|
||||||
.titulo{ background-color:#336699; color:#FFFFFF; font-weight:bold; text-align:center; border-bottom:2px solid #FFF;}
|
|
||||||
|
|
||||||
#contenido h3 {
|
|
||||||
font: normal 17.5px/17px georgia, "times new roman", serif;
|
|
||||||
margin-bottom: 0;
|
|
||||||
padding-bottom: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pie {
|
|
||||||
clear: both;
|
|
||||||
color: #808080;
|
|
||||||
background: #FFF;
|
|
||||||
font-size: 0.8em;
|
|
||||||
text-align: right;
|
|
||||||
padding: 9px 10px 9px 0;
|
|
||||||
margin: 10px 5px 10px 5px;
|
|
||||||
border: 1px solid #ccc;
|
|
||||||
width:60%;
|
|
||||||
margin: 0 auto;
|
|
||||||
margin-top:50px;
|
|
||||||
text-align:center;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pie a {
|
|
||||||
text-decoration: underline;
|
|
||||||
color: #3A6794;
|
|
||||||
}
|
|
||||||
|
|
||||||
#pie a:hover {
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Mensajes para el usuario */
|
|
||||||
|
|
||||||
.error {
|
|
||||||
width:80%;
|
|
||||||
background: #FFF7F2 url('../../images/error.png') 15px center no-repeat;
|
|
||||||
border-top: 2px solid #CC0000;
|
|
||||||
border-bottom: 2px solid #CC0000;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 5px 20px 5px 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.exito {
|
|
||||||
width:80%;
|
|
||||||
background: #F4FBF5 url('../../images/information.png') 15px center no-repeat;
|
|
||||||
border-top: 2px solid #006600;
|
|
||||||
border-bottom: 2px solid #006600;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 5px 20px 5px 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.info {
|
|
||||||
width:80%;
|
|
||||||
background: #FFF6BF url('../../images/icon_info.gif') 15px center no-repeat;
|
|
||||||
border-top: 2px solid #FFD324;
|
|
||||||
border-bottom: 2px solid #FFD324;
|
|
||||||
margin: 0 auto;
|
|
||||||
padding: 5px 20px 5px 45px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Formularios */
|
|
||||||
|
|
||||||
#formulario {
|
|
||||||
margin: 30px;
|
|
||||||
padding: 0px;
|
|
||||||
border: 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#formulario fieldset{ border: none;}
|
|
||||||
#formulario label{ width:100px; text-align:left;}
|
|
||||||
label.required { padding-left: 22px; background: url(../../images/required.gif) no-repeat 0% 50%; }
|
|
||||||
label.problem { padding-left: 22px; background: url(../../images/caution.gif) no-repeat 0% 50%; }
|
|
||||||
label.completed { padding-left: 22px; background: url(../../images/complete.gif) no-repeat 0% 50%; }
|
|
||||||
#formulario p{margin: 8px 0 ;}
|
|
||||||
.input-text{ width: 100%; border: 1px solid #7591B5; background-color:#fff; margin: 1px; padding: 3px; font: 14px Verdana, Arial, Helvetica, sans-serif;}
|
|
||||||
.input-corto{ width: 200px; border: 1px solid #7591B5; background-color:#fff; padding: 1px 0;}
|
|
||||||
.check { border: 1px solid #7591B5; background-color:#fff; }
|
|
||||||
input:hover {
|
|
||||||
background: #f5f5f5;
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
input.submit
|
|
||||||
{
|
|
||||||
width: 200px;
|
|
||||||
margin-top: 0.5em;
|
|
||||||
margin-bottom: 0.5em;
|
|
||||||
text-align: center;
|
|
||||||
cursor:pointer;
|
|
||||||
border-bottom:solid 2px #000;
|
|
||||||
border-right:solid 2px #000;
|
|
||||||
border-top:solid 1px #336699;
|
|
||||||
border-left:solid 1px #336699;
|
|
||||||
background-color:#002255;
|
|
||||||
color:#fff;
|
|
||||||
font-size:105%;
|
|
||||||
text-decoration:none;
|
|
||||||
padding:.4em;
|
|
||||||
font-weight:bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
input.submit:hover
|
|
||||||
{
|
|
||||||
text-decoration:none;
|
|
||||||
background-color:#003366;
|
|
||||||
color:#fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submit_naranja {
|
|
||||||
width: 200px;
|
|
||||||
margin-top: 0.5em;
|
|
||||||
margin-bottom: 0.5em;
|
|
||||||
text-align: center;
|
|
||||||
cursor:pointer;
|
|
||||||
border-bottom:solid 2px #E55C00;
|
|
||||||
border-right:solid 2px #E55C00;
|
|
||||||
border-top:solid 1px #FF751A;
|
|
||||||
border-left:solid 1px #FF751A;
|
|
||||||
background-color:#ff6600;
|
|
||||||
color:#fff;
|
|
||||||
font-size:105%;
|
|
||||||
text-decoration:none;
|
|
||||||
padding:.4em;
|
|
||||||
font-weight:bold;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submit_naranja:hover {
|
|
||||||
text-decoration:none;
|
|
||||||
background-color:#FF751A;
|
|
||||||
color:#fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submit_normal_azul {
|
|
||||||
border-bottom:solid 2px #000;
|
|
||||||
border-right:solid 2px #000;
|
|
||||||
border-top:solid 1px #336699;
|
|
||||||
border-left:solid 1px #336699;
|
|
||||||
background-color:#002255;
|
|
||||||
color:#fff;
|
|
||||||
margin-left:10px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.submit_normal_azul:hover {
|
|
||||||
text-decoration:none;
|
|
||||||
background-color:#003366;
|
|
||||||
color:#fff;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* Menu */
|
|
||||||
|
|
||||||
#menuContenedor a {
|
|
||||||
text-decoration: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menuContenedor ul
|
|
||||||
{
|
|
||||||
padding: 0;
|
|
||||||
margin: 0;
|
|
||||||
list-style-type: none;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menuContenedor ul li {
|
|
||||||
display: inline;
|
|
||||||
margin: 0 0 0px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*1st level elements*/
|
|
||||||
#menuContenedor ul
|
|
||||||
{
|
|
||||||
border-top: 1px solid #FcFcFc;
|
|
||||||
border-bottom: 1px solid #36c;
|
|
||||||
background-color: #FcFcFc;
|
|
||||||
padding: 2px 0;
|
|
||||||
margin-bottom: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menuContenedor ul a,
|
|
||||||
#menuContenedor ul a:link,
|
|
||||||
#menuContenedor ul a:visited
|
|
||||||
{
|
|
||||||
background: #900;
|
|
||||||
border: 1px solid #FFF;
|
|
||||||
bottom: 2px;
|
|
||||||
color: #FFF;
|
|
||||||
height: 1em;
|
|
||||||
margin:0;
|
|
||||||
margin-left: 15px;
|
|
||||||
padding: 2px 4px 2px 4px;
|
|
||||||
position: relative;
|
|
||||||
right: 2px;
|
|
||||||
text-decoration: none;
|
|
||||||
z-index:1;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menuContenedor ul a:hover,
|
|
||||||
#menuContenedor ul a:focus
|
|
||||||
{
|
|
||||||
background: #C00;
|
|
||||||
bottom: 1px;
|
|
||||||
color: #FFF;
|
|
||||||
position: relative;
|
|
||||||
right: 1px;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*current Link*/
|
|
||||||
#menuContenedor ul a#current,
|
|
||||||
#menuContenedor ul a#current:link,
|
|
||||||
#menuContenedor ul a#current:visited {
|
|
||||||
background: #369;
|
|
||||||
border-bottom: none;
|
|
||||||
border-left: 1px solid #9CC;
|
|
||||||
border-right: 1px solid #9CC;
|
|
||||||
border-top: 1px solid #9CC;
|
|
||||||
bottom: 0;
|
|
||||||
color: #FFF;
|
|
||||||
cursor: text;
|
|
||||||
margin: 0;
|
|
||||||
margin-left: 15px;
|
|
||||||
padding: 2px 5px 0 5px;
|
|
||||||
position: relative;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*Second and subsequent levels*/
|
|
||||||
#menuContenedor ul ul
|
|
||||||
{
|
|
||||||
font-size: 80%;
|
|
||||||
position: absolute;
|
|
||||||
top: 20px;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
border-top: none;
|
|
||||||
background-color: #369;
|
|
||||||
height: 2em;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menuContenedor ul ul li { display: inline; }
|
|
||||||
|
|
||||||
#menuContenedor ul ul a,
|
|
||||||
#menuContenedor ul ul a:link,
|
|
||||||
#menuContenedor ul ul a:visited
|
|
||||||
{
|
|
||||||
background-color: #95B1BB;
|
|
||||||
border: 1px solid black;
|
|
||||||
color: black;
|
|
||||||
top: 12px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menuContenedor ul ul a:hover,
|
|
||||||
#menuContenedor ul ul a:focus
|
|
||||||
{
|
|
||||||
background-color: #9CD4F7;
|
|
||||||
border: 1px solid #000000;
|
|
||||||
color: black;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*current Link*/
|
|
||||||
#menuContenedor ul ul a#subcurrent,
|
|
||||||
#menuContenedor ul ul a#subcurrent:link,
|
|
||||||
#menuContenedor ul ul a#subcurrent:visited {
|
|
||||||
background-color: #F7F7F7;
|
|
||||||
border: 1px solid #F7F7F7;
|
|
||||||
color: black;
|
|
||||||
cursor: text;
|
|
||||||
margin: 0;
|
|
||||||
margin-left: 15px;
|
|
||||||
position: relative;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.imgmenu img {
|
|
||||||
display: block;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#menu {
|
|
||||||
display:block;
|
|
||||||
top:50px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.opcion {
|
|
||||||
float: left;
|
|
||||||
margin-left: 15px;
|
|
||||||
padding-right: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.opcion img {
|
|
||||||
display: block;
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
border: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
h2 {color: #9a4723; margin:0px;}
|
|
||||||
|
|
||||||
legend {color: #9a4723; margin:0px; font-size:large;}
|
|
||||||
251
admin/user.php
251
admin/user.php
|
|
@ -47,141 +47,142 @@ if ($user->isAdmin()) {
|
||||||
if ($isEdition) {
|
if ($isEdition) {
|
||||||
$register = $user->getUserByID($userId);
|
$register = $user->getUserByID($userId);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
<!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" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title>gelato :: Add user</title>
|
<title>gelato :: add user</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
||||||
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||||
<script language="javascript" type="text/javascript">
|
<script language="javascript" type="text/javascript">
|
||||||
function validateFrmAddUser() {
|
function validateFrmAddUser() {
|
||||||
if ($('login').value == "") {
|
if ($('login').value == "") {
|
||||||
alert("The username field cannot be left blank.");
|
alert("The username field cannot be left blank.");
|
||||||
document.frm_add.login.select();
|
document.frm_add.login.select();
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
if ($('password').value == "") {
|
|
||||||
alert("The password field cannot be left blank.");
|
|
||||||
document.frm_add.password.select();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
if ($('password').value != $('repass').value) {
|
|
||||||
alert("The password must match,\nplease verify them.");
|
|
||||||
document.frm_add.password.focus();
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
if ($('password').value == "") {
|
||||||
|
alert("The password field cannot be left blank.");
|
||||||
|
document.frm_add.password.select();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if ($('password').value != $('repass').value) {
|
||||||
|
alert("The password must match,\nplease verify them.");
|
||||||
|
document.frm_add.password.focus();
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
function verifyExistingUser() {
|
function verifyExistingUser() {
|
||||||
$('div-process').style.display="block";
|
$('div-process').style.display="block";
|
||||||
el = $('target');
|
el = $('target');
|
||||||
el.style.display="block";
|
el.style.display="block";
|
||||||
var path = 'ajax.php?action=verify&login='+$('login').value;
|
var path = 'ajax.php?action=verify&login='+$('login').value;
|
||||||
new Ajax(path, {
|
new Ajax(path, {
|
||||||
onComplete:function(e) {
|
onComplete:function(e) {
|
||||||
el.setHTML(e);
|
el.setHTML(e);
|
||||||
$('div-process').style.display="none";
|
$('div-process').style.display="none";
|
||||||
}
|
}
|
||||||
}).request();
|
}).request();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style type="text/css" media="screen">
|
<style type="text/css" media="screen">
|
||||||
@import "<?=$conf->urlGelato;?>/admin/css/style-codice.css";
|
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
|
||||||
<div id="div-process" style="display:none;">Processing request...</div>
|
<body>
|
||||||
<div id="titulo">
|
<div id="div-process" style="display:none;">Processing request...</div>
|
||||||
<img src="<?=$conf->urlGelato;?>/images/logo.jpg" alt="gelato CMS" title="gelato CMS" />
|
<div id="cont">
|
||||||
|
<div id="head">
|
||||||
|
<h1><a href="<?=$conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
|
||||||
|
<ul id="nav">
|
||||||
|
<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="main">
|
||||||
|
|
||||||
<div id="menuContenedor">
|
<div class="box">
|
||||||
<ul>
|
<ul class="menu manage">
|
||||||
<li id="active"><a href="#" id="current">Users</a></li>
|
<h3>Start session</h3>
|
||||||
|
<li><a href="index.php">Post</a></li>
|
||||||
|
<li><a href="admin.php">Users</a></li>
|
||||||
|
<li class="selected"><a href="#"><? echo ($isEdition) ? "Edit" : "Add"; ?></a></li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="tabla">
|
||||||
|
|
||||||
|
<form action="user.php" method="post" onSubmit="return validateFrmAddUser();" name="frm_add" class="newpost">
|
||||||
|
<fieldset>
|
||||||
<ul>
|
<ul>
|
||||||
<li id="subactive"><a href="#" id="subcurrent"><? echo ($isEdition) ? "Edit" : "Add"; ?></a></li>
|
<?
|
||||||
<li><a href="admin.php">Manage</a></li>
|
if ($isEdition) {
|
||||||
|
?>
|
||||||
|
<input type="hidden" name="id_user" id="id_user" value="<?=$userId;?>" />
|
||||||
|
<?
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<li>
|
||||||
|
<label for="login">user:</label>
|
||||||
|
<input class="txt" name="login" id="login" type="text" autocomplete="off" value="<?=isset($register["login"])?$register["login"]:"";?>" />
|
||||||
|
<?
|
||||||
|
if (!$isEdition) {
|
||||||
|
?>
|
||||||
|
<script language="javascript" type="text/javascript">
|
||||||
|
document.write("<br /><input class='submit_normal_azul' name='btnVerifyUser' id='btnVerifyUser' type='button' value='Check availability' onclick='verifyExistingUser()' />");
|
||||||
|
</script>
|
||||||
|
<?
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<div id="target" style="display:none;"></div>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="pass">password:</label>
|
||||||
|
<input class="txt" name="password" id="password" type="password" />
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="repass">retype password:</label>
|
||||||
|
<input class="txt" name="repass" id="repass" type="password" />
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="name">name:</label>
|
||||||
|
<input class="txt" name="name" id="name" type="text" value="<?=isset($register["name"])?$register["name"]:"";?>" />
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="email">e-mail:</label>
|
||||||
|
<input class="txt" name="email" id="email" type="text" value="<?=isset($register["email"])?$register["email"]:"";?>" />
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="website">website:</label>
|
||||||
|
<input class="txt" name="website" id="website" type="text" value="<?=isset($register["website"])?$register["website"]:"";?>" />
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<label for="about">about:</label><br />
|
||||||
|
<textarea rows="5" cols="50" name="about" id="about" tabindex="7"><?=isset($register["about"])?$register["about"]:"";?></textarea>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<input name="btnAdd" type="submit" value="<? echo ($isEdition) ? "Modify" : "Add"; ?> user" />
|
||||||
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</fieldset>
|
||||||
<li><a href="index.php">Control Panel</a></li>
|
</form>
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="contenido">
|
|
||||||
<div class="center">
|
|
||||||
<div class="ventana">
|
|
||||||
<p class="titulo"><span class="handle"><? echo ($isEdition) ? "Edit" : "Add"; ?> the user information</span></p>
|
|
||||||
<div id="formulario">
|
|
||||||
|
|
||||||
<form action="user.php" method="post" onSubmit="return validateFrmAddUser();" name="frm_add">
|
|
||||||
<fieldset>
|
|
||||||
<?
|
|
||||||
if ($isEdition) {
|
|
||||||
?>
|
|
||||||
<input type="hidden" name="id_user" id="id_user" value="<?=$userId;?>" />
|
|
||||||
<?
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<p>
|
|
||||||
<label for="login">user:</label>
|
|
||||||
<input class="input-text" name="login" id="login" type="text" autocomplete="off" value="<?=isset($register["login"])?$register["login"]:"";?>" />
|
|
||||||
<?
|
|
||||||
if (!$isEdition) {
|
|
||||||
?>
|
|
||||||
<script language="javascript" type="text/javascript">
|
|
||||||
document.write("<br /><input class='submit_normal_azul' name='btnVerifyUser' id='btnVerifyUser' type='button' value='Check availability' onclick='verifyExistingUser()' />");
|
|
||||||
</script>
|
|
||||||
<?
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<div id="target" style="display:none;"></div>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="pass">password:</label>
|
|
||||||
<input class="input-text" name="password" id="password" type="password" />
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="repass">retype password:</label>
|
|
||||||
<input class="input-text" name="repass" id="repass" type="password" />
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="name">name:</label>
|
|
||||||
<input class="input-text" name="name" id="name" type="text" value="<?=isset($register["name"])?$register["name"]:"";?>" />
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="email">e-mail:</label>
|
|
||||||
<input class="input-text" name="email" id="email" type="text" value="<?=isset($register["email"])?$register["email"]:"";?>" />
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="website">website:</label>
|
|
||||||
<input class="input-text" name="website" id="website" type="text" value="<?=isset($register["website"])?$register["website"]:"";?>" />
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<label for="about">about:</label><br />
|
|
||||||
<textarea rows="5" cols="50" name="about" id="about" tabindex="7"><?=isset($register["about"])?$register["about"]:"";?></textarea>
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
<input class="submit" name="btnAdd" type="submit" value="<? echo ($isEdition) ? "Modify" : "Add"; ?> user" />
|
|
||||||
</p>
|
|
||||||
</fieldset>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div id="pie">
|
<div class="footer-box"> </div>
|
||||||
<p>
|
|
||||||
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
<div id="foot">
|
||||||
</html>
|
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
91
login.php
91
login.php
|
|
@ -28,48 +28,49 @@ if ($user->isAdmin()) {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
?>
|
?>
|
||||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
|
<!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" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
<head>
|
<head>
|
||||||
<title>gelato :: Login screen</title>
|
<title>gelato :: login screen</title>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
|
||||||
<script src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js" type="text/javascript"></script>
|
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
|
||||||
<style type="text/css" media="screen">
|
<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/sortable.js"></script>
|
||||||
@import "<?=$conf->urlGelato;?>/admin/css/style-codice.css";
|
<style type="text/css" media="screen">
|
||||||
</style>
|
@import "<?=$conf->urlGelato;?>/admin/css/style.css";
|
||||||
</head>
|
</style>
|
||||||
<body>
|
</head>
|
||||||
|
|
||||||
<div id="titulo">
|
<body>
|
||||||
<img src="<?=$conf->urlGelato;?>/images/logo.jpg" alt="gelato CMS" title="gelato CMS" />
|
<div id="div-process" style="display:none;">Processing request...</div>
|
||||||
|
<div id="cont">
|
||||||
|
<div id="head">
|
||||||
|
<h1><a href="<?=$conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
|
||||||
|
<ul id="nav">
|
||||||
|
<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="main">
|
||||||
|
|
||||||
<div id="menuContenedor">
|
<div class="box">
|
||||||
<ul>
|
<ul class="menu manage">
|
||||||
<li id="active"><a href="<?=$conf->urlGelato;?>/login.php" id="current">Session</a></li>
|
<h3>Start session</h3>
|
||||||
<ul>
|
<li class="selected"><a href="#">Login</a></li>
|
||||||
<li id="subactive"><a href="#" id="subcurrent">Begin session</a></li>
|
</ul>
|
||||||
</ul>
|
|
||||||
</li>
|
|
||||||
<li><a href="index.php">Back to the tumblelog</a></li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div id="contenido">
|
<div class="tabla">
|
||||||
<div class="piccola">
|
|
||||||
<div class="ventana">
|
<form action="login.php" method="post" id="valida" autocomplete="off" class="newpost">
|
||||||
<p class="titulo"><span class="handle" style="cursor:move;">Ingresar al sistema</span></p>
|
|
||||||
<div id="formulario">
|
|
||||||
<form action="login.php" method="post" id="valida" autocomplete="off">
|
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<p><label for="login">User:</label>
|
<ul>
|
||||||
<input id="login" name="login" type="text" class="input-corto" /></p>
|
<li><label for="login">User:</label>
|
||||||
<p><label for="pass">Password:</label>
|
<input id="login" name="login" type="text" class="txt" /></li>
|
||||||
<input id="pass" name="pass" type="password" class="input-corto" /></p>
|
<li><label for="pass">Password:</label>
|
||||||
<p><label for="save_pass">Remember me:</label>
|
<input id="pass" name="pass" type="password" class="txt" /></li>
|
||||||
<input id="save_pass" name="save_pass" type="checkbox" class="check" /></p>
|
<li><label for="save_pass">Remember me:</label>
|
||||||
<p><input class="submit" name="btnLogin" type="submit" value="Login" /></p>
|
<input id="save_pass" name="save_pass" type="checkbox" /></li>
|
||||||
|
<li><input name="btnLogin" type="submit" value="Login" /></li>
|
||||||
|
</ul>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</form>
|
</form>
|
||||||
<?
|
<?
|
||||||
|
|
@ -90,18 +91,16 @@ if ($user->isAdmin()) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</div>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div id="pie">
|
<div class="footer-box"> </div>
|
||||||
<p>
|
|
||||||
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div id="foot">
|
||||||
</body>
|
<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<?
|
<?
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue