<?php 
/*** COPYRIGHT NOTICE *********************************************************
 *
******************************************************************************
*** WARNING *** T H I S    F I L E    I S    N O T    O P E N    S O U R C E *
******************************************************************************
*
* Copyright 2015 ProjeQtOr - Pascal BERNARD - support@projeqtor.org
*
* This file is an add-on to ProjeQtOr, packaged as a plug-in module.
* It is NOT distributed under an open source license.
* It is distributed in a proprietary mode, only to the customer who bought
* corresponding licence.
* The company ProjeQtOr remains owner of all add-ons it delivers.
* Any change to an add-ons without the explicit agreement of the company
* ProjeQtOr is prohibited.
* The diffusion (or any kind if distribution) of an add-on is prohibited.
* Violators will be prosecuted.
*
*** DO NOT REMOVE THIS NOTICE ************************************************/

require_once "../tool/projeqtor.php";
require_once "../tool/formatter.php";
require_once '../tool/agileBacklogFunction.php';

?>
<div id="productBacklogContainer" style="height:100%;padding:8px;" onscroll="ProductBacklogScrollTop=this.scrollTop">
  <table width="100%" style="min-height:100%;">
    <tr>
      <?php drawProductBacklogColumn();?>
    </tr>
  </table>
  <div class="contextMenuClass comboButtonInvisible" dojoType="dijit.form.DropDownButton" id="productBacklogContextMenu" name="productBacklogContextMenu" style="position:absolute;top:0px;left:0px;width:0px;height:0px;overflow:hidden;">
    <div dojoType="dijit.TooltipDialog" id="dialogProductBacklogContextMenu" tabindex="0"" onMouseEnter="clearTimeout(hideProductBacklogContextMenuTimeout);" onMouseLeave="hideProductBacklogContextMenu(200)" onfocusout="hideElementOnFocusOut(null, hideProductBacklog(200))">
      <input type="hidden" id="objectClass" name="objectClass" value="" />
      <input type="hidden" id="objectId" name="objectId" value="" />
      <input type="hidden" id="objectClassRow" name="objectClassRow" value="" />
      <input type="hidden" id="objectIdRow" name="objectIdRow" value="" />
      <table style="width:100%;height:100%">
        <tr id='addFromProductBacklog' class='contextMenuRow' onClick=''>
          <td style="padding-top:5px;padding-bottom:5px;"><?php echo formatSmallButton('Add', false, false);?></td>
          <td style="padding-left:10px;padding-top:5px;padding-bottom:5px;" id='addFromProductBacklog_label'><?php echo i18n('contextMenuButtonNew');?></td>
        </tr>
        <tr id='editFromProductBacklog' class='contextMenuRow' onClick=''>
          <td style="padding-top:5px;padding-bottom:5px;"><?php echo formatSmallButton('Edit', false, false);?></td>
          <td style="padding-left:10px;padding-top:5px;padding-bottom:5px;" id='editFromProductBacklog_label'><?php echo i18n('contextMenuButtonEdit');?></td>
        </tr>
        <tr id='copyFromProductBacklog' class='contextMenuRow' onClick=''>
          <td style="padding-top:5px;padding-bottom:5px;"><?php echo formatSmallButton('Copy', false, false);?></td>
          <td style="padding-left:10px;padding-top:5px;padding-bottom:5px;" id='copyFromProductBacklog_label'><?php echo i18n('contextMenuButtonCopy');?></td>
        </tr>
        <tr id='removeFromProductBacklog' class='contextMenuRow' onClick=''>
          <td style="padding-top:5px;padding-bottom:5px;"><?php echo formatSmallButton('Remove', false, false);?></td>
          <td style="padding-left:10px;padding-top:5px;padding-bottom:5px;" id='removeFromProductBacklog_label'><?php echo i18n('contextMenuButtonDelete');?></td>
        </tr>
        <tr id='printFromProductBacklog' class='contextMenuRow' onClick=''>
          <td style="padding-top:5px;padding-bottom:5px;"><?php echo formatSmallButton('Print', true , false);?></td>
          <td style="padding-left:10px;padding-top:5px;padding-bottom:5px;" id='printFromProductBacklog_label'><?php echo i18n('contextMenuButtonPrint');?></td>
        </tr>
        <tr id='printPdfFromProductBacklog' class='contextMenuRow' onClick=''>
          <td style="padding-top:5px;padding-bottom:5px;"><?php echo formatSmallButton('Pdf', false, false);?></td>
          <td style="padding-left:10px;padding-top:5px;padding-bottom:5px;" id='printPdfFromProductBacklog_label'><?php echo i18n('reportPrintPdf');?></td>
        </tr>
      </table>
    </div>
  </div>
</div>