edit.html.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <?php js::set('lang', $lang->dataset);?>
  3. <?php js::set('dataset', $dataset);?>
  4. <?php js::set('fields', $dataset->fields);?>
  5. <?php js::set('fieldSettings', $dataset->fieldSettings);?>
  6. <?php js::set('allTypeOptions', $allTypeOptions);?>
  7. <div id='mainContent' class='main-content'>
  8. <div class='center-block'>
  9. <div class='main-header'>
  10. <h2><?php echo $lang->dataset->edit;?></h2>
  11. </div>
  12. <div class="panel">
  13. <form method='post' target='hiddenwin' id='dataform' class="form-ajax">
  14. <table class='table table-form'>
  15. <tr>
  16. <th class='thWidth'><?php echo $lang->dataset->name;?></th>
  17. <td class='w-400px'>
  18. <?php echo html::input('name', $dataset->name, 'class="form-control"');?>
  19. </td>
  20. </tr>
  21. <tr>
  22. <th><?php echo $lang->dataset->sql;?></th>
  23. <td>
  24. <?php echo html::textarea('sql', $dataset->sql, "placeholder='" . $lang->dataset->sqlPlaceholder . "' class='form-control' rows=6");?>
  25. </td>
  26. </tr>
  27. <tr class="error hidden"><th></th><td></td></tr>
  28. <tr>
  29. <td></td>
  30. <td class='form-actions'>
  31. <button type="button" class="btn query btn-primary"><?php echo $lang->dataset->query;?></button>
  32. <button type="button" class="btn fieldSettings"><?php echo $lang->dataset->fieldSettings;?></button>
  33. <button type="button" class="btn save"><?php echo $lang->save;?></button>
  34. </td>
  35. </tr>
  36. </table>
  37. </form>
  38. </div>
  39. <div class="panel table-panel">
  40. <div class="panel-heading"><?php echo $lang->dataset->result?></div>
  41. <table class="result table table-condensed table-striped table-bordered table-fixed datatable">
  42. </table>
  43. </div>
  44. </div>
  45. </div>
  46. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>