template.html.php 1.8 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php include $app->getModuleRoot() . 'common/view/header.html.php';?>
  2. <div id="mainMenu" class="clearfix menu-secondary">
  3. <div class="btn-toolbar pull-left">
  4. <?php include './menu.html.php';?>
  5. </div>
  6. <div class="btn-toolbar pull-right">
  7. <?php if($type == 'complex') common::printLink('measurement', 'createTemplate', "", "<i class='icon icon-plus'></i>" . $lang->measurement->createTemplate, '', "class='btn btn-primary'");?>
  8. <?php if($type == 'single') common::printLink('report', 'custom', "step=0&reportID=0&from=cmmi", "<i class='icon icon-plus'></i>" . $lang->measurement->createSingle, '', "class='btn btn-primary'");?>
  9. </div>
  10. </div>
  11. <div id="mainContent" class="main-row fade">
  12. <div class='side-col'>
  13. <div class='panel'>
  14. <div class='panel-body'>
  15. <div class='list-group'>
  16. <?php $singleActive = $type == 'single' ? 'selected' : '';?>
  17. <?php $complexActive = $type == 'complex' ? 'selected' : '';?>
  18. <?php echo html::a($this->createLink('measurement','template', "type=complex"), '<span class="text">' . $lang->meastemplate->complex . '</span>', '', "class='$complexActive'");?>
  19. <?php echo html::a($this->createLink('measurement','template', "type=single"), '<span class="text">' . $lang->meastemplate->single . '</span>', '', "class='$singleActive'");?>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="main-col">
  25. <?php if(empty($templates)):?>
  26. <div class="table-empty-tip">
  27. <p><span class="text-muted"><?php echo $lang->noData;?></span></p>
  28. </div>
  29. <?php else:?>
  30. <?php if($type == 'single') include './singletemplate.html.php';?>
  31. <?php if($type == 'complex') include './complextemplate.html.php';?>
  32. <?php endif;?>
  33. </div>
  34. </div>
  35. <?php include $app->getModuleRoot() . 'common/view/footer.html.php';?>