-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathode.php
More file actions
73 lines (59 loc) · 1.89 KB
/
ode.php
File metadata and controls
73 lines (59 loc) · 1.89 KB
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
<span class="nadpis">
<?php
$oderhs=rawurldecode($_REQUEST["oderhs"]);
$ode2=str_replace("y\'","y'",rawurldecode($_REQUEST["ode2"]));
$readonly1="";
$readonly2="readonly=''";
$checked1='checked="checked"';
$checked2='';
if (str_replace(" ","",$ode2)=="")
{
$ode2="x*y'+y-x=0";
}
else
{
$readonly2="";
$readonly1="readonly=''";
$checked2='checked="checked"';
$checked1='';
}
if (str_replace(" ","",$oderhs)=="")
{
$oderhs="-2*y/x+x^4";
}
else
{
$readonly1="";
$readonly2="readonly=''";
$checked1='checked="checked"';
$checked2='';
}
?>
<?php echo __("Ordinary differential equations");?>
</span>
<?php maw_before_form()?><form name="exampleform" id="exampleform"
<?php echo $onsubmit;?>
<?php formmethod();?> action="<?php echo($server);?>/ode/ode.php">
<?php polejazyka($lang); ?>
<input <?php echo $checked1; ?> id="in-ch0" name="akce" value="0" title=""
type="radio">
<span>
<?php echo __('Equation solved wrt y\'');?>:
</span> <br>
<span style="font-style: italic;">y'=</span>
<input size="40" name="ode" id="in-ode" value="<?php echo $oderhs;?>" <?php echo $readonly1;?> title="">
<input value="<?php echo(__("Editor")); ?>" onclick="edit('ode')" type="button" class="tlacitko editor">
<input value="<?php echo(__("Preview")); ?>" title="<?php echo($previewmsg); ?>" onclick="previewb('ode')" type="button"
class="tlacitko">
<br>
<input <?php echo $checked2; ?> id="in-ch1" name="akce" value="1" title=""
type="radio">
<?php echo __("Full equation");?>:<br>
<input size="60" name="ode2" id="in-ode2" value="<?php echo $ode2;?>" <?php echo $readonly2;?> title="">
<input value="<?php echo(__("Preview")); ?>" onclick="previewb('ode2')" type="button"
class="tlacitko">
<br>
<?php echo $submitbutton;?>
</form><?php maw_after_form(); ?>
<?php history("ode",$server);
?>