mirror of
https://github.com/jakejarvis/jbb.git
synced 2025-10-21 08:14:26 -04:00
first commit
This commit is contained in:
9
modules/calculator/calculation_add_result.php
Executable file
9
modules/calculator/calculation_add_result.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
echo "<CENTER><FONT SIZE=\"+2\"> You chose the following sentence for the calculator: <b>$factora</b>+<b>$factorb</FONT></b><BR><BR>"; ?>
|
||||
<?php
|
||||
$calculation = $factora + "$factorb";
|
||||
?>
|
||||
|
||||
<?php
|
||||
echo "<FONT SIZE=\"+1\">The sum was <b>$calculation<b></FONT><BR><BR><A HREF=\"index.php?file=calculator_add\">New Calculation</A>" . "<br />\n";
|
||||
?>
|
9
modules/calculator/calculation_divide_result.php
Executable file
9
modules/calculator/calculation_divide_result.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
echo "<CENTER><FONT SIZE=\"+2\"> You chose the following sentence for the calculator: <b>$factora</b>/<b>$factorb</FONT></b><BR><BR>"; ?>
|
||||
<?php
|
||||
$calculation = $factora / "$factorb";
|
||||
?>
|
||||
|
||||
<?php
|
||||
echo "<FONT SIZE=\"+1\">The result was <b>$calculation<b></FONT><BR><BR><A HREF=\"index.php?file=calculator_divide\">New Calculation</A>" . "<br />\n";
|
||||
?>
|
9
modules/calculator/calculation_multiply_result.php
Executable file
9
modules/calculator/calculation_multiply_result.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
echo "<CENTER><FONT SIZE=\"+2\"> You chose the following sentence for the calculator: <b>$factora</b>*<b>$factorb</FONT></b><BR><BR>"; ?>
|
||||
<?php
|
||||
$calculation = $factora * "$factorb";
|
||||
?>
|
||||
|
||||
<?php
|
||||
echo "<FONT SIZE=\"+1\">The product was <b>$calculation<b></FONT><BR><BR><A HREF=\"index.php?file=calculator_multiply\">New Calculation</A>" . "<br />\n";
|
||||
?>
|
9
modules/calculator/calculation_subtract_result.php
Executable file
9
modules/calculator/calculation_subtract_result.php
Executable file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
echo "<CENTER><FONT SIZE=\"+2\"> You chose the following sentence for the calculator: <b>$factora</b>-<b>$factorb</FONT></b><BR><BR>"; ?>
|
||||
<?php
|
||||
$calculation = $factora - "$factorb";
|
||||
?>
|
||||
|
||||
<?php
|
||||
echo "<FONT SIZE=\"+1\">The result was <b>$calculation<b></FONT><BR><BR><A HREF=\"index.php?file=calculator_subtract\">New Calculation</A>" . "<br />\n";
|
||||
?>
|
7
modules/calculator/calculator_add.php
Executable file
7
modules/calculator/calculator_add.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<form action="calculation_add_result.php" method="post">
|
||||
<input type="text" name="factora" /> +
|
||||
<input type="text" name="factorb" />
|
||||
<input type="submit" value="calculate sum">
|
||||
</form>
|
||||
|
||||
<?php echo "<b><font size=\"-1\">Select operation: <A HREF=\"index.php?file=calculator_add\">+</a> <A HREF=\"index.php?file=calculator_subtract\">-</a> <A HREF=\"index.php?file=calculator_multiply\">*</a> or <A HREF=\"index.php?file=calculator_divide\">/</a></b></font>"; ?>
|
7
modules/calculator/calculator_divide.php
Executable file
7
modules/calculator/calculator_divide.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<form action="index.php?file=calculation_divide_result" method="post">
|
||||
<input type="text" name="factora" /> /
|
||||
<input type="text" name="factorb" />
|
||||
<input type="submit" value="calculate result">
|
||||
</form>
|
||||
|
||||
<?php echo "<b><font size=\"-1\">Select operation: <A HREF=\"index.php?file=calculator_add\">+</a> <A HREF=\"index.php?file=calculator_subtract\">-</a> <A HREF=\"index.php?file=calculator_multiply\">*</a> or <A HREF=\"index.php?file=calculator_divide\">/</a></b></font>"; ?>
|
7
modules/calculator/calculator_multiply.php
Executable file
7
modules/calculator/calculator_multiply.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<form action="index.php?file=calculation_multiply_result" method="post">
|
||||
<input type="text" name="factora" /> *
|
||||
<input type="text" name="factorb" />
|
||||
<input type="submit" value="calculate product">
|
||||
</form>
|
||||
|
||||
<?php echo "<b><font size=\"-1\">Select operation: <A HREF=\"index.php?file=calculator_add\">+</a> <A HREF=\"index.php?file=calculator_subtract\">-</a> <A HREF=\"index.php?file=calculator_multiply\">*</a> or <A HREF=\"index.php?file=calculator_divide\">/</a></b></font>"; ?>
|
7
modules/calculator/calculator_subtract.php
Executable file
7
modules/calculator/calculator_subtract.php
Executable file
@@ -0,0 +1,7 @@
|
||||
<form action="index.php?file=calculation_subtract_result" method="post">
|
||||
<input type="text" name="factora" /> -
|
||||
<input type="text" name="factorb" />
|
||||
<input type="submit" value="calculate result">
|
||||
</form>
|
||||
|
||||
<?php echo "<b><font size=\"-1\">Select operation: <A HREF=\"index.php?file=calculator_add\">+</a> <A HREF=\"index.php?file=calculator_subtract\">-</a> <A HREF=\"index.php?file=calculator_multiply\">*</a> or <A HREF=\"index.php?file=calculator_divide\">/</a></b></font>"; ?>
|
Reference in New Issue
Block a user