diff --git a/private/lib/media/mediaRenderers/MediaImage.php b/private/lib/media/mediaRenderers/MediaImage.php index 1895c4a..54d9d5a 100644 --- a/private/lib/media/mediaRenderers/MediaImage.php +++ b/private/lib/media/mediaRenderers/MediaImage.php @@ -6,11 +6,17 @@ class MediaImage implements MediaRendererInterface{ $this->id = $id; } +<<<<<<< HEAD public function asText(array $opt = array()){ $size = "small"; if(sizeof($opt)>0 && array_key_exists("size", $opt)){ $size = $opt["size"]; } +======= + //NON PUOI DICHIARARE UN asText DIVERSO DA QUELLO DELL'INTERFACCIA!!!!!!! +// public function asText($size){ + public function asText(){ +>>>>>>> branch 'master' of ssh://gitolite@asdynamics.com:50005/projects/fdn2.git return ''; } @@ -18,4 +24,4 @@ class MediaImage implements MediaRendererInterface{ echo $this->asText($opt); } } -?> \ No newline at end of file +?> diff --git a/public/admin/confirmNewsletter.php b/public/admin/confirmNewsletter.php new file mode 100644 index 0000000..75e5354 --- /dev/null +++ b/public/admin/confirmNewsletter.php @@ -0,0 +1,80 @@ +hasRole(AdminModel::ADMIN_TYPE_NEWSLETTER)){ + GUIHandler::redirect("admin/index.php"); +} + +MenuGenerator::generateMenu(); + +HTMLHelper::generateAdminHead(); + +try { + $id = PostHandler::get("id"); + + $config = GlobalVariables::get("config"); + + if (is_null($id) || strcmp("", $id)==0){ + GUIHandler::redirect("admin/pendingNewsletters.php"); + } + + $mail = GlobalVariables::get("dao")->getFirst("MailTemplateModel",array("id"=>$id)); + if (is_null($mail)){ + GUIHandler::redirect("admin/pendingNewsletters.php"); + } + + $action = PostHandler::get("action"); + if (!is_null($action) && strcmp("", $action)!=0){ + if (strcmp("confirm", $action)==0){ + $mail->status = MailTemplateModel::STATUS_READY; + GlobalVariables::get("dao")->save($mail); + } + GUIHandler::redirect("admin/pendingNewsletters.php"); + } +}catch(GUIException $ex){ + $error = $ex->getMessage(); +}catch (Exception $exec){ + LoggingFacilityManager::getLogger("gui")->log(LoggingFacility::$LEVEL_ERROR, $exec->getMessage()); + $error = "Si รจ verificato un errore inaspettato durante l'esecuzione della pagina. Se l'errore persiste contattare il supporto tecnico."; +} + +?> +
+'.$error.'
'; + } +?> + Conferma + Annulla +
subject; ?>
+
+
body; ?>
+ + +
+ + +
\ No newline at end of file diff --git a/public/admin/deleteMail.php b/public/admin/deleteMail.php index 65ba416..f3ecb6f 100644 --- a/public/admin/deleteMail.php +++ b/public/admin/deleteMail.php @@ -35,7 +35,7 @@ if (!is_null($confirm) && strcmp("", $confirm)!=0){ if (strcmp("true", $confirm)==0){ GlobalVariables::get("dao")->delete($mail); } - GUIHandler::redirect("admin/listNotizie.php"); + GUIHandler::redirect("admin/listMail.php"); } ?> diff --git a/public/admin/myNotizie.php b/public/admin/myNotizie.php index cb29786..bdc0f17 100644 --- a/public/admin/myNotizie.php +++ b/public/admin/myNotizie.php @@ -27,7 +27,7 @@ $buttons = array( ?>
$buttons)); + $details = DatatablesHelper::generateTable("myNotizieTableBackend.php",$columns,array("buttons"=>$buttons)); ?>
diff --git a/public/admin/tablesBackends/myNotizieTableBackend.php b/public/admin/tablesBackends/myNotizieTableBackend.php new file mode 100644 index 0000000..225adff --- /dev/null +++ b/public/admin/tablesBackends/myNotizieTableBackend.php @@ -0,0 +1,22 @@ +null, + "sottotitolo"=>null, + "about"=>array("data"=>null,"author"=>null), + "id"=>null +); + +$ret = DatatablesHelper::getResult($useModel, $permissionFlagRequired, $exposedFields,array("about.owner"=>AdminLoginManager::getLogged()->id)); +echo json_encode($ret); + +?> \ No newline at end of file