Created
August 19, 2014 14:39
-
-
Save dovg/d18da63d537081210b11 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <label class="checkbox <?php if ($question['hide_inputs'] == 1) { | |
| echo 'hidden'; | |
| } ?> <?php if ($count_of_headers < 1) { ?> line<?= ($column_build_mode == 'vertical') ? $answer_in_column_in_arr_num_without_headers : $line_num_without_headers; ?> column<?= ($column_build_mode == 'vertical') ? $column_in_arr_num_without_headers + 1 : $column_num_without_headers; ?> <?php } ?>" | |
| for="label_num_<?= ++$label_num . '_' . $question['code']; ?>"><input | |
| id="label_num_<?= $label_num . '_' . $question['code']; ?>" | |
| name="form[<?= $question['id']; ?>][values][]" | |
| data-id="<?= $question['id']; ?>" | |
| <?php | |
| if ($question['min_select'] != 0) echo "min_select='" . $question['min_select'] . "'"; | |
| if ($question['max_select'] != 0) echo "max_select='" . $question['max_select'] . "'"; | |
| if ($question['notrequired'] != 0) echo "notrequired='" . $question['notrequired'] . "'"; | |
| ?> | |
| data="<?php if ($answer['requare_comment'] == 1) { | |
| echo "1"; | |
| } else { | |
| echo "0"; | |
| } ?>" | |
| <?= (isset($selected_values['values']) && in_array($answer['id'], $selected_values['values'])) ? 'checked' : ''; ?> | |
| id="<?= $question['code'] . '_' . $answer['code']; ?>" | |
| value="<?= $answer['id']; ?>" | |
| type="checkbox" | |
| class="multitext-validation <?php if ($answer['exclusive'] == 1) { | |
| echo 'exclusive'; | |
| } ?>" | |
| /> | |
| <div id="<?= $question['code'] . 'o' . $answer['code']; ?>" class="div_content"> | |
| <?= $answer['name']; ?> | |
| <?php if ($answer['requare_comment'] == 1): ?> | |
| <textarea | |
| rows="2" | |
| cols="2" | |
| class="comment" style="display: none;" | |
| name="form[<?= $question['id']; ?>][comments][<?= $answer['id']; ?>]"><?php | |
| if (isset($selected_values['comments'][$answer['id']])) | |
| echo $selected_values['comments'][$answer['id']]; | |
| ?></textarea> | |
| <?php endif; ?> | |
| </div> | |
| </label> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment