print tabel met berekening en invoer

Status
Niet open voor verdere reacties.

clos123456789

Gebruiker
Lid geworden
6 mei 2013
Berichten
53
Als ik van de website alleen een tabel wil printen komen de inputfield niet tevoorschijn maar wel het resultfield?

Wie weet de oplossing?


<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.7 [en] (Win98; I) [Netscape]">
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="Mozilla/4.7 [en] (Win98; I) [Netscape]" name="GENERATOR">


<title>
Welder Certificate Welding Ranges
</title>


<style>
table {
background-color: #ffcc00;
border-color: #FF0000 #FFFFFF #0000FF #FFFFFF;
border-width: 12px;
border-style: solid;
padding: 2px;
font-size: 12px;
font-family: "Arial Narrow";
width: 625px;
width: 625px -moz-max-content; /* Firefox/Gecko */
}
body {
background-color: yellow;
}
#bar {
width:625px;
height:10px;
margin: 0;
padding: 0;
float: left;
background-color: gray;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius:6px;
color: #fff;

}
.kop {
width: 80px;
height: 25px;
text-align: center;
font-weight: bold;
}
.resultfield {
width: 80px;
height: 18px; /* 18px */
padding: 0px;
background-color: white;
border-width: 1px;
border-style: solid;
font-family: MS Shell Dlg;
font-size: 11px;
font-weight: normal;
text-align: center;
-moz-border-radius: 1px; /* mozilla firefox */
-webkit-border-radius: 1px; /* chrome safari */
border-radius: 2px;
}
.resultfield1 {
width: 80px;
height: 55px; /* 55px */
padding: 0px;
background-color: white;
border-width: 1px;
border-style: solid;
font-family: MS Shell Dlg;
font-size: 11px;
font-weight: normal;
text-align: center;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 2px;
}
.resultfield2 {
width: 80px; /* onzichtbaar */
height: 20px;
padding: 0px;
background-color: #ffcc00;
}
.resultfield3 {
width: 80px;
height: 42px; /* 42px */
padding: 0px;
background-color: white;
border-width: 1px;
border-style: solid;
font-family: MS Shell Dlg;
font-size: 11px;
font-weight: normal;
text-align: center;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 2px;
}
.resultfield4 {
width: 80px;
height: 29px; /* 29px */
padding: 0px;
background-color: white;
border-width: 1px;
border-style: solid;
font-family: MS Shell Dlg;
font-size: 11px;
font-weight: normal;
text-align: center;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 2px;
}
.inputfield { /* alle invoer */
width: 120px;
height: 20px;
background-color: yellow;
border-width: 1px;
border-style: solid;
font-family: MS Shell Dlg;
font-size: 11px;
font-weight: normal;
text-align: left;
text-indent: 1mm;
-moz-border-radius: 1px;
-webkit-border-radius: 1px;
border-radius: 2px;
}

.tekst {
color: "#000000";
font-size: 28px;
}
.container {
margin: auto;
text-align: center;
}
.container1 {
width: 570px;
height: 50px; /* teksverhaal */
line-height: 10px;
text-align: left;
font-size: 14px;
}
.container2 {
width: 280px;
height: 20px; /* zie norm */
text-align: left;
}
.VoorAchter {
width: 15px;
height: 5px;
background: red;
text-align: left;
position: relative;
-webkit-animation-name: myfirst; /* Chrome, Safari, Opera */
-webkit-animation-duration: 5s; /* Chrome, Safari, Opera */
-webkit-animation-timing-function: linear; /* Chrome, Safari, Opera */
-webkit-animation-delay: 2s; /* Chrome, Safari, Opera */
-webkit-animation-iteration-count: infinite; /* Chrome, Safari, Opera */
-webkit-animation-direction: alternate; /* Chrome, Safari, Opera */
-webkit-animation-play-state: running; /* Chrome, Safari, Opera */
animation: myfirst 5s linear infinite alternate;
}
@-webkit-keyframes myfirst /* Chrome, Safari, Opera */
{
0% {background:green; left:275px;} /* Chrome, Safari, Opera */
100% {background:green; left: 0px;} /* Chrome, Safari, Opera */
}
@keyframes myfirst
{
0% {background:green; left:275px;}
100% {background:green; left: 0px;}
}

