Creato backend per myNotizie
correzione link callback save di delete mail Corretto errore in una firma di MediaImage
This commit is contained in:
@@ -6,7 +6,9 @@ class MediaImage implements MediaRendererInterface{
|
||||
$this->id = $id;
|
||||
}
|
||||
|
||||
public function asText($size){
|
||||
//NON PUOI DICHIARARE UN asText DIVERSO DA QUELLO DELL'INTERFACCIA!!!!!!!
|
||||
// public function asText($size){
|
||||
public function asText(){
|
||||
return '<img src="'.GUIHandler::getBaseUrl().'getImage.php?id='.$this->id.'&size='.$size.'"/>';
|
||||
}
|
||||
|
||||
|
||||
@@ -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");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -27,7 +27,7 @@ $buttons = array(
|
||||
?>
|
||||
<div>
|
||||
<?php
|
||||
$details = DatatablesHelper::generateTable("notizieTableBackend.php",$columns,array("buttons"=>$buttons));
|
||||
$details = DatatablesHelper::generateTable("myNotizieTableBackend.php",$columns,array("buttons"=>$buttons));
|
||||
?>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/*
|
||||
Author: Riccardo Di Dato
|
||||
Creation Date: 25/gen/2016
|
||||
*/
|
||||
|
||||
|
||||
require_once(dirname(__FILE__)."/../../load.php");
|
||||
|
||||
$useModel = "NotiziaModel";
|
||||
$permissionFlagRequired = AdminModel::ADMIN_TYPE_EDITORE_SUPERVISOR;
|
||||
$exposedFields = array(
|
||||
"titolo"=>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);
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user