--Select Category--'; //$inputCategory = ''; $categoryList = ''; $results = $qls->SQL->select('*', 'app_object_category'); while ($row = $qls->SQL->fetch_assoc($results)){ $default = []; if ($row['defaultOption'] == 1){ $default['option'] = 'selected'; $default['button'] = '*'; } //$inputCategory .= ''; $categoryList .= ''; } function generateOrientation(&$qls){ #Orientation $inputOrientation = ''; $results = $qls->SQL->select('*', 'shared_object_portOrientation'); while ($row = $qls->SQL->fetch_assoc($results)){ $default = ''; if ($row['defaultOption'] == 1){ $default = 'checked'; } $inputOrientation .= '
'; } return $inputOrientation; } function generatePortType(&$qls){ #PortType $inputPortType = ''; $results = $qls->SQL->select('*', 'shared_object_portType'); while ($row = $qls->SQL->fetch_assoc($results)){ $default = ''; if ($row['defaultOption'] == 1){ $default = 'selected'; } $inputPortType .= ''; } return $inputPortType; } function generateMediaType(&$qls){ #MediaType $inputMediaType = ''; $results = $qls->SQL->select('*', 'shared_mediaType', array('display' => array('=', 1))); while ($row = $qls->SQL->fetch_assoc($results)){ $default = ''; if ($row['defaultOption'] == 1){ $default = 'selected'; } $inputMediaType .= ''; } return $inputMediaType; } ?>