</style>
</head>
<body>




<div id="PrintKlaar">





<br>
<div class="container">
<div class="tekst">
Welder Certificate Welding Ranges
</div>
</div>

<div class="container" style="width:625">
<table>
<tr>
<td class="kop">
Name welder
</td>
<td class="result">
<input class="inputfield" id="lassers naam" type="text">
</td>
</tr>
<tr>
<td class="kop">
Date of birth
</td>
<td class="result">
<input class="inputfield" id="geboorte datum" type="text">
</td>
</tr>
<tr>
<td class="kop">
Welder nummer
</td>
<td class="result">
<input class="inputfield" id="lasser nummer" type="text">
</td>
<td class="result">
<div class="kop">
EN 287
</div>
</td>
<td class="result">
<div class="kop">
AWS D 1-1
</div>
</td>
<td class="result">
<div class="kop">
ASME 9
</div>
</td>
<td class="result">
<div class="kop">
EN ISO 9606-1
</div>
</td>
</tr>



<tr>
<td class="kop">
Type of Groove
</td>
<td class="result">
<select name="ToG" class="inputfield" id="ToG">
<option>V</option>
<option>1/2V</option>
<option>YY</option>
<option>K</option>
<option>X</option>
<option>F single</option>
<option>F multiple</option>
<option>PP</option>
</select>
</td>
<td class="result">
<div class="resultfield1" id="ToGEN287">
</div>
</td>
<td class="result">
<div class="resultfield1" id="ToGAWSD11">
</div>
</td>
<td class="result">
<div class="resultfield1" id="ToGASME9">
</div>
</td>
<td class="result">
<div class="resultfield1" id="ToGENISO96061">
</div>
</td>
</tr>

<tr>
<td class="kop">
Weldproces Root
</td>
<td class="result">
<select name="WR" class="inputfield" id="WR">
<option>SMAW</option>
<option>SAW</option>
<option>FCAWb</option>
<option>FCAWm</option>
<option>FCAWr</option>
<option>GMAW</option>
<option>GTAW</option>
</select>
</td>
<td class="result">
<div class="resultfield4" id="WREN287">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WRAWSD11">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WRASME9">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WRENISO96061">
</div>
</td>
</tr>

<tr>
<td class="kop">
Weldproces Fill
</td>
<td class="result">
<select name="WF" class="inputfield" id="WF">
<option>SMAW</option>
<option>SAW</option>
<option>FCAWb</option>
<option>FCAWm</option>
<option>FCAWr</option>
<option>GMAW</option>
<option>GTAW</option>
</select>
</td>
<td class="result">
<div class="resultfield4" id="WFEN287">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WFAWSD11">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WFASME9">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WFENISO96061">
</div>
</td>
</tr>

<tr>
<td class="kop">
Mat.Carbon Yield
</td>
<td class="result">
<select name="MCY" class="inputfield" id="MCY">
<option>no carbon</option>
<option>355</option>
<option>360</option>
<option>415</option>
<option>420</option>
<option>450</option>
<option>460</option>
<option>485</option>
<option>555</option>
<option>625</option>
<option>690</option>
<option>830</option>
</select>
</td>
<td class="result">
<div class="resultfield" id="MCYEN287">
</div>
</td>
<td class="result">
<div class="resultfield" id="MCYAWSD11">
</div>
</td>
<td class="result">
<div class="resultfield" id="MCYASME9">
</div>
</td>
<td class="result">
<div class="resultfield" id="MCYENISO96061">
</div>
</td>
</tr>

<tr>
<td class="kop">
Material no carbon
</td>
<td class="result">
<select name="Mnc" class="inputfield" id="Mnc">
<option>no stainless</option>
<option>309</option>
<option>316L</option>
<option>S31254</option>
<option>S31803</option>
<option>S32750</option>
</select>
</td>
<td class="result">
<div class="resultfield1" id="MncEN287">
</div>
</td>
<td class="result">
<div class="resultfield1" id="MncAWSD11">
</div>
</td>
<td class="result">
<div class="resultfield1" id="MncASME9">
</div>
</td>
<td class="result">
<div class="resultfield1" id="MncENISO96061">
</div>
</td>
</tr>

