Changeset 619814
- Timestamp:
- 11/01/2012 02:08:04 PM (13 years ago)
- Location:
- pafacile
- Files:
-
- 16 edited
- 30 copied
-
tags/2.4.6 (copied) (copied from pafacile/trunk)
-
tags/2.4.6/PAFacileBackend.php (copied) (copied from pafacile/trunk/PAFacileBackend.php)
-
tags/2.4.6/PAFacileFrontend.php (copied) (copied from pafacile/trunk/PAFacileFrontend.php)
-
tags/2.4.6/PAFacileUpdateManager.php (copied) (copied from pafacile/trunk/PAFacileUpdateManager.php)
-
tags/2.4.6/alboPretorio/dettaglio.php (copied) (copied from pafacile/trunk/alboPretorio/dettaglio.php)
-
tags/2.4.6/alboPretorio/elenco.php (copied) (copied from pafacile/trunk/alboPretorio/elenco.php) (2 diffs)
-
tags/2.4.6/alboPretorio/stampa.php (copied) (copied from pafacile/trunk/alboPretorio/stampa.php)
-
tags/2.4.6/bandi/dettaglio.php (copied) (copied from pafacile/trunk/bandi/dettaglio.php)
-
tags/2.4.6/bandi/elenco.php (copied) (copied from pafacile/trunk/bandi/elenco.php) (2 diffs)
-
tags/2.4.6/db.php (copied) (copied from pafacile/trunk/db.php)
-
tags/2.4.6/definitions.php (copied) (copied from pafacile/trunk/definitions.php)
-
tags/2.4.6/delibere/elenco.php (modified) (3 diffs)
-
tags/2.4.6/determine/elenco.php (modified) (2 diffs)
-
tags/2.4.6/doSave.php (copied) (copied from pafacile/trunk/doSave.php)
-
tags/2.4.6/google-analytics/index.php (copied) (copied from pafacile/trunk/google-analytics/index.php)
-
tags/2.4.6/incarichiProfessionali/dettaglio.php (copied) (copied from pafacile/trunk/incarichiProfessionali/dettaglio.php)
-
tags/2.4.6/incarichiProfessionali/elenco.php (copied) (copied from pafacile/trunk/incarichiProfessionali/elenco.php) (2 diffs)
-
tags/2.4.6/mce/editor_plugin.dev.js (modified) (8 diffs)
-
tags/2.4.6/ordinanze/elenco.php (modified) (2 diffs)
-
tags/2.4.6/organi/elenco.php (modified) (1 diff)
-
tags/2.4.6/organigramma/dettaglio.php (copied) (copied from pafacile/trunk/organigramma/dettaglio.php)
-
tags/2.4.6/organigramma/elenco.php (copied) (copied from pafacile/trunk/organigramma/elenco.php)
-
tags/2.4.6/public-contents/AlboPretorio.php (copied) (copied from pafacile/trunk/public-contents/AlboPretorio.php)
-
tags/2.4.6/public-contents/BandiGare.php (copied) (copied from pafacile/trunk/public-contents/BandiGare.php) (3 diffs)
-
tags/2.4.6/public-contents/Delibere.php (copied) (copied from pafacile/trunk/public-contents/Delibere.php)
-
tags/2.4.6/public-contents/Determine.php (copied) (copied from pafacile/trunk/public-contents/Determine.php)
-
tags/2.4.6/public-contents/Incarichi.php (copied) (copied from pafacile/trunk/public-contents/Incarichi.php)
-
tags/2.4.6/public-contents/Ordinanze.php (copied) (copied from pafacile/trunk/public-contents/Ordinanze.php)
-
tags/2.4.6/public-contents/Organi.php (copied) (copied from pafacile/trunk/public-contents/Organi.php)
-
tags/2.4.6/readme.txt (copied) (copied from pafacile/trunk/readme.txt) (2 diffs)
-
tags/2.4.6/toSendIt.php (copied) (copied from pafacile/trunk/toSendIt.php)
-
tags/2.4.6/toSendItPAFacileContents.php (copied) (copied from pafacile/trunk/toSendItPAFacileContents.php)
-
tags/2.4.6/toSendItPAFacilePages.php (copied) (copied from pafacile/trunk/toSendItPAFacilePages.php)
-
tags/2.4.6/tosendit-pa.php (copied) (copied from pafacile/trunk/tosendit-pa.php) (3 diffs)
-
tags/2.4.6/welcome.php (copied) (copied from pafacile/trunk/welcome.php)
-
trunk/alboPretorio/elenco.php (modified) (2 diffs)
-
trunk/bandi/elenco.php (modified) (2 diffs)
-
trunk/delibere/elenco.php (modified) (3 diffs)
-
trunk/determine/elenco.php (modified) (2 diffs)
-
trunk/incarichiProfessionali/elenco.php (modified) (2 diffs)
-
trunk/mce/editor_plugin.dev.js (modified) (8 diffs)
-
trunk/ordinanze/elenco.php (modified) (2 diffs)
-
trunk/organi/elenco.php (modified) (1 diff)
-
trunk/public-contents/BandiGare.php (modified) (3 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/tosendit-pa.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
pafacile/tags/2.4.6/alboPretorio/elenco.php
r525549 r619814 1 1 <?php 2 2 3 function displayAlboPretorioPublic($params ){3 function displayAlboPretorioPublic($params, $extraParams = array()){ 4 4 global $wpdb; 5 5 $params = toSendItGenericMethods::identifyParameters($params, … … 11 11 ) 12 12 ); 13 $params = array_merge ($params, $extraParams); 14 13 15 extract($params); 14 16 switch($params['kind']){ -
pafacile/tags/2.4.6/bandi/elenco.php
r559534 r619814 1 1 <?php 2 2 3 function displayBandiPublic($params ){3 function displayBandiPublic($params, $extraParams = array()){ 4 4 global $wpdb; 5 5 … … 9 9 ) 10 10 ); 11 $params = array_merge($params, $extraParams); 12 11 13 extract($params); 12 14 switch($kind){ -
pafacile/tags/2.4.6/delibere/elenco.php
r484663 r619814 2 2 #require_once 'public-contents/Delibere.php'; 3 3 4 function displayDeliberePublic($params ){4 function displayDeliberePublic($params, $extraParams = array()){ 5 5 global $wpdb; 6 6 … … 15 15 ) 16 16 ); 17 17 $params = array_merge ($params, $extraParams); 18 18 extract($params); 19 19 … … 25 25 case 'table': 26 26 return Delibere::elenco($params); 27 #toSendItPAFacileContents::mostraDelibereElenco($params);28 27 break; 29 28 -
pafacile/tags/2.4.6/determine/elenco.php
r484663 r619814 2 2 # require_once 'public-contents/Determine.php'; 3 3 4 function displayDeterminePublic($params ){4 function displayDeterminePublic($params, $extraParams = array()){ 5 5 $params = toSendItGenericMethods::identifyParameters($params, 6 6 array( … … 16 16 ) 17 17 ); 18 #print_r($params);18 $params = array_merge ($params, $extraParams); 19 19 switch($params['kind']){ 20 20 case 'box': -
pafacile/tags/2.4.6/incarichiProfessionali/elenco.php
r559534 r619814 122 122 } 123 123 124 function displayIncarichiProfessionaliPublic($params ){124 function displayIncarichiProfessionaliPublic($params, $extraParams = array()){ 125 125 /* 126 126 * Utilizzato dai widget o sulla pagina … … 137 137 ) 138 138 ); 139 139 $params = array_merge ($params, $extraParams); 140 140 switch($params['kind']){ 141 141 case 'box': -
pafacile/tags/2.4.6/mce/editor_plugin.dev.js
r484663 r619814 16 16 'title="%shortcode%" />', 17 17 18 shortCodeRegExp:/(\[PAFacile ([a-z]+)( .+)?\])/i,18 shortCodeRegExp:/(\[PAFacile ([a-z]+)([^\]]+)?\])/i, 19 19 20 20 is: function(n){ … … 22 22 if(n==null) return false; 23 23 if(n.nodeName.toLowerCase() != 'hr') return false; 24 return regExp.test( n.title);24 return regExp.test(decodeURI(n.title)); 25 25 26 26 }, 27 27 getVisual: function(url, shortcode, type, aspect){ 28 28 // le statistiche e gli altri atti hanno un visual shortcode differente 29 29 30 var visualCode = (type==='statistiche')? 30 31 tinyMCE.activeEditor.plugins.PAFacile.visualCodeStatistiche: 31 32 tinyMCE.activeEditor.plugins.PAFacile.visualCode; 32 33 visualCode = visualCode.replace('%url%', url); 33 visualCode = visualCode.replace('%shortcode%', shortcode); 34 // console.log("Sono qui: " + aspect ); 35 if(aspect.indexOf(',')!=-1){ 36 aspect = aspect.substring(0, aspect.indexOf(',')); 37 } 38 visualCode = visualCode.replace('%shortcode%', encodeURI(shortcode) ); 34 39 visualCode = visualCode.replace('%type%', type); 35 40 visualCode = visualCode.replace('%aspect%', aspect); … … 42 47 authorurl : 'http://toSend.it', 43 48 infourl : 'http://toSend.it/prodotti/pafacile', 44 version : "1. 0"49 version : "1.1" 45 50 }; 46 51 }, … … 65 70 66 71 if (theNode) { 67 value = (theNode.getAttribute('title') ? theNode.getAttribute('title') : "");72 value = decodeURI(theNode.getAttribute('title') ? theNode.getAttribute('title') : ""); 68 73 69 74 … … 106 111 ed.onPostProcess.add(function(ed, o) { 107 112 if (o.get) 108 o.content = o.content.replace(/<hr[^>]+title\="(\[PAFacile[^\]]+\])"[^>]+>/g, function(hr) { 109 hr = hr.replace(/<hr[^>]+title\="/,''); 110 hr = hr.replace(/\]"[^>]\/>$/,']'); 113 o.content = o.content.replace(/<hr[^>]+title\="(%5BPAFacile.*)"[^>]+>/g, function(hr) { 114 115 hr = hr.replace(/<hr[^>]+title\="(.*)".*>/i,'$1'); 116 // hr = hr.replace(/"[^>]\/>$/,']'); 117 hr = decodeURI(hr); 118 // console.log(hr); 111 119 return hr; 112 120 }); … … 146 154 147 155 // console.log(scElements); 156 148 157 var out = tinyMCE.activeEditor.plugins.PAFacile.getVisual( 149 158 tinyMCE.activeEditor.plugins.PAFacile.url, … … 204 213 shortcode += tipo; 205 214 206 console.log("azione: " + azione);207 console.log("giorni: " + giorni);215 // console.log("azione: " + azione); 216 // console.log("giorni: " + giorni); 208 217 209 218 if(tipo!='statistiche'){ … … 214 223 } 215 224 shortcode += ']'; 216 225 // console.log(shortcode); 217 226 var visualCode = 218 227 tinyMCE.activeEditor.plugins.PAFacile.getVisual( -
pafacile/tags/2.4.6/ordinanze/elenco.php
r459538 r619814 125 125 } 126 126 127 function displayOrdinanzePublic($params ){127 function displayOrdinanzePublic($params, $extraParams = array()){ 128 128 /* 129 129 * Utilizzato dai widget o sulla pagina … … 142 142 ) 143 143 ); 144 144 $params = array_merge ($params, $extraParams); 145 145 switch($params['kind']){ 146 146 case 'box': -
pafacile/tags/2.4.6/organi/elenco.php
r459538 r619814 153 153 ) 154 154 ); 155 $params = array_merge ($params, $extraParams); 155 156 extract($params); 156 157 switch($kind){ -
pafacile/tags/2.4.6/public-contents/BandiGare.php
r619228 r619814 102 102 public static function elenco($params=null){ 103 103 global $wpdb; 104 104 105 $opzioni = get_option('PAFacile_settings'); 105 106 $subLevel = 3; … … 122 123 $sql = "select * from $tableName "; 123 124 124 # Since V. 2.4.4125 #$dp_al = toMySQLDate($_GET['dp_al_dd'], $_GET['dp_al_mm'], $_GET['dp_al_yy'], false);126 #$ds_dal = toMySQLDate($_GET['ds_dal_dd'], $_GET['ds_dal_mm'], $_GET['ds_dal_yy'], false);127 #$ds_al = toMySQLDate($_GET['ds_al_dd'], $_GET['ds_al_mm'], $_GET['ds_al_yy'], false);128 $dp_dal = toMySQLDate(isset($_GET['dp_dal_dd'])?$_GET['dp_dal_dd']:'01', isset($_GET['dp_dal_mm'])?$_GET['dp_dal_mm']:'01', isset($_GET['dp_dal_yy'])?$_GET['dp_dal_yy']:'1900', false);129 $dp_al = toMySQLDate(isset($_GET['dp_al_dd'])?$_GET['dp_al_dd']:'31', isset($_GET['dp_al_mm'])?$_GET['dp_al_mm']:'12', isset($_GET['dp_al_yy'])?$_GET['dp_al_yy']:date('Y'), false);130 $ds_dal = toMySQLDate(isset($_GET['ds_dal_dd'])?$_GET['ds_dal_dd']:'01', isset($_GET['ds_dal_mm'])?$_GET['ds_dal_mm']:'01', isset($_GET['ds_dal_yy'])?$_GET['ds_dal_yy']:'1900', false);131 $ds_al = toMySQLDate(isset($_GET['ds_al_dd'])?$_GET['ds_al_dd']:'31', isset($_GET['ds_al_mm'])?$_GET['ds_al_mm']:'12', isset($_GET['ds_al_yy'])?$_GET['ds_al_yy']:date('Y'), false);132 133 134 125 $filtro = array(); 126 127 # Since V 2.4.6 128 if(isset($_GET['dp_dal_dd']) && isset($_GET['dp_al_dd'])){ 129 # Since V. 2.4.4 130 #$dp_al = toMySQLDate($_GET['dp_al_dd'], $_GET['dp_al_mm'], $_GET['dp_al_yy'], false); 131 #$ds_dal = toMySQLDate($_GET['ds_dal_dd'], $_GET['ds_dal_mm'], $_GET['ds_dal_yy'], false); 132 #$ds_al = toMySQLDate($_GET['ds_al_dd'], $_GET['ds_al_mm'], $_GET['ds_al_yy'], false); 133 $dp_dal = toMySQLDate(isset($_GET['dp_dal_dd'])?$_GET['dp_dal_dd']:'01', isset($_GET['dp_dal_mm'])?$_GET['dp_dal_mm']:'01', isset($_GET['dp_dal_yy'])?$_GET['dp_dal_yy']:'1900', false); 134 $dp_al = toMySQLDate(isset($_GET['dp_al_dd'])?$_GET['dp_al_dd']:'31', isset($_GET['dp_al_mm'])?$_GET['dp_al_mm']:'12', isset($_GET['dp_al_yy'])?$_GET['dp_al_yy']:date('Y'), false); 135 $ds_dal = toMySQLDate(isset($_GET['ds_dal_dd'])?$_GET['ds_dal_dd']:'01', isset($_GET['ds_dal_mm'])?$_GET['ds_dal_mm']:'01', isset($_GET['ds_dal_yy'])?$_GET['ds_dal_yy']:'1900', false); 136 $ds_al = toMySQLDate(isset($_GET['ds_al_dd'])?$_GET['ds_al_dd']:'31', isset($_GET['ds_al_mm'])?$_GET['ds_al_mm']:'12', isset($_GET['ds_al_yy'])?$_GET['ds_al_yy']:date('Y'), false); 137 $filtro[] = self::buildDataFilter('data_pubblicazione', $dp_dal, $dp_al); 138 $filtro[] = self::buildDataFilter('data_scadenza', $ds_dal, $ds_al); 139 }else{ 140 $filtro[] = "(data_pubblicazione <= now() and data_scadenza >= now())"; 141 } 142 135 143 if(isset($type) && $type!='') $filtro[]="tipo ='$type'"; 136 144 if(isset($office) && $office!='') $filtro[]= "id_ufficio = $office"; 137 138 $filtro[] = self::buildDataFilter('data_pubblicazione', $dp_dal, $dp_al);139 $filtro[] = self::buildDataFilter('data_scadenza', $ds_dal, $ds_al);140 145 141 146 if(isset($_GET['type']) && $_GET['type']!='') $filtro[] .= "tipo='{$_GET['type']}'"; … … 143 148 $filtro = self::purgeFilter($filtro); 144 149 145 $filtro = join(' and ',$filtro); 150 151 $filtro = join(' and ',$filtro); 152 146 153 if($filtro!=''){ 147 154 $filtro = ' where ' . $filtro; //join(' and ', $filtro); -
pafacile/tags/2.4.6/readme.txt
r619228 r619814 4 4 Requires at least: 3.4 5 5 Tested up to: 3.4.2 6 Stable tag: 2.4. 56 Stable tag: 2.4.6 7 7 8 8 Plugin per la gestione delle informazioni on-line che ogni amministrazione deve pubblicare (linee guida per i requisiti minimi per i siti delle PA). … … 72 72 73 73 == Changelog == 74 75 = 2.4.6 (2012-11-01) = 76 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Albo Pretorio 77 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Bandi 78 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Delibere 79 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Determine 80 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Incarichi Professionali 81 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Ordinanze 82 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Organi di Governo 83 * **Update:** Aggiornato plugin per l'editor visuale 84 85 * **Bugfix:** I bandi scaduti non devono essere visualizzati nell'elenco dei bandi in corso. 86 * **Bugfix:** Su internet explorer e firefox senza la console attiva il plugin generava degli errori di javascript nell'editor visuale. 74 87 75 88 = 2.4.5 (2012-10-30) = -
pafacile/tags/2.4.6/tosendit-pa.php
r619228 r619814 3 3 * @package toSend.it 4 4 * @author toSend.it di Luisa Marra 5 * @version 2.4. 55 * @version 2.4.6 6 6 */ 7 7 /* 8 8 Plugin Name: PA Facile 9 9 Plugin URI: http://wordpress.org/extend/plugins/pafacile/ 10 Description: Gestisce le informazioni on-line che qualunque PA deve pubblicare secondo quanto specificato nelle linee guida per i requisiti minimi per i siti delle PA emanate dal Governo nel 201 010 Description: Gestisce le informazioni on-line che qualunque PA deve pubblicare secondo quanto specificato nelle linee guida per i requisiti minimi per i siti delle PA emanate dal Governo nel 2011 11 11 Author: toSend.it di Luisa Marra 12 Version: 2.4. 512 Version: 2.4.6 13 13 Author URI: http://toSend.it 14 14 */ … … 17 17 #define('TOSENDIT_PAFACILE_VERSION', '2.4.3'); 18 18 #define('TOSENDIT_PAFACILE_VERSION', '2.4.4'); 19 define('TOSENDIT_PAFACILE_VERSION', '2.4.5'); 19 # define('TOSENDIT_PAFACILE_VERSION', '2.4.5'); 20 define('TOSENDIT_PAFACILE_VERSION', '2.4.6'); 20 21 21 22 # è PAFacile in un installazione di default … … 267 268 $array = $obj; 268 269 ob_start(); 269 $fnName= strtoupper(substr($array[0],0,1)).substr($array[0],1); 270 /* 271 * Identifica la sezione 272 */ 273 $section = array_shift($array); 274 error_log($section); 275 /* 276 * Evitiamo che si facciano cose strane 277 */ 278 $section = preg_replace('#[^a-z]#', '', $section); 279 280 $fnName= strtoupper(substr($section,0,1)).substr($section,1); 281 /* 282 * Costruisce il nome del metodo 283 */ 270 284 $defaultMethod = "display" . $fnName; 271 $baseMethod = "display" . $array[0] . 'Public'; 272 require_once PAFACILE_PLUING_DIRECTORY .'/' . $array[0].'/elenco.php'; 285 $baseMethod = "display" . $section . 'Public'; 286 287 /* 288 * Include il file specifico dalla sezione 289 */ 290 require_once PAFACILE_PLUING_DIRECTORY .'/' .$section.'/elenco.php'; 273 291 $method = (function_exists($baseMethod))?$baseMethod:$defaultMethod; 274 $method($array[1]); 292 /* 293 * Estrae il tipo di visualizzazione dall'elenco dei parametri 294 */ 295 $actionParameter = array_shift($array); 296 297 /* 298 * Invoca il metodo specifico fornendo la tipologia di azione e l'elenco dei parametri aggiuntivi 299 */ 300 $method($actionParameter, $array); 275 301 $buffer = ob_get_clean(); 276 302 }else{ -
pafacile/trunk/alboPretorio/elenco.php
r525549 r619814 1 1 <?php 2 2 3 function displayAlboPretorioPublic($params ){3 function displayAlboPretorioPublic($params, $extraParams = array()){ 4 4 global $wpdb; 5 5 $params = toSendItGenericMethods::identifyParameters($params, … … 11 11 ) 12 12 ); 13 $params = array_merge ($params, $extraParams); 14 13 15 extract($params); 14 16 switch($params['kind']){ -
pafacile/trunk/bandi/elenco.php
r559534 r619814 1 1 <?php 2 2 3 function displayBandiPublic($params ){3 function displayBandiPublic($params, $extraParams = array()){ 4 4 global $wpdb; 5 5 … … 9 9 ) 10 10 ); 11 $params = array_merge($params, $extraParams); 12 11 13 extract($params); 12 14 switch($kind){ -
pafacile/trunk/delibere/elenco.php
r484663 r619814 2 2 #require_once 'public-contents/Delibere.php'; 3 3 4 function displayDeliberePublic($params ){4 function displayDeliberePublic($params, $extraParams = array()){ 5 5 global $wpdb; 6 6 … … 15 15 ) 16 16 ); 17 17 $params = array_merge ($params, $extraParams); 18 18 extract($params); 19 19 … … 25 25 case 'table': 26 26 return Delibere::elenco($params); 27 #toSendItPAFacileContents::mostraDelibereElenco($params);28 27 break; 29 28 -
pafacile/trunk/determine/elenco.php
r484663 r619814 2 2 # require_once 'public-contents/Determine.php'; 3 3 4 function displayDeterminePublic($params ){4 function displayDeterminePublic($params, $extraParams = array()){ 5 5 $params = toSendItGenericMethods::identifyParameters($params, 6 6 array( … … 16 16 ) 17 17 ); 18 #print_r($params);18 $params = array_merge ($params, $extraParams); 19 19 switch($params['kind']){ 20 20 case 'box': -
pafacile/trunk/incarichiProfessionali/elenco.php
r559534 r619814 122 122 } 123 123 124 function displayIncarichiProfessionaliPublic($params ){124 function displayIncarichiProfessionaliPublic($params, $extraParams = array()){ 125 125 /* 126 126 * Utilizzato dai widget o sulla pagina … … 137 137 ) 138 138 ); 139 139 $params = array_merge ($params, $extraParams); 140 140 switch($params['kind']){ 141 141 case 'box': -
pafacile/trunk/mce/editor_plugin.dev.js
r484663 r619814 16 16 'title="%shortcode%" />', 17 17 18 shortCodeRegExp:/(\[PAFacile ([a-z]+)( .+)?\])/i,18 shortCodeRegExp:/(\[PAFacile ([a-z]+)([^\]]+)?\])/i, 19 19 20 20 is: function(n){ … … 22 22 if(n==null) return false; 23 23 if(n.nodeName.toLowerCase() != 'hr') return false; 24 return regExp.test( n.title);24 return regExp.test(decodeURI(n.title)); 25 25 26 26 }, 27 27 getVisual: function(url, shortcode, type, aspect){ 28 28 // le statistiche e gli altri atti hanno un visual shortcode differente 29 29 30 var visualCode = (type==='statistiche')? 30 31 tinyMCE.activeEditor.plugins.PAFacile.visualCodeStatistiche: 31 32 tinyMCE.activeEditor.plugins.PAFacile.visualCode; 32 33 visualCode = visualCode.replace('%url%', url); 33 visualCode = visualCode.replace('%shortcode%', shortcode); 34 // console.log("Sono qui: " + aspect ); 35 if(aspect.indexOf(',')!=-1){ 36 aspect = aspect.substring(0, aspect.indexOf(',')); 37 } 38 visualCode = visualCode.replace('%shortcode%', encodeURI(shortcode) ); 34 39 visualCode = visualCode.replace('%type%', type); 35 40 visualCode = visualCode.replace('%aspect%', aspect); … … 42 47 authorurl : 'http://toSend.it', 43 48 infourl : 'http://toSend.it/prodotti/pafacile', 44 version : "1. 0"49 version : "1.1" 45 50 }; 46 51 }, … … 65 70 66 71 if (theNode) { 67 value = (theNode.getAttribute('title') ? theNode.getAttribute('title') : "");72 value = decodeURI(theNode.getAttribute('title') ? theNode.getAttribute('title') : ""); 68 73 69 74 … … 106 111 ed.onPostProcess.add(function(ed, o) { 107 112 if (o.get) 108 o.content = o.content.replace(/<hr[^>]+title\="(\[PAFacile[^\]]+\])"[^>]+>/g, function(hr) { 109 hr = hr.replace(/<hr[^>]+title\="/,''); 110 hr = hr.replace(/\]"[^>]\/>$/,']'); 113 o.content = o.content.replace(/<hr[^>]+title\="(%5BPAFacile.*)"[^>]+>/g, function(hr) { 114 115 hr = hr.replace(/<hr[^>]+title\="(.*)".*>/i,'$1'); 116 // hr = hr.replace(/"[^>]\/>$/,']'); 117 hr = decodeURI(hr); 118 // console.log(hr); 111 119 return hr; 112 120 }); … … 146 154 147 155 // console.log(scElements); 156 148 157 var out = tinyMCE.activeEditor.plugins.PAFacile.getVisual( 149 158 tinyMCE.activeEditor.plugins.PAFacile.url, … … 204 213 shortcode += tipo; 205 214 206 console.log("azione: " + azione);207 console.log("giorni: " + giorni);215 // console.log("azione: " + azione); 216 // console.log("giorni: " + giorni); 208 217 209 218 if(tipo!='statistiche'){ … … 214 223 } 215 224 shortcode += ']'; 216 225 // console.log(shortcode); 217 226 var visualCode = 218 227 tinyMCE.activeEditor.plugins.PAFacile.getVisual( -
pafacile/trunk/ordinanze/elenco.php
r459538 r619814 125 125 } 126 126 127 function displayOrdinanzePublic($params ){127 function displayOrdinanzePublic($params, $extraParams = array()){ 128 128 /* 129 129 * Utilizzato dai widget o sulla pagina … … 142 142 ) 143 143 ); 144 144 $params = array_merge ($params, $extraParams); 145 145 switch($params['kind']){ 146 146 case 'box': -
pafacile/trunk/organi/elenco.php
r459538 r619814 153 153 ) 154 154 ); 155 $params = array_merge ($params, $extraParams); 155 156 extract($params); 156 157 switch($kind){ -
pafacile/trunk/public-contents/BandiGare.php
r619228 r619814 102 102 public static function elenco($params=null){ 103 103 global $wpdb; 104 104 105 $opzioni = get_option('PAFacile_settings'); 105 106 $subLevel = 3; … … 122 123 $sql = "select * from $tableName "; 123 124 124 # Since V. 2.4.4125 #$dp_al = toMySQLDate($_GET['dp_al_dd'], $_GET['dp_al_mm'], $_GET['dp_al_yy'], false);126 #$ds_dal = toMySQLDate($_GET['ds_dal_dd'], $_GET['ds_dal_mm'], $_GET['ds_dal_yy'], false);127 #$ds_al = toMySQLDate($_GET['ds_al_dd'], $_GET['ds_al_mm'], $_GET['ds_al_yy'], false);128 $dp_dal = toMySQLDate(isset($_GET['dp_dal_dd'])?$_GET['dp_dal_dd']:'01', isset($_GET['dp_dal_mm'])?$_GET['dp_dal_mm']:'01', isset($_GET['dp_dal_yy'])?$_GET['dp_dal_yy']:'1900', false);129 $dp_al = toMySQLDate(isset($_GET['dp_al_dd'])?$_GET['dp_al_dd']:'31', isset($_GET['dp_al_mm'])?$_GET['dp_al_mm']:'12', isset($_GET['dp_al_yy'])?$_GET['dp_al_yy']:date('Y'), false);130 $ds_dal = toMySQLDate(isset($_GET['ds_dal_dd'])?$_GET['ds_dal_dd']:'01', isset($_GET['ds_dal_mm'])?$_GET['ds_dal_mm']:'01', isset($_GET['ds_dal_yy'])?$_GET['ds_dal_yy']:'1900', false);131 $ds_al = toMySQLDate(isset($_GET['ds_al_dd'])?$_GET['ds_al_dd']:'31', isset($_GET['ds_al_mm'])?$_GET['ds_al_mm']:'12', isset($_GET['ds_al_yy'])?$_GET['ds_al_yy']:date('Y'), false);132 133 134 125 $filtro = array(); 126 127 # Since V 2.4.6 128 if(isset($_GET['dp_dal_dd']) && isset($_GET['dp_al_dd'])){ 129 # Since V. 2.4.4 130 #$dp_al = toMySQLDate($_GET['dp_al_dd'], $_GET['dp_al_mm'], $_GET['dp_al_yy'], false); 131 #$ds_dal = toMySQLDate($_GET['ds_dal_dd'], $_GET['ds_dal_mm'], $_GET['ds_dal_yy'], false); 132 #$ds_al = toMySQLDate($_GET['ds_al_dd'], $_GET['ds_al_mm'], $_GET['ds_al_yy'], false); 133 $dp_dal = toMySQLDate(isset($_GET['dp_dal_dd'])?$_GET['dp_dal_dd']:'01', isset($_GET['dp_dal_mm'])?$_GET['dp_dal_mm']:'01', isset($_GET['dp_dal_yy'])?$_GET['dp_dal_yy']:'1900', false); 134 $dp_al = toMySQLDate(isset($_GET['dp_al_dd'])?$_GET['dp_al_dd']:'31', isset($_GET['dp_al_mm'])?$_GET['dp_al_mm']:'12', isset($_GET['dp_al_yy'])?$_GET['dp_al_yy']:date('Y'), false); 135 $ds_dal = toMySQLDate(isset($_GET['ds_dal_dd'])?$_GET['ds_dal_dd']:'01', isset($_GET['ds_dal_mm'])?$_GET['ds_dal_mm']:'01', isset($_GET['ds_dal_yy'])?$_GET['ds_dal_yy']:'1900', false); 136 $ds_al = toMySQLDate(isset($_GET['ds_al_dd'])?$_GET['ds_al_dd']:'31', isset($_GET['ds_al_mm'])?$_GET['ds_al_mm']:'12', isset($_GET['ds_al_yy'])?$_GET['ds_al_yy']:date('Y'), false); 137 $filtro[] = self::buildDataFilter('data_pubblicazione', $dp_dal, $dp_al); 138 $filtro[] = self::buildDataFilter('data_scadenza', $ds_dal, $ds_al); 139 }else{ 140 $filtro[] = "(data_pubblicazione <= now() and data_scadenza >= now())"; 141 } 142 135 143 if(isset($type) && $type!='') $filtro[]="tipo ='$type'"; 136 144 if(isset($office) && $office!='') $filtro[]= "id_ufficio = $office"; 137 138 $filtro[] = self::buildDataFilter('data_pubblicazione', $dp_dal, $dp_al);139 $filtro[] = self::buildDataFilter('data_scadenza', $ds_dal, $ds_al);140 145 141 146 if(isset($_GET['type']) && $_GET['type']!='') $filtro[] .= "tipo='{$_GET['type']}'"; … … 143 148 $filtro = self::purgeFilter($filtro); 144 149 145 $filtro = join(' and ',$filtro); 150 151 $filtro = join(' and ',$filtro); 152 146 153 if($filtro!=''){ 147 154 $filtro = ' where ' . $filtro; //join(' and ', $filtro); -
pafacile/trunk/readme.txt
r619228 r619814 4 4 Requires at least: 3.4 5 5 Tested up to: 3.4.2 6 Stable tag: 2.4. 56 Stable tag: 2.4.6 7 7 8 8 Plugin per la gestione delle informazioni on-line che ogni amministrazione deve pubblicare (linee guida per i requisiti minimi per i siti delle PA). … … 72 72 73 73 == Changelog == 74 75 = 2.4.6 (2012-11-01) = 76 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Albo Pretorio 77 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Bandi 78 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Delibere 79 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Determine 80 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Incarichi Professionali 81 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Ordinanze 82 * **Update:** Possibilità di impostare parametri aggiuntivi nello shortcode per i Organi di Governo 83 * **Update:** Aggiornato plugin per l'editor visuale 84 85 * **Bugfix:** I bandi scaduti non devono essere visualizzati nell'elenco dei bandi in corso. 86 * **Bugfix:** Su internet explorer e firefox senza la console attiva il plugin generava degli errori di javascript nell'editor visuale. 74 87 75 88 = 2.4.5 (2012-10-30) = -
pafacile/trunk/tosendit-pa.php
r619228 r619814 3 3 * @package toSend.it 4 4 * @author toSend.it di Luisa Marra 5 * @version 2.4. 55 * @version 2.4.6 6 6 */ 7 7 /* 8 8 Plugin Name: PA Facile 9 9 Plugin URI: http://wordpress.org/extend/plugins/pafacile/ 10 Description: Gestisce le informazioni on-line che qualunque PA deve pubblicare secondo quanto specificato nelle linee guida per i requisiti minimi per i siti delle PA emanate dal Governo nel 201 010 Description: Gestisce le informazioni on-line che qualunque PA deve pubblicare secondo quanto specificato nelle linee guida per i requisiti minimi per i siti delle PA emanate dal Governo nel 2011 11 11 Author: toSend.it di Luisa Marra 12 Version: 2.4. 512 Version: 2.4.6 13 13 Author URI: http://toSend.it 14 14 */ … … 17 17 #define('TOSENDIT_PAFACILE_VERSION', '2.4.3'); 18 18 #define('TOSENDIT_PAFACILE_VERSION', '2.4.4'); 19 define('TOSENDIT_PAFACILE_VERSION', '2.4.5'); 19 # define('TOSENDIT_PAFACILE_VERSION', '2.4.5'); 20 define('TOSENDIT_PAFACILE_VERSION', '2.4.6'); 20 21 21 22 # è PAFacile in un installazione di default … … 267 268 $array = $obj; 268 269 ob_start(); 269 $fnName= strtoupper(substr($array[0],0,1)).substr($array[0],1); 270 /* 271 * Identifica la sezione 272 */ 273 $section = array_shift($array); 274 error_log($section); 275 /* 276 * Evitiamo che si facciano cose strane 277 */ 278 $section = preg_replace('#[^a-z]#', '', $section); 279 280 $fnName= strtoupper(substr($section,0,1)).substr($section,1); 281 /* 282 * Costruisce il nome del metodo 283 */ 270 284 $defaultMethod = "display" . $fnName; 271 $baseMethod = "display" . $array[0] . 'Public'; 272 require_once PAFACILE_PLUING_DIRECTORY .'/' . $array[0].'/elenco.php'; 285 $baseMethod = "display" . $section . 'Public'; 286 287 /* 288 * Include il file specifico dalla sezione 289 */ 290 require_once PAFACILE_PLUING_DIRECTORY .'/' .$section.'/elenco.php'; 273 291 $method = (function_exists($baseMethod))?$baseMethod:$defaultMethod; 274 $method($array[1]); 292 /* 293 * Estrae il tipo di visualizzazione dall'elenco dei parametri 294 */ 295 $actionParameter = array_shift($array); 296 297 /* 298 * Invoca il metodo specifico fornendo la tipologia di azione e l'elenco dei parametri aggiuntivi 299 */ 300 $method($actionParameter, $array); 275 301 $buffer = ob_get_clean(); 276 302 }else{
Note: See TracChangeset
for help on using the changeset viewer.