44 lines
No EOL
518 B
PHP
44 lines
No EOL
518 B
PHP
<html>
|
|
<head>
|
|
<title>Gantt Test</title>
|
|
<style type="text/css">
|
|
/*GANTT*/
|
|
#gantt {
|
|
border-collapse: collapse;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
#gantt th {
|
|
font-weight: bold;
|
|
border: 1px solid black;
|
|
}
|
|
|
|
#gantt td {
|
|
border: 1px solid black;
|
|
}
|
|
|
|
#gantt td.colored {
|
|
width: 18px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<?php
|
|
|
|
include_once('Gantt.php');
|
|
|
|
$gnt = new Gantt();
|
|
|
|
$gnt->add_event('Event 1',1,1);
|
|
$gnt->add_event('Event 2',3,3);
|
|
$gnt->add_event('Event 3',3,4);
|
|
|
|
echo $gnt->render_html();
|
|
|
|
?>
|
|
|
|
|
|
</body>
|
|
</html>
|