-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstefan.php
74 lines (67 loc) · 2.76 KB
/
stefan.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?php include("./templates/header.php"); ?>
<div class="container">
<div class="row center">
<div class="col-s12 z-depth-4">
<div class="card-panel purple accent-1"><h5>Verify Stefan's Law</h5></div>
</div>
</div>
<div class="row purple lighten-4 center-align">
<div class="input-field col s6">
<input id="vol" type="text" name="vol" required>
<label for="vol">Enter Draper Voltage (V<sub>d</sub>)</label>
</div>
<div class="input-field col s6">
<input id="cur" type="text" name="cur" required >
<label for="cur">Enter Current(I<sub>d</sub>)</label>
</div>
<div class="input-field col s6">
<input id="temp" type="text" name="temp" required>
<label for="temp">Enter Room Temprature in °Kelvin </label>
</div>
<div class="input-field col s6">
<button type="submit" class="waves-effect waves-light btn" id="share">Calculate Draper resistance</button>
</div>
</div>
</div>
<div class="container" id="con">
<div class="row">
<div class="col s12 ">
<table class="striped z-depth-3 purple lighten-4" style="">
<thead>
<tr>
<th>S.No. </th>
<th>V<sub>t</sub> </th>
<th>I<sub>t</sub> </th>
<th>R<sub>t</sub>=(V<sub>t</sub>/I<sub>t</sub>) </th>
<th>P=V<sub>t</sub>*I<sub>t</sub> </th>
<th>Log<sub>10</sub>P</th>
<th>T=T<sub>r</sub>(R<sub>t</sub>/R<sub>a</sub>)<sup>.833</sup></th>
<th>Log<sub>10</sub>P</th>
</tr>
</thead>
<form id="stefan_form">
<tbody>
<?php
for($i=0;$i<29;$i++)
{
include("./templates/stefan.php");
}
?>
<input type="hidden" name="room" id="room">
<input type="hidden" name="rd" id="rd">
<input type="hidden" name="exp" value="stefan">
<tr>
<td colspan="8"><button type="submit" class="waves-effect waves-light btn" name="submit_cf" >Calculate</button></td>
</tr>
</tbody>
</form>
</table>
</div>
<div class="offset-s1"></div>
</div>
</div>
<script type="text/javascript" src="materialize/js/jquery.js"></script>
<script type="text/javascript" src="materialize/js/materialize.min.js"></script>
<script type="text/javascript" src="materialize/js/stefan.js"></script>
</body>
</html>