diff --git a/public/categorySummary.php b/public/categorySummary.php
new file mode 100644
index 0000000..7d6b398
--- /dev/null
+++ b/public/categorySummary.php
@@ -0,0 +1,62 @@
+query("NotiziaModel",
+ array('$and'=>array(array("status"=>NotiziaModel::STATUS_ACCEPTED),array("category"=>$category))),
+ array("sort"=>array("about.data"=>-1),"limit"=>10)
+ );
+ }
+ else{
+ GUIHandler::redirect("index.php");
+ }
+
+
+}catch(GUIException $ex){
+ $error = $ex->getMessage();
+}catch (Exception $exec){
+ $msg = LogModel::fromException($exec);
+ GlobalVariables::get("dao")->save($msg);
+
+ GUIHandler::redirect("index.php");
+}
+?>
+
+
+
+ titolo) > 103) ? substr($notizia->titolo,0,100).'...' : $notizia->titolo;
+ $stringSottotitolo = (strlen($notizia->sottotitolo) > 73) ? substr($notizia->sottotitolo,0,70).'...' : $notizia->sottotitolo;
+ $stringTesto = (strlen($notizia->testo) > 33) ? substr($notizia->testo,0,30).'...' : $notizia->testo;
+ $media = DaoMediaHandler::getMainMediaFromModel($notizia);
+ ?>
+
+
renderMedia(array("size"=>MediaRenderer::SIZE_SMALL)):"" ;?>
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/js/functions.js b/public/js/functions.js
index dcda619..f21e087 100644
--- a/public/js/functions.js
+++ b/public/js/functions.js
@@ -28,16 +28,17 @@ function openRegistrationModal(){
}
function sendRegistration(){
- $.ajax({
- method:'POST',
- url:'sendRegistrationBackend.php',
- dataType:'html',
- data:$("#regForm").serialize(),
- success: function(data){
-
- },
- error:function(data){
- $(".modalError").html(data);
- }
- });
-}
\ No newline at end of file
+ $.ajax({
+ method:'POST',
+ url:'sendRegistrationBackend.php',
+ dataType:'html',
+ data:$('#regForm').serialize(),
+ success: function(data){
+// $("#regForm").remove();
+ $(".modalResponse").html(data);
+ /* Verificare se si possa eliminare la form in caso di registrazione avvenuta con successo assegnando un parametro
+ * allo span di avvenuta registrazione*/
+// $(".modalError").html("");
+ }
+ });
+}
\ No newline at end of file
diff --git a/public/registration.php b/public/registration.php
index 090a0c8..1b59bcb 100644
--- a/public/registration.php
+++ b/public/registration.php
@@ -4,43 +4,23 @@ require_once(dirname(__FILE__)."/load.php");
try {
?>
-
-