<tr>
<td class="kop">
Weld position Root
</td>
<td class="result">
<select name="WpR" class="inputfield" id="WpR">
<option>1G----PA</option>
<option>2G----PC</option>
<option>3Gu---PF</option>
<option>4G----PE</option>
<option>5Gu---PH</option>
<option>6Gu---H-L045</option>
<option>6GRu</option>
</select>
</td>
<td class="result">
<div class="resultfield4" id="WpREN287">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WpRAWSD11">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WpRASME9">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WpRENISO96061">
</div>
</td>
</tr>

<tr>
<td class="kop">
Weld position Fill
</td>
<td class="result">
<select name="WpF" class="inputfield" id="WpF">
<option>1G----PA</option>
<option>2G----PC</option>
<option>3Gu---PF</option>
<option>4G----PE</option>
<option>5Gu---PH</option>
<option>6Gu---H-LO45</option>
<option>6GRu</option>
</select>
</td>
<td class="result">
<div class="resultfield4" id="WpFEN287">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WpFAWSD11">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WpFASME9">
</div>
</td>
<td class="result">
<div class="resultfield4" id="WpFENISO96061">
</div>
</td>
</tr>

<tr>
<td class="kop">
Thickness
</td>
<td class="result">
<input class="inputfield" id="thickness" type="text">
</td>
<td class="result">
<div class="resultfield" id="thickness_en287"></div>
</td>
<td class="result">
<div class="resultfield" id="thickness_awsd11"></div>
</td>
<td class="result">
<div class="resultfield" id="thickness_asme9"></div>
</td>
<td class="result">
<div class="resultfield" id="thickness_eniso96061"></div>
</td>
</tr

<tr>
<td class="kop">
Pipe Diameter
</td>
<td class="result">
<input class="inputfield" id="pipediameter" type="text">
</td>
<td class="result">
<div class="resultfield4" id="pipediameter_en287"></div>
</td>
<td class="result">
<div class="resultfield4" id="pipediameter_awsd11"></div>
</td>
<td class="result">
<div class="resultfield4" id="pipediameter_asme9"></div>
</td>
<td class="result">
<div class="resultfield4" id="pipediameter_eniso96061"></div>
</td>
</tr

<tr>
<td class="kop">
EN 287
</td>
<td class="result">
<select name="E2" class="inputfield" id="E2">
<option>yes</option>
<option>no</option>
</select>
</td>
<td class="result">
<div class="resultfield" id="E2EN287">
</div>
</td>
</tr>
<tr>
<td class="kop">
AWS D1-1
</td>
<td class="result">
<select name="AD" class="inputfield" id="AD">
<option>yes</option>
<option>no</option>
</select>
</td>
<td class="result">
<div class="resultfield2" id="ADEN287">
</div>
</td>
<td class="result">
<div class="resultfield" id="ADAWSD11">
</div>
</td>
</tr>
<tr>
<td class="kop">
ASME 9
</td>
<td class="result">
<select name="A9" class="inputfield" id="A9">
<option>yes</option>
<option>no</option>
</select>
</td>
<td class="result">
<div class="resultfield2" id="A9EN287">
</div>
</td>
<td class="result">
<div class="resultfield2" id="A9AWSD11">
</div>
</td>
<td class="result">
<div class="resultfield" id="A9ASME9">
</div>
</td>
</tr>
<tr>
<td class="kop">
EN ISO 9606-1
</td>
<td class="result">
<select name="EI9" class="inputfield" id="EI9">
<option>yes</option>
<option>no</option>
</select>
</td>
<td class="result">
<div class="resultfield2" id="EI9EN287">
</div>
</td>
<td class="result">
<div class="resultfield2" id="EI9AWSD11">
</div>
</td>
<td class="result">
<div class="resultfield2" id="EI9ASME9">
</div>
</td>
<td class="result">
<div class="resultfield" id="EI9ENISO96061">
</div>
</tr>

