<?php 

class modReportGeneratorView {
  private $scope;
    
  public function __construct(modReportGenerator $reportGenerator) {
    if (isset($reportGenerator)) {
      $this->scope = $reportGenerator->get("scope");
	}

    $controlsInstances = new EntryInit('reportgenerator');
    $entryInit = $controlsInstances->get("entryInit");
    foreach ($entryInit as $instance) {
//print_r ($instance);
//print_r ("<br>");        
      eval ($instance);
    }
  }

  public function output() {

    $layout = "
<div class='container'>	
  <div class='row'>
    <div class='col-md-12'>
      <div id='slidetogEditQueryForm' class='slide-panel'>	
        <table class='table table-condensed'>
          <tr>
            <td colspan='2' style='width:40%;'>
    $this->inpReportFileNameLayout
            </td>
            <td colspan='3' style='width:60%;'>
    $this->inpReportDescrLayout
            </td>
          </tr>
          <tr>
            <td colspan='5'>
    $this->inpQuerySelectLayout
            </td>
          </tr>
          <tr>
            <td colspan='5'>
    $this->inpQueryFromLayout
            </td>
          </tr>
          <tr>
            <td colspan='5'>
    $this->inpQueryWhereLayout
            </td>
          </tr>
          <tr>
          <tr>
            <td colspan='2' style='width:40%;'>
    $this->selQueryCombineLayout
            </td>
            <td colspan='3' style='width:60%;'>
    $this->inpQueryOrganizeLayout
            </td>
          </tr>
          <tr>
            <td colspan='2'>
            <div id='valmsgfrmReportQuery' style='color:red'></div>
            </td>
          </tr>
          <tr>
            <td colspan='4' style='width:80%;'>
            </td>
            <td colspan='1' style='width:20%;'>
    $this->frmReportQueryLayout
            </td>
          </tr>
        </table>  
      </div>    

    $this->togEditQueryFormLayout

    $this->sumReportQueriesLayout
    $this->delReportQueryLayout

    $this->repSetupProcessLayout

    </div>
  </div> 
</div> 

<script>

$this->frmReportQueryScript
$this->inpReportFileNameScript
$this->inpReportDescrScript
$this->inpQuerySelectScript
$this->inpQueryFromScript
$this->inpQueryWhereScript
$this->selQueryCombineScript
$this->inpQueryOrganizeScript
$this->togEditQueryFormScript
$this->sumReportQueriesScript
$this->delReportQueryScript
$this->repSetupProcessScript

</script>
  ";
 
  return $layout;
  }	

}

?>