Permalink
Browse files

UI/UX overall improvement

Signed-off-by: Simone <hello@simonewebdesign.it>
  • Loading branch information...
1 parent 7e3b0e1 commit 30d674dcc0c04fd4ddf850bf368b1907f72c60d6 @simonewebdesign committed Mar 19, 2013
Showing with 26 additions and 39 deletions.
  1. +1 −1 Template.php
  2. +1 −1 User.php
  3. +1 −1 _list_select.php
  4. +1 −1 bootstrap.php
  5. +1 −1 config.php
  6. +1 −1 db_conn.php
  7. +4 −3 foot.php
  8. +3 −2 head.php
  9. +1 −1 index.php
  10. +1 −4 lists.php
  11. +1 −4 newsletters.php
  12. +0 −2 quick.php
  13. +1 −1 select_list.php
  14. +1 −1 statistics.php
  15. +1 −1 template_create.php
  16. +1 −1 template_delete.php
  17. +1 −1 template_str_replacement.php
  18. +1 −1 template_update.php
  19. +1 −4 templates.php
  20. +1 −2 unsubscribe.php
  21. +1 −4 users.php
  22. +1 −1 view.php
View
@@ -61,4 +61,4 @@ static function all() {
}
/***** INITIALIZATION *****/
-Template::$db = $db;
+Template::$db = $db;
View
@@ -145,4 +145,4 @@ static function get_invalid_ones_by_list_id($list_id, $max_allowed_fails=5){
}
/***** INITIALIZATION *****/
-User::$db = $db;
+User::$db = $db;
View
@@ -1 +1 @@
-<p> <label for="list_id"><?=LISTS?></label> <select id="list_id" name="list_id"><?php foreach ($lists as $list) { ?> <option value=<?=$list->id?>><?=$list->name?></option><?php } ?> </select></p>
+<p> <label for="list_id"><?=LISTS?></label> <select id="list_id" name="list_id"><?php foreach ($lists as $list) { ?> <option value=<?=$list->id?>><?=$list->name?></option><?php } ?> </select></p>
View
@@ -1 +1 @@
-<?phpheader('Content-Type: text/html; charset=utf-8');ini_set('display_errors', 'On');include_once 'config.php';include_once 'db_conn.php';include_once 'head.php';if ( file_exists("languages/{$cfg['language']}.php") ) { include_once "languages/{$cfg['language']}.php";} else { echo "Runtime error: couldn't load {$cfg['language']} language.";}
+<?phpheader('Content-Type: text/html; charset=utf-8');ini_set('display_errors', 'On');include_once 'config.php';if ( file_exists("languages/{$cfg['language']}.php") ) { include_once "languages/{$cfg['language']}.php";} else { die("Runtime error: couldn't load '{$cfg['language']}' language.");}include_once 'db_conn.php';include_once 'head.php';include_once 'menu.php';
View
@@ -48,4 +48,4 @@
'smtp_auth' => true,
'charset' => 'UTF-8',
'max_allowed_fails' => 5
-);
+);
View
@@ -4,4 +4,4 @@
$db = new PDO ( "mysql:host=" . $cfg['hostname'] . ";dbname=" . $cfg['dbname'] . ";charset=UTF-8", $cfg['username'], $cfg['password'], array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8") );
} catch ( PDOException $e ) {
die( "Database error: ".$e->getMessage() );
-}
+}
View
@@ -1,6 +1,3 @@
-<footer>
- <small>Copyright &copy; 2012 - <?=date('Y') ." ". $cfg['site_name']?>. All rights reserved.</small>
-</footer>
<script>
var deleteAnchors = document.querySelectorAll(".delete");
@@ -28,5 +25,9 @@
}
</script>
+<footer>
+ <small>Copyright &copy; 2012 - <?=date('Y') ." ". $cfg['site_name']?>. All rights reserved.</small>
+</footer>
+
</body>
</html>
View
@@ -1,8 +1,9 @@
<!doctype html>
-<html>
+<html lang="<?=$cfg['language']?>">
<head>
+ <meta charset="<?=$cfg['charset']?>">
<title><?=$cfg['site_name']?></title>
<link rel="stylesheet" href="<?=$cfg['root']?>style.css" media="screen">
<meta name="robots" content="noindex, nofollow">
</head>
-<body>
+<body>
View
@@ -1 +1 @@
-<?phpinclude_once 'bootstrap.php';header('Location: ' . $cfg['site_full_url']);
+<?php/* PLEASE NOTE: * the root is not accessible by default * for security reasons. You can start * from where you want, i.e. quick.php **************************************/include_once 'bootstrap.php';header('Location: ' . $cfg['site_full_url']);
View
@@ -62,7 +62,4 @@
<a href="<?=$cfg['root']?>list_create.php"><?=CREATE ." ". LISTA?></a>
-<?php include_once 'foot.php'; ?>
-
-</body>
-</html>
+<?php include_once 'foot.php';
View
@@ -68,7 +68,4 @@
<a href="<?=$cfg['root']?>newsletter_create.php"><?=CREATE ." ". NEWSLETTER?></a>
-<?php include_once 'foot.php'; ?>
-
-</body>
-</html>
+<?php include_once 'foot.php';
View
@@ -3,10 +3,8 @@
include_once 'bootstrap.php';
include_once 'Lista.php';
include_once 'Newsletter.php';
-//include_once '.php';
#############################
-
?>
<h1><?=QUICK_SEND?></h1>
View
@@ -1 +1 @@
-<?phpinclude_once 'bootstrap.php';include_once 'Lista.php';###############################$lists = Lista::all();?><h1><?=SELECT ." ". LIST?></h1><p>Prego selezionare la mailing list a cui si desidera inviare la newsletter.</p><ul><?php foreach ($lists as $list) { ?> <li> <a href="<?=$cfg['root'] . 'send.php?newsletter_id=' . $_GET['newsletter_id'] . '&list_id=' . $list->id?>"><?=$list->name?></a> </li><?php } ?></ul><p><a href="javascript:history.back(1)"><?=BACK?></a></p><?php include_once 'foot.php';
+<?phpinclude_once 'bootstrap.php';include_once 'Lista.php';###############################$lists = Lista::all();?><h1><?=SELECT ." ". LIST?></h1><p>Prego selezionare la mailing list a cui si desidera inviare la newsletter.</p><ul><?php foreach ($lists as $list) { ?> <li> <a href="<?=$cfg['root'] . 'send.php?newsletter_id=' . $_GET['newsletter_id'] . '&list_id=' . $list->id?>"><?=$list->name?></a> </li><?php } ?></ul><p><a href="javascript:history.back(1)"><?=BACK?></a></p><?php include_once 'foot.php';
View
@@ -119,4 +119,4 @@
</tr>
<?php } ?>
</tbody>
- </table>
+ </table>
View
@@ -18,4 +18,4 @@
}
}
-?><p><a href="javascript:history.back(1)"><?=BACK?></a></p>
+?><p><a href="javascript:history.back(1)"><?=BACK?></a></p>
View
@@ -15,4 +15,4 @@
?>
-<p><a href="javascript:history.back(1)"><?=BACK?></a></p>
+<p><a href="javascript:history.back(1)"><?=BACK?></a></p>
@@ -20,4 +20,4 @@
$user_template = str_replace(':user_id', $user_id, $user_template);
$newsletter_id = isset($_GET['id']) ? $_GET['id'] : $_GET['newsletter_id'];
-$user_template = str_replace(':newsletter_id', $newsletter_id, $user_template);
+$user_template = str_replace(':newsletter_id', $newsletter_id, $user_template);
View
@@ -20,4 +20,4 @@
$t = Template::read($_GET['id']);
include_once '_template_form.php';
-?><p><a href="javascript:history.back(1)"><?=BACK?></a></p>
+?><p><a href="javascript:history.back(1)"><?=BACK?></a></p>
View
@@ -59,7 +59,4 @@
<a href="<?=$cfg['root']?>template_create.php"><?=CREATE ." ". TEMPLATE?></a>
-<?php include_once 'foot.php'; ?>
-
-</body>
-</html>
+<?php include_once 'foot.php';
View
@@ -51,5 +51,4 @@
<input id="email" name="email" type="email">
<input name="submit" type="submit" value="Cancellami">
</form>
-<?php } ?>
-
+<?php }
View
@@ -25,7 +25,4 @@
<a href="<?=$cfg['root']?>user_create.php"><?=CREATE ." ". USER?></a>
-<?php include_once 'foot.php'; ?>
-
-</body>
-</html>
+<?php include_once 'foot.php';
View
@@ -15,4 +15,4 @@
include_once 'template_load.php';
include_once 'template_str_replacement.php';
-echo $user_template;
+echo $user_template;

0 comments on commit 30d674d

Please sign in to comment.