2016-08-31 16:15:54 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Header file.
|
|
|
|
*/
|
2017-05-17 22:02:17 +00:00
|
|
|
use PhpOffice\PhpSpreadsheet\Helper\Sample;
|
|
|
|
|
2016-08-31 16:15:54 +00:00
|
|
|
error_reporting(E_ALL);
|
|
|
|
|
|
|
|
require_once __DIR__ . '/../src/Bootstrap.php';
|
|
|
|
|
2017-05-17 22:02:17 +00:00
|
|
|
$helper = new Sample();
|
2016-08-31 16:15:54 +00:00
|
|
|
if (!defined('EOL')) {
|
|
|
|
define('EOL', $helper->isCli() ? PHP_EOL : '<br />');
|
|
|
|
}
|
|
|
|
|
|
|
|
// Return to the caller script when runs by CLI
|
|
|
|
if ($helper->isCli()) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<title><?php echo $helper->getPageTitle(); ?></title>
|
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
|
|
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css" />
|
|
|
|
<link rel="stylesheet" href="bootstrap/css/font-awesome.min.css" />
|
|
|
|
<link rel="stylesheet" href="bootstrap/css/phpspreadsheet.css" />
|
|
|
|
<script src="bootstrap/js/jquery.min.js"></script>
|
|
|
|
<script src="bootstrap/js/bootstrap.min.js"></script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar navbar-default" role="navigation">
|
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="navbar-header">
|
|
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
|
|
<span class="sr-only">Toggle navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
<a class="navbar-brand" href="./">PHPSpreadsheet</a>
|
|
|
|
</div>
|
|
|
|
<div class="navbar-collapse collapse">
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
<li class="dropdown active">
|
|
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-code fa-lg"></i> Samples<strong class="caret"></strong></a>
|
|
|
|
<ul class="dropdown-menu"><?php
|
|
|
|
foreach ($helper->getSamples() as $name => $file) {
|
|
|
|
echo '<li><a href="' . basename($file) . '">' . $name . '</a></li>';
|
|
|
|
}
|
|
|
|
?></ul>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<ul class="nav navbar-nav navbar-right">
|
|
|
|
<li><a href="https://github.com/PHPOffice/PHPSpreadsheet"><i class="fa fa-github fa-lg" title="GitHub"></i> </a></li>
|
|
|
|
<li><a href="http://phpspreadsheet.readthedocs.org/en/develop/"><i class="fa fa-book fa-lg" title="Docs"></i> </a></li>
|
|
|
|
<li><a href="http://twitter.com/PHPOffice"><i class="fa fa-twitter fa-lg" title="Twitter"></i> </a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
echo $helper->getPageHeading();
|