</table>
</div>
</div>

<br>
<div class="container">
<input onclick="Rekenen()" type="button" value="Calculate">
<input onclick="Wissen()" type="button" value="Clear">
</div>

<div align="center" >
<div class="container1">
<p>This table is base on:</p>
<p>Steel = Carbon Steel-309-316L-S31803-S32750-S31254.</p>
<p>Weldproces: SMAW-SAW-FCAW-GMAW-GTAW.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;SMAW basic electrode by carbon.</p>
<p>SAW with one wire.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;FCAW r = rutile b = basic m = metal.&nbsp;&nbsp;&nbsp;&nbsp;GTAW solid wire.</p>
<p>GMAW <12.7mm thickness ranges 1.1 times.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Material thickness start by 3 mm.</p>
<p>Downhill welding 3FD 3GD not in this table.</p>
<p>None filletweld ranges platethickness-position-diameter in this table.</p>
<p>EN 287 year 2011.---AWS D1-1 year 2010.---ASME IX year 2010.---EN ISO 9606-1 year 2013.</p>
</div>
<br>
<br>
<br>
<br><br>
<br>
<br>
<div class="container2">
<div class="container">
<font color="#FF0000">See for ----all the rules---- the Norm.</font>
<div class="VoorAchter" >
</div></div></div>


<br>
<font size="2px">
<div align="center" >
<input type="button"name="print" onClick="print()" value="print this Page"></form>
<input type="button"name="PrintMij" onClick="PrintPagina()" value="print this Table"></form>
<p id="datum"></p>
</div>
</font>

<div align="center" >
<div class="container" style="width:625;">
<div id="bar">
</div>
<div class="container">
<font size="-3" color="#ff0000">
welding.chr.los&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Welders Certificate Welding Ranges&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; july.2014
</font>
</div>






<script type="text/javascript">
<!--
function writeMessage0()
{
document.forms[0].mySecondInput0.value = document.forms[0].myInput0.value;
}
function writeMessage1()
{
document.forms[0].mySecondInput1.value = document.forms[0].myInput1.value;
}
function writeMessage2()
{
document.forms[0].mySecondInput2.value = document.forms[0].myInput2.value;
}
function writeMessage3()
{
document.forms[0].mySecondInput3.value = document.forms[0].myInput3.value;
}

function Wissen()
{
var output = document.getElementsByClassName("resultfield "); for (var i = 0; i < output.length; i++){output.innerHTML = "";}
var output = document.getElementsByClassName("resultfield1"); for (var i = 0; i < output.length; i++){output.innerHTML = "";}
var output = document.getElementsByClassName("resultfield3"); for (var i = 0; i < output.length; i++){output.innerHTML = "";}
var input = document.getElementsByClassName("inputfield "); for (var j = 0; j < input.length; j++){input [j].value = "";}
}



