Beispiel #1
0
         <input type="checkbox" name="q[other][]" value="ASP.NET" />ASP.NET
         <input type="checkbox" name="q[other][]" value="jsp" />JAVA JSP
         <input type="checkbox" name="q[other][]" value="perl" />Perl
         <input type="checkbox" name="q[other][]" value="ruby" />Ruby / Ruby on Rails
         <input type="checkbox" name="q[other][]" value="python" />Python
     </fieldset>
    <br />

    <p class="center">Additional to your input we're going to submit some information about your system setup for statstic purpose.</p>
    <p class="center">We are not storing any personal information. You can see the data by clicking <a href="#" onclick="show('configliste');return false;">here</a>.</p>

    <div id="configliste" class="collapsed">
        <a href="#" onclick="hide('configliste'); return false;">hide again</a>
        <dl>
<?php 
    $q = new PMF_Questionnaire_Data($configs);
    $options = $q->get();
    array_walk($options, 'data_printer');
    echo '</dl><input type="hidden" name="systemdata" value="' . PMF_String::htmlspecialchars(serialize($q->get()), ENT_QUOTES) . '" />';
    ?>
    </div>
    <p class="center"><input type="submit" value="Click here to submit the data and fnish the installation process" /></p>
</form>
<div id="questionnaireThanks" style="display:none;">
    <p class="center"><b>Thank you for giving your feedback!</b></p>
    <p class="center">You can visit <a href="../index.php">your version of phpMyFAQ</a> or</p>
    <p class="center">login into your <a href="../admin/index.php">admin section</a>.</p>
</div>
<br />
<?php 
    // Remove 'scripts' folder: no need of prompt anything to the user
 /**
  * Echos the questionnaire data
  *
  * @return void
  */
 public function printDataList()
 {
     $q = new PMF_Questionnaire_Data($this->_mainConfig);
     $options = $q->get();
     echo '<dl>' . PHP_EOL;
     array_walk($options, 'data_printer');
     printf('</dl><input type="hidden" name="systemdata" value="%s" />', PMF_String::htmlspecialchars(serialize($q->get()), ENT_QUOTES));
 }