echo "<tr>\n"; } echo "<td align=right>" . $db->f("language") . "</td><td>\n"; htmlp_select("plang[" . $language_code . "]"); $db2->query("SELECT * FROM weightings"); while ($db2->next_record()) { $weightid = $db2->f("weightid"); $weighting = $db2->f("weighting"); $select = 0; if ($exists) { $exist_weighting = $db3->f($colname); if ($exist_weighting == $weightid) { $select = 1; } } htmlp_select_option("{$weightid}", $select, $t->translate($weighting)); } htmlp_select_end(); echo "</td>\n"; if ($count >= 2) { echo "</tr>\n"; $count = 0; } } echo "</table></center>\n"; echo "</table>"; $bx->box_body_end(); $bx->box_end(); echo "<CENTER>"; htmlp_form_hidden("action", "set"); htmlp_form_submit($t->translate("Submit"), "");
if ($counter % 2 == 1) { echo "<tr><td width=33%>\n"; } else { echo "<td width=33%>\n"; } echo "<table border=0 width=100% cellpadding=3><tr><td align=right>"; echo $db->f("language") . "\n"; echo "</td><td width=20%>"; htmlp_select("plang[" . $db->f("code") . "]"); $db2->seek(0); while ($db2->next_record()) { $selected = 0; if ($db2->f("weightid") == 0) { $selected = 1; } htmlp_select_option($db2->f("weightid"), $selected, $t->translate($db2->f("weighting"))); } htmlp_select_end(); echo "</td></tr></table>"; if ($counter % 2 == 0) { echo "</td></tr>\n\n"; } else { echo "</td>\n"; } } if ($counter % 2 == 0) { echo "</tr>\n\n"; } htmlp_form_hidden("lang_amount", $lang_amount); echo "</table></center>\n"; echo "</td></tr>\n";
echo "<BR>\n"; $tasktype = $db->f("tasktype"); echo $t->translate("What kind of task") . ":<BR>"; htmlp_select("tasktype"); $db2->query("SELECT * FROM prog_abilities WHERE translation='{$la}'"); while ($db2->next_record()) { if ($tasktype == $db2->f("code")) { htmlp_select_option($db2->f("code"), 1, $db2->f("ability")); } else { htmlp_select_option($db2->f("code"), 0, $db2->f("ability")); } } if ($tasktype == "other") { htmlp_select_option("other", 1, $t->translate("other")); } else { htmlp_select_option("other", 0, $t->translate("other")); } htmlp_select_end(); htmlp_select_end(); echo "<BR>\n"; echo $t->translate("Request-Language") . ":<BR>"; htmlp_select("reqlang"); echo "\n"; $reqlang = $db->f("language"); select_lang($reqlang); htmlp_select_end(); echo "<BR>\n"; echo "<BR>\n"; $reqmessage = $db->f("reqmessage"); echo $t->translate("Content") . ":<BR>"; htmlp_textarea("reqmessage", 60, 30, "nowrap", 2000, $reqmessage);
htmlp_select_option("yes", 0, $t->translate("mail me a copy of each personal message")); htmlp_select_option("dai", 1, $t->translate("mail me a list of new personal messages once a day")); htmlp_select_option("wee", 0, $t->translate("mail me a list of new personal messages once a week")); htmlp_select_option("no", 0, $t->translate("don't allow any personal messages")); break; case "wee": htmlp_select_option("yes", 0, $t->translate("mail me a copy of each personal message")); htmlp_select_option("dai", 0, $t->translate("mail me a list of new personal messages once a day")); htmlp_select_option("wee", 1, $t->translate("mail me a list of new personal messages once a week")); htmlp_select_option("no", 0, $t->translate("don't allow any personal messages")); break; case "no": htmlp_select_option("yes", 0, $t->translate("mail me a copy of each personal message")); htmlp_select_option("dai", 0, $t->translate("mail me a list of new personal messages once a day")); htmlp_select_option("wee", 0, $t->translate("mail me a list of new personal messages once a week")); htmlp_select_option("no", 1, $t->translate("don't allow any personal messages")); break; } htmlp_select_end(); /*if ($db->f("contact")=="yes") { echo"<input type=\"checkbox\" name=\"contact\" checked></td><td>"; } else { echo"<input type=\"checkbox\" name=\"contact\"></td><td>"; }*/ ?> </tr> <?php