<label for="<?php echo $key; ?> "><span></span><?php echo $checkbox['text']; ?> </label> <?php if ($checkbox['type'] == 'other') { ?> <input type="text" name="vwm_surveys_questions[<?php echo $id; ?> ][data][checkboxes][<?php echo $key; ?> ][other]" value="<?php echo isset($data['selections'][$key]['other']) ? legit_encode($data['selections'][$key]['other']) : NULL; ?> " maxlength="128" /> <?php } ?> </li> <?php } ?> </ul> <?php }
echo round($percent, 1); ?> %</span> </div> <?php if (isset($results[$id]['other'])) { ?> <div class="toggle"> <div class="toggle_content"> <ul> <?php foreach ($results[$id]['other'] as $submission_id => $other) { ?> <li><?php echo legit_encode($other); ?> <a href="<?php echo BASE . AMP . 'C=addons_modules' . AMP . 'M=show_module_cp' . AMP . 'module=vwm_surveys' . AMP . 'method=survey_submission' . AMP . 'submission_id=' . $submission_id; ?> " class="view_survey">View Individual Survey (<?php echo $submission_id; ?> )</a></li> <?php } ?> </ul> </div> <a href="javascript:void(0);"><strong>Show</strong> <em>(<?php echo count($results[$id]['other']);
<?php } ?> <label for="<?php echo $key; ?> "><span></span><?php echo $radio['text']; ?> </label> <?php if ($radio['type'] == 'other') { ?> <input type="text" name="vwm_surveys_questions[<?php echo $id; ?> ][data][radios][other]" value="<?php echo isset($data['other']) ? legit_encode($data['other']) : NULL; ?> " maxlength="128" /> <?php } ?> </li> <?php } ?> </ul> <?php }
<textarea id="vwm_surveys_question_<?php echo $id; ?> " rows="<?php echo isset($options['rows']) ? $options['rows'] : 64; ?> " cols="<?php echo isset($options['cols']) ? $options['cols'] : 64; ?> " name="vwm_surveys_questions[<?php echo $id; ?> ][data][textarea]" maxlength="<?php echo isset($options['max_length']) ? $options['max_length'] : 128; ?> "><?php echo isset($data['textarea']) ? legit_encode($data['textarea']) : NULL; ?> </textarea>
<?php if ($results) { ?> <div class="toggle"> <div class="toggle_content"> <ul> <?php foreach ($results as $submission_id => $submission) { ?> <li><?php echo legit_encode($submission); ?> <a href="<?php echo BASE . AMP . 'C=addons_modules' . AMP . 'M=show_module_cp' . AMP . 'module=vwm_surveys' . AMP . 'method=survey_submission' . AMP . 'submission_id=' . $submission_id; ?> " class="view_survey">View Individual Survey (<?php echo $submission_id; ?> )</a></li> <?php } ?> </ul> </div> <a href="javascript:void(0);"><strong>Show</strong> <em>(<?php echo count($results); ?> ) <span>↓</span></em></a> </div> <?php