<?php 

class modWorkdayOperationView {
  
  public function __construct(modWorkdayOperation $workdayOperation) {
    if (isset($workdayOperation)) {
        
      $menu = new MainMenu('workdayoperation');
      $this->beforeMenu = $menu->before();
      $this->afterMenu  = $menu->after();

      $controlsControls = new EntryInit('workdayoperation');
      $entryInit = $controlsControls->get("entryInit");
      foreach ($entryInit as $control) {
//print_r ($control);
//print_r ("<br>");        
        eval ($control);
      }
    }  
  }
  
  public function output() {

    $layout = "

    $this->beforeMenu

<div class='container'>	
  <div class='row'>
    <div class='col-md-12'>
      <table class='table table-condensed'>
        <tbody>
          <tr>
            <td>
    $this->op_idKeyLayout
    $this->selOperationNameLayout
            </td>
            <td>
    $this->selOperationTypeLayout
            </td>
            <td>
            </td>
            <td>
    $this->togHighGranLayout
            </td>
          </tr>
        </tbody>
      </table>      
    </div>
  </div>
</div> 

<div id='slide-highgran' class='slide-panel slide-highgran'>	
  <div class='container'>	
    <div class='row'>
      <div class='col-md-12'>
        <table class='table table-condensed'>
          <tbody>
            <tr>
              <td>
    $this->selOpStartTimeLayout
              </td>
              <td>
    $this->selOpDurationLayout
              </td>
              <td colspan='2'>
              </td>
            </tr>
            <tr>
              <td colspan='2'>
    $this->movOperationCrewLayout
              </td>
              <td colspan='2'>
    $this->movOpObserversLayout
              </td>
            </tr>
            <tr>
              <td colspan='6' style='width:100%;'>
    $this->inpOperationNoteLayout
              </td>
            </tr>
          </tbody>
        </table>      
      </div>
    </div>
  </div>    
</div>

<div class='container'>	
  <div class='row'>
    <div class='col-md-12'>
    $this->putPWOperationLayout
    </div>
  </div>
  <div class='row'>
    <div class='col-md-12'>
    $this->sumPWOperationsLayout
    </div>
  </div>
  <div class='row'>
    <div class='col-md-12'>
    $this->delPWOperationLayout
    </div>
  </div>
  <div class='row'>
    <div class='col-md-12'>
    $this->opsDashboardLayout
    </div>
  </div>
</div>  

    $this->afterMenu

<script>

$(document).ready(function(){
  $('#togpwoperation').click(function(){
    $('#slide-highgran').toggle('slow');
  });
});

$this->selOperationNameScript
$this->selOpStartTimeScript
$this->selOpDurationScript
$this->movOperationCrewScript
$this->movOpObserversScript
$this->sumPWOperationsScript
$this->opsDashboardScript

</script>
    ";
	
    return $layout;
 
  }
}

?>