1 <fieldset> <legend><strong><?php echo _AT("support_tools"); ?></strong> </legend>
3 <?php echo _AT('support_tools'); ?><br />
5 if (isset($_POST["dictionary_val"]))
6 $dict_val = $_POST["dictionary_val"];
8 $dict_val = $_SESSION['prefs']['PREF_DICTIONARY'];
10 if ($dict_val == 1) $dict = ' checked ';
12 if (isset($_POST["thesaurus_val"]))
13 $thes_val = $_POST["thesaurus_val"];
15 $thes_val = $_SESSION['prefs']['PREF_THESAURUS'];
17 if ($thes_val == 1) $thes = ' checked ';
19 if (isset($_POST["encyclopedia_val"]))
20 $enc_val = $_POST["encyclopedia_val"];
22 $enc_val = $_SESSION['prefs']['PREF_ENCYCLOPEDIA'];
24 if ($enc_val == 1) $enc = ' checked ';
26 if (isset($_POST["atlas_val"])){
28 $atla_val = $_POST["atlas_val"];
30 $atla_val = $_SESSION['prefs']['PREF_ATLAS'];
32 if ($atla_val == 1) $atla = ' checked ';
35 if (isset($_POST["note_taking_val"]))
36 $notes_val = $_POST["note_taking_val"];
38 $notes_val = $_SESSION['prefs']['PREF_NOTE_TAKING'];
40 if ($notes_val == 1) $notes = ' checked ';
42 if (isset($_POST["calculator_val"]))
43 $calc_val = $_POST["calculator_val"];
45 $calc_val = $_SESSION['prefs']['PREF_CALCULATOR'];
47 if ($calc_val == 1) $calc = ' checked ';
49 if ($peer_val == 1) $peer = ' checked ';
51 if (isset($_POST["abacus_val"]))
52 $abac_val = $_POST["abacus_val"];
54 $abac_val = $_SESSION['prefs']['PREF_ABACUS'];
56 if ($abac_val == 1) $abac = ' checked ';
59 <input id="dict_val" name="dictionary_val" type="hidden" value="<?php echo $dict_val; ?>" >
60 <input id="dict" name="dictionary" type="checkbox" <?php echo $dict; ?> onchange="changeVal('dict')"><label for="dict"><?php echo _AT("dictionary"); ?></label><br />
62 <input id="thes_val" name="thesaurus_val" type="hidden" value="<?php echo $thes_val; ?>" >
63 <input id="thes" name="thesaurus" type="checkbox" <?php echo $thes; ?> onchange="changeVal('thes')"><label for="thes"><?php echo _AT("thesaurus"); ?></label><br />
65 <input id="enc_val" name="encyclopedia_val" type="hidden" value="<?php echo $enc_val; ?>" >
66 <input id="enc" name="encyclopedia" type="checkbox" <?php echo $enc; ?> onchange="changeVal('enc')"><label for="enc"><?php echo _AT("encyclopedia"); ?></label><br />
68 <input id="atla_val" name="atlas_val" type="hidden" value="<?php echo $atla_val; ?>" >
69 <input id="atla" name="atlas" type="checkbox" <?php echo $atla; ?> onchange="changeVal('atla')"><label for="atla"><?php echo _AT("atlas"); ?></label><br />
71 <input id="notes_val" name="note_taking_val" type="hidden" value="<?php echo $notes_val; ?>" >
72 <input id="notes" name="note_taking" type="checkbox" <?php echo $notes; ?> onchange="changeVal('notes')"><label for="notes"><?php echo _AT("note_taking"); ?></label><br />
74 <input id="calc_val" name="calculator_val" type="hidden" value="<?php echo $calc_val; ?>" >
75 <input id="calc" name="calculator" type="checkbox" <?php echo $calc; ?> onchange="changeVal('calc')"><label for="calc"><?php echo _AT("calculator"); ?></label><br />
77 <input id="peer_val" name="peer_interaction_val" type="hidden" value="<?php echo $peer_val; ?>" >
78 <input id="peer" name="peer_interaction" type="checkbox" <?php echo $peer; ?> onchange="changeVal('peer')"><label for="peer"><?php echo _AT("peer_interaction"); ?></label><br />-->
80 <input id="abac_val" name="abacus_val" type="hidden" value="<?php echo $abac_val; ?>" >
81 <input id="abac" name="abacus" type="checkbox" <?php echo $abac; ?> onchange="changeVal('abac')"><label for="abac"><?php echo _AT("abacus"); ?></label><br />
84 <script language="javascript" type="text/javascript">
86 function changeVal(val_name)
88 if (eval('document.getElementById("'+ val_name +'").checked'))
89 eval('document.getElementById("'+ val_name +'_val").value = 1');
91 eval('document.getElementById("'+ val_name +'_val").value = 0');