<?php 
/*** COPYRIGHT NOTICE *********************************************************
 *
 * Copyright 2009-2017 ProjeQtOr - Pascal BERNARD - support@projeqtor.org
 * Contributors : -
 *
 * This file is part of ProjeQtOr.
 * 
 * ProjeQtOr is free software: you can redistribute it and/or modify it under 
 * the terms of the GNU Affero General Public License as published by the Free 
 * Software Foundation, either version 3 of the License, or (at your option) 
 * any later version.
 * 
 * ProjeQtOr is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 
 * FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for 
 * more details.
 *
 * You should have received a copy of the GNU Affero General Public License along with
 * ProjeQtOr. If not, see <http://www.gnu.org/licenses/>.
 *
 * You can get complete code of ProjeQtOr, other resource, help and information
 * about contributors at http://www.projeqtor.org 
 *     
 *** DO NOT REMOVE THIS NOTICE ************************************************/

include_once("../tool/projeqtor.php");
include_once '../tool/formatter.php';

//Param
$user=getSessionUser();
$linkPlugin = "https://www.projeqtor.net/en/shop/plugins";
$linkForum = "https://www.projeqtor.org/en/forum/index";
$linkToForumRules="https://www.projeqtor.org/en/forum/aide";
$linkChangelog="https://www.projeqtor.org/en/product-en/downloads/change-history-en";
$userLang = getSessionValue('currentLocale');
$lang = "en";
if(substr($userLang,0,2)=="fr")$lang="fr";
if($lang=="fr"){
  $linkForum = "https://www.projeqtor.org/fr/forum-fr/index";
  $linkPlugin = "https://www.projeqtor.net/fr/shop-fr/plugins";
  $linkToForumRules="https://www.projeqtor.org/fr/forum-fr/aide";
  $linkChangelog="https://www.projeqtor.org/fr/product-fr/downloads-fr/historique-des-mises-a-jour-xxx";
}
?>

