Просмотр файла pomocy_shcool/raschet_formula.php

Размер файла: 1.95Kb
<?php
	
require_once"../template/start.php";
require_once"../template/regglobals.php";
require_once"../template/config.php";
require_once"../template/functions.php";
require_once"../template/antidos.php";
require_once"../template/cookies.php";
require_once"../template/gzip.php";
require_once"../template/header.php";
require_once"../template/referer.php";
include_once"../themes/$config_themes/index.php";
include_once"../template/isset.php";

echo '<SCRIPT LANGUAGE="JavaScript">

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function calc(form) {
form.result.value=eval(form.expr.value);
}
// End -->
</SCRIPT>
 
  
<body>

<center>
<b>Введите формулу используя знаки &quot;<font color="#008000">+</font>&quot;,&nbsp;&nbsp;
&quot;<font color="#008000"> -</font> &quot;,&nbsp;&nbsp; &quot; 
<font color="#008000">*</font> &quot;,&nbsp; &quot;<font color="#008000"> /</font> &quot;&nbsp; и 
скобки &quot;<font color="#008000">(</font>&quot;, &quot;<font color="#008000">)</font>&quot; и
нажмите &quot;<font color="#FF00FF">Считать</font>&quot; </b>
<br>
<br>
<form>
<table border=3 cellspacing=2 cellpadding=5 bgcolor="#CCCCCC" width="252">
<tr>
<td align=center width="133"><font color="#FFFF00"><b>Формула</b></font></td>
<td align=center width="83"><font color="#FF0000"><b>Результат</b></font></td>
</tr>
<tr>
<td align=center width="133"><input type=text name=expr size=25></td>
<td align=center width="83"><input type=text name=result size=15></td>
</tr>
<tr>
<td colspan=4 align=center><input type=button value="Считать" onclick="calc(this.form)"></td>
</tr></table></form></center></body>';
echo '<hr><img src="../images/img/homepage.gif" alt=""> <a href="../index.php?'.SID.'">На главную</a>'; 

include_once "../themes/$config_themes/foot.php";
?>