Commit e4c1c74dcd4264ebd832539e474ccee80ef727fc

Authored by Benjamin Renard
2 parents a2b8ec19 d6106d7d

Merge branch 'amdadev' into amdadev_test

catalogTTList.html 0 โ†’ 100644
... ... @@ -0,0 +1,14 @@
  1 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2 +<html xmlns="http://www.w3.org/1999/xhtml">
  3 +<head>
  4 + <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
  5 + <title>AMDA Catalogs & Time Tables</title>
  6 + <link rel="stylesheet" type="text/css" href="js/lib/ext/resources/css/ext-all.css"/>
  7 + <link rel="stylesheet" type="text/css" href="js/resources/css/amda.css"/>
  8 + <script type="text/javascript" src="js/lib/ext/ext-all.js"></script>
  9 + <script type="text/javascript" src="js/app/catalogTTList.js"></script>
  10 +</head>
  11 +
  12 +<body background="js/resources/images/desktop/wallpapers/Cdpp2.jpg"/>
  13 +</body>
  14 +</html>
... ...
help/info.html
... ... @@ -48,8 +48,7 @@
48 48 </ul>
49 49 <li><h4>Access to Shared Time Tables and Catalogs</h4>
50 50 <ul>
51   - <li><a title="TBD" target="_blank">Time Tables</a>
52   - <li><a title="TBD" target="_blank">Catalogs</a>
  51 + <li><a href="../catalogTTList.html" target="_blank">Time Tables & Catalogs</a>
53 52 </ul>
54 53 </ul>
55 54 </div>
... ...
js/app/catalogTTList.js 0 โ†’ 100644
... ... @@ -0,0 +1,133 @@
  1 +
  2 +function columnWrap(val){
  3 + return '<div style="white-space:normal !important;">'+val+'</div>';
  4 +}
  5 +
  6 +function dlLink(format, record){
  7 + return 'php/getSharedObject.php?type='+record.get('type')
  8 + +'&id='+record.get('id')+'&format='+format
  9 + +'&nameToGive='+record.get('name');
  10 +}
  11 +
  12 +Ext.onReady(function () {
  13 + Ext.define('CatalogTTModel', {
  14 + extend: 'Ext.data.Model',
  15 + fields: [
  16 + 'id', 'name', 'type','created','description',
  17 + 'nbIntervals','surveyStart','surveyStop','sharedDate'
  18 + ]
  19 + });
  20 + //The Store contains the AjaxProxy as an inline configuration
  21 + var store = Ext.create('Ext.data.Store', {
  22 + autoLoad:true,
  23 + model: 'CatalogTTModel',
  24 + groupField: 'type',
  25 + proxy: {
  26 + type: 'ajax',
  27 + url : 'php/catalogTTList.php'
  28 + }
  29 + });
  30 + var presentationPanel = Ext.create('Ext.panel.Panel', {
  31 + height: 80,
  32 + layout:'hbox',
  33 + bodyStyle: { background : '#dfe8f6'},
  34 + items:[
  35 + {
  36 + xtype:'image',
  37 + src: 'js/resources/images/Amda_coul_sur_blanc.svg',
  38 + height:80,
  39 + width:120,
  40 + margin: '0 10 0 10',
  41 +
  42 + },
  43 + {
  44 + xtype:'panel',
  45 + border:false,
  46 + autoScroll : true,
  47 + padding:5,
  48 + bodyStyle: { background : '#dfe8f6'},
  49 + flex:1,
  50 + height:80,
  51 + html: '<p>This page presents catalogs and time tables available in the on-line analysis tool \
  52 + <a href="http://amda.cdpp.eu" target="_blank">AMDA</a> \
  53 + (see the "Shared" folders). These items come from published articles or \
  54 + community/project websites and can be downloaded in several formats \
  55 + (<a href="https://www.ivoa.net/documents/VOTable/20130315/PR-VOTable-1.3-20130315.html" target="_blank">VOTable</a>, \
  56 + <a href="https://spase-group.org/docs/conventions/HDMC-Event-List-Specification-v1.0.4.pdf" target="_blank">HPEvents</a> \
  57 + or ASCII compliant with AMDA). They can be uploaded in other analysis \
  58 + tools like <a href="http://3dview.cdpp.eu/" target="_blank">3DView</a>, \
  59 + <a href="https://github.com/SciQLop/SciQLop" target="_blank">SciQLop</a>, ...</p>',
  60 + }
  61 + ]
  62 +
  63 + });
  64 + var grid = Ext.create('Ext.grid.Panel', {
  65 + xtype:'grouped-grid',
  66 + requires: [
  67 + 'Ext.grid.feature.Grouping'
  68 + ],
  69 + minHeight: 200,
  70 + store: store,
  71 + features: [{
  72 + ftype: 'grouping',
  73 + groupHeaderTpl: '{columnName}: {name} ({rows.length} Item{[values.rows.length > 1 ? "s" : ""]})',
  74 + hideGroupedHeader: true,
  75 + startCollapsed: false,
  76 + id: 'typeGrouping'
  77 + }],
  78 + columns: [
  79 + //{ text: 'Id', width:100, dataIndex: 'id' },
  80 + { text: 'Name', width:100, dataIndex: 'name' },
  81 + { text: 'Description', flex:1, dataIndex: 'description', renderer:columnWrap },
  82 + { text: '#', width:50, dataIndex: 'nbIntervals',tooltip: 'Number of line',align:'center' },
  83 + { text: 'Survey start', width:135, dataIndex: 'surveyStart' },
  84 + { text: 'Survey stop', width:135, dataIndex: 'surveyStop' },
  85 + { text: 'Creation date', width:135, dataIndex: 'created' },
  86 + { text: 'Sharing date', width:135, dataIndex: 'sharedDate' },
  87 + { text: 'Type', dataIndex: 'type' },
  88 + {
  89 + width: 40, menuDisabled: true, xtype: 'actioncolumn', tooltip: 'Download the shared TT/Cat', align: 'center',
  90 + renderer: function(value, metaData, record, rowIndex, colIndex, store) {
  91 + var buttonId = Ext.id();
  92 + Ext.defer(function() {
  93 + var button = Ext.create('Ext.button.Button', {
  94 + icon: 'js/resources/images/16x16/download_manager.png',
  95 + renderTo: buttonId,
  96 + menu: [
  97 + {
  98 + text: 'ASCII',
  99 + handler: function() { window.open( dlLink('ASCII', record), '_blank');}
  100 + },
  101 + {
  102 + text: 'VOTable',
  103 + handler: function() { window.open( dlLink('VOTable', record), '_blank');}
  104 + },
  105 + {
  106 + text: 'HPEvent',
  107 + handler: function() {window.open( dlLink('HPEvent', record), '_blank');}
  108 + },
  109 + ]
  110 + });
  111 + }, 10);
  112 + return '<div style="height:1px;margin-top:-2px;" id="' + buttonId + '"></div>';
  113 + }
  114 + }
  115 + ]
  116 + });
  117 +
  118 + var win = Ext.create('Ext.window.Window', {
  119 + width: 1100,
  120 + height: 675,
  121 + title: 'List of shared catalogs and time tables',
  122 + closable:false,
  123 + autoScroll : true,
  124 + maximizable: true,
  125 + layout:'anchor',
  126 + items: [
  127 + presentationPanel,
  128 + grid
  129 + ]
  130 + }).show();
  131 +
  132 +
  133 +});
