File "view.php"
Full path: /www/ansys/ass/slant2/view.php
File size: 6.59 KiB (6745 bytes)
MIME-type: text/x-php
Charset: utf-8
<?php
print "<!DOCTYPE html>";
print "<html>";
print "<head>";
print "<meta chaset=\"utf-8\">";
print "<link rel=\"stylesheet\" type=\"text/css\" href=\"./css/style.css\">";
print "<script src=\"./lib/three.js\"></script>";
print "<script src=\"./lib/TrackballControls.js\"></script>";
print "<script src=\"./lib/jquery-2.0.3.js\"></script>";
print "<script src=\"./lib/stats.min.js\"></script>";
print "<script src=\"./slant_draw.js\"></script>";
//print "<script src=\"./sss.js\"></script>";
print "<title>";
print "傾斜表示";
print "</title>";
print "</head>";
print "<body>";
$index = "./index.php";
$put = array(
array("view" => "設置時x", "id" => "txtPutx", "def" => "0"),
array("view" => "設置時y", "id" => "txtPuty", "def" => "0"),
array("view" => "設置時z", "id" => "txtPutz", "def" => "0"),
);
$move = array(
array("view" => "安定移動時x", "id" => "txtMovex", "def" => "12"),
array("view" => "安定移動時y", "id" => "txtMovey", "def" => "12"),
array("view" => "安定移動時z", "id" => "txtMovez", "def" => "12"),
);
$now = array(
array("view" => "計測値x", "id" => "txtNowx", "def" => "0"),
array("view" => "計測値y", "id" => "txtNowy", "def" => "0"),
array("view" => "計測値z", "id" => "txtNowz", "def" => "0"),
);
$delta = array(
array("view" => "⊿x(安定移動x - 設置x)", "id" => "deltax", "view2" => "y軸->z軸への傾斜角", "id2" => "thetax"),
array("view" => "⊿y(安定移動y - 設置y)", "id" => "deltay", "view2" => "z軸->x軸への傾斜角", "id2" => "thetay"),
array("view" => "⊿z(安定移動z - 設置z)", "id" => "deltaz", "view2" => "x軸->y軸への傾斜角", "id2" => "thetaz"),
);
$sptheta = array(
array("view" => "y軸->z軸傾斜角指定", "id" => "txtSpThetax"),
array("view" => "z軸->x軸傾斜角指定", "id" => "txtSpThetay"),
array("view" => "x軸->y軸傾斜角指定", "id" => "txtSpThetaz"),
);
$dash = array(
array(
array("view" => "x", "id" => "dash_0_x"),
array("view" => "y", "id" => "dash_0_y"),
array("view" => "z", "id" => "dash_0_z")
),
array(
array("view" => "x'", "id" => "dash_1_x"),
array("view" => "y'", "id" => "dash_1_y"),
array("view" => "z'", "id" => "dash_1_z")
),
array(
array("view" => "x''", "id" => "dash_2_x"),
array("view" => "y''", "id" => "dash_2_y"),
array("view" => "z''", "id" => "dash_2_z")
),
array(
array("view" => "x'''", "id" => "dash_3_x"),
array("view" => "y'''", "id" => "dash_3_y"),
array("view" => "z'''", "id" => "dash_3_z")
),
array(
array("view" => "α(rad)", "id" => "alpha_r"),
array("view" => "β(rad)", "id" => "beta_r"),
array("view" => "γ(rad)", "id" => "gamma_r")
),
array(
array("view" => "α(deg)", "id" => "alpha_d"),
array("view" => "β(deg)", "id" => "beta_d"),
array("view" => "γ(deg)", "id" => "gamma_d")
)
);
try
{
$path = "/ansys/ass/common/data/data/ass20130627_165724_642.txt";
$fileurl = "http://penta-02.ptgw.net". $path;
$row = 28;
print "<table width=\"100%\" border=\"1\" cellspacing=\"0\" celldadding=\"0\" class=\"datatable\">\n";
print "<tr>\n";
print "<td align=\"center\" colspan=\"6\">\n";
print "<input type=\"radio\" name=\"rdiDraw\" id=\"ptt1\" value=\"1\" checked />描画1\n";
print "<input type=\"radio\" name=\"rdiDraw\" id=\"ptt2\" value=\"2\" />描画2\n";
print "</td>\n";
print "<td width=\"52%\" rowspan=\"32\">\n";
print "<div id=\"canvas_slant\"></div>\n";
print "</td>\n";
print "</tr>\n";
print "<tr>\n";
for($iCount = 0; $iCount < count($put); $iCount++)
{
print "<td width=\"16%\" align=\"center\" bgcolor=\"#ccffff\" colspan=\"2\">\n";
print $put[$iCount]["view"];
print "</td>\n";
}
print "</tr>\n";
print "<tr>\n";
for($iCount = 0; $iCount < count($put); $iCount++)
{
print "<td align=\"center\" colspan=\"2\">\n";
print "<input type=\"text\" id=\"". $put[$iCount]["id"]. "\" value=\"". $put[$iCount]["def"]. "\" style=\"width:98%;\" />\n";
print "</td>\n";
}
print "</tr>\n";
print "<tr bgcolor=\"#ccffff\">\n";
for($iCount = 0; $iCount < count($move); $iCount++)
{
print "<td align=\"center\" colspan=\"2\">\n";
print $move[$iCount]["view"];
print "</td>\n";
}
print "</tr>\n";
print "<tr>\n";
for($iCount = 0; $iCount < count($move); $iCount++)
{
print "<td align=\"center\" colspan=\"2\">\n";
print "<input type=\"text\" style=\"width:98%;\" id=\"". $move[$iCount]["id"]. "\" value=\"". $move[$iCount]["def"]. "\" />\n";
print "</td>\n";
}
print "</tr>\n";
print "<tr>\n";
for($iCount = 0; $iCount < count($delta); $iCount++)
{
print "<td align=\"center\" bgcolor=\"#ffccff\">\n";
print $delta[$iCount]["view"];
print "</td>\n";
print "<td align=\"center\" bgcolor=\"#ffccff\">\n";
print $delta[$iCount]["view2"];
print "</td>\n";
}
print "</tr>\n";
print "<tr>\n";
for($iCount = 0; $iCount < count($delta); $iCount++)
{
print "<td id=\"". $delta[$iCount]["id"]. "\">\n </td>\n";
print "<td id=\"". $delta[$iCount]["id2"]. "\">\n </td>\n";
}
print "</tr>\n";
print "<tr bgcolor=\"#ccffff\">\n";
for($iCount = 0; $iCount < count($sptheta); $iCount++)
{
print "<td align=\"center\" colspan=\"2\">\n";
print $sptheta[$iCount]["view"];
print "</td>\n";
}
print "</tr>\n";
print "<tr>\n";
for($iCount = 0; $iCount < count($sptheta); $iCount++)
{
print "<td align=\"center\" colspan=\"2\">\n";
print "<input type=\"text\" style=\"width:98%;\" id=\"". $sptheta[$iCount]["id"]. "\" value=\"". $sptheta[$iCount]["def"]. "\" />\n";
print "</td>\n";
}
print "</tr>\n";
for($iCount = 0; $iCount < count($dash); $iCount++)
{
print "<tr bgcolor=\"#ffcccc\">\n";
for($jCount = 0; $jCount < count($dash[$iCount]); $jCount++)
{
print "<td colspan=\"2\" align=\"center\">";
print $dash[$iCount][$jCount]["view"];
print "</td>\n";
}
print "</tr>\n";
print "<tr>\n";
for($jCount = 0; $jCount < count($dash[$iCount]); $jCount++)
{
print "<td colspan=\"2\" align=\"center\" id=\"". $dash[$iCount][$jCount]["id"]. "\">";
print " ";
print "</td>\n";
}
print "</tr>\n";
}
print "<tr>\n<td colspan=\"6\">\n";
for($iCount = 0; $iCount < 13; $iCount++)
print " <br />";
print "</td>\n</tr>\n";
print "</table>\n";
}
catch(Exception $exc)
{
print "<font color=\"#FF0000\">";
print "【スクリプトエラー】<br />";
print $exc->getMessage(). "<br />";
print "</font>";
}
print "<form name=\"form_return\" method=\"post\" action=\"". $index. "\" style=\"display:inline\">";
print "<a href=\"javascript:form_return.submit()\">戻る</a>";
print "<input type=\"hidden\" name=\"position\" value=\"". $returnPosition. "\">";
print "</form>";
print "</body>";
print "</html>";