designsql.html.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php js::set('measurementID', $measurementID);?>
  2. <style>
  3. #triggerModal{z-index: 1000000;}
  4. </style>
  5. <div class='panel'>
  6. <div class='panel-heading'>
  7. <div class='panel-title'><?php echo $measurement->name . " $lang->hyphen " . $lang->measurement->setSQL?></div>
  8. </div>
  9. <form method='post' action='<?php echo $actionLink?>' id='sqlForm' class='form-ajax'>
  10. <div style='padding: 10px'>
  11. <?php echo html::textarea('sql', $sql, "placeholder='{$lang->measurement->placeholder->sql}' class='form-control' $readonly rows='8'")?>
  12. <div class='row' style='padding-top: 10px'><?php if($hasParams and $step == 3) include 'showsqlparams.html.php'?></div>
  13. </div>
  14. <?php if($step == 3):?>
  15. <div style='padding: 0 10px 10px;'>
  16. <div class='input-group'>
  17. <span><?php echo $lang->measurement->queryResult;?></span>
  18. <?php echo $queryResult;?>
  19. </div>
  20. </div>
  21. <?php endif;?>
  22. <div style='padding: 0 10px 10px;'>
  23. <?php
  24. if($step == 1 or $step == 2)
  25. {
  26. $link = $this->createLink('measurement', 'ajaxBuildSQL', '', '', true);
  27. echo html::a($link, $lang->measurement->callSqlBuilder, '', "class='btn btn-secondary' data-toggle='modal' data-width ='95%' data-type='iframe'");
  28. echo html::submitButton($lang->measurement->query, '', 'btn btn-primary');
  29. }
  30. ?>
  31. <?php
  32. if($step == 3)
  33. {
  34. echo html::commonButton($lang->measurement->reDesign, "id='reDesignButton'", 'btn btn-secondary');
  35. echo html::submitButton($lang->measurement->save, '', 'btn btn-primary');
  36. }
  37. ?>
  38. </div>
  39. </form>
  40. </div>
  41. <?php include './setparams.html.php';?>