Changeset 407 for trunk/app/views/polls
- Timestamp:
- 04/16/08 17:24:40 (8 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/polls/admin_add.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/polls/admin_add.ctp
r268 r407 1 1 2 <?php echo $ html->formTag('/admin/polls/add/','post'); ?>2 <?php echo $form->create('Poll'); ?> 3 3 <fieldset> 4 4 <legend>New Poll</legend> 5 <?php echo $form->labelTag('Poll/question', 'Question:') . "<br />"; ?> 6 <?php echo $html->input('Poll/question', array("size" => 60, "maxlength"=>130)); ?> 7 <?php echo $html->tagErrorMsg('Poll/question', 'A question is required.'); ?> 5 <?php 6 echo $form->input('Poll.question', array("size" => 60, "maxlength"=>100)); 7 ?> 8 8 9 <div style="margin:15px auto 15px auto;border:1px dotted gray;padding-left:40px;width:80%;"> 9 10 10 11 <?php 11 12 for ($i=1;$i<10;$i++) 12 { 13 echo $form->labelTag('Row/answer'.$i, 'Answer ' . $i . ':') . "<br />"; 14 echo $html->input('Row/answer'.$i, array("size" => 50, "maxlenght"=>100)); 13 { 14 echo $form->input('Row.answer'.$i, array('size' => 50, 'maxlenght'=>100)); 15 15 } 16 16 ?> … … 18 18 19 19 <?php 20 echo $form->label Tag('Poll/status', 'Published:') . "<br />";21 echo $ html->checkbox('Poll/status');20 echo $form->label('Poll.status', 'Published:') . "<br />"; 21 echo $form->checkbox('Poll.status', array('value'=>1)); 22 22 ?> 23 23 24 <div style="clear:both"></div> 25 <?php echo $html->submit('Add'); ?> 26 </fieldset> 27 </form> 24 <div style="clear:both"></div></fieldset> 28 25 26 <?php echo $form->end('Save'); ?> 27 28
