[opencourrier-Commits] r1106 - in branches/5.1.0: app app/css data/pgsql dyn

0 views
Skip to first unread message

jbas...@hephaestos.ovh.adullact.org

unread,
Jun 10, 2020, 5:27:03 AM6/10/20
to openmairie-...@googlegroups.com
Author: jbastide
Date: 2020-06-10 11:27:02 +0200 (Wed, 10 Jun 2020)
New Revision: 1106

Modified:
branches/5.1.0/app/css/app.css
branches/5.1.0/app/upload.php
branches/5.1.0/app/widget_courrier_arrivee.php
branches/5.1.0/app/widget_courrier_arrivee_du_jour_mail.php
branches/5.1.0/app/widget_diffusion_non_validee.php
branches/5.1.0/app/widget_tachenonsolde.php
branches/5.1.0/data/pgsql/init_data.sql
branches/5.1.0/dyn/debug.inc.php
Log:
widgets


Modified: branches/5.1.0/app/css/app.css
===================================================================
--- branches/5.1.0/app/css/app.css 2020-06-10 08:47:29 UTC (rev 1105)
+++ branches/5.1.0/app/css/app.css 2020-06-10 09:27:02 UTC (rev 1106)
@@ -10,6 +10,7 @@
.csv-25 { background-image: url("../img/csv-25x25.png"); }
.photo-16 { background-image: url("../img/photo-16x16.png"); }
.pdf-16 { background-image: url("../img/pdf-16x16.png"); }
+.csv-16 { background-image: url("../img/csv-16x16.png"); }
/*jlb courrieer arrivee nvelle ergonomie*/
.col_5 .fieldsetContent {font-weight:bold;line-height:15px;font-size:10px;width:350px;}
.col_5 .form-content{line-height:5px;min-width:350px;}

Modified: branches/5.1.0/app/upload.php
===================================================================
--- branches/5.1.0/app/upload.php 2020-06-10 08:47:29 UTC (rev 1105)
+++ branches/5.1.0/app/upload.php 2020-06-10 09:27:02 UTC (rev 1106)
@@ -51,7 +51,6 @@
_("non autorisee");
$correct = false;
}
-echo $correct."++++".is_array($_FILES)."---".$_FILES."*".$_FILES['userImage']['type'];

