зеркало из https://github.com/mozilla/pjs.git
45 строки
2.0 KiB
Plaintext
45 строки
2.0 KiB
Plaintext
<?php echo $html->formTag('/results/add'); ?>
|
|
|
|
<div class="special_note">
|
|
Please note that all data entered on this page may be viewable by the public.
|
|
</div>
|
|
|
|
<?php if(!empty($intentions)): ?>
|
|
<h2>How did you intend to use <?php echo $intentions[0]['applications']['name']; ?> when you installed it?</h2>
|
|
<?php foreach ($intentions as $var => $val) : ?>
|
|
<input type="radio" name="data[Intention][id]" id="radio<?php echo $val['choices']['id']; ?>" value="<?php echo $val['choices']['id']; ?>"><label for="radio<?php echo $val['choices']['id']; ?>"><?php echo $val['choices']['description']; ?></label>
|
|
<?php
|
|
if ($val['choices']['description'] == 'Other') {
|
|
echo $html->input('Intention/text');
|
|
}
|
|
|
|
?>
|
|
<br />
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
|
|
<?php if(!empty($issues)): ?>
|
|
<h2>Why did you uninstall <?php echo $issues[0]['applications']['name']; ?>? (select all that apply)</h2>
|
|
<?php foreach ($issues as $var => $val) : ?>
|
|
<input type="checkbox" name="data[Issue][id][]" id="checkbox<?php echo $val['choices']['id']; ?>" value="<?php echo $val['choices']['id']; ?>"><label for="checkbox<?php echo $val['choices']['id']; ?>"><?php echo $val['choices']['description']; ?></label>
|
|
<?php
|
|
if ($val['choices']['description'] == 'Other') {
|
|
echo $html->input('Issue/text');
|
|
}
|
|
?>
|
|
<br />
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
|
|
<h2>How can we improve <?php echo $intentions[0]['applications']['name']; ?>?</h2>
|
|
<p>Please share your ideas, suggestions or details about any issues below.</p>
|
|
<p><?php echo $html->textarea('Result/comments',array('id'=>'comments'));?></p>
|
|
|
|
<?php echo $html->hidden('version', 'value="'.$url_params['version'].'"') ?>
|
|
<?php echo $html->hidden('application', 'value="'.$url_params['application'].'"') ?>
|
|
<?php echo $html->hidden('ua', 'value="'.$url_params['ua'].'"') ?>
|
|
<?php echo $html->hidden('lang', 'value="'.$url_params['lang'].'"') ?>
|
|
|
|
<p><?php echo $html->submit('Save') ?></p>
|
|
</form>
|