<table  id="userMenuInterrogation">
  <tr>
    <td><div style="width:15px !important;"></div></td>
    <td>
      <table>
        <tr>
          <td style="color:<?php echo '#'.Parameter::getUserParameter('newGuiThemeColor');?>;font-size:26px;"><?php echo i18n('aboutMenuInterrogation');?></td>
          <td><div style="width:58px"></div></td>
          <td> <a target="#" href="<?php echo $linkToForumRules;?>"> <div class="roundedVisibleButton roundedButton generalColClass"
            title="<?php echo('reportBug'); ?>"
            style="text-align:left;position:absolute;top:27px;right:25px;height:23px;width:160px;
            onClick="showFilterDialog();">
            <img  class="imageColorNewGui" src="css/customIcons/new/iconHelpBug.svg" style="position:relative;left:5px;top:2px;background-repeat:no-repeat;width:20px;background-size:20px;"/>
             <div style="position:relative;top:-19px;left:38px;"><?php echo i18n('reportBug'); ?></div>
             </div> </a></td></tr>
      </table>
    </td>
    <td><div style="width:15px !important;"></div></td>
  </tr>
  
  <tr style="color:grey;height:15px;">
    <td><div style="width:15px !important;"></div></td>
    <td style="border-bottom:1px dotted;cursor:pointer;">
      <div style="margin-top:30px;" title="<?php echo i18n('help');?>" onClick="showHelp();">
        <table style="width:100%">
          <tr>
            <td style="vertical-align:middle;"><?php echo i18n('help');?></td>
            <td style="float:right;"><?php echo 'F1';?></td>
          </tr>
        </table>
      </div>
    </td>
    <td><div style="width:15px !important;"></div></td>
  </tr>
  
  <tr style="color:grey;height:15px;">
    <td><div style="width:15px !important;"></div></td>
    <td style="border-bottom:1px dotted;cursor:pointer;">
      <div  style="padding-top:10px;margin-top:6px;" title="<?php echo i18n('keyboardShortcuts');?>" onClick="showHelp('ShortCut');">
        <table style="width:100%">
          <tr>
            <td style="vertical-align:middle;"><?php echo i18n('keyboardShortcuts');?></td>
          </tr>
        </table>
      </div>
    </td>
    <td><div style="width:15px !important;"></div></td>
  </tr>
  
  <tr style="color:grey;height:15px;">
    <td><div style="width:15px !important;"></div></td>
    <td style="padding-top:10px;cursor:pointer;border-bottom:1px dotted;">
      <div style="margin-top:6px;" title="<?php echo i18n('aboutMessage');?>" onClick="showAbout(aboutMessage);">
        <table style="width:100%">
          <tr>
            <td style="vertical-align:middle;"><?php echo i18n('aboutMessage');?>&nbsp;&nbsp;</td>
          </tr>
        </table>
      </div>
    </td>
    <td><div style="width:15px !important;"></div></td>
  </tr>
      <tr>
        <td><div style="width:15px !important;"></div></td>
        <td><div style="margin-bottom:35px;"></div></td>
        <td><div style="width:15px !important;"></div></td>
      </tr>
      
      <tr>
        <td><div style="width:15px !important;"></div></td>
        <td>
          <div  class="container" dojoType="dijit.layout.ContentPane" id="getLastNews">
          </div>
        </td>
        <td><div style="width:15px !important;"></div></td>
      </tr>
      
    <tr style="margin-top:0px;height:15px;">
      <td><div style="width:15px !important;"></div></td>
      <td> 
        <a target="#" href="<?php echo $linkPlugin;?>"> <div class="roundedVisibleButton roundedButton generalColClass"
            title="<?php echo('linkToPlugin'); ?>"
            style="text-align:left;height:23px;width:340px;" >
            <img  class="imageColorNewGui" src="css/customIcons/new/iconGoto.svg" style="position:relative;left:305px;top:2px;background-repeat:no-repeat;width:20px;background-size:20px;"/>
             <div style="position:relative;top:-19px;left:12px;"><?php echo i18n('linkToPlugin'); ?></div>
             </div> 
         </a>
      </td>
      <td><div style="width:15px !important;"></div></td>
    </tr>
    
    
    <tr>
      <td><div style="width:15px !important;"></div></td>
      <td> 
        <a target="#" href="<?php echo $linkForum;?>"> <div class="roundedVisibleButton roundedButton generalColClass"
            title="<?php echo('linkToForum'); ?>"
            style="margin-top:13px;text-align:left;height:23px;width:340px;" >
            <img  class="imageColorNewGui" src="css/customIcons/new/iconGoto.svg" style="position:relative;left:305px;top:2px;background-repeat:no-repeat;width:20px;background-size:20px;"/>
             <div style="position:relative;top:-19px;left:12px;"><?php echo i18n('linkToForum'); ?></div>
             </div> 
         </a>
      </td>
      <td><div style="width:15px !important;"></div></td>
    </tr>
    
    <tr>
      <td><div style="width:15px !important;"></div></td>
      <td> 
        <a target="#" href="<?php echo $linkChangelog;?>"> <div class="roundedVisibleButton roundedButton generalColClass"
            title="<?php echo('linkToChangelog'); ?>"
            style="margin-top:13px;text-align:left;height:23px;width:340px;" >
            <img  class="imageColorNewGui" src="css/customIcons/new/iconGoto.svg" style="position:relative;left:305px;top:2px;background-repeat:no-repeat;width:20px;background-size:20px;"/>
             <div style="position:relative;top:-19px;left:12px;"><?php echo i18n('linkToChangelog'); ?></div>
             </div> 
         </a>
      </td>
      <td><div style="width:15px !important;"></div></td>
    </tr>    
    <tr>
      <td><div style="width:15px !important;"></div></td>
      <td><div style="margin-bottom:20px;"></div></td>
      <td><div style="width:15px !important;"></div></td>
   </tr>
   
</table>