header.modal.html.php 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <?php
  2. /**
  3. * The header.modal view of common module of RanZhi.
  4. *
  5. * @copyright Copyright 2009-2016 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.cnezsoft.com)
  6. * @license ZPL(http://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  7. * @author Yidong Wang <yidong@cnezsoft.com>
  8. * @package common
  9. * @version $Id$
  10. * @link http://www.ranzhico.com
  11. */
  12. ?>
  13. <?php if(helper::isAjaxRequest()):?>
  14. <?php
  15. $webRoot = $config->webRoot;
  16. $jsRoot = $webRoot . "js/";
  17. $themeRoot = $webRoot . "theme/";
  18. $modalSizeList = array('lg' => '900px', 'sm' => '300px');
  19. if(!isset($modalWidth)) $modalWidth = 700;
  20. if(is_numeric($modalWidth))
  21. {
  22. $modalWidth .= 'px';
  23. }
  24. else if(isset($modalSizeList[$modalWidth]))
  25. {
  26. $modalWidth = $modalSizeList[$modalWidth];
  27. }
  28. if(isset($pageCSS)) css::internal($pageCSS);
  29. ?>
  30. <style>
  31. #ajaxForm .table tr:first-child td:nth-child(3){width:5px;}
  32. </style>
  33. <div class="modal-dialog" style="width:<?php echo $modalWidth;?>;">
  34. <div class="modal-content">
  35. <div class="modal-header">
  36. <strong class="modal-title"><?php if(!empty($title)) echo $title; ?></strong>
  37. <?php if(!empty($subtitle)) echo "<label class='text-important'>" . $subtitle . '</label>'; ?>
  38. <div class='modal-actions'>
  39. <?php if(!empty($modalActions)) echo $modalActions;?>
  40. <button type='button' class='btn btn-link' style='font-size: 20px; margin-left: 10px' data-dismiss='modal' aria-hidden='true'>&times;</button>
  41. </div>
  42. </div>
  43. <div class="modal-body">
  44. <?php else:?>
  45. <?php include $this->app->getAppRoot() . 'module/common/view/header.html.php';?>
  46. <?php endif;?>