Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

render_text_question()

Description

render_text_input_question - Used to display a question with simple text input

Parameters

ColumnTypeDefaultDescription
$label string Label of question
$input string Name of input field
$additionaltext string "" (optional) Text to to display after input
$numeric boolean false Set to true to force numeric input
$extra ""
$current ""

Location

include/render_functions.php lines 1317 to 1332

Definition

 
function render_text_question($label$input$additionaltext=""$numeric=false$extra=""$current="")
    {
    
?>
    <div class="Question" id = "pixelwidth">
        <label> echo $label?></label>
        <div>
        
        
echo "<input name=\"" $input "\" type=\"text\" ". ($numeric?"numericinput":"") . "\" value=\"" $current "\"" $extra "/>\n";
            
        echo 
$additionaltext;
        
?>
        </div>
    </div>
    <div class="clearerleft"> </div>
    
    
}

This article was last updated 11th July 2020 23:35 Europe/London time based on the source file dated 8th July 2020 11:40 Europe/London time.