Exemplo n.º 1
0
					<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 
}
Exemplo n.º 2
0
        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']);
Exemplo n.º 3
0
					<?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 
}
Exemplo n.º 4
0
<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>
Exemplo n.º 5
0
<?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>&darr;</span></em></a>
	</div>
<?php