Kaynağa Gözat

adding the new control panel (completed)

pecesama 17 yıl önce
ebeveyn
işleme
44f8e67fd2
4 değiştirilmiş dosya ile 189 ekleme ve 521 silme
  1. 18 6
      admin/admin.php
  2. 0 344
      admin/css/style-codice.css
  3. 124 123
      admin/user.php
  4. 47 48
      login.php

+ 18 - 6
admin/admin.php Dosyayı Görüntüle

@@ -27,6 +27,18 @@ if ($user->isAdmin()) {
27 27
 		<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
28 28
 		<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
29 29
 		<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/sortable.js"></script>
30
+		<script type="text/javascript">
31
+		<!--
32
+			window.onload = function() {
33
+				contenedor = new Fx.Style('divMessages', 'opacity', {duration: 5000, onComplete:
34
+					function() {
35
+						document.getElementById('divMessages').style.display="none";
36
+					}
37
+				});
38
+				contenedor.custom(1,0);
39
+			}
40
+		-->
41
+		</script>
30 42
 		<style type="text/css" media="screen">	
31 43
 			@import "<?=$conf->urlGelato;?>/admin/css/style.css";
32 44
 		</style>
@@ -52,31 +64,31 @@ if ($user->isAdmin()) {
52 64
 					<li><a href="<?=$conf->urlGelato;?>/admin/user.php">Add user</a></li>
53 65
 					<li class="selected"><a href="#">Users</a></li>
54 66
 					</ul>
55
-
67
+					<p>&nbsp;</p>
56 68
 <?					
57 69
 						if (isset($_GET["added"])) {
58 70
 							if ($_GET["added"]=="true") {
59
-								echo "<div class=\"exito\">The user has been added successfully.</div>";
71
+								echo "<div class=\"exito\" id=\"divMessages\">The user has been added successfully.</div>";
60 72
 							}
61 73
 						}
62 74
 						
63 75
 						if (isset($_GET["delete"])) {
64 76
 							if ($_GET["delete"]=="true") {
65
-								echo "<div class=\"exito\">The user has been eliminated successfully.</div>";
77
+								echo "<div class=\"exito\" id=\"divMessages\">The user has been eliminated successfully.</div>";
66 78
 							}
67 79
 						}
68 80
 						
69 81
 						if (isset($_GET["modified"])) {
70 82
 							if ($_GET["modified"]=="true") {
71
-								echo "<div class=\"exito\">The user has been modified successfully.</div>";
83
+								echo "<div class=\"exito\" id=\"divMessages\">The user has been modified successfully.</div>";
72 84
 							}
73 85
 						}
74 86
 						
75 87
 						if (isset($_GET["error"])) {
76 88
 							if ($_GET["error"]==1) {
77
-								echo "<div class=\"error\">The username is not available.</div>";
89
+								echo "<div class=\"error\" id=\"divMessages\">The username is not available.</div>";
78 90
 							} elseif ($_GET["error"]==2) {
79
-								echo "<div class=\"error\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
91
+								echo "<div class=\"error\" id=\"divMessages\"><strong>Error on the database server: </strong>".$_GET["des"]."</div>";
80 92
 							}
81 93
 						}
82 94
 ?>						

+ 0 - 344
admin/css/style-codice.css Dosyayı Görüntüle

@@ -1,344 +0,0 @@
1
-/* Estructura */
2
-
3
-*{ padding:0; margin:0;}
4
-
5
-body {
6
-	background-color: #F7F7F7;
7
-	color: #333333;
8
-	font-family: "Trebuchet MS", Vendana, Arial, sans-serif;
9
-	font-size: 10pt;
10
-	font-weight: normal;
11
-	margin: auto;
12
-}
13
-
14
-#div-process {
15
-	padding-left: 22px;	
16
-	font: normal 14.5px/17px georgia, "times new roman", serif;
17
-	background: url(../../images/proceso.gif) no-repeat 0% 10%;
18
-	float: right;
19
-	height: 20px;
20
-	width: 150px;
21
-	border: 1px solid #000066;
22
-	background-color:#FFFFCC;
23
-	color:#011940;
24
-}
25
-
26
-#titulo {
27
-	background-color: #FcFcFc;
28
-	border:1px solid #FcFcFc;
29
-	margin-top: 0;
30
-	padding-top: 0;
31
-	width: 100%;
32
-}
33
-
34
-#contenido {
35
-	background-color: #F7F7F7;
36
-	border:1px solid #F7F7F7;
37
-}
38
-	.piccola{ width:30%; margin: 0 auto;}
39
-	.center{ width:60%; margin: 0 auto;}	
40
-	.right{ width:40%; float:right;}
41
-	.left{ width: 60%; float:left; }
42
-	.ventana{ margin:10px; padding:0 0 4px 0; border:1px solid #999; background-color:#DEDEDE;}
43
-		.titulo{ background-color:#336699; color:#FFFFFF; font-weight:bold; text-align:center; border-bottom:2px solid #FFF;}
44
-
45
-#contenido h3 {
46
-	font: normal 17.5px/17px georgia, "times new roman", serif;
47
-	margin-bottom: 0;
48
-	padding-bottom: 0;
49
-}
50
-
51
-#pie {
52
-	clear: both;
53
-	color: #808080;
54
-	background: #FFF;
55
-	font-size: 0.8em;
56
-	text-align: right;
57
-	padding: 9px 10px 9px 0;
58
-	margin: 10px 5px 10px 5px;
59
-	border: 1px solid #ccc;
60
-	width:60%;
61
-	margin: 0 auto;
62
-	margin-top:50px;
63
-	text-align:center;	
64
-}
65
-
66
-#pie a {
67
-	text-decoration: underline;
68
-	color: #3A6794;
69
-}
70
-
71
-#pie a:hover {
72
-	color: #000;
73
-}
74
-
75
-/* Mensajes para el usuario */
76
-
77
-.error {
78
-	width:80%;
79
-	background: #FFF7F2 url('../../images/error.png') 15px center no-repeat;
80
-	border-top: 2px solid #CC0000;
81
-	border-bottom: 2px solid #CC0000;
82
-	margin: 0 auto;
83
-	padding: 5px 20px 5px 45px;
84
-}
85
-
86
-.exito {
87
-	width:80%;
88
-	background: #F4FBF5 url('../../images/information.png') 15px center no-repeat;
89
-	border-top: 2px solid #006600;
90
-	border-bottom: 2px solid #006600;
91
-	margin: 0 auto;
92
-	padding: 5px 20px 5px 45px;
93
-}
94
-
95
-.info {
96
-	width:80%;
97
-	background: #FFF6BF url('../../images/icon_info.gif') 15px center no-repeat;
98
-	border-top: 2px solid #FFD324;
99
-	border-bottom: 2px solid #FFD324;
100
-	margin: 0 auto;
101
-	padding: 5px 20px 5px 45px;
102
-}
103
-
104
-/* Formularios */
105
-
106
-#formulario {
107
-	margin: 30px;
108
-	padding: 0px;
109
-	border: 0px;
110
-}
111
-
112
-#formulario fieldset{ border: none;}
113
-#formulario label{ width:100px; text-align:left;}
114
-	label.required { padding-left: 22px; background: url(../../images/required.gif) no-repeat 0% 50%; }	
115
-	label.problem { padding-left: 22px; background: url(../../images/caution.gif) no-repeat 0% 50%; }	
116
-	label.completed { padding-left: 22px; background: url(../../images/complete.gif) no-repeat 0% 50%; }
117
-#formulario p{margin: 8px 0 ;}
118
-.input-text{ width: 100%; border: 1px solid #7591B5; background-color:#fff; margin: 1px; padding: 3px; font: 14px Verdana, Arial, Helvetica, sans-serif;}
119
-.input-corto{ width: 200px; border: 1px solid #7591B5; background-color:#fff; padding: 1px 0;}
120
-.check { border: 1px solid #7591B5; background-color:#fff; }
121
-input:hover { 
122
-		background: #f5f5f5;
123
-		color: #000;	
124
-	}
125
-
126
-
127
-input.submit
128
-{
129
-	width: 200px;
130
-	margin-top: 0.5em;
131
-	margin-bottom: 0.5em;
132
-	text-align: center;
133
-	cursor:pointer;
134
-	border-bottom:solid 2px #000;
135
-	border-right:solid 2px #000;
136
-	border-top:solid 1px #336699;
137
-	border-left:solid 1px #336699;
138
-	background-color:#002255;
139
-	color:#fff;
140
-	font-size:105%;
141
-	text-decoration:none;
142
-	padding:.4em;
143
-	font-weight:bold;
144
-}
145
-
146
-input.submit:hover
147
-{
148
-	text-decoration:none;
149
-	background-color:#003366;
150
-	color:#fff;
151
-}
152
-
153
-.submit_naranja {
154
-	width: 200px;
155
-	margin-top: 0.5em;
156
-	margin-bottom: 0.5em;
157
-	text-align: center;
158
-	cursor:pointer;
159
-	border-bottom:solid 2px #E55C00;
160
-	border-right:solid 2px #E55C00;
161
-	border-top:solid 1px #FF751A;
162
-	border-left:solid 1px #FF751A;
163
-	background-color:#ff6600;
164
-	color:#fff;
165
-	font-size:105%;
166
-	text-decoration:none;
167
-	padding:.4em;
168
-	font-weight:bold;
169
-}
170
-
171
-.submit_naranja:hover {
172
-	text-decoration:none;
173
-	background-color:#FF751A;
174
-	color:#fff;
175
-}
176
-
177
-.submit_normal_azul {
178
-	border-bottom:solid 2px #000;
179
-	border-right:solid 2px #000;
180
-	border-top:solid 1px #336699;
181
-	border-left:solid 1px #336699;
182
-	background-color:#002255;
183
-	color:#fff;
184
-	margin-left:10px;
185
-}
186
-
187
-.submit_normal_azul:hover {
188
-	text-decoration:none;
189
-	background-color:#003366;
190
-	color:#fff;
191
-}
192
-
193
-
194
-/* Menu */
195
-
196
-#menuContenedor a {
197
-	text-decoration: none;
198
-}
199
-
200
-#menuContenedor ul
201
-{
202
-	padding: 0;
203
-	margin: 0;
204
-	list-style-type: none;
205
-	position: relative;
206
-}
207
-
208
-#menuContenedor ul li { 
209
-	display: inline; 
210
-	margin: 0 0 0px;
211
-}
212
-
213
-/*1st level elements*/
214
-#menuContenedor ul
215
-{
216
-	border-top: 1px solid #FcFcFc;
217
-	border-bottom: 1px solid #36c;
218
-	background-color: #FcFcFc;
219
-	padding: 2px 0;
220
-	margin-bottom: 2em;
221
-}
222
-
223
-#menuContenedor ul a,
224
-#menuContenedor ul a:link,
225
-#menuContenedor ul a:visited
226
-{
227
-	background: #900;
228
-	border: 1px solid #FFF;
229
-	bottom: 2px;
230
-	color: #FFF;
231
-	height: 1em;
232
-	margin:0;
233
-	margin-left: 15px;
234
-	padding: 2px 4px 2px 4px;
235
-	position: relative;
236
-	right: 2px;
237
-	text-decoration: none;
238
-	z-index:1;
239
-}
240
-
241
-#menuContenedor ul a:hover,
242
-#menuContenedor ul a:focus
243
-{
244
-	background: #C00;
245
-	bottom: 1px;
246
-	color: #FFF;
247
-	position: relative;
248
-	right: 1px;
249
-}
250
-
251
-/*current Link*/
252
-#menuContenedor ul a#current,
253
-#menuContenedor ul a#current:link,
254
-#menuContenedor ul a#current:visited { 
255
-	background: #369;
256
-	border-bottom: none;
257
-	border-left: 1px solid #9CC;
258
-	border-right: 1px solid #9CC;
259
-	border-top: 1px solid #9CC;
260
-	bottom: 0;
261
-	color: #FFF;
262
-	cursor: text;
263
-	margin: 0;
264
-	margin-left: 15px;
265
-	padding: 2px 5px 0 5px;
266
-	position: relative;
267
-	right: 0;
268
- }
269
-
270
-/*Second and subsequent levels*/
271
-#menuContenedor ul ul
272
-{
273
-	font-size: 80%;
274
-	position: absolute;
275
-	top: 20px;
276
-	left: 0;
277
-	width: 100%;
278
-	border-top: none;
279
-	background-color: #369;
280
-	height: 2em;
281
-}
282
-
283
-#menuContenedor ul ul li { display: inline; }
284
-
285
-#menuContenedor ul ul a,
286
-#menuContenedor ul ul a:link,
287
-#menuContenedor ul ul a:visited
288
-{
289
-	background-color: #95B1BB;
290
-	border: 1px solid black;
291
-	color: black;
292
-	top: 12px;
293
-}
294
-
295
-#menuContenedor ul ul a:hover,
296
-#menuContenedor ul ul a:focus
297
-{
298
-	background-color: #9CD4F7;
299
-	border: 1px solid #000000;
300
-	color: black;
301
-}
302
-
303
-/*current Link*/
304
-#menuContenedor ul ul a#subcurrent,
305
-#menuContenedor ul ul a#subcurrent:link,
306
-#menuContenedor ul ul a#subcurrent:visited { 
307
-	background-color: #F7F7F7;
308
-	border: 1px solid #F7F7F7;
309
-	color: black;
310
-	cursor: text;
311
-	margin: 0;
312
-	margin-left: 15px;	
313
-	position: relative;
314
-	right: 0;
315
-}
316
-
317
-.imgmenu img {
318
-			display: block;
319
-			margin-left: auto;
320
-			margin-right: auto;
321
-			border: 0;
322
-		}
323
-
324
-#menu {
325
-	display:block;
326
-	top:50px;
327
-}
328
-
329
-	.opcion {
330
-		float: left;		
331
-		margin-left: 15px;
332
-		padding-right: 5px;
333
-	}
334
-	
335
-		.opcion img {
336
-			display: block;
337
-			margin-left: auto;
338
-			margin-right: auto;
339
-			border: 0;
340
-		}
341
-
342
-h2 {color: #9a4723; margin:0px;}
343
-
344
-legend {color: #9a4723; margin:0px; font-size:large;}

+ 124 - 123
admin/user.php Dosyayı Görüntüle

@@ -47,141 +47,142 @@ if ($user->isAdmin()) {
47 47
 		if ($isEdition) {
48 48
 			$register = $user->getUserByID($userId);
49 49
 		}
50
-	?>
51
-		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
52
-		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
53
-		<head>
54
-			<title>gelato :: Add user</title>
55
-			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
56
-			<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
57
-			<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
58
-			<script language="javascript" type="text/javascript">								
59
-				function validateFrmAddUser() {
60
-					if ($('login').value == "") {
61
-					   alert("The username field cannot be left blank.");
62
-					   document.frm_add.login.select();	
63
-					   return false;
64
-					}
65
-					if ($('password').value == "") {
66
-					   alert("The password field cannot be left blank.");
67
-					   document.frm_add.password.select();	
68
-					   return false;
69
-					}	
70
-					if ($('password').value != $('repass').value) {
71
-					   alert("The password must match,\nplease verify them.");
72
-					   document.frm_add.password.focus();	
73
-					   return false;
74
-					}		
75
-					return true;
76
-				}
77
-				
78
-				function verifyExistingUser() {
79
-					$('div-process').style.display="block";
80
-					el = $('target');
81
-					el.style.display="block";										
82
-					var path = 'ajax.php?action=verify&login='+$('login').value;
83
-					new Ajax(path, {
84
-						onComplete:function(e) {						
85
-							el.setHTML(e);
86
-							$('div-process').style.display="none";
87
-						}
88
-					}).request();
89
-					return false;
50
+?>
51
+	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
52
+	<html xmlns="http://www.w3.org/1999/xhtml">
53
+	<head>
54
+		<title>gelato :: add user</title>
55
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
56
+		<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
57
+		<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
58
+		<script language="javascript" type="text/javascript">								
59
+			function validateFrmAddUser() {
60
+				if ($('login').value == "") {
61
+				   alert("The username field cannot be left blank.");
62
+				   document.frm_add.login.select();	
63
+				   return false;
90 64
 				}
91
-			</script>
92
-			<style type="text/css" media="screen">	
93
-				@import "<?=$conf->urlGelato;?>/admin/css/style-codice.css";
94
-			</style>
95
-		</head>
96
-		<body>
97
-			<div id="div-process" style="display:none;">Processing request...</div>
98
-			<div id="titulo">
99
-				<img src="<?=$conf->urlGelato;?>/images/logo.jpg" alt="gelato CMS" title="gelato CMS" />	
100
-			</div>
65
+				if ($('password').value == "") {
66
+				   alert("The password field cannot be left blank.");
67
+				   document.frm_add.password.select();	
68
+				   return false;
69
+				}	
70
+				if ($('password').value != $('repass').value) {
71
+				   alert("The password must match,\nplease verify them.");
72
+				   document.frm_add.password.focus();	
73
+				   return false;
74
+				}		
75
+				return true;
76
+			}
101 77
 			
102
-			<div id="menuContenedor">
103
-				<ul>
104
-					<li id="active"><a href="#" id="current">Users</a></li>
105
-						<ul>
106
-							<li id="subactive"><a href="#" id="subcurrent"><? echo ($isEdition) ? "Edit" : "Add"; ?></a></li>
107
-							<li><a href="admin.php">Manage</a></li>
108
-						</ul>
109
-					</li>
110
-					<li><a href="index.php">Control Panel</a></li>
111
-				</ul>
78
+			function verifyExistingUser() {
79
+				$('div-process').style.display="block";
80
+				el = $('target');
81
+				el.style.display="block";										
82
+				var path = 'ajax.php?action=verify&login='+$('login').value;
83
+				new Ajax(path, {
84
+					onComplete:function(e) {						
85
+						el.setHTML(e);
86
+						$('div-process').style.display="none";
87
+					}
88
+				}).request();
89
+				return false;
90
+			}
91
+		</script>
92
+		<style type="text/css" media="screen">	
93
+			@import "<?=$conf->urlGelato;?>/admin/css/style.css";
94
+		</style>
95
+	</head>
96
+	
97
+	<body>
98
+		<div id="div-process" style="display:none;">Processing request...</div>
99
+		<div id="cont">
100
+			<div id="head">
101
+				<h1><a href="<?=$conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
102
+				<ul id="nav">
103
+					<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
104
+			  	</ul>
112 105
 			</div>
113
-			
114
-			<div id="contenido">
115
-				<div class="center">
116
-					<div  class="ventana">
117
-						<p class="titulo"><span class="handle"><? echo ($isEdition) ? "Edit" : "Add"; ?> the user information</span></p>
118
-						<div id="formulario">
119
-						
120
-							<form action="user.php" method="post" onSubmit="return validateFrmAddUser();" name="frm_add">
121
-							<fieldset>
106
+			<div id="main">				
107
+				
108
+				<div class="box">
109
+					<ul class="menu manage">
110
+					<h3>Start session</h3>
111
+					<li><a href="index.php">Post</a></li>
112
+					<li><a href="admin.php">Users</a></li>
113
+					<li class="selected"><a href="#"><? echo ($isEdition) ? "Edit" : "Add"; ?></a></li>
114
+					</ul>
115
+				
116
+					<div class="tabla">
117
+
118
+						<form action="user.php" method="post" onSubmit="return validateFrmAddUser();" name="frm_add" class="newpost">
119
+						<fieldset>
120
+						<ul>
122 121
 <?
123
-								if ($isEdition) {
122
+							if ($isEdition) {
124 123
 ?>
125
-								<input type="hidden" name="id_user" id="id_user" value="<?=$userId;?>" />
124
+							<input type="hidden" name="id_user" id="id_user" value="<?=$userId;?>" />
126 125
 <?
127
-								}
126
+							}
128 127
 ?>
129
-								<p>
130
-									<label for="login">user:</label>
131
-										<input class="input-text" name="login" id="login" type="text" autocomplete="off" value="<?=isset($register["login"])?$register["login"]:"";?>" />
128
+							<li>
129
+								<label for="login">user:</label>
130
+									<input class="txt" name="login" id="login" type="text" autocomplete="off" value="<?=isset($register["login"])?$register["login"]:"";?>" />
132 131
 <?
133
-								if (!$isEdition) {
132
+							if (!$isEdition) {
134 133
 ?>
135
-										<script language="javascript" type="text/javascript">						
136
-											document.write("<br /><input class='submit_normal_azul' name='btnVerifyUser' id='btnVerifyUser' type='button' value='Check availability' onclick='verifyExistingUser()' />");
137
-										</script>
134
+									<script language="javascript" type="text/javascript">						
135
+										document.write("<br /><input class='submit_normal_azul' name='btnVerifyUser' id='btnVerifyUser' type='button' value='Check availability' onclick='verifyExistingUser()' />");
136
+									</script>
138 137
 <?
139
-								}
138
+							}
140 139
 ?>
141
-								</p>
142
-								<p>
143
-									<div id="target" style="display:none;"></div>
144
-								</p>
145
-								<p>
146
-									<label for="pass">password:</label>
147
-										<input class="input-text" name="password" id="password" type="password" />
148
-								</p>
149
-								<p>
150
-									<label for="repass">retype password:</label>
151
-										<input class="input-text" name="repass" id="repass" type="password" />
152
-								</p>
153
-								<p>
154
-									<label for="name">name:</label>
155
-										<input class="input-text" name="name" id="name" type="text" value="<?=isset($register["name"])?$register["name"]:"";?>" />
156
-								</p>
157
-								<p>
158
-									<label for="email">e-mail:</label>
159
-										<input class="input-text" name="email" id="email" type="text" value="<?=isset($register["email"])?$register["email"]:"";?>" />
160
-								</p>
161
-								<p>
162
-									<label for="website">website:</label>
163
-										<input class="input-text" name="website" id="website" type="text" value="<?=isset($register["website"])?$register["website"]:"";?>" />
164
-								</p>								
165
-								<p>
166
-									<label for="about">about:</label><br />
167
-										<textarea rows="5" cols="50" name="about" id="about" tabindex="7"><?=isset($register["about"])?$register["about"]:"";?></textarea>									
168
-								</p>								
169
-								<p>
170
-									<input class="submit" name="btnAdd" type="submit" value="<? echo ($isEdition) ? "Modify" : "Add"; ?> user" />
171
-								</p>
172
-							</fieldset>
173
-							</form>
174
-						</div>
175
-					</div> 
176
-				</div> 		
177
-				<div id="pie">
178
-					<p>
179
-						<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
180
-					</p>
181
-				</div>				
140
+							</li>
141
+							<li>
142
+								<div id="target" style="display:none;"></div>
143
+							</li>
144
+							<li>
145
+								<label for="pass">password:</label>
146
+									<input class="txt" name="password" id="password" type="password" />
147
+							</li>
148
+							<li>
149
+								<label for="repass">retype password:</label>
150
+									<input class="txt" name="repass" id="repass" type="password" />
151
+							</li>
152
+							<li>
153
+								<label for="name">name:</label>
154
+									<input class="txt" name="name" id="name" type="text" value="<?=isset($register["name"])?$register["name"]:"";?>" />
155
+							</li>
156
+							<li>
157
+								<label for="email">e-mail:</label>
158
+									<input class="txt" name="email" id="email" type="text" value="<?=isset($register["email"])?$register["email"]:"";?>" />
159
+							</li>
160
+							<li>
161
+								<label for="website">website:</label>
162
+									<input class="txt" name="website" id="website" type="text" value="<?=isset($register["website"])?$register["website"]:"";?>" />
163
+							</li>								
164
+							<li>
165
+								<label for="about">about:</label><br />
166
+									<textarea rows="5" cols="50" name="about" id="about" tabindex="7"><?=isset($register["about"])?$register["about"]:"";?></textarea>									
167
+							</li>								
168
+							<li>
169
+								<input name="btnAdd" type="submit" value="<? echo ($isEdition) ? "Modify" : "Add"; ?> user" />
170
+							</li>
171
+						</ul>
172
+						</fieldset>
173
+						</form>
174
+								
175
+					</div>
176
+
177
+					<div class="footer-box">&nbsp;</div>
178
+				</div>
179
+			</div>
180
+			<div id="foot">
181
+				<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
182 182
 			</div>
183
-		</body>
184
-		</html>
183
+		</div>
184
+	</body>
185
+	</html>
185 186
 <?
186 187
 	}
187 188
 } else {

+ 47 - 48
login.php Dosyayı Görüntüle

@@ -28,48 +28,49 @@ if ($user->isAdmin()) {
28 28
 	}
29 29
 	else {
30 30
 ?>
31
-		<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
32
-		<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
33
-		<head>
34
-			<title>gelato :: Login screen</title>
35
-			<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
36
-			<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
37
-			<script src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js" type="text/javascript"></script>
38
-			<style type="text/css" media="screen">	
39
-				@import "<?=$conf->urlGelato;?>/admin/css/style-codice.css";
40
-			</style>
41
-		</head>
42
-		<body>
31
+	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
+	<html xmlns="http://www.w3.org/1999/xhtml">
33
+	<head>
34
+		<title>gelato :: login screen</title>
35
+		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
36
+		<link rel="shortcut icon" href="<?=$conf->urlGelato;?>/images/favicon.ico" />
37
+		<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/mootools.js"></script>
38
+		<script language="javascript" type="text/javascript" src="<?=$conf->urlGelato;?>/admin/scripts/sortable.js"></script>
39
+		<style type="text/css" media="screen">	
40
+			@import "<?=$conf->urlGelato;?>/admin/css/style.css";
41
+		</style>
42
+	</head>
43 43
 	
44
-			<div id="titulo">
45
-				<img src="<?=$conf->urlGelato;?>/images/logo.jpg" alt="gelato CMS" title="gelato CMS" />	
44
+	<body>
45
+		<div id="div-process" style="display:none;">Processing request...</div>
46
+		<div id="cont">
47
+			<div id="head">
48
+				<h1><a href="<?=$conf->urlGelato;?>/" title="gelato :: home">gelato cms</a></h1>
49
+				<ul id="nav">
50
+					<li><a href="<?=$conf->urlGelato;?>/" title="Take me to the tumblelog">Back to the Tumblelog</a></li>
51
+			  	</ul>
46 52
 			</div>
53
+			<div id="main">				
47 54
 				
48
-			 <div id="menuContenedor">
49
-				<ul>
50
-					<li id="active"><a href="<?=$conf->urlGelato;?>/login.php" id="current">Session</a></li>
51
-						<ul>
52
-							<li id="subactive"><a href="#" id="subcurrent">Begin session</a></li>
53
-						</ul>
54
-					</li>
55
-					<li><a href="index.php">Back to the tumblelog</a></li>
56
-				</ul>
57
-			</div>
58
-			
59
-			<div id="contenido">		
60
-				<div class="piccola">
61
-					<div  class="ventana">
62
-						<p class="titulo"><span class="handle" style="cursor:move;">Ingresar al sistema</span></p>
63
-						<div id="formulario">
64
-								<form action="login.php" method="post" id="valida" autocomplete="off">
55
+				<div class="box">
56
+					<ul class="menu manage">
57
+					<h3>Start session</h3>
58
+					<li class="selected"><a href="#">Login</a></li>
59
+					</ul>
60
+				
61
+					<div class="tabla">
62
+
63
+								<form action="login.php" method="post" id="valida" autocomplete="off" class="newpost">
65 64
 									<fieldset>
66
-										<p><label for="login">User:</label>
67
-											<input id="login" name="login" type="text" class="input-corto" /></p>
68
-										<p><label for="pass">Password:</label>
69
-											<input id="pass" name="pass" type="password" class="input-corto" /></p>
70
-										<p><label for="save_pass">Remember me:</label>
71
-											<input id="save_pass" name="save_pass" type="checkbox" class="check" /></p>
72
-										<p><input class="submit" name="btnLogin" type="submit" value="Login" /></p>
65
+									<ul>
66
+										<li><label for="login">User:</label>
67
+											<input id="login" name="login" type="text" class="txt" /></li>
68
+										<li><label for="pass">Password:</label>
69
+											<input id="pass" name="pass" type="password" class="txt" /></li>
70
+										<li><label for="save_pass">Remember me:</label>
71
+											<input id="save_pass" name="save_pass" type="checkbox" /></li>
72
+										<li><input name="btnLogin" type="submit" value="Login" /></li>
73
+									</ul>
73 74
 									</fieldset>
74 75
 								</form>
75 76
 <?					
@@ -89,19 +90,17 @@ if ($user->isAdmin()) {
89 90
 <?
90 91
 									}									
91 92
 								}
92
-?>		
93
-					  </div>
94
-						</p>  
93
+?>
95 94
 					</div>
95
+
96
+					<div class="footer-box">&nbsp;</div>
96 97
 				</div>
97
-				<div id="pie">
98
-					<p>
99
-						<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
100
-					</p>
101
-				</div>		
102 98
 			</div>
103
-			
104
-		</body>
99
+			<div id="foot">
100
+				<a href="http://www.gelatocms.com/" title="gelato CMS" target="_blank">gelato CMS</a> :: PHP/MySQL Tumblelog Content Management System.
101
+			</div>
102
+		</div>
103
+	</body>
105 104
 	</html>
106 105
 <?
107 106
 	}