Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test functions

render_resource_type_selector_question()

Parameters

ColumnTypeDefaultDescription
$label string
$name string
$class string "stdwidth"
$hidden bool false
$current
true
false
true;

Location

include/render_functions.php lines 6885 to 6902

Definition

 
function render_resource_type_selector_question(string $labelstring $namestring $class "stdwidth"bool $hidden false$current 0) : void
    
{
    global 
$lang;
    
$resource_types get_resource_types('',true,false,true);

    echo 
"<div class='Question' id='" escape($name) . "'" . ($hidden " style='display:none;border-top:none;'" "") . ">";
    echo 
"<label for='" escape($name) . "' >" escape($label) . "</label>";
    echo 
"<select name='" escape($name) . "' id='" escape($name) . "' class='" $class "'>";
    echo 
"<option value='' selected >" escape($lang["select"]) . "</option>";
    foreach(
$resource_types as $resource_type)
        {
        
$selected = ($resource_type["ref"] == $current "selected" "");
        echo 
"<option value='{$resource_type['ref']}{$selected}>" escape(lang_or_i18n_get_translated($resource_type['name'],'fieldtitle-')) . "</option>";
        }
    echo 
"</select>";
    echo 
"<div class='clearerleft'></div>";
    echo 
"</div>";
    }

This article was last updated 20th June 2025 08:35 Europe/London time based on the source file dated 3rd June 2025 16:35 Europe/London time.