report.html.php 1.2 KB

123456789101112131415161718192021222324252627
  1. <?php include $app->getModuleRoot() . 'common/view/header.lite.html.php';?>
  2. <style>
  3. body{width:100% !important;padding:0;}
  4. .m-measurement-viewtemplate {background-color: #fff;}
  5. .m-measurement-viewtemplate .panel {margin-bottom: 0;}
  6. </style>
  7. <div class="panel h-600px w-p100">
  8. <h2 class='text-center'><?php echo $this->post->name;?></h2>
  9. <div class='panel-body'>
  10. <?php echo $content;?>
  11. <?php if(common::hasPriv('measurement', 'saveReport')):?>
  12. <div class='panel-footer text-center'>
  13. <form action="<?php echo inlink('saveReport');?>" method="post" class='form-ajax' id="reportForm">
  14. <?php echo html::hidden('name', $this->post->name);?>
  15. <?php echo html::hidden('project', (int)$this->post->projectID);?>
  16. <?php echo html::hidden('template', $template->id);?>
  17. <?php echo html::textarea('content', $content, "class='hidden'");?>
  18. <?php echo html::hidden('params', json_encode($this->post->params));?>
  19. <?php echo html::submitButton($lang->measurement->saveReport, "class='btn btn-primary'");?>
  20. </form>
  21. </div>
  22. <?php endif;?>
  23. </div>
  24. </div>
  25. <script>
  26. parent.$('#reportWin').height($('.panel').outerHeight());
  27. </script>