From 57f2839b263ef0674a94a1535b14df2736fb1127 Mon Sep 17 00:00:00 2001 From: franzz Date: Fri, 19 Sep 2014 20:36:40 +0200 Subject: [PATCH] add OSS note links --- inc/databap.php | 3 ++- inc/toolbox.php | 3 ++- masks/note.html | 9 +++++++++ style/screen.css | 4 ++++ todo | 20 ++++++++++++-------- 5 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 masks/note.html diff --git a/inc/databap.php b/inc/databap.php index a36a3ee..b59692d 100644 --- a/inc/databap.php +++ b/inc/databap.php @@ -136,6 +136,7 @@ class Databap extends PhpObject self::TABLE_TYPE=>'table', 'table'=>'table', self::DOC_TYPE=>'doc', 'documentation'=>'doc', 'doc'=>'doc', self::ART_TYPE=>'article', 'art'=>'article', 'article'=>'article', + 'n'=>'note', 'note'=>'note', 'note oss'=>'note', 'list'=>'list', 'liste'=>'list', 'chat'=>'chat', 'profil'=>'profile', 'profile'=>'profile', @@ -152,7 +153,7 @@ class Databap extends PhpObject public static $PAGE_TITLES = array( 'code'=>'Code', 'chat'=>'Chat', 'doc'=>'Documentation', 'error'=>'Page introuvable', 'list'=>'La liste', 'options'=>'Paramètres', 'procedure'=>'Procédure', 'profile'=>'Profil', 'search'=>'Recherche', 'welcome'=>'Bienvenue', 'table'=>'Table', 'article'=>'Article de blog', - 'logout'=>'Déconnexion'); + 'logout'=>'Déconnexion', 'note'=>'Note OSS'); //Doc constants const DOC_FOLDER = 'docs/'; diff --git a/inc/toolbox.php b/inc/toolbox.php index d00ba37..c138a29 100644 --- a/inc/toolbox.php +++ b/inc/toolbox.php @@ -282,7 +282,8 @@ class ToolBox $sText = self::fixEOL($sText); //building all replacements possibilities - foreach(Databap::$TYPES as $sType=>$asTypeInfo) + $asTypes = Databap::$TYPES + array('note'=>''); + foreach($asTypes as $sType=>$asTypeInfo) { $sPage = Databap::$HASH_TO_PAGE[$sType]; $asHashes = array_keys(Databap::$HASH_TO_PAGE, $sPage); diff --git a/masks/note.html b/masks/note.html new file mode 100644 index 0000000..d524f4c --- /dev/null +++ b/masks/note.html @@ -0,0 +1,9 @@ +
+

La note est en cours de chargement...

+
+ \ No newline at end of file diff --git a/style/screen.css b/style/screen.css index 396f378..45c7818 100644 --- a/style/screen.css +++ b/style/screen.css @@ -594,6 +594,10 @@ vertical-align 0% -5% -10% -15% -20% -25% -30% content: "\f14c"; } +.fa-c-note:before { + content: "\f0fa"; +} + .fa-c-list:before { content: "\f02d"; } diff --git a/todo b/todo index aaa39b0..56f5e15 100644 --- a/todo +++ b/todo @@ -6,6 +6,7 @@ Internal: - Admin param page - Independant Option Class - put feedback box in title +- Créer un fichier de testing Bug fix: - [1.0.1] Check le document type plutot que l'extension pour les /img @@ -15,6 +16,7 @@ Bug fix: - Trouver une meilleure place pour le menu New features: +- Find a way to read OSS notes on databap page - [1.1.0] Refiltre par type dans le search - [1.1.0] Remplacer dans les options : oui / non par [-0] (f205) [O-] (f204) - [1.1.0] Son pour les nouveaux messages @@ -32,17 +34,19 @@ New features: Design - profil : donner la possibilité de mettre des images de profil +EHP 1 +----- + +- Interface menu modifié +- Ajout des notes aux liens dynamiques. Par exemple : note 1622681 => lien vers http://service.sap.com/sap/support/notes/1622681 + Testing ------- - Extract dump.sql.7z - Insérer backup : mysql -u -p --default_character_set utf8mb4 databap < ~/Desktop/dump.sql - Update tokens : ~/?a=reset_pass&user=4 - -MEP 1.0.0 ---------- - -mysql --local-infile -LOAD DATA LOCAL INFILE '/var/www/databap/test.csv' INTO TABLE tables CHARACTER SET UTF8 FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\'; -update tables set refer_id = id_table where refer_id = 0; -Rebuild search : ?a=build_index \ No newline at end of file +- Uploader fichier : + - mysql --local-infile + - LOAD DATA LOCAL INFILE '/var/www/databap/test.csv' INTO TABLE tables CHARACTER SET UTF8 FIELDS TERMINATED BY ',' ENCLOSED BY '"' ESCAPED BY '\\'; + - Rebuild search : ?a=build_index \ No newline at end of file