Changeset 408 for trunk/app/views/polls
- Timestamp:
- 04/16/08 17:39:28 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/polls/admin_edit.ctp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/polls/admin_edit.ctp
r268 r408 1 1 <div class="image-info"> 2 <?php echo $ html->formTag('/admin/polls/edit/', 'post'); ?>2 <?php echo $form->create('Poll'); ?> 3 3 <fieldset> 4 <legend>Edit Poll :</legend>4 <legend>Edit Poll</legend> 5 5 6 6 <?php 7 echo $html->hidden('Poll/id'); 8 echo $form->labelTag('Poll/question', 'Question:') . "<br />"; 9 echo $html->input('Poll/question', array('size'=>60, 'maxlength'=>90)); 10 echo $html->tagErrorMsg('Poll/question','Please enter a comment.'); 7 echo $form->hidden('Poll.id'); 8 echo $form->input('Poll.question', array('size'=>60, 'maxlength'=>90)); 11 9 ?> 12 10 <br /> 13 11 <br /> 14 <?php echo $form->label Tag('Poll/question', 'Answers:') . "<br />"; ?>12 <?php echo $form->label('Poll.question', 'Answers:') . '<br />'; ?> 15 13 16 14 <?php 17 15 //print_r($this->data); 18 16 19 foreach ($this->data["Pollrow"] as $val) { 17 foreach ($this->data['Pollrow'] as $val) 18 { 20 19 //echo $val["answer"] . "<br />"; 21 echo $ html->input('Poll/answer', array("size"=>"60", "maxlength"=>"90", "value"=>$val["answer"]));20 echo $form->input('Poll.answer', array('size'=>60, 'maxlength'=>90, 'value'=>$val['answer'])); 22 21 } 23 22 24 23 ?> 24 <br /> 25 <?php 26 echo $form->label('Poll.status', 'Enabled:') . '<br />'; 27 echo $form->checkbox('Poll.status', array('value'=>1)); 28 ?> 29 <br /><br /> 30 <p style="clear:both"></p></fieldset> 25 31 26 <br /><br /> 27 <?php echo $form->labelTag('Poll/status', 'status:') . "<br />"; ?> 28 <?php echo $html->checkbox('Poll/status'); ?> 29 <br /><br /> 30 <p style="clear:both"></p> 31 <?php echo $html->submit('Update poll'); ?> 32 </fieldset> 33 </form> 32 <?php echo $form->end('Update poll'); ?> 33 34 34 </div> 35 35