if(is_array($_FILES) and $_FILES and $correct) {

@@ -61,12 +60,17 @@
if(!file_exists($rep))
mkdir($rep);
$targetPath = $rep.$_FILES['userImage']['name'];
+//echo $_FILES['userImage']['type'];
if(move_uploaded_file($sourcePath,$targetPath)) {
if($_FILES['userImage']['type']== 'application/pdf' or $_FILES['userImage']['type']== 'application/download' or substr($_FILES['userImage']['type'],0,5)=='image')
if (substr($_FILES['userImage']['type'],0,5)=='image'){
echo "<p><span class=\"om-prev-icon om-icon-16 photo-16\">".$_FILES['userImage']['name']."</span></p>";
}else{
- echo "<p><span class=\"om-prev-icon om-icon-16 pdf-16\">".$_FILES['userImage']['name']."</span></p>";
+ if($_FILES['userImage']['type']=='text/csv'){
+ echo "<p><span class=\"om-prev-icon om-icon-16 csv-16\">".$_FILES['userImage']['name']."</span></p>";
+ }else{
+ echo "<p><span class=\"om-prev-icon om-icon-16 pdf-16\">".$_FILES['userImage']['name']."</span></p>";
+ }
}
else
echo "<p style=\"margin: 6px;\"><img style=\"border: 5px solid #ffffff; float: right;\" src=".

Modified: branches/5.1.0/app/widget_courrier_arrivee.php
===================================================================
--- branches/5.1.0/app/widget_courrier_arrivee.php 2020-06-10 08:47:29 UTC (rev 1105)
+++ branches/5.1.0/app/widget_courrier_arrivee.php 2020-06-10 09:27:02 UTC (rev 1106)
@@ -8,12 +8,11 @@
*/

//
-require_once "../obj/utils.class.php";
+require_once "framework_openmairie.class.php";

-// Si utils n'est pas instanciée
+
if (!isset($f)) {
- // Instance de la classe utils
- $f = new utils(null);
+ $f = new framework_openmairie(NULL, NULL, _("COURRIER_ARRIVEE"));
}

// Droits nécessaires

Modified: branches/5.1.0/app/widget_courrier_arrivee_du_jour_mail.php
===================================================================
--- branches/5.1.0/app/widget_courrier_arrivee_du_jour_mail.php 2020-06-10 08:47:29 UTC (rev 1105)
+++ branches/5.1.0/app/widget_courrier_arrivee_du_jour_mail.php 2020-06-10 09:27:02 UTC (rev 1106)
@@ -8,11 +8,11 @@
*
* necessite un om parametre : adresse_courrier_du_jour
*/
-require_once "../obj/utils.class.php";
-// Si utils n'est pas instanciée
+require_once "framework_openmairie.class.php";
+
+
if (!isset($f)) {
- // Instance de la classe utils
- $f = new utils(null);
+ $f = new framework_openmairie(NULL, NULL, _("COURRIER_ARRIVEE_JOUR"));
}
// Droits nécessaires
$f->isAccredited(array("courrier_arrivee", "courrier_arrivee_tab"), "OR");

Modified: branches/5.1.0/app/widget_diffusion_non_validee.php
===================================================================
--- branches/5.1.0/app/widget_diffusion_non_validee.php 2020-06-10 08:47:29 UTC (rev 1105)
+++ branches/5.1.0/app/widget_diffusion_non_validee.php 2020-06-10 09:27:02 UTC (rev 1106)
@@ -8,12 +8,11 @@
*/

//
-require_once "../obj/utils.class.php";
+require_once "framework_openmairie.class.php";

-// Si utils n'est pas instanciée
+
if (!isset($f)) {
- // Instance de la classe utils
- $f = new utils(null);
+ $f = new framework_openmairie(NULL, NULL, _("DIFFUSION_NON_VALIDEE"));
}

// Droits nécessaires

Modified: branches/5.1.0/app/widget_tachenonsolde.php
===================================================================
--- branches/5.1.0/app/widget_tachenonsolde.php 2020-06-10 08:47:29 UTC (rev 1105)
+++ branches/5.1.0/app/widget_tachenonsolde.php 2020-06-10 09:27:02 UTC (rev 1106)
@@ -8,14 +8,12 @@
*/

//
-require_once "../obj/utils.class.php";
+require_once "framework_openmairie.class.php";

-// Si utils n'est pas instanciée
+
if (!isset($f)) {
- // Instance de la classe utils
- $f = new utils(null);
+ $f = new framework_openmairie(NULL, NULL, _("TACHE_NON_SOLDEE"));
}
-
// Droits nécessaires
$f->isAccredited(array("tachenonsolde", "tachenonsolde_tab"), "OR");


Modified: branches/5.1.0/data/pgsql/init_data.sql
===================================================================
--- branches/5.1.0/data/pgsql/init_data.sql 2020-06-10 08:47:29 UTC (rev 1105)
+++ branches/5.1.0/data/pgsql/init_data.sql 2020-06-10 09:27:02 UTC (rev 1106)
@@ -49,4 +49,22 @@

INSERT INTO emetteur (emetteur, civilite, emetteurnom, emetteurprenom, emetteurad1, emetteurad2, emetteurcp, emetteurville, tel, type_correspondant, courriel, en_cours) VALUES (1, 3, 'DURANT', 'pierrette', '5 rue des postes', NULL, '13200', 'arles', NULL, 5, NULL, true);

+INSERT INTO om_widget (om_widget, libelle, lien, texte, type, script, arguments) VALUES (1, 'courrier_arrive_du_jour', '', '', 'file','courrier_arrivee_du_jour_mail', '');
+INSERT INTO om_widget (om_widget, libelle, lien, texte, type, script, arguments) VALUES (2, 'courrier_arrivee', '', '', 'file', 'courrier_arrivee', '');
+INSERT INTO om_widget (om_widget, libelle, lien, texte, type, script, arguments) VALUES (3, 'diffusion_non_validee', '', '', 'file', 'diffusion_non_validee', '');
+INSERT INTO om_widget (om_widget, libelle, lien, texte, type, script, arguments) VALUES (4, 'tache_non_solde', '', '', 'file', 'tachenonsolde', '');

+
+INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget) VALUES (1, 1, 'C1', 1, 1);
+INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget) VALUES (2, 1, 'C2', 1, 2);
+INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget) VALUES (3, 1, 'C3', 1, 3);
+INSERT INTO om_dashboard (om_dashboard, om_profil, bloc, "position", om_widget) VALUES (4, 1, 'C2', 2, 4);
+
+
+
+
+
+
+
+
+

Modified: branches/5.1.0/dyn/debug.inc.php
===================================================================
--- branches/5.1.0/dyn/debug.inc.php 2020-06-10 08:47:29 UTC (rev 1105)
+++ branches/5.1.0/dyn/debug.inc.php 2020-06-10 09:27:02 UTC (rev 1106)
@@ -18,6 +18,6 @@
//define('DEBUG', EXTRA_VERBOSE_MODE);
//define('DEBUG', VERBOSE_MODE);
//define('DEBUG', DEBUG_MODE);
-//define('DEBUG', PRODUCTION_MODE);
+define('DEBUG', PRODUCTION_MODE);

?>

Reply all
Reply to author
Forward
0 new messages