|
13 | 13 | <?php foreach($results as $result):?> |
14 | 14 | <form method="post" onsubmit="return validateChainedResult(this);"> |
15 | 15 | <p><label><?php _e('Result Title', 'chained')?></label> <input type="text" name="title" size="60" value="<?php echo $result->title?>"></p> |
| 16 | + <p><?php _e('Min. Points:', 'chained')?> <input type="text" size="4" name="points_bottom" value="<?php echo $result->points_bottom?>"> |
| 17 | + <?php _e('Max. Points:', 'chained')?> <input type="text" size="4" name="points_top" value="<?php echo $result->points_top?>"></p> |
16 | 18 | <p><label><?php _e('Result Description', 'chained')?></label> <?php echo wp_editor(stripslashes($result->description), 'description'.$result->id, array("textarea_rows" => 3))?></p> |
17 | 19 | <div> |
18 | 20 | <div class="one-line"> |
|
34 | 36 | <textarea rows="3" cols="40" name="plan<?php echo $result->id?>"><?php echo stripslashes($result->plan);?></textarea> |
35 | 37 | </div> |
36 | 38 | </div> |
37 | | - <p><?php _e('Min. Points:', 'chained')?> <input type="text" size="4" name="points_bottom" value="<?php echo $result->points_bottom?>"> |
38 | | - <?php _e('Max. Points:', 'chained')?> <input type="text" size="4" name="points_top" value="<?php echo $result->points_top?>"></p> |
39 | 39 | <p><label><?php _e('Optional redirect URL', 'chained')?></label> <input type="text" name="redirect_url" size="60" value="<?php echo $result->redirect_url?>"><br /> |
40 | 40 | <i><?php _e('If you enter this, the quiz will redirect to the URL instead of showing the "Final Output".', 'chained');?></i></p> |
41 | 41 | <p><input type="submit" name="save" value="<?php _e('Save Result', 'chained')?>" class="button-primary"> |
|
50 | 50 | <!-- Add a new result. --> |
51 | 51 | <form method="post" onsubmit="return validateChainedResult(this);"> |
52 | 52 | <p><label><?php _e('Result Title', 'chained')?></label> <input type="text" name="title" size="60"></p> |
| 53 | + <p><?php _e('Min. Points:', 'chained')?> <input type="text" size="4" name="points_bottom"> |
| 54 | + <?php _e('Max. Points:', 'chained')?> <input type="text" size="4" name="points_top"></p> |
53 | 55 | <p><label><?php _e('Result Description', 'chained')?></label> <?php echo wp_editor('', 'description', array("textarea_rows" => 3))?></p> |
54 | 56 | <div> |
55 | 57 | <div class="one-line"> |
|
71 | 73 | <textarea rows="3" cols="40" name="plan"></textarea> |
72 | 74 | </div> |
73 | 75 | </div> |
74 | | - <p><?php _e('Min. Points:', 'chained')?> <input type="text" size="4" name="points_bottom"> |
75 | | - <?php _e('Max. Points:', 'chained')?> <input type="text" size="4" name="points_top"></p> |
76 | 76 | <p><label><?php _e('Optional redirect URL', 'chained')?></label> <input type="text" name="redirect_url" size="60"><br /> |
77 | 77 | <i><?php _e('The Algorithm will redirect to the URL instead of showing the "Final Output".', 'chained');?></i></p> |
78 | 78 | <p><input type="submit" name="add" value="<?php _e('Add Result', 'chained')?>" class="button-primary"></p> |
|
0 commit comments