add OSS note links

This commit is contained in:
2014-09-19 20:36:40 +02:00
parent 18ce551602
commit 57f2839b26
5 changed files with 29 additions and 10 deletions

View File

@@ -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/';

View File

@@ -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);

9
masks/note.html Normal file
View File

@@ -0,0 +1,9 @@
<div id="article">
<p class="loading_box step_box round"><i class="fa fa-60 fa-inline fa-spin fa-c-loading"></i>La note est en cours de chargement...</p>
</div>
<script type="text/javascript">
databap.pageInit = function()
{
self.goToExternalLink('http://service.sap.com/sap/support/notes/'+self.vars.id);
}
</script>

View File

@@ -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";
}

20
todo
View File

@@ -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 <user> -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
- 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