viewtemplate.html.php 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php $disablePgm = $projectID ? 'readonly' : '';?>
  3. <div class="col-md-3">
  4. <div class="panel">
  5. <div class="panel-heading">
  6. <h4><?php echo $lang->measurement->params;?></h4>
  7. </div>
  8. <div class="panel-body">
  9. <form class="load-indicator main-form form-horizontal" id="paramsForm" target='reportWin' method='post'>
  10. <div class="form-group">
  11. <label class='col-md-3'><?php echo $this->lang->measurement->report->name?></label>
  12. <div class="col-md-9">
  13. <?php echo html::input('name', $template->name, "class='form-control'");?>
  14. </div>
  15. </div>
  16. <div class="form-group">
  17. <label class='col-md-3'><?php echo $this->lang->measurement->report->program?></label>
  18. <div class="col-md-9">
  19. <?php if(!$projectID) echo html::select('projectID', $projectPairs, $projectID, "$disablePgm class='form-control chosen'");?>
  20. <?php if($projectID) echo html::hidden('projectID', $projectID);?>
  21. </div>
  22. </div>
  23. <?php echo $this->measurement->buildTemplateForm($components);?>
  24. <div class="form-group text-center">
  25. <?php echo html::hidden('parseContent', 'yes') . html::submitButton($lang->measurement->tips->view, "", "btn btn-secondary");?>
  26. </div>
  27. </form>
  28. </div>
  29. </div>
  30. </div>
  31. <div class="col-md-9">
  32. <iframe id='reportWin' name='reportWin' frameborder='0' scrolling='yes' class='w-p100' height="700"></iframe>
  33. </div>
  34. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>