query(" SELECT Name FROM artists_group WHERE artistid = ".$_GET['artistid']." LIMIT 1"); list($ArtistName) = $DB->next_record(); $ArtistForm = array( 1 => array(array('name' => trim($ArtistName))), ); } elseif ($NewRequest && !empty($_GET['groupid']) && is_number($_GET['groupid'])) { $ArtistForm = Artists::get_artist($_GET['groupid']); $DB->query(" SELECT tg.Name, tg.NameRJ, tg.NameJP, tg.Year, tg.Studio, tg.Series, tg.CatalogueNumber, tg.DLsiteID, tg.WikiImage, GROUP_CONCAT(t.Name SEPARATOR ', '), tg.CategoryID FROM torrents_group AS tg JOIN torrents_tags AS tt ON tt.GroupID = tg.ID JOIN tags AS t ON t.ID = tt.TagID WHERE tg.ID = ".$_GET['groupid']); if (list($Title, $TitleRJ, $TitleJP, $Year, $Studio, $Series, $CatalogueNumber, $DLsiteID, $Image, $Tags, $CategoryID) = $DB->next_record()) { $GroupID = trim($_REQUEST['groupid']); $CategoryName = $Categories[$CategoryID - 1]; $Disabled = 'readonly="readonly"'; } } View::show_header(($NewRequest ? 'Create a request' : 'Edit a request'), 'bbcode,requests,form_validate'); ?>