function Rekenen()
{
// Type of Groove data
var togData = {
en287 : [
'V - 1/2V - K - X - 1/2VT - KT - PP - VB - 1/2VB',
'1/2V - V - K - X - 1/2VT - KT - PP - VB - 1/2VB',
'YY - 1/2V - V - K - X - 1/2VT - KT - PP - VB - 1/2VB',
'K - X - VB - 1/2VB',
'X - K - VB - 1/2VB',
'F singel',
'F multiple -F single',
'PP'
],
awsd11 : [
'V - 1/2V - K - X - 1/2VT - KT - F - PP - VB - 1/2VB',
'1/2V - V - K - X - 1/2VT - KT - F - PP - VB - 1/2VB',
'YY - 1/2V - V - K - X - 1/2VT - KT - F - PP - VB - 1/2VB',
'K - X - F - PP - VB - 1/2VB',
'X - K - F - PP - VB - 1/2VB',
'F singel',
'F multiple -F single',
'PP'
],
asme9 : [
'V - 1/2V - K - X - 1/2VT - KT - F - PP - VB - 1/2VB',
'1/2V - V - K - X - 1/2VT - KT - F - PP - VB - 1/2VB',
'YY not by ASME',
'K - X - F - PP - VB - 1/2VB',
'X - K - F - PP - VB - 1/2VB',
'F singel',
'F multiple -F single',
'PP'
],
eniso96061 : [
'V - 1/2V - K - X - 1/2VT - KT - PP - VB - 1/2VB',
'1/2V - V - K - X - 1/2VT - KT - PP - VB - 1/2VB',
'YY - 1/2V - V - K - X - 1/2VT - KT - PP - VB - 1/2VB',
'K - X - VB - 1/2VB',
'X - K - VB - 1/2VB',
'F singel',
'F multiple -F single',
'PP'
]
};
// Type of Groove berekening
var selectedToG = document.getElementById("ToG").selectedIndex;
// EN287
document.getElementById("ToGEN287").innerHTML = togData.en287[selectedToG];
// AWS D 1-1
document.getElementById("ToGAWSD11").innerHTML = togData.awsd11[selectedToG];
// ASME 9
document.getElementById("ToGASME9").innerHTML = togData.asme9[selectedToG];
// EN ISO 9606-1
document.getElementById("ToGENISO96061").innerHTML = togData.eniso96061[selectedToG];

// Weldproces Root data
var wrData = {
en287 : [
'SMAW',
'SAW',
'FCAWb / r',
'FCAWm-GMAW',
'FCAWr',
'GMAW-FCAWm',
'GTAW',
],
awsd11 : [
'SMAW',
'SAW',
'FCAWb / m / r',
'FCAWm / b / r',
'FCAWr / m / b',
'GMAW',
'GTAW',
],
asme9 : [
'SMAW',
'SAW',
'FCAWb / m / r',
'FCAWm / b / r',
'FCAWr / m / b',
'GMAW',
'GTAW',
],
eniso96061 : [
'SMAW',
'SAW',
'FCAWb / r',
'FCAWm-GMAW',
'FCAWr',
'GMAW-FCAWm',
'GTAW',
]
};
// Weldproces Root berekening
var selectedWR = document.getElementById("WR").selectedIndex;
// EN287
document.getElementById("WREN287").innerHTML = wrData.en287[selectedWR];
// AWS D 1-1
document.getElementById("WRAWSD11").innerHTML = wrData.awsd11[selectedWR];
// ASME 9
document.getElementById("WRASME9").innerHTML = wrData.asme9[selectedWR];
// EN ISO 9606-1
document.getElementById("WRENISO96061").innerHTML = wrData.eniso96061[selectedWR];

// Weldproces Fill data
var wfData = {
en287 : [
'SMAW',
'SAW',
'FCAWb / r',
'FCAWm-GMAW',
'FCAWr',
'GMAW-FCAWm',
'GTAW',
],
awsd11 : [
'SMAW',
'SAW',
'FCAWb / m / r',
'FCAWm / b / r',
'FCAWr / m / b',
'GMAW',
'GTAW',
],
asme9 : [
'SMAW',
'SAW',
'FCAWb / m / r',
'FCAWm / b / r',
'FCAWr / m / b',
'GMAW',
'GTAW',
],
eniso96061 : [
'SMAW',
'SAW',
'FCAWb / r',
'FCAWm-GMAW',
'FCAWr',
'GMAW-FCAWm',
'GTAW',
]
};
// Weldproces Fill berekening
var selectedWF = document.getElementById("WF").selectedIndex;
// EN287
document.getElementById("WFEN287").innerHTML = wfData.en287[selectedWF];
// AWS D 1-1
document.getElementById("WFAWSD11").innerHTML = wfData.awsd11[selectedWF];
// ASME 9
document.getElementById("WFASME9").innerHTML = wfData.asme9[selectedWF];
// EN ISO 9606-1
document.getElementById("WFENISO96061").innerHTML = wfData.eniso96061[selectedWF];

// Mat.Carbon Yield data
var mcyData = {
en287 : [
'no carbon',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
],
awsd11 : [
'no carbon',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
],
asme9 : [
'no carbon',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
],
eniso96061 : [
'no carbon',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
'all yield to weld',
]
};
// Mat.Carbon Yield berekening
var selectedMCY = document.getElementById("MCY").selectedIndex;
// EN287
document.getElementById("MCYEN287").innerHTML = mcyData.en287[selectedMCY];
// AWS D 1-1
document.getElementById("MCYAWSD11").innerHTML = mcyData.awsd11[selectedMCY];
// ASME 9
document.getElementById("MCYASME9").innerHTML = mcyData.asme9[selectedMCY];
// EN ISO 9606-1
document.getElementById("MCYENISO96061").innerHTML = mcyData.eniso96061[selectedMCY];

// Material no carbon data
var mncData = {
en287 : [
'no stainless',
'309 - 316L - S31254 - S31803 - S32750',
'316L - 309 - S31254 - S31803 - S32750',
'S31254 - 316L - 309 - S31803 - S32750',
'S31803 - S32750 - 316L - 309 - S31254',
'S32750 - S31803 - 316L - 309 - S31254',
],
awsd11 : [
'no stainless',
'not by AWS ',
'not by AWS ',
'not by AWS ',
'not by AWS ',
'not by AWS '
],
asme9 : [
'no stainless',
'309 - 316L - S31254',
'316L - 309 - S31254',
'S31254 - 316L - 309',
'S31803 - S32750',
'S32750 - S31803',
],
eniso96061 : [
'no stainless',
'309 - 316L - S31254',
'316L - 309 - S31254',
'S31254 - 316L - 309',
'S31803 - S32750',
'S32750 - S31803',
]
};
// Material no carbon berekening
var selectedMnc = document.getElementById("Mnc").selectedIndex;
// EN287
document.getElementById("MncEN287").innerHTML = mncData.en287[selectedMnc];
// AWS D 1-1
document.getElementById("MncAWSD11").innerHTML = mncData.awsd11[selectedMnc];
// ASME 9
document.getElementById("MncASME9").innerHTML = mncData.asme9[selectedMnc];
// EN ISO 9606-1
document.getElementById("MncENISO96061").innerHTML = mncData.eniso96061[selectedMnc];

// Weld position Root data
var wprData = {
en287 : [
'1G',
'1G-2G',
'1G-3Gu',
'1G-2G-3Gu-4G-5Gu',
'1G-3Gu-4G-5Gu',
'all',
'not by en 287',
],
awsd11 : [
'1G',
'1G-2G',
'1G-2G-3Gu',
'1G-4G',
'1G-3Gu-4G-5Gu',
'all',
'all',
],
asme9 : [
'1G',
'1G-2G',
'1G-3Gu',
'1G-4G',
'1G-3Gu-4G-5Gu',
'all',
'not by asme',
],
eniso96061 : [
'1G',
'1G-2G',
'1G-3Gu',
'1G-2G-4G',
'1G-3Gu-4G-5Gu',
'all',
'not by en iso 9606-1',
]
};
// Weld position Root berekening
var selectedWpR = document.getElementById("WpR").selectedIndex;
// EN287
document.getElementById("WpREN287").innerHTML = wprData.en287[selectedWpR];
// AWS D 1-1
document.getElementById("WpRAWSD11").innerHTML = wprData.awsd11[selectedWpR];
// ASME 9
document.getElementById("WpRASME9").innerHTML = wprData.asme9[selectedWpR];
// EN ISO 9606-1
document.getElementById("WpRENISO96061").innerHTML = wprData.eniso96061[selectedWpR];

// Weld position Fill data
var wpfData = {
en287 : [
'1G',
'1G-2G',
'1G-3Gu',
'1G-2G-3Gu-4G-5Gu',
'1G-3Gu-4G-5Gu',
'all',
'not by en 287',
],
awsd11 : [
'1G',
'1G-2G',
'1G-2G-3Gu',
'1G-4G',
'1G-3Gu-4G-5Gu',
'all',
'all',
],
asme9 : [
'1G',
'1G-2G',
'1G-3Gu',
'1G-4G',
'1G-3Gu-4G-5Gu',
'all',
'not by asme',
],
eniso96061 : [
'1G',
'1G-2G',
'1G-3Gu',
'1G-2G-4G',
'1G-3Gu-4G-5Gu',
'all',
'not by en iso 9606-1',
]
};
// Weld position Fill berekening
var selectedWpF = document.getElementById("WpF").selectedIndex;
// EN287
document.getElementById("WpFEN287").innerHTML = wpfData.en287[selectedWpF];
// AWS D 1-1
document.getElementById("WpFAWSD11").innerHTML = wpfData.awsd11[selectedWpF];
// ASME 9
document.getElementById("WpFASME9").innerHTML = wpfData.asme9[selectedWpF];
// EN ISO 9606-1
document.getElementById("WpFENISO96061").innerHTML = wpfData.eniso96061[selectedWpF];




// Thickness
var thicknessData = parseFloat(document.getElementById("thickness").value);
// EN 287
if(thicknessData >= 3 && thicknessData <= 12) { document.getElementById("thickness_en287").innerHTML = 3 + ".....to....." + thicknessData * 2 ; }
else if(thicknessData > 12) { document.getElementById("thickness_en287").innerHTML = " >= 5 "; }
// AWS D 1-1
if(thicknessData <= 10 ) { document.getElementById("thickness_awsd11").innerHTML = 3 + ".....to....." + " 20 " ; }
else if(thicknessData > 10 ) { document.getElementById("thickness_awsd11").innerHTML = 5 + ".....to" + " unlimited " ; }
// ASME 9
if(thicknessData < 12.7) { document.getElementById("thickness_asme9").innerHTML = "max....."+ thicknessData * 2 ; }
else if(thicknessData >=12.7) { document.getElementById("thickness_asme9").innerHTML = "all"; }
// EN ISO 9606-1
if(thicknessData >= 3 && thicknessData < 12) { document.getElementById("thickness_eniso96061").innerHTML = 3 + ".....to....." + thicknessData * 2 ; }
else if(thicknessData >= 12) { document.getElementById("thickness_eniso96061").innerHTML = ">= 3 "; }


// Pipe Diameter
var pipediameterData = parseFloat(document.getElementById("pipediameter").value);
// EN 287
if(pipediameterData <= 25) { document.getElementById("pipediameter_en287").innerHTML = pipediameterData +" .....to..... " + pipediameterData * 2 ; }
else if(pipediameterData > 25 && pipediameterData <= 50) { document.getElementById("pipediameter_en287").innerHTML = " 25.....to " + " unlimited"; }
else if(pipediameterData > 50) { document.getElementById("pipediameter_en287").innerHTML = pipediameterData * 0.5 + ".....to " + " unlimited"; }
// AWS D 1-1
if(pipediameterData <= 100) { document.getElementById("pipediameter_awsd11").innerHTML = 20 + ".....to....." + " 100"; }
else if(pipediameterData > 100 && pipediameterData < 200) { document.getElementById("pipediameter_awsd11").innerHTML = pipediameterData / 2 + "....to" + " unlimited"; }
else if(pipediameterData >=200) { document.getElementById("pipediameter_awsd11").innerHTML = 100 + ".....to" + " unlimited"; }
// ASME 9
if(pipediameterData < 25 ) { document.getElementById("pipediameter_asme9").innerHTML = pipediameterData + ".....to " + "unlimited"; }
else if(pipediameterData >= 25 && pipediameterData <= 73) { document.getElementById("pipediameter_asme9").innerHTML = " 25.....to " + "unlimited"; }
else if(pipediameterData > 73) { document.getElementById("pipediameter_asme9").innerHTML = " 73.....to " + "unlimited"; }
// EN ISO 9606-1
if(pipediameterData <= 25) { document.getElementById("pipediameter_eniso96061").innerHTML = pipediameterData +".....to....." + pipediameterData * 2 ; }
else if(pipediameterData > 25 && pipediameterData <= 50) { document.getElementById("pipediameter_eniso96061").innerHTML = " 25.....to " + " unlimited"; }
else if(pipediameterData > 50) { document.getElementById("pipediameter_eniso96061").innerHTML = pipediameterData * 0.5 + ".....to " + " unlimited"; }


// EN 287 data
var e2Data = {
en287 : [
'yes',
'no',
]

};
// EN 287 berekening
var selectedE2 = document.getElementById("E2").selectedIndex;
// EN287
document.getElementById("E2EN287").innerHTML = e2Data.en287[selectedE2];



// AWS D1-1 data
var adData = {
en287 : [
'',
'',
],
awsd11 : [
'yes',
'no',
]
};
// AWS D1-1 berekening
var selectedAD = document.getElementById("AD").selectedIndex;
// EN287
document.getElementById("ADEN287").innerHTML = adData.en287[selectedAD];
// AWS D 1-1
document.getElementById("ADAWSD11").innerHTML = adData.awsd11[selectedAD];


// ASME 9 data
var a9Data = {
en287 : [
'',
'',
],
awsd11 : [
'',
'',
],
asme9 : [
'yes',
'no',
]
};
// ASME 9 berekening
var selectedA9 = document.getElementById("A9").selectedIndex;
// EN287
document.getElementById("A9EN287").innerHTML = a9Data.en287[selectedA9];
// AWS D 1-1
document.getElementById("A9AWSD11").innerHTML = a9Data.awsd11[selectedA9];
// ASME 9
document.getElementById("A9ASME9").innerHTML = a9Data.asme9[selectedA9];


// EN ISO 9606-1 data
var ei9Data = {
en287 : [
'',
'',
],
awsd11 : [
'',
'',
],
asme9 : [
'',
'',
],
eniso96061 : [
'yes',
'no',
]
};
// EN ISO 9606-1 berekening
var selectedEI9 = document.getElementById("EI9").selectedIndex;
// EN287
document.getElementById("EI9EN287").innerHTML = ei9Data.en287[selectedEI9];
// AWS D 1-1
document.getElementById("EI9AWSD11").innerHTML = ei9Data.awsd11[selectedEI9];
// ASME 9
document.getElementById("EI9ASME9").innerHTML = ei9Data.asme9[selectedEI9];
// EN ISO 9606-1
document.getElementById("EI9ENISO96061").innerHTML = ei9Data.eniso96061[selectedEI9];
}


