finish custom fields in edit

This commit is contained in:
xiaomlove
2021-03-04 02:27:39 +08:00
parent 723a6fadc9
commit 7c857deaf4
4 changed files with 58 additions and 19 deletions

View File

@@ -16,11 +16,9 @@ if (!$row) die();
* custom fields
* @since v1.6
*/
$customFieldValueRes = sql_query("select * from torrents_custom_field_values where torrent_id = $id");
$customFieldValues = [];
while ($row = mysql_fetch_assoc($res)) {
$customFieldValues[$row['custom_field_id']] = unserialize($row['custom_field_value']);
}
$customField = new \Nexus\Field\Field();
$customFieldValues = $customField->listTorrentCustomField($id);
//dd($customFieldValues);
if ($enablespecial == 'yes' && get_user_class() >= $movetorrent_class)
$allowmove = true; //enable moving torrent to other section
@@ -69,6 +67,8 @@ else {
echo $ptGen->renderUploadPageFormInput($row['pt_gen']);
}
$customField->renderUploadPage($customFieldValues);
if ($enablenfo_main=='yes')
tr($lang_edit['row_nfo_file'], "<font class=\"medium\"><input type=\"radio\" name=\"nfoaction\" value=\"keep\" checked=\"checked\" />".$lang_edit['radio_keep_current'].
"<input type=\"radio\" name=\"nfoaction\" value=\"remove\" />".$lang_edit['radio_remove'].