1 <legend><strong><?php echo _AT("support_tools"); ?></strong> </legend>
3 <div id="feedback" style="width:90%;">
4 <?php echo _AT('prefs_set_tools'); ?></div>
7 if (isset($_POST["dictionary_val"]))
8 $dict_val = $_POST["dictionary_val"];
10 $dict_val = $_SESSION['prefs']['PREF_DICTIONARY'];
12 if ($dict_val == 1) $dict = ' checked ';
14 if (isset($_POST["thesaurus_val"]))
15 $thes_val = $_POST["thesaurus_val"];
17 $thes_val = $_SESSION['prefs']['PREF_THESAURUS'];
19 if ($thes_val == 1) $thes = ' checked ';
21 if (isset($_POST["encyclopedia_val"]))
22 $enc_val = $_POST["encyclopedia_val"];
24 $enc_val = $_SESSION['prefs']['PREF_ENCYCLOPEDIA'];
26 if ($enc_val == 1) $enc = ' checked ';
28 if (isset($_POST["atlas_val"])){
30 $atla_val = $_POST["atlas_val"];
32 $atla_val = $_SESSION['prefs']['PREF_ATLAS'];
34 if ($atla_val == 1) $atla = ' checked ';
37 if (isset($_POST["note_taking_val"]))
38 $notes_val = $_POST["note_taking_val"];
40 $notes_val = $_SESSION['prefs']['PREF_NOTE_TAKING'];
42 if ($notes_val == 1) $notes = ' checked ';
44 if (isset($_POST["calculator_val"]))
45 $calc_val = $_POST["calculator_val"];
47 $calc_val = $_SESSION['prefs']['PREF_CALCULATOR'];
49 if ($calc_val == 1) $calc = ' checked ';
51 if ($peer_val == 1) $peer = ' checked ';
53 if (isset($_POST["abacus_val"]))
54 $abac_val = $_POST["abacus_val"];
56 $abac_val = $_SESSION['prefs']['PREF_ABACUS'];
58 if ($abac_val == 1) $abac = ' checked ';
61 <input id="dict_val" name="dictionary_val" type="hidden" value="<?php echo $dict_val; ?>" />
62 <input id="dict" name="dictionary" type="checkbox" checked="<?php echo $dict; ?>" onchange="changeVal('dict')" /><label for="dict"><?php echo _AT("dictionary"); ?></label><br />
64 <input id="thes_val" name="thesaurus_val" type="hidden" value="<?php echo $thes_val; ?>" />
65 <input id="thes" name="thesaurus" type="checkbox" checked="<?php echo $thes; ?>" onchange="changeVal('thes')" /><label for="thes"><?php echo _AT("thesaurus"); ?></label><br />
67 <input id="enc_val" name="encyclopedia_val" type="hidden" value="<?php echo $enc_val; ?>" />
68 <input id="enc" name="encyclopedia" type="checkbox" checked="<?php echo $enc; ?>" onchange="changeVal('enc')" /><label for="enc"><?php echo _AT("encyclopedia"); ?></label><br />
70 <input id="atla_val" name="atlas_val" type="hidden" value="<?php echo $atla_val; ?>" />
71 <input id="atla" name="atlas" type="checkbox" checked="<?php echo $atla; ?>" onchange="changeVal('atla')" /><label for="atla"><?php echo _AT("atlas"); ?></label><br />
73 <input id="notes_val" name="note_taking_val" type="hidden" value="<?php echo $notes_val; ?>" />
74 <input id="notes" name="note_taking" type="checkbox" checked="<?php echo $notes; ?>" onchange="changeVal('notes')" /><label for="notes"><?php echo _AT("note_taking"); ?></label><br />
76 <input id="calc_val" name="calculator_val" type="hidden" value="<?php echo $calc_val; ?>" />
77 <input id="calc" name="calculator" type="checkbox" checked="<?php echo $calc; ?>" onchange="changeVal('calc')" /><label for="calc"><?php echo _AT("calculator"); ?></label><br />
79 <input id="peer_val" name="peer_interaction_val" type="hidden" value="<?php echo $peer_val; ?>" />
80 <input id="peer" name="peer_interaction" type="checkbox" checked="<?php echo $peer; ?>" onchange="changeVal('peer')" /><label for="peer"><?php echo _AT("peer_interaction"); ?></label><br />-->
82 <input id="abac_val" name="abacus_val" type="hidden" value="<?php echo $abac_val; ?>" />
83 <input id="abac" name="abacus" type="checkbox" checked="<?php echo $abac; ?>" onchange="changeVal('abac')" /><label for="abac"><?php echo _AT("abacus"); ?></label><br />
86 <script language="javascript" type="text/javascript">
88 function changeVal(val_name)
90 if (eval('document.getElementById("'+ val_name +'").checked'))
91 eval('document.getElementById("'+ val_name +'_val").value = 1');
93 eval('document.getElementById("'+ val_name +'_val").value = 0');