// Datum

var dagArray = ["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];
var maandArray = ["january","february","march","april","may","june","july","august","september", "oktober","november","december"];
var nu = new Date();
var dagtekst = dagArray[(nu.getDay())];
var dag = nu.getDate();
var maandtekst = maandArray[(nu.getMonth())];
var jaar = nu.getYear();
var jaar4 = ((jaar < 1900) ? (jaar + 1900) : (jaar));
var datumweergave = dagtekst + " " + dag + " " + maandtekst + " " + jaar4;
document.getElementById("datum").innerHTML = datumweergave;


// Print Table

var AutoPrint = true; // Indien 'false' wordt de pagina niet automatisch uitgeprint

function PrintPagina(){
if (document.getElementById != null){ var html = '<HTML>\n<HEAD>\n';
if (document.getElementsByTagName != null){ var headTags = document.getElementsByTagName("head");
if (headTags.length > 0) html += headTags[0].innerHTML;
}
html += '\n</HE' + 'AD>\n<BODY>\n';
var PrintKlaarElem = document.getElementById("PrintKlaar");
if (PrintKlaarElem != null){ html += PrintKlaarElem.innerHTML;
}
html += '\n</BO' + 'DY>\n</HT' + 'ML>';
var printWin = window.open("","PrintPagina");
printWin.document.open();
printWin.document.write(html);
printWin.document.close();
if (AutoPrint)printWin.print();
}
}
//-->
</script>
</body>
</html
 
Beste gast0158,

Dit is geen grap.

Ik zit hier al dagen naar te zoeken, maar kan de juiste gegevens niet vinden.

Een tabel afdruk printen zonder invoer gegevens is niet zo leuk.

c.los
 
Goedenavond,

Waar blijven de knappe ICT mensen.

Ik heb het voorbeeld voor printen van alleen een tabel afgehaald/afgekeken van www.helpmij.nl irisock (printen in pagina zonder balken).

C.Los
 
Status
Niet open voor verdere reacties.
Terug
Bovenaan Onderaan