Webgui programming
This commit is contained in:
+10
-1
@@ -138,6 +138,14 @@ $sql = "SELECT vesselname, model, loa, lwl, beam, draught, draught_min,"
|
||||
$sth = $pdo->prepare($sql);
|
||||
$sth->execute([$vid]);
|
||||
$vessel = $sth->fetch(PDO::FETCH_OBJ);
|
||||
|
||||
// Show remarks first
|
||||
if (strlen($vessel->remarks) > 0) {
|
||||
echo "<p>";
|
||||
echo $vessel->remarks;
|
||||
echo "</p>\n";
|
||||
}
|
||||
|
||||
// get vessel shape
|
||||
// test for predefined base shape
|
||||
$shapefilepath = dirname(__FILE__).'/'.$g_shapedir.'/'.$vessel->shapefile;
|
||||
@@ -146,7 +154,8 @@ if (isset($vessel->shapefile) and file_exists($shapefilepath)) {
|
||||
} else {
|
||||
// use internal default shape
|
||||
$baseshape = <<<EOT
|
||||
<svg version="1.1" width="1024" height="350" viewBox="0 0 1024 350" id="svg1">
|
||||
<svg version="1.1" width="1024" height="350" viewBox="0 0 1024 350" id="svg1"
|
||||
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<g id="g1">
|
||||
<path id="path1" style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:round;stroke-dasharray:8, 4, 2, 4;stroke-dashoffset:0;stroke-opacity:1" d="M 3.3e-6,174.91172 1023.9982,174.90837" />
|
||||
<path id="path2" style="fill:none;fill-rule:evenodd;stroke:#000000;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-dasharray:none;stroke-opacity:1" d="m 1.1002728,174.9708 c 0,0 0.150828,-90.157538 0.02448,-103.853791 C 66.951611,46.573152 247.6267,3.4573666 430.56326,3.8276086 670.30694,4.3128215 758.66035,44.913257 838.18466,74.965511 917.70898,105.01776 1022.8821,175.00227 1022.8821,175.00227" />
|
||||
|
||||
Reference in New Issue
Block a user