0 134 \ No newline at end of file
... ...
js/resources/images/Amda_coul_sur_blanc.svg 0 โ†’ 100644
... ... @@ -0,0 +1,223 @@
  1 +<?xml version="1.0" encoding="utf-8"?>
  2 +<!-- Generator: Adobe Illustrator 18.1.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
  3 +<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
  4 + viewBox="0 0 348.2 175" enable-background="new 0 0 348.2 175" xml:space="preserve">
  5 +<g id="gris_x5F_sur_x5F_noir_1_" display="none">
  6 +
  7 + <radialGradient id="SVGID_1_" cx="-3165.8584" cy="-5064.4795" r="28.585" gradientTransform="matrix(0.88 -0.1361 0.1361 0.88 3626.592 4098.9229)" gradientUnits="userSpaceOnUse">
  8 + <stop offset="0" style="stop-color:#FFFFFF"/>
  9 + <stop offset="8.760076e-02" style="stop-color:#FCFCFC"/>
  10 + <stop offset="0.1915" style="stop-color:#F1F1F1"/>
  11 + <stop offset="0.3036" style="stop-color:#E0E0E0"/>
  12 + <stop offset="0.4207" style="stop-color:#C6C6C6"/>
  13 + <stop offset="0.5109" style="stop-color:#AEAEAE"/>
  14 + <stop offset="1" style="stop-color:#454444"/>
  15 + </radialGradient>
  16 + <path display="inline" fill="url(#SVGID_1_)" d="M145.7,101.7c-11.2,0-20.9-8.3-22.6-19.4c-1.9-12.5,6.6-24.2,19.1-26.1
  17 + c1.2-0.2,2.4-0.3,3.5-0.3c11.2,0,20.9,8.3,22.6,19.4c1.9,12.5-6.6,24.2-19.1,26.1C148.1,101.6,146.9,101.7,145.7,101.7z"/>
  18 + <radialGradient id="SVGID_2_" cx="206.819" cy="125.5404" r="9.4071" gradientUnits="userSpaceOnUse">
  19 + <stop offset="0" style="stop-color:#FFFFFF"/>
  20 + <stop offset="8.760076e-02" style="stop-color:#FCFCFC"/>
  21 + <stop offset="0.1915" style="stop-color:#F1F1F1"/>
  22 + <stop offset="0.3036" style="stop-color:#E0E0E0"/>
  23 + <stop offset="0.4207" style="stop-color:#C6C6C6"/>
  24 + <stop offset="0.5109" style="stop-color:#AEAEAE"/>
  25 + <stop offset="1" style="stop-color:#454444"/>
  26 + </radialGradient>
  27 + <path display="inline" fill="url(#SVGID_2_)" d="M204.5,135.2c-0.4,0-0.8,0-1.1-0.1c-4.4-0.6-7.4-4.7-6.8-9
  28 + c0.6-3.9,3.9-6.9,7.9-6.9c0.4,0,0.8,0,1.1,0.1c4.4,0.6,7.4,4.7,6.8,9C211.9,132.3,208.5,135.2,204.5,135.2z"/>
  29 + <g display="inline">
  30 + <g>
  31 + <linearGradient id="SVGID_3_" gradientUnits="userSpaceOnUse" x1="34.5526" y1="87.498" x2="294.1466" y2="87.498">
  32 + <stop offset="0.1895" style="stop-color:#979696"/>
  33 + <stop offset="0.8665" style="stop-color:#575756"/>
  34 + </linearGradient>
  35 + <path fill="url(#SVGID_3_)" d="M283,109.3c-9.8,2.7-19,5.7-27.9,8.6c-7.8,2.5-15.1,4.9-22.5,7c-6.5,1.8-12.6,3.3-18.2,4.3
  36 + c-0.9,4.7-5.1,8.1-9.8,8.1c-0.5,0-0.9,0-1.4-0.1c-3.7-0.5-6.6-2.9-7.9-6.1c-20.3-0.1-32.7-8.7-39.2-26.2c-1.3,0.5-2.6,0.9-4,1.2
  37 + c-0.2,0-0.4,0.1-0.5,0.1c-0.4,0.1-0.9,0.2-1.3,0.2c-1.6,0.2-3.1,0.3-4.7,0.3l-0.1,0c-2.5,0-4.9-0.4-7.2-1.1
  38 + c-16.4,22.9-34.5,25.6-46.3,20.3c-12.9-5.8-23.7-23.5-16.9-48.7c4.8-17.6,16.9-30.6,30.9-33.1c9.5-1.7,18.7,1.8,26.6,9.8
  39 + c2.8-1.5,5.8-2.5,9.1-3.1c1.2-0.2,2.4-0.3,3.6-0.3C133.9,36.5,119,30,103.7,32.7C85.3,36,69.5,52.4,63.6,74.4
  40 + c-3.7,13.7-3.2,27,1.3,38.5c4.4,11,12.2,19.5,22.1,24c6.4,2.9,14,4.2,22.2,2.9c12.2-1.9,25.6-9.5,37.8-26
  41 + c13.3,28.6,40.3,31.7,65.8,27.7c8-1.2,15.9-3.2,23.1-5.2c7.7-2.2,15.1-4.6,23-7.2c8-2.6,16.1-5.3,24.6-7.7L283,109.3z
  42 + M120.3,64.3c0.5-0.1,1-0.1,1.5-0.1c2.5-4.1,6-7.5,10.3-9.9c-0.9-0.4-1.8-0.7-2.7-0.9c-3.6-1-7.3-1.3-11-0.7
  43 + C107.3,54.3,97.9,63.1,94.4,75c-4.7,16.2,3.3,32.9,17.9,37.1c3.6,1,7.3,1.3,11,0.7c5.4-0.8,10.5-3.4,14.6-7.1
  44 + c-4.2-1.2-8.1-3.4-11.2-6.4c-1.6,0.9-3.4,1.5-5.2,1.8c-2,0.3-4,0.2-5.8-0.4c-8.3-2.4-12.8-12.5-9.9-22.5
  45 + C107.9,70.9,113.7,65.3,120.3,64.3z"/>
  46 + </g>
  47 + </g>
  48 + <g display="inline">
  49 + <path fill="#FFFFFF" d="M181.7,66.3h15.2c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v19.5h-3.6v-8.3H181v8.3h-3.6V70.6
  50 + c0-1.2,0.4-2.2,1.3-3C179.5,66.8,180.5,66.3,181.7,66.3z M181,78.3h16.7v-7.6c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2
  51 + h-15.2c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5V78.3z"/>
  52 + <path fill="#FFFFFF" d="M231.1,71c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v14.9h-3.5V75.3c0-0.2-0.1-0.4-0.2-0.5
  53 + c-0.1-0.1-0.3-0.2-0.5-0.2h-7.6c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v14.9h-3.6V75.3c0-0.2-0.1-0.4-0.2-0.5
  54 + c-0.1-0.1-0.3-0.2-0.5-0.2h-7.6c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v14.9h-3.6V71H231.1z"/>
  55 + <path fill="#FFFFFF" d="M255.5,64.7h3.6v25.5h-15.2c-1.2,0-2.2-0.4-3-1.3s-1.3-1.9-1.3-3V75.3c0-1.2,0.4-2.2,1.3-3s1.9-1.3,3-1.3
  56 + h11.6V64.7z M243.9,86.6h10.9c0.2,0,0.4-0.1,0.5-0.2c0.1-0.1,0.2-0.3,0.2-0.5V75.3c0-0.2-0.1-0.4-0.2-0.5
  57 + c-0.1-0.1-0.3-0.2-0.5-0.2h-10.9c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v10.6c0,0.2,0.1,0.4,0.2,0.5
  58 + C243.5,86.5,243.7,86.6,243.9,86.6z"/>
  59 + <path fill="#FFFFFF" d="M279.4,71c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v14.9h-15.2c-1.2,0-2.2-0.4-3-1.3s-1.3-1.9-1.3-3
  60 + v-7.1h15.9v-3.5c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-15.2V71H279.4z M280.2,86.6v-4.2h-12.4v3.5
  61 + c0,0.2,0.1,0.4,0.2,0.5c0.1,0.1,0.3,0.2,0.5,0.2H280.2z"/>
  62 + </g>
  63 +</g>
  64 +<g id="gris_x5F_sur_x5F_blanc" display="none">
  65 +
  66 + <radialGradient id="SVGID_4_" cx="-3165.8584" cy="-5064.4795" r="28.585" gradientTransform="matrix(0.88 -0.1361 0.1361 0.88 3626.592 4098.9229)" gradientUnits="userSpaceOnUse">
  67 + <stop offset="0" style="stop-color:#FFFFFF"/>
  68 + <stop offset="8.760076e-02" style="stop-color:#FCFCFC"/>
  69 + <stop offset="0.1915" style="stop-color:#F1F1F1"/>
  70 + <stop offset="0.3036" style="stop-color:#E0E0E0"/>
  71 + <stop offset="0.4207" style="stop-color:#C6C6C6"/>
  72 + <stop offset="0.5109" style="stop-color:#AEAEAE"/>
  73 + <stop offset="1" style="stop-color:#454444"/>
  74 + </radialGradient>
  75 + <path display="inline" fill="url(#SVGID_4_)" d="M145.7,101.7c-11.2,0-20.9-8.3-22.6-19.4c-1.9-12.5,6.6-24.2,19.1-26.1
  76 + c1.2-0.2,2.4-0.3,3.5-0.3c11.2,0,20.9,8.3,22.6,19.4c1.9,12.5-6.6,24.2-19.1,26.1C148.1,101.6,146.9,101.7,145.7,101.7z"/>
  77 + <radialGradient id="SVGID_5_" cx="206.819" cy="125.5404" r="9.4071" gradientUnits="userSpaceOnUse">
  78 + <stop offset="0" style="stop-color:#FFFFFF"/>
  79 + <stop offset="8.760076e-02" style="stop-color:#FCFCFC"/>
  80 + <stop offset="0.1915" style="stop-color:#F1F1F1"/>
  81 + <stop offset="0.3036" style="stop-color:#E0E0E0"/>
  82 + <stop offset="0.4207" style="stop-color:#C6C6C6"/>
  83 + <stop offset="0.5109" style="stop-color:#AEAEAE"/>
  84 + <stop offset="1" style="stop-color:#454444"/>
  85 + </radialGradient>
  86 + <path display="inline" fill="url(#SVGID_5_)" d="M204.5,135.2c-0.4,0-0.8,0-1.1-0.1c-4.4-0.6-7.4-4.7-6.8-9
  87 + c0.6-3.9,3.9-6.9,7.9-6.9c0.4,0,0.8,0,1.1,0.1c4.4,0.6,7.4,4.7,6.8,9C211.9,132.3,208.5,135.2,204.5,135.2z"/>
  88 + <g display="inline">
  89 + <g>
  90 + <linearGradient id="SVGID_6_" gradientUnits="userSpaceOnUse" x1="34.5526" y1="87.498" x2="294.1466" y2="87.498">
  91 + <stop offset="0.1895" style="stop-color:#979696"/>
  92 + <stop offset="0.8665" style="stop-color:#575756"/>
  93 + </linearGradient>
  94 + <path fill="url(#SVGID_6_)" d="M283,109.3c-9.8,2.7-19,5.7-27.9,8.6c-7.8,2.5-15.1,4.9-22.5,7c-6.5,1.8-12.6,3.3-18.2,4.3
  95 + c-0.9,4.7-5.1,8.1-9.8,8.1c-0.5,0-0.9,0-1.4-0.1c-3.7-0.5-6.6-2.9-7.9-6.1c-20.3-0.1-32.7-8.7-39.2-26.2c-1.3,0.5-2.6,0.9-4,1.2
  96 + c-0.2,0-0.4,0.1-0.5,0.1c-0.4,0.1-0.9,0.2-1.3,0.2c-1.6,0.2-3.1,0.3-4.7,0.3l-0.1,0c-2.5,0-4.9-0.4-7.2-1.1
  97 + c-16.4,22.9-34.5,25.6-46.3,20.3c-12.9-5.8-23.7-23.5-16.9-48.7c4.8-17.6,16.9-30.6,30.9-33.1c9.5-1.7,18.7,1.8,26.6,9.8
  98 + c2.8-1.5,5.8-2.5,9.1-3.1c1.2-0.2,2.4-0.3,3.6-0.3C133.9,36.5,119,30,103.7,32.7C85.3,36,69.5,52.4,63.6,74.4
  99 + c-3.7,13.7-3.2,27,1.3,38.5c4.4,11,12.2,19.5,22.1,24c6.4,2.9,14,4.2,22.2,2.9c12.2-1.9,25.6-9.5,37.8-26
  100 + c13.3,28.6,40.3,31.7,65.8,27.7c8-1.2,15.9-3.2,23.1-5.2c7.7-2.2,15.1-4.6,23-7.2c8-2.6,16.1-5.3,24.6-7.7L283,109.3z
  101 + M120.3,64.3c0.5-0.1,1-0.1,1.5-0.1c2.5-4.1,6-7.5,10.3-9.9c-0.9-0.4-1.8-0.7-2.7-0.9c-3.6-1-7.3-1.3-11-0.7
  102 + C107.3,54.3,97.9,63.1,94.4,75c-4.7,16.2,3.3,32.9,17.9,37.1c3.6,1,7.3,1.3,11,0.7c5.4-0.8,10.5-3.4,14.6-7.1
  103 + c-4.2-1.2-8.1-3.4-11.2-6.4c-1.6,0.9-3.4,1.5-5.2,1.8c-2,0.3-4,0.2-5.8-0.4c-8.3-2.4-12.8-12.5-9.9-22.5
  104 + C107.9,70.9,113.7,65.3,120.3,64.3z"/>
  105 + </g>
  106 + </g>
  107 + <g display="inline">
  108 + <path d="M181.7,66.3h15.2c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v19.5h-3.6v-8.3H181v8.3h-3.6V70.6c0-1.2,0.4-2.2,1.3-3
  109 + C179.5,66.8,180.5,66.3,181.7,66.3z M181,78.3h16.7v-7.6c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-15.2
  110 + c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5V78.3z"/>
  111 + <path d="M231.1,71c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v14.9h-3.5V75.3c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2
  112 + h-7.6c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v14.9h-3.6V75.3c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-7.6
  113 + c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v14.9h-3.6V71H231.1z"/>
  114 + <path d="M255.5,64.7h3.6v25.5h-15.2c-1.2,0-2.2-0.4-3-1.3s-1.3-1.9-1.3-3V75.3c0-1.2,0.4-2.2,1.3-3s1.9-1.3,3-1.3h11.6V64.7z
  115 + M243.9,86.6h10.9c0.2,0,0.4-0.1,0.5-0.2c0.1-0.1,0.2-0.3,0.2-0.5V75.3c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-10.9
  116 + c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v10.6c0,0.2,0.1,0.4,0.2,0.5C243.5,86.5,243.7,86.6,243.9,86.6z"/>
  117 + <path d="M279.4,71c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v14.9h-15.2c-1.2,0-2.2-0.4-3-1.3s-1.3-1.9-1.3-3v-7.1h15.9v-3.5
  118 + c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-15.2V71H279.4z M280.2,86.6v-4.2h-12.4v3.5c0,0.2,0.1,0.4,0.2,0.5
  119 + c0.1,0.1,0.3,0.2,0.5,0.2H280.2z"/>
  120 + </g>
  121 +</g>
  122 +<g id="coul_x5F_sur_x5F_noir" display="none">
  123 +
  124 + <radialGradient id="SVGID_7_" cx="-3166.0349" cy="-5064.5068" r="25.8382" gradientTransform="matrix(0.88 -0.1361 0.1361 0.88 3626.592 4098.9229)" gradientUnits="userSpaceOnUse">
  125 + <stop offset="0" style="stop-color:#BFE5FB"/>
  126 + <stop offset="0.496" style="stop-color:#009FE3"/>
  127 + <stop offset="1" style="stop-color:#023E85"/>
  128 + </radialGradient>
  129 + <path display="inline" fill="url(#SVGID_7_)" d="M145.7,101.7c-11.2,0-20.9-8.3-22.6-19.4c-1.9-12.5,6.6-24.2,19.1-26.1
  130 + c1.2-0.2,2.4-0.3,3.5-0.3c11.2,0,20.9,8.3,22.6,19.4c1.9,12.5-6.6,24.2-19.1,26.1C148.1,101.6,146.9,101.7,145.7,101.7z"/>
  131 + <radialGradient id="SVGID_8_" cx="206.819" cy="125.5404" r="8.0184" gradientUnits="userSpaceOnUse">
  132 + <stop offset="0" style="stop-color:#BFE5FB"/>
  133 + <stop offset="0.496" style="stop-color:#009FE3"/>
  134 + <stop offset="1" style="stop-color:#023E85"/>
  135 + </radialGradient>
  136 + <path display="inline" fill="url(#SVGID_8_)" d="M204.5,135.2c-0.4,0-0.8,0-1.1-0.1c-4.4-0.6-7.4-4.7-6.8-9
  137 + c0.6-3.9,3.9-6.9,7.9-6.9c0.4,0,0.8,0,1.1,0.1c4.4,0.6,7.4,4.7,6.8,9C211.9,132.3,208.5,135.2,204.5,135.2z"/>
  138 + <g display="inline">
  139 + <g>
  140 + <linearGradient id="SVGID_9_" gradientUnits="userSpaceOnUse" x1="34.5526" y1="87.498" x2="294.1466" y2="87.498">
  141 + <stop offset="0.2851" style="stop-color:#4CC2F1"/>
  142 + <stop offset="1" style="stop-color:#005AA7"/>
  143 + </linearGradient>
  144 + <path fill="url(#SVGID_9_)" d="M283,109.3c-9.8,2.7-19,5.7-27.9,8.6c-7.8,2.5-15.1,4.9-22.5,7c-6.5,1.8-12.6,3.3-18.2,4.3
  145 + c-0.9,4.7-5.1,8.1-9.8,8.1c-0.5,0-0.9,0-1.4-0.1c-3.7-0.5-6.6-2.9-7.9-6.1c-20.3-0.1-32.7-8.7-39.2-26.2c-1.3,0.5-2.6,0.9-4,1.2
  146 + c-0.2,0-0.4,0.1-0.5,0.1c-0.4,0.1-0.9,0.2-1.3,0.2c-1.6,0.2-3.1,0.3-4.7,0.3l-0.1,0c-2.5,0-4.9-0.4-7.2-1.1
  147 + c-16.4,22.9-34.5,25.6-46.3,20.3c-12.9-5.8-23.7-23.5-16.9-48.7c4.8-17.6,16.9-30.6,30.9-33.1c9.5-1.7,18.7,1.8,26.6,9.8
  148 + c2.8-1.5,5.8-2.5,9.1-3.1c1.2-0.2,2.4-0.3,3.6-0.3C133.9,36.5,119,30,103.7,32.7C85.3,36,69.5,52.4,63.6,74.4
  149 + c-3.7,13.7-3.2,27,1.3,38.5c4.4,11,12.2,19.5,22.1,24c6.4,2.9,14,4.2,22.2,2.9c12.2-1.9,25.6-9.5,37.8-26
  150 + c13.3,28.6,40.3,31.7,65.8,27.7c8-1.2,15.9-3.2,23.1-5.2c7.7-2.2,15.1-4.6,23-7.2c8-2.6,16.1-5.3,24.6-7.7L283,109.3z
  151 + M120.3,64.3c0.5-0.1,1-0.1,1.5-0.1c2.5-4.1,6-7.5,10.3-9.9c-0.9-0.4-1.8-0.7-2.7-0.9c-3.6-1-7.3-1.3-11-0.7
  152 + C107.3,54.3,97.9,63.1,94.4,75c-4.7,16.2,3.3,32.9,17.9,37.1c3.6,1,7.3,1.3,11,0.7c5.4-0.8,10.5-3.4,14.6-7.1
  153 + c-4.2-1.2-8.1-3.4-11.2-6.4c-1.6,0.9-3.4,1.5-5.2,1.8c-2,0.3-4,0.2-5.8-0.4c-8.3-2.4-12.8-12.5-9.9-22.5
  154 + C107.9,70.9,113.7,65.3,120.3,64.3z"/>
  155 + </g>
  156 + </g>
  157 + <g display="inline">
  158 + <path fill="#FFFFFF" d="M181.7,66.3h15.2c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v19.5h-3.6v-8.3H181v8.3h-3.6V70.6
  159 + c0-1.2,0.4-2.2,1.3-3C179.5,66.8,180.5,66.3,181.7,66.3z M181,78.3h16.7v-7.6c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2
  160 + h-15.2c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5V78.3z"/>
  161 + <path fill="#FFFFFF" d="M231.1,71c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v14.9h-3.5V75.3c0-0.2-0.1-0.4-0.2-0.5
  162 + c-0.1-0.1-0.3-0.2-0.5-0.2h-7.6c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v14.9h-3.6V75.3c0-0.2-0.1-0.4-0.2-0.5
  163 + c-0.1-0.1-0.3-0.2-0.5-0.2h-7.6c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v14.9h-3.6V71H231.1z"/>
  164 + <path fill="#FFFFFF" d="M255.5,64.7h3.6v25.5h-15.2c-1.2,0-2.2-0.4-3-1.3s-1.3-1.9-1.3-3V75.3c0-1.2,0.4-2.2,1.3-3s1.9-1.3,3-1.3
  165 + h11.6V64.7z M243.9,86.6h10.9c0.2,0,0.4-0.1,0.5-0.2c0.1-0.1,0.2-0.3,0.2-0.5V75.3c0-0.2-0.1-0.4-0.2-0.5
  166 + c-0.1-0.1-0.3-0.2-0.5-0.2h-10.9c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v10.6c0,0.2,0.1,0.4,0.2,0.5
  167 + C243.5,86.5,243.7,86.6,243.9,86.6z"/>
  168 + <path fill="#FFFFFF" d="M279.4,71c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v14.9h-15.2c-1.2,0-2.2-0.4-3-1.3s-1.3-1.9-1.3-3
  169 + v-7.1h15.9v-3.5c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-15.2V71H279.4z M280.2,86.6v-4.2h-12.4v3.5
  170 + c0,0.2,0.1,0.4,0.2,0.5c0.1,0.1,0.3,0.2,0.5,0.2H280.2z"/>
  171 + </g>
  172 +</g>
  173 +<g id="coul_x5F_sur_x5F_blanc_1_">
  174 +
  175 + <radialGradient id="SVGID_10_" cx="-3166.0349" cy="-5064.5068" r="25.8382" gradientTransform="matrix(0.88 -0.1361 0.1361 0.88 3626.592 4098.9229)" gradientUnits="userSpaceOnUse">
  176 + <stop offset="0" style="stop-color:#BFE5FB"/>
  177 + <stop offset="0.496" style="stop-color:#009FE3"/>
  178 + <stop offset="1" style="stop-color:#023E85"/>
  179 + </radialGradient>
  180 + <path fill="url(#SVGID_10_)" d="M145.7,101.7c-11.2,0-20.9-8.3-22.6-19.4c-1.9-12.5,6.6-24.2,19.1-26.1c1.2-0.2,2.4-0.3,3.5-0.3
  181 + c11.2,0,20.9,8.3,22.6,19.4c1.9,12.5-6.6,24.2-19.1,26.1C148.1,101.6,146.9,101.7,145.7,101.7z"/>
  182 + <radialGradient id="SVGID_11_" cx="206.819" cy="125.5404" r="8.0184" gradientUnits="userSpaceOnUse">
  183 + <stop offset="0" style="stop-color:#BFE5FB"/>
  184 + <stop offset="0.496" style="stop-color:#009FE3"/>
  185 + <stop offset="1" style="stop-color:#023E85"/>
  186 + </radialGradient>
  187 + <path fill="url(#SVGID_11_)" d="M204.5,135.2c-0.4,0-0.8,0-1.1-0.1c-4.4-0.6-7.4-4.7-6.8-9c0.6-3.9,3.9-6.9,7.9-6.9
  188 + c0.4,0,0.8,0,1.1,0.1c4.4,0.6,7.4,4.7,6.8,9C211.9,132.3,208.5,135.2,204.5,135.2z"/>
  189 + <g>
  190 + <g>
  191 + <linearGradient id="SVGID_12_" gradientUnits="userSpaceOnUse" x1="34.5526" y1="87.498" x2="294.1466" y2="87.498">
  192 + <stop offset="0.2851" style="stop-color:#4CC2F1"/>
  193 + <stop offset="1" style="stop-color:#005AA7"/>
  194 + </linearGradient>
  195 + <path fill="url(#SVGID_12_)" d="M283,109.3c-9.8,2.7-19,5.7-27.9,8.6c-7.8,2.5-15.1,4.9-22.5,7c-6.5,1.8-12.6,3.3-18.2,4.3
  196 + c-0.9,4.7-5.1,8.1-9.8,8.1c-0.5,0-0.9,0-1.4-0.1c-3.7-0.5-6.6-2.9-7.9-6.1c-20.3-0.1-32.7-8.7-39.2-26.2c-1.3,0.5-2.6,0.9-4,1.2
  197 + c-0.2,0-0.4,0.1-0.5,0.1c-0.4,0.1-0.9,0.2-1.3,0.2c-1.6,0.2-3.1,0.3-4.7,0.3l-0.1,0c-2.5,0-4.9-0.4-7.2-1.1
  198 + c-16.4,22.9-34.5,25.6-46.3,20.3c-12.9-5.8-23.7-23.5-16.9-48.7c4.8-17.6,16.9-30.6,30.9-33.1c9.5-1.7,18.7,1.8,26.6,9.8
  199 + c2.8-1.5,5.8-2.5,9.1-3.1c1.2-0.2,2.4-0.3,3.6-0.3C133.9,36.5,119,30,103.7,32.7C85.3,36,69.5,52.4,63.6,74.4
  200 + c-3.7,13.7-3.2,27,1.3,38.5c4.4,11,12.2,19.5,22.1,24c6.4,2.9,14,4.2,22.2,2.9c12.2-1.9,25.6-9.5,37.8-26
  201 + c13.3,28.6,40.3,31.7,65.8,27.7c8-1.2,15.9-3.2,23.1-5.2c7.7-2.2,15.1-4.6,23-7.2c8-2.6,16.1-5.3,24.6-7.7L283,109.3z
  202 + M120.3,64.3c0.5-0.1,1-0.1,1.5-0.1c2.5-4.1,6-7.5,10.3-9.9c-0.9-0.4-1.8-0.7-2.7-0.9c-3.6-1-7.3-1.3-11-0.7
  203 + C107.3,54.3,97.9,63.1,94.4,75c-4.7,16.2,3.3,32.9,17.9,37.1c3.6,1,7.3,1.3,11,0.7c5.4-0.8,10.5-3.4,14.6-7.1
  204 + c-4.2-1.2-8.1-3.4-11.2-6.4c-1.6,0.9-3.4,1.5-5.2,1.8c-2,0.3-4,0.2-5.8-0.4c-8.3-2.4-12.8-12.5-9.9-22.5
  205 + C107.9,70.9,113.7,65.3,120.3,64.3z"/>
  206 + </g>
  207 + </g>
  208 + <g>
  209 + <path d="M181.7,66.3h15.2c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v19.5h-3.6v-8.3H181v8.3h-3.6V70.6c0-1.2,0.4-2.2,1.3-3
  210 + C179.5,66.8,180.5,66.3,181.7,66.3z M181,78.3h16.7v-7.6c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-15.2
  211 + c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5V78.3z"/>
  212 + <path d="M231.1,71c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v14.9h-3.5V75.3c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2
  213 + h-7.6c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v14.9h-3.6V75.3c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-7.6
  214 + c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v14.9h-3.6V71H231.1z"/>
  215 + <path d="M255.5,64.7h3.6v25.5h-15.2c-1.2,0-2.2-0.4-3-1.3s-1.3-1.9-1.3-3V75.3c0-1.2,0.4-2.2,1.3-3s1.9-1.3,3-1.3h11.6V64.7z
  216 + M243.9,86.6h10.9c0.2,0,0.4-0.1,0.5-0.2c0.1-0.1,0.2-0.3,0.2-0.5V75.3c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-10.9
  217 + c-0.2,0-0.4,0.1-0.5,0.2c-0.1,0.1-0.2,0.3-0.2,0.5v10.6c0,0.2,0.1,0.4,0.2,0.5C243.5,86.5,243.7,86.6,243.9,86.6z"/>
  218 + <path d="M279.4,71c1.2,0,2.2,0.4,3,1.3c0.8,0.8,1.3,1.9,1.3,3v14.9h-15.2c-1.2,0-2.2-0.4-3-1.3s-1.3-1.9-1.3-3v-7.1h15.9v-3.5
  219 + c0-0.2-0.1-0.4-0.2-0.5c-0.1-0.1-0.3-0.2-0.5-0.2h-15.2V71H279.4z M280.2,86.6v-4.2h-12.4v3.5c0,0.2,0.1,0.4,0.2,0.5
  220 + c0.1,0.1,0.3,0.2,0.5,0.2H280.2z"/>
  221 + </g>
  222 +</g>
  223 +</svg>
