} elseif (strpos($CURUSER['notifs'], "[spstate=1]") !== false) { $special_state = 1; } elseif (strpos($CURUSER['notifs'], "[spstate=2]") !== false) { $special_state = 2; } elseif (strpos($CURUSER['notifs'], "[spstate=3]") !== false) { $special_state = 3; } elseif (strpos($CURUSER['notifs'], "[spstate=4]") !== false) { $special_state = 4; } elseif (strpos($CURUSER['notifs'], "[spstate=5]") !== false) { $special_state = 5; } elseif (strpos($CURUSER['notifs'], "[spstate=6]") !== false) { $special_state = 6; } else { $special_state = 0; } $categories .= "<tr><td class=bottom><b>" . $lang_usercp['text_show_dead_active'] . "</b><br /><select name=\"incldead\"><option value=\"0\" " . (strpos($CURUSER['notifs'], "[incldead=0]") !== false ? " selected" : "") . ">" . $lang_usercp['select_including_dead'] . "</option><option value=\"1\" " . (strpos($CURUSER['notifs'], "[incldead=1]") !== false || strpos($CURUSER['notifs'], "incldead") == false ? " selected" : "") . ">" . $lang_usercp['select_active'] . "</option><option value=\"2\" " . (strpos($CURUSER['notifs'], "[incldead=2]") !== false ? " selected" : "") . ">" . $lang_usercp['select_dead'] . "</option></select></td><td class=bottom align=left><b>" . $lang_usercp['text_show_special_torrents'] . "</b><br /><select name=\"spstate\"><option value=\"0\" " . ($special_state == 0 ? " selected" : "") . ">" . $lang_usercp['select_all'] . "</option>" . promotion_selection($special_state) . "</select></td><td class=bottom><b>" . $lang_usercp['text_show_bookmarked'] . "</b><br /><select name=\"inclbookmarked\"><option value=\"0\" " . (strpos($CURUSER['notifs'], "[inclbookmarked=0]") !== false ? " selected" : "") . ">" . $lang_usercp['select_all'] . "</option><option value=\"1\" " . (strpos($CURUSER['notifs'], "[inclbookmarked=1]") !== false ? " selected" : "") . " >" . $lang_usercp['select_bookmarked'] . "</option><option value=\"2\" " . (strpos($CURUSER['notifs'], "[inclbookmarked=2]") !== false ? " selected" : "") . ">" . $lang_usercp['select_bookmarked_exclude'] . "</option></select></td></tr>"; $categories .= "</table>"; tr_small($lang_usercp['row_browse_default_categories'], $categories, 1); $ss_r = sql_query("SELECT * FROM stylesheets") or die; $ss_sa = array(); while ($ss_a = mysql_fetch_array($ss_r)) { $ss_id = $ss_a["id"]; $ss_name = $ss_a["name"]; $ss_sa[$ss_name] = $ss_id; } ksort($ss_sa); reset($ss_sa); while (list($ss_name, $ss_id) = each($ss_sa)) { if ($ss_id == $CURUSER["stylesheet"]) { $ss = " selected"; } else {
} tr($lang_edit['row_quality'], $source_select . $medium_select . $codec_select . $audiocodec_select . $standard_select . $processing_select, 1); } if ($showteam) { if ($showteam) { $team_select = torrent_selection($lang_edit['text_team'], "team_sel", "teams", $row["team"]); } else { $showteam = ""; } tr($lang_edit['row_content'], $team_select, 1); } tr($lang_edit['row_check'], "<input type=\"checkbox\" name=\"visible\"" . ($row["visible"] == "yes" ? " checked=\"checked\"" : "") . " value=\"1\" /> " . $lang_edit['checkbox_visible'] . " " . (get_user_class() >= $beanonymous_class || get_user_class() >= $torrentmanage_class ? "<input type=\"checkbox\" name=\"anonymous\"" . ($row["anonymous"] == "yes" ? " checked=\"checked\"" : "") . " value=\"1\" />" . $lang_edit['checkbox_anonymous_note'] . " " : "") . (get_user_class() >= $torrentmanage_class ? "<input type=\"checkbox\" name=\"banned\"" . ($row["banned"] == "yes" ? " checked=\"checked\"" : "") . " value=\"yes\" /> " . $lang_edit['checkbox_banned'] : ""), 1); if (get_user_class() >= $torrentsticky_class || get_user_class() >= $torrentmanage_class && $CURUSER["picker"] == 'yes') { $pickcontent = ""; if (get_user_class() >= $torrentsticky_class) { $pickcontent .= "<b>" . $lang_edit['row_special_torrent'] . ": </b>" . "<select name=\"sel_spstate\" style=\"width: 100px;\">" . promotion_selection($row["sp_state"], 0) . "</select> "; $pickcontent .= "<b>" . $lang_edit['row_torrent_position'] . ": </b>" . "<select name=\"sel_posstate\" style=\"width: 100px;\">" . "<option" . ($row["pos_state"] == "normal" ? " selected=\"selected\"" : "") . " value=\"0\">" . $lang_edit['select_normal'] . "</option>" . "<option" . ($row["pos_state"] == "sticky" ? " selected=\"selected\"" : "") . " value=\"1\">" . $lang_edit['select_sticky'] . "</option>" . "</select> "; } if (get_user_class() >= $torrentmanage_class && $CURUSER["picker"] == 'yes') { $pickcontent .= "<b>" . $lang_edit['row_recommended_movie'] . ": </b>" . "<select name=\"sel_recmovie\" style=\"width: 100px;\">" . "<option" . ($row["picktype"] == "normal" ? " selected=\"selected\"" : "") . " value=\"0\">" . $lang_edit['select_normal'] . "</option>" . "<option" . ($row["picktype"] == "hot" ? " selected=\"selected\"" : "") . " value=\"1\">" . $lang_edit['select_hot'] . "</option>" . "<option" . ($row["picktype"] == "classic" ? " selected=\"selected\"" : "") . " value=\"2\">" . $lang_edit['select_classic'] . "</option>" . "<option" . ($row["picktype"] == "recommended" ? " selected=\"selected\"" : "") . " value=\"3\">" . $lang_edit['select_recommended'] . "</option>" . "</select>"; } tr($lang_edit['row_pick'], $pickcontent, 1); } print "<tr><td class=\"toolbox\" colspan=\"2\" align=\"center\"><input id=\"qr\" type=\"submit\" value=\"" . $lang_edit['submit_edit_it'] . "\" /> <input type=\"reset\" value=\"" . $lang_edit['submit_revert_changes'] . "\" /></td></tr>\n"; print "</table>\n"; print "</form>\n"; print "<br /><br />"; print "<form method=\"post\" action=\"delete.php\">\n"; print "<input type=\"hidden\" name=\"id\" value=\"{$id}\" />\n"; if (isset($_GET["returnto"])) { print "<input type=\"hidden\" name=\"returnto\" value=\"" . htmlspecialchars($_GET["returnto"]) . "\" />\n";
} tr($lang_edit['row_quality'] . "<font color=red>*</font>", $source_select . $medium_select . $codec_select . $audiocodec_select . $standard_select . $processing_select, 1); } if ($showteam) { if ($showteam) { $team_select = torrent_selection($lang_edit['text_team'], "team_sel", "teams", $row["team"]); } else { $showteam = ""; } tr($lang_edit['row_content'], $team_select, 1); } tr($lang_edit['row_check'], "<input type=\"checkbox\" name=\"visible\"" . ($row["visible"] == "yes" ? " checked=\"checked\"" : "") . " value=\"1\" /> " . $lang_edit['checkbox_visible'] . " " . (get_user_class() >= $beanonymous_class || get_user_class() >= $torrentmanage_class ? "<input type=\"checkbox\" name=\"anonymous\"" . ($row["anonymous"] == "yes" ? " checked=\"checked\"" : "") . " value=\"1\" />" . $lang_edit['checkbox_anonymous_note'] . " " : "") . (get_user_class() >= $torrentmanage_class ? "<input type=\"checkbox\" name=\"banned\"" . ($row["banned"] == "yes" ? " checked=\"checked\"" : "") . " value=\"yes\" /> " . $lang_edit['checkbox_banned'] : ""), 1); if (get_user_class() >= $torrentsticky_class || get_user_class() >= $torrentmanage_class && $CURUSER["class"] >= '13') { $pickcontent = ""; if (get_user_class() >= $torrentsticky_class) { $pickcontent .= "<b>" . $lang_edit['row_special_torrent'] . ": </b>" . "<select name=\"sel_spstate\" style=\"width: 100px;\">" . promotion_selection($row["sp_state"], 0) . "</select> <b>" . $lang_edit['row_special_torrent_time'] . ": </b><input type=\"text\" name=\"freetime\" size=3 maxlength=3 /><b>天(留空不修改,-1为永久)<input type=\"text\" name=\"freetimeh\" size=2 maxlength=2 />小时,当前至{$row['endfree']}</b><br />"; $pickcontent .= "<b>" . $lang_edit['row_torrent_position'] . ": </b>" . "<select name=\"sel_posstate\" style=\"width: 100px;\">" . "<option" . ($row["pos_state"] == "normal" ? " selected=\"selected\"" : "") . " value=\"0\">" . $lang_edit['select_normal'] . "</option>" . "<option" . ($row["pos_state"] == "sticky" ? " selected=\"selected\"" : "") . " value=\"1\">" . $lang_edit['select_sticky'] . "</option>" . "</select> <b>" . $lang_edit['row_torrent_position_time'] . ": </b><input type=\"text\" name=\"stickytime\" size=3 maxlength=3 /><b>天(留空不修改,-1为永久)<input type=\"text\" name=\"stickytimeh\" size=2 maxlength=2 />小时,当前至{$row['endsticky']}</b><br />"; } if (get_user_class() >= $torrentmanage_class) { $pickcontent .= "<b>" . $lang_edit['row_recommended_movie'] . ": </b>" . "<select name=\"sel_recmovie\" style=\"width: 100px;\">" . "<option" . ($row["picktype"] == "normal" ? " selected=\"selected\"" : "") . " value=\"0\">" . $lang_edit['select_normal'] . "</option>" . "<option" . ($row["picktype"] == "hot" ? " selected=\"selected\"" : "") . " value=\"1\">" . $lang_edit['select_hot'] . "</option>" . "<option" . ($row["picktype"] == "classic" ? " selected=\"selected\"" : "") . " value=\"2\">" . $lang_edit['select_classic'] . "</option>" . "<option" . ($row["picktype"] == "recommended" ? " selected=\"selected\"" : "") . " value=\"3\">" . $lang_edit['select_recommended'] . "</option>" . "</select>"; } tr($lang_edit['row_pick'], $pickcontent, 1); } print "<tr><td class=\"toolbox\" colspan=\"2\" align=\"center\">"; if ($row["status"] != "normal" && get_user_class() >= $torrentmanage_class) { print "<input formaction=\"takeedit.php?release=yes\" type=\"submit\" value=\"编辑并发布\" />"; } print "<input id=\"qr\" type=\"submit\" value=\"" . $lang_edit['submit_edit_it'] . "\" /> <input type=\"reset\" value=\"" . $lang_edit['submit_revert_changes'] . "\" /></td></tr>\n"; print "</table>\n"; print "</form>\n"; print "<br /><br />";
promotion_criteria(UC_CRAZY_USER, "cu", 15, 300, 2.05, 1.95, 2); promotion_criteria(UC_INSANE_USER, "iu", 25, 500, 2.55, 2.45, 0); promotion_criteria(UC_VETERAN_USER, "vu", 40, 750, 3.05, 2.95, 3); promotion_criteria(UC_EXTREME_USER, "exu", 60, 1024, 3.55, 3.45, 0); promotion_criteria(UC_ULTIMATE_USER, "uu", 80, 1536, 4.05, 3.95, 5); promotion_criteria(UC_NEXUS_MASTER, "nm", 100, 3072, 4.55, 4.45, 10); tr($lang_settings['row_save_settings'], "<input type='submit' name='save' value='" . $lang_settings['submit_save_settings'] . "'>", 1); print "</form>"; } elseif ($action == 'torrentsettings') { stdhead($lang_settings['head_torrent_settings']); print $notice; print "<form method='post' action='" . $_SERVER["SCRIPT_NAME"] . "'><input type='hidden' name='action' value='savesettings_torrent'>"; yesorno($lang_settings['row_promotion_rules'], 'prorules', $TORRENT["prorules"], $lang_settings['text_promotion_rules_note']); tr($lang_settings['row_random_promotion'], $lang_settings['text_random_promotion_note_one'] . "<ul><li><input type='text' style=\"width: 50px\" name=randomhalfleech value='" . (isset($TORRENT["randomhalfleech"]) ? $TORRENT["randomhalfleech"] : 5) . "'>" . $lang_settings['text_halfleech_chance_becoming'] . "</li><li><input type='text' style=\"width: 50px\" name=randomfree value='" . (isset($TORRENT["randomfree"]) ? $TORRENT["randomfree"] : 2) . "'>" . $lang_settings['text_free_chance_becoming'] . "</li><li><input type='text' style=\"width: 50px\" name=randomtwoup value='" . (isset($TORRENT["randomtwoup"]) ? $TORRENT["randomtwoup"] : 2) . "'>" . $lang_settings['text_twoup_chance_becoming'] . "</li><li><input type='text' style=\"width: 50px\" name=randomtwoupfree value='" . (isset($TORRENT["randomtwoupfree"]) ? $TORRENT["randomtwoupfree"] : 1) . "'>" . $lang_settings['text_freetwoup_chance_becoming'] . "</li><li><input type='text' style=\"width: 50px\" name=randomtwouphalfdown value='" . (isset($TORRENT["randomtwouphalfdown"]) ? $TORRENT["randomtwouphalfdown"] : 0) . "'>" . $lang_settings['text_twouphalfleech_chance_becoming'] . "</li><li><input type='text' style=\"width: 50px\" name=randomthirtypercentdown value='" . (isset($TORRENT["randomthirtypercentdown"]) ? $TORRENT["randomthirtypercentdown"] : 0) . "'>" . $lang_settings['text_thirtypercentleech_chance_becoming'] . "</li></ul>" . $lang_settings['text_random_promotion_note_two'], 1); tr($lang_settings['row_large_torrent_promotion'], $lang_settings['text_torrent_larger_than'] . "<input type='text' style=\"width: 50px\" name=largesize value='" . (isset($TORRENT["largesize"]) ? $TORRENT["largesize"] : 20) . "'>" . $lang_settings['text_gb_promoted_to'] . "<select name=largepro>" . promotion_selection(isset($TORRENT['largepro']) ? $TORRENT['largepro'] : 2, 1) . "</select>" . $lang_settings['text_by_system_upon_uploading'] . "<br />" . $lang_settings['text_large_torrent_promotion_note'], 1); tr($lang_settings['row_promotion_timeout'], $lang_settings['text_promotion_timeout_note_one'] . "<ul>\n<li>" . $lang_settings['text_halfleech_will_become'] . "<select name=halfleechbecome>" . promotion_selection(isset($TORRENT['halfleechbecome']) ? $TORRENT['halfleechbecome'] : 1, 5) . "</select>" . $lang_settings['text_after'] . "<input type='text' style=\"width: 50px\" name=expirehalfleech value='" . (isset($TORRENT["expirehalfleech"]) ? $TORRENT["expirehalfleech"] : 150) . "'>" . $lang_settings['text_halfleech_timeout_default'] . "</li>\n\n<li>" . $lang_settings['text_free_will_become'] . "<select name=freebecome>" . promotion_selection(isset($TORRENT['freebecome']) ? $TORRENT['freebecome'] : 1, 2) . "</select>" . $lang_settings['text_after'] . "<input type='text' style=\"width: 50px\" name=expirefree value='" . (isset($TORRENT["expirefree"]) ? $TORRENT["expirefree"] : 60) . "'>" . $lang_settings['text_free_timeout_default'] . "</li>\n\n<li>" . $lang_settings['text_twoup_will_become'] . "<select name=twoupbecome>" . promotion_selection(isset($TORRENT['twoupbecome']) ? $TORRENT['twoupbecome'] : 1, 3) . "</select>" . $lang_settings['text_after'] . "<input type='text' style=\"width: 50px\" name=expiretwoup value='" . (isset($TORRENT["expiretwoup"]) ? $TORRENT["expiretwoup"] : 60) . "'>" . $lang_settings['text_twoup_timeout_default'] . "</li>\n\n<li>" . $lang_settings['text_freetwoup_will_become'] . "<select name=twoupfreebecome>" . promotion_selection(isset($TORRENT['twoupfreebecome']) ? $TORRENT['twoupfreebecome'] : 1, 4) . "</select>" . $lang_settings['text_after'] . "<input type='text' style=\"width: 50px\" name=expiretwoupfree value='" . (isset($TORRENT["expiretwoupfree"]) ? $TORRENT["expiretwoupfree"] : 30) . "'>" . $lang_settings['text_freetwoup_timeout_default'] . "</li>\n\n<li>" . $lang_settings['text_halfleechtwoup_will_become'] . "<select name=twouphalfleechbecome>" . promotion_selection(isset($TORRENT['twouphalfleechbecome']) ? $TORRENT['twouphalfleechbecome'] : 1, 6) . "</select>" . $lang_settings['text_after'] . "<input type='text' style=\"width: 50px\" name=expiretwouphalfleech value='" . (isset($TORRENT["expiretwouphalfleech"]) ? $TORRENT["expiretwouphalfleech"] : 30) . "'>" . $lang_settings['text_halfleechtwoup_timeout_default'] . "</li>\n\n<li>" . $lang_settings['text_thirtypercentleech_will_become'] . "<select name=thirtypercentleechbecome>" . promotion_selection(isset($TORRENT['thirtypercentleechbecome']) ? $TORRENT['thirtypercentleechbecome'] : 1, 7) . "</select>" . $lang_settings['text_after'] . "<input type='text' style=\"width: 50px\" name=expirethirtypercentleech value='" . (isset($TORRENT["expirethirtypercentleech"]) ? $TORRENT["expirethirtypercentleech"] : 30) . "'>" . $lang_settings['text_thirtypercentleech_timeout_default'] . "</li>\n\n<li>" . $lang_settings['text_normal_will_become'] . "<select name=normalbecome>" . promotion_selection(isset($TORRENT['normalbecome']) ? $TORRENT['normalbecome'] : 1, 0) . "</select>" . $lang_settings['text_after'] . "<input type='text' style=\"width: 50px\" name=expirenormal value='" . (isset($TORRENT["expirenormal"]) ? $TORRENT["expirenormal"] : 0) . "'>" . $lang_settings['text_normal_timeout_default'] . "</li>\n\n</ul>" . $lang_settings['text_promotion_timeout_note_two'], 1); tr($lang_settings['row_auto_pick_hot'], $lang_settings['text_torrents_uploaded_within'] . "<input type='text' style=\"width: 50px\" name=hotdays value='" . (isset($TORRENT["hotdays"]) ? $TORRENT["hotdays"] : 7) . "'>" . $lang_settings['text_days_with_more_than'] . "<input type='text' style=\"width: 50px\" name=hotseeder value='" . (isset($TORRENT["hotseeder"]) ? $TORRENT["hotseeder"] : 10) . "'>" . $lang_settings['text_be_picked_as_hot'] . "<br />" . $lang_settings['text_auto_pick_hot_default'], 1); tr($lang_settings['row_uploader_get_double'], $lang_settings['text_torrent_uploader_gets'] . "<input type='text' style=\"width: 50px\" name=uploaderdouble value='" . (isset($TORRENT["uploaderdouble"]) ? $TORRENT["uploaderdouble"] : 1) . "'>" . $lang_settings['text_times_uploading_credit'] . $lang_settings['text_uploader_get_double_default'], 1); tr($lang_settings['row_delete_dead_torrents'], $lang_settings['text_torrents_being_dead_for'] . "<input type='text' style=\"width: 50px\" name=deldeadtorrent value='" . (isset($TORRENT["deldeadtorrent"]) ? $TORRENT["deldeadtorrent"] : 0) . "'>" . $lang_settings['text_days_be_deleted'] . "<br />" . $lang_settings['row_delete_dead_torrents_note'], 1); tr($lang_settings['row_save_settings'], "<input type='submit' name='save' value='" . $lang_settings['submit_save_settings'] . "'>", 1); print "</form>"; } elseif ($action == 'mainsettings') { stdhead($lang_settings['head_main_settings']); print $notice; print "<form method='post' action='" . $_SERVER["SCRIPT_NAME"] . "'><input type='hidden' name='action' value='savesettings_main'>"; $sh = "gmail.com"; yesorno($lang_settings['row_site_online'], 'site_online', $MAIN['site_online'], $lang_settings['text_site_online_note']); yesorno($lang_settings['row_enable_invite_system'], 'invitesystem', $MAIN['invitesystem'], $lang_settings['text_invite_system_note']); tr($lang_settings['row_initial_uploading_amount'], "<input type='text' name=iniupload style=\"width: 100px\" value={$MAIN['iniupload']}> " . $lang_settings['text_initial_uploading_amount_note'], 1); tr($lang_settings['row_initial_invites'], "<input type='text' name=invite_count style=\"width: 50px\" value={$MAIN['invite_count']}> " . $lang_settings['text_initial_invites_note'], 1); tr($lang_settings['row_invite_timeout'], "<input type='text' name=invite_timeout style=\"width: 50px\" value={$MAIN['invite_timeout']}> " . $lang_settings['text_invite_timeout_note'], 1);
<td class="bottom" style="padding: 1px;padding-left: 10px"> <font class="medium"><?php echo $lang_torrents['text_show_special_torrents']; ?> </font> </td> </tr> <tr> <td class="bottom" style="padding: 1px;padding-left: 10px"> <select class="med" name="spstate" style="width: 100px;"> <option value="0"><?php echo $lang_torrents['select_all']; ?> </option> <?php echo promotion_selection($special_state, 0); ?> </select> </td> </tr> <tr> <td class="bottom" style="padding: 1px;padding-left: 10px"> <br /> </td> </tr> <tr> <td class="bottom" style="padding: 1px;padding-left: 10px"> <font class="medium"><?php echo $lang_torrents['text_show_bookmarked']; ?> </font>
tr($lang_edit['row_quality'], $source_select . $medium_select . $codec_select . $audiocodec_select . $standard_select . $processing_select, 1); } if ($showteam) { if ($showteam) { $team_select = torrent_selection($lang_edit['text_team'], "team_sel", "teams", $row["team"]); } else { $showteam = ""; } tr($lang_edit['row_content'], $team_select, 1); } tr($lang_edit['row_check'], "<input type=\"checkbox\" name=\"visible\"" . ($row["visible"] == "yes" ? " checked=\"checked\"" : "") . " value=\"1\" /> " . $lang_edit['checkbox_visible'] . " " . (get_user_class() >= $beanonymous_class || get_user_class() >= $torrentmanage_class ? "<input type=\"checkbox\" name=\"anonymous\"" . ($row["anonymous"] == "yes" ? " checked=\"checked\"" : "") . " value=\"1\" />" . $lang_edit['checkbox_anonymous_note'] . " " : "") . (get_user_class() >= $torrentmanage_class ? "<input type=\"checkbox\" name=\"banned\"" . ($row["banned"] == "yes" ? " checked=\"checked\"" : "") . " value=\"yes\" /> " . $lang_edit['checkbox_banned'] : ""), 1); if (get_user_class() >= $torrentsticky_class || get_user_class() >= $torrentmanage_class && $CURUSER["picker"] == 'yes') { $pickcontent = ""; if (get_user_class() >= $torrentsticky_class) { $pickcontent .= "<b>" . $lang_edit['row_torrent_position'] . ": </b>" . "<select name=\"sel_posstate\" style=\"width: 100px;\">" . "<option" . ($row["pos_state"] == "normal" ? " selected=\"selected\"" : "") . " value=\"0\">" . $lang_edit['select_normal'] . "</option>" . "<option" . ($row["pos_state"] == "sticky" ? " selected=\"selected\"" : "") . " value=\"1\">" . $lang_edit['select_sticky'] . "</option>" . "</select> "; $pickcontent .= "<b>" . $lang_edit['row_special_torrent'] . ": </b>" . "<select name=\"sel_spstate\" style=\"width: 100px;\" onchange=\"javascript:updateprotime(this.value);\">" . promotion_selection($row["sp_state"], 0) . "</select> "; if ($row["sp_state"] == 1) { $defaultprolength = 72; } else { $defaultprolength = -1; } $pickcontent .= "<b>" . $lang_edit['row_promotion_until'] . ": </b>" . "<input type=\"text\" style=\"width: 80px;\" id=\"prolength\" name=\"promotionlength\" value=\"{$defaultprolength}\"> "; $pickcontent .= "<input type=\"hidden\" name=\"promotion_time_type\" value=\"2\" />"; } if (get_user_class() >= $torrentmanage_class && $CURUSER["picker"] == 'yes') { $pickcontent .= "<b>" . $lang_edit['row_recommended_movie'] . ": </b>" . "<select name=\"sel_recmovie\" style=\"width: 100px;\">" . "<option" . ($row["picktype"] == "normal" ? " selected=\"selected\"" : "") . " value=\"0\">" . $lang_edit['select_normal'] . "</option>" . "<option" . ($row["picktype"] == "hot" ? " selected=\"selected\"" : "") . " value=\"1\">" . $lang_edit['select_hot'] . "</option>" . "<option" . ($row["picktype"] == "classic" ? " selected=\"selected\"" : "") . " value=\"2\">" . $lang_edit['select_classic'] . "</option>" . "<option" . ($row["picktype"] == "recommended" ? " selected=\"selected\"" : "") . " value=\"3\">" . $lang_edit['select_recommended'] . "</option>" . "</select>"; } tr($lang_edit['row_pick'], $pickcontent, 1); } ?>