echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n"; echo " <tr>\n"; echo " <td align=\"left\">\n"; echo " <table class=\"box\" width=\"100%\">\n"; echo " <tr>\n"; echo " <td align=\"left\" class=\"posthead\">\n"; echo " <table class=\"posthead\" width=\"100%\">\n"; echo " <tr>\n"; echo " <td align=\"left\" class=\"subhead\" colspan=\"3\">", gettext("Rate"), " ", word_filter_add_ob_tags($link['TITLE'], true), "</td>"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"center\">\n"; echo " <table class=\"posthead\" width=\"95%\">\n"; echo " <tr>\n"; echo " <td align=\"left\">", gettext("Bad"), " </td>\n"; echo " <td align=\"center\" style=\"white-space: nowrap\">", form_radio_array("vote", range(0, 10), $vote), " </td>\n"; echo " <td align=\"left\">", gettext("Good"), " </td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"left\" colspan=\"3\"> </td>\n"; echo " </tr>\n"; echo " </table>\n"; echo " </td>\n"; echo " </tr>\n"; echo " </table>\n"; echo " </td>\n"; echo " </tr>\n"; echo " </table>\n"; echo " </td>\n"; echo " </tr>\n"; echo " <tr>\n";
function messages_interest_form($tid, $pid, $interest) { $webtag = get_webtag(); $interest_levels_array = array(THREAD_IGNORED => gettext("Ignore"), THREAD_NOINTEREST => gettext("Normal"), THREAD_INTERESTED => gettext("Interested"), THREAD_SUBSCRIBED => gettext("Subscribed")); echo "<table class=\"posthead\" width=\"100%\">\n"; echo " <tr>\n"; echo " <td align=\"center\">\n"; echo " <form accept-charset=\"utf-8\" name=\"rate_interest\" target=\"_self\" action=\"thread_options.php?webtag={$webtag}&msg={$tid}.{$pid}\" method=\"post\">\n"; echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n"; echo " ", gettext("Rate my interest"), ": ", form_radio_array("setinterest", $interest_levels_array, htmlentities_array($interest)); echo " ", form_input_hidden("tid", htmlentities_array($tid)); echo " ", form_submit("apply", gettext("Apply")), "\n"; echo " </form>\n"; echo " </td>\n"; echo " </tr>\n"; echo "</table>\n"; echo "<br />\n"; }
} else { echo " <tr>\n"; echo " <td align=\"left\" class=\"subhead\" colspan=\"3\">{$profile_item['SECTION_NAME']}</td>\n"; echo " <td align=\"left\" class=\"subhead\" width=\"1%\"> </td>\n"; echo " </tr>\n"; } } $last_psid = $profile_item['PSID']; echo " <tr>\n"; echo " <td align=\"left\"> </td>\n"; echo " <td align=\"left\" width=\"225\">{$profile_item['ITEM_NAME']}</td>\n"; if ($profile_item['TYPE'] == PROFILE_ITEM_RADIO || $profile_item['TYPE'] == PROFILE_ITEM_DROPDOWN) { $profile_item_options_array = htmlentities_array(explode("\n", $profile_item['OPTIONS'])); profile_item_add_clear_entry($profile_item_options_array, $profile_item['TYPE']); if ($profile_item['TYPE'] == PROFILE_ITEM_RADIO) { echo " <td align=\"left\" valign=\"top\">", form_radio_array("t_entry[{$profile_item['PIID']}]", $profile_item_options_array, isset($t_entry_array[$profile_item['PIID']]) ? htmlentities_array($t_entry_array[$profile_item['PIID']]) : htmlentities_array($profile_item['ENTRY'])), "</td>\n"; } else { echo " <td align=\"left\" valign=\"top\">", form_dropdown_array("t_entry[{$profile_item['PIID']}]", $profile_item_options_array, isset($t_entry_array[$profile_item['PIID']]) ? htmlentities_array($t_entry_array[$profile_item['PIID']]) : htmlentities_array($profile_item['ENTRY']), false, 'bhinputprofileitem'), "</td>\n"; } if ($admin_edit === false) { echo " <td align=\"right\" valign=\"top\">", form_checkbox("t_entry_private[{$profile_item['PIID']}]", "Y", '', isset($profile_item['PRIVACY']) && $profile_item['PRIVACY'] == PROFILE_ITEM_PRIVATE, sprintf("title=%s", gettext("Friends only?"))), "</td>\n"; } else { echo " <td align=\"left\" valign=\"top\"> </td>\n"; } } else { if ($profile_item['TYPE'] == PROFILE_ITEM_MULTI_TEXT) { echo " <td align=\"left\" valign=\"top\">", form_textarea("t_entry[{$profile_item['PIID']}]", isset($t_entry_array[$profile_item['PIID']]) ? htmlentities_array($t_entry_array[$profile_item['PIID']]) : htmlentities_array($profile_item['ENTRY']), false, false, false, 'bhinputprofileitem'), "</td>\n"; if ($admin_edit === false) { echo " <td align=\"right\" valign=\"top\">", form_checkbox("t_entry_private[{$profile_item['PIID']}]", "Y", '', isset($profile_item['PRIVACY']) && $profile_item['PRIVACY'] == PROFILE_ITEM_PRIVATE, sprintf("title=%s", gettext("Friends only?"))), "</td>\n"; } else { echo " <td align=\"left\" valign=\"top\"> </td>\n";
echo " </tr>\n"; } } $last_psid = $profile_item['PSID']; echo " <tr>\n"; echo " <td></td>\n"; echo " <td colspan=\"2\">{$profile_item['ITEM_NAME']}</td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td></td>\n"; echo " <td>\n"; if ($profile_item['TYPE'] == PROFILE_ITEM_RADIO || $profile_item['TYPE'] == PROFILE_ITEM_DROPDOWN) { $profile_item_options_array = htmlentities_array(explode("\n", $profile_item['OPTIONS'])); profile_item_add_clear_entry($profile_item_options_array, $profile_item['TYPE']); if ($profile_item['TYPE'] == PROFILE_ITEM_RADIO) { echo form_radio_array("t_entry[{$profile_item['PIID']}]", $profile_item_options_array, isset($t_entry_array[$profile_item['PIID']]) ? htmlentities_array($t_entry_array[$profile_item['PIID']]) : htmlentities_array($profile_item['ENTRY'])), "\n"; } else { echo form_dropdown_array("t_entry[{$profile_item['PIID']}]", $profile_item_options_array, isset($t_entry_array[$profile_item['PIID']]) ? htmlentities_array($t_entry_array[$profile_item['PIID']]) : htmlentities_array($profile_item['ENTRY']), null, 'bhinputprofileitem'), "\n"; } } else { if ($profile_item['TYPE'] == PROFILE_ITEM_MULTI_TEXT) { echo form_textarea("t_entry[{$profile_item['PIID']}]", isset($t_entry_array[$profile_item['PIID']]) ? htmlentities_array($t_entry_array[$profile_item['PIID']]) : htmlentities_array($profile_item['ENTRY']), null, null, null, 'bhinputprofileitem'), "\n"; } else { echo form_input_text("t_entry[{$profile_item['PIID']}]", isset($t_entry_array[$profile_item['PIID']]) ? htmlentities_array($t_entry_array[$profile_item['PIID']]) : htmlentities_array($profile_item['ENTRY']), null, null, null, 'bhinputprofileitem'), "\n"; } } echo "</td>\n"; if ($admin_edit === false) { echo " <td>", form_dropdown_array("t_entry_private[{$profile_item['PIID']}]", array(gettext("Public"), gettext("Friends"), gettext("Only Me")), $profile_item['PRIVACY'], null, 'bhinputprofileprivacy'), "</td>\n"; } else { echo " <td> </td>\n";