... ...
php/catalogTTList.php 0 โ†’ 100644
... ... @@ -0,0 +1,37 @@
  1 +<?php
  2 +
  3 +require_once 'config.php';
  4 +
  5 +function catalogTTList(){
  6 +
  7 + $urls = [
  8 + "catalog" => file_get_contents(webAlias.'/php/rest/getCatalogsList.php'),
  9 + "timeTable" => file_get_contents(webAlias.'/php/rest/getTimeTablesList.php')
  10 + ];
  11 +
  12 + $parameters = [];
  13 + foreach ($urls as $key => $url){
  14 + $xml = simplexml_load_string(file_get_contents($url));
  15 + if (empty($xml))
  16 + continue;
  17 + foreach($xml->xpath('//'.$key) as $parameter) {
  18 + $attributes = $parameter->attributes();
  19 + $parameters[] = [
  20 + "type" => $key,
  21 + "name" => (string) $attributes->name,
  22 + "id" => (string) $attributes->id,
  23 + "created" => (string) $attributes->created,
  24 + "description" => (string) $attributes->description,
  25 + "nbIntervals" => (string) $attributes->nbIntervals,
  26 + "surveyStart" => (string) $attributes->surveyStart,
  27 + "surveyStop" => (string) $attributes->surveyStop,
  28 + "sharedDate" => (string) $attributes->sharedDate
  29 + ];
  30 + }
  31 + }
  32 +
  33 + return json_encode($parameters);
  34 +}
  35 +
  36 +echo catalogTTList();
  37 +?>
0 38 \ No newline at end of file
... ...
php/getSharedObject.php 0 โ†’ 100644
... ... @@ -0,0 +1,34 @@
  1 +<?php
  2 +
  3 +require_once 'config.php';
  4 +
  5 +$parameters = array();
  6 +
  7 +$type = (isset($_GET['type'])) ? $_GET['type'] : "catalog";
  8 +$id = (isset($_GET['id'])) ? $_GET['id'] : exit;
  9 +
  10 +$url = ($type == "catalog") ? webAlias.'/php/rest/getCatalog.php' : webAlias.'/php/rest/getTimeTable.php' ;
  11 +if($type == "catalog")
  12 + $parameters["catID"] = $id;
  13 +else
  14 + $parameters["ttID"] = $id;
  15 +
  16 +$parameters["outputFormat"] = (isset($_GET['format'])) ? $_GET['format'] : "ASCII";
  17 +
  18 +$nameToGive = (isset($_GET['nameToGive'])) ? $_GET['nameToGive'] : $type;
  19 +$nameToGive .= ($parameters["outputFormat"] == "VOTable") ? ".xml":".txt";
  20 +
  21 +
  22 +$url .= "?".http_build_query($parameters);
  23 +$fileUrl = str_replace("\n", '',file_get_contents($url));
  24 +
  25 +// headers to send your file
  26 +header("Content-Type: text/plain");
  27 +header('Content-Disposition: inline; filename="' . $nameToGive . '"');
  28 +
  29 +ob_clean();
  30 +flush();
  31 +readfile($fileUrl);
  32 +exit;
  33 +
  34 +?>
... ...