| 19 | | <br /><br /> |
| 20 | | |
| 21 | | <p><?php echo $form->labelTag( 'Entry/category_id', 'Category' );?> |
| 22 | | <br /> |
| 23 | | <?php |
| 24 | | /*$html->selectTag( |
| 25 | | $fieldName, |
| 26 | | $optionElements, |
| 27 | | $selected = null, |
| 28 | | $selectAttr = array(), |
| 29 | | $optionAttr = null, |
| 30 | | $showEmpty = true, |
| 31 | | $return = false |
| 32 | | selectTag ($fieldName, $optionElements, $selected=null, $selectAttr=array(), $optionAttr=null, $showEmpty=true, $return=false) |
| 33 | | */ |
| 34 | | echo $html->selectTag('Entry/category_id', $categories); ?> |
| 35 | | </p> |
| 36 | | |
| 37 | | <p><?php echo $form->labelTag( 'Entry/Body', 'Body:' );?><br /> |
| 38 | | <?php echo $html->textarea('Entry/body', array("class"=>"formas", "cols"=>80, "rows"=>45)) ?> |
| 39 | | <?php echo $fck->load('Entry/body', 'Karamelo'); ?> |
| 40 | | <?php echo $html->tagErrorMsg('Entry/body', 'Body is required.'); ?> |
| 41 | | <br /> |
| 42 | | </p> |
| 43 | | |
| 44 | | <p><?php echo $form->labelTag( 'Entry/status', 'Published:' );?><br /> |
| 45 | | <?php echo $html->checkbox('Entry/status'); ?> |
| 46 | | <br /></p> |
| 47 | | |
| 48 | | <p><?php echo $form->labelTag( 'Entry/disc', 'Comments allowed:' );?><br /> |
| 49 | | <?php echo $html->checkbox('Entry/disc'); ?> |
| 50 | | <br /></p> |
| 51 | | |
| 52 | | <br /> |
| 53 | | <?php echo $html->submit('Add', array("class"=>"b_formas")) ?> |
| | 20 | </td> |
| | 21 | <td> |
| | 22 | <?php echo $form->labelTag('Entry/subject_id', 'Subject:' );?> |
| | 23 | <?php echo $html->selectTag('Entry/subject_id', $subjects); ?> |
| | 24 | </td> |
| | 25 | <td> |
| | 26 | <?php echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "title"=>"My Images")), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?></p> |
| | 27 | </td> |
| | 28 | </tr> |
| | 29 | <tr> |
| | 30 | <td colspan="3"> |
| | 31 | <?php echo $form->labelTag( 'Entry/Body', 'Body:' );?><br /> |
| | 32 | <?php echo $html->textarea('Entry/body', array("class"=>"formas", "cols"=>80, "rows"=>45)) ?> |
| | 33 | <?php echo $fck->load('Entry/body', 'Karamelo'); ?> |
| | 34 | <?php echo $html->tagErrorMsg('Entry/body', 'Body is required.'); ?> |
| | 35 | </td></tr> |
| | 36 | <tr> |
| | 37 | <td> |
| | 38 | <?php echo $form->labelTag( 'Entry/status', 'Published:' );?><br /> |
| | 39 | <?php echo $html->checkbox('Entry/status', null, array("value" => 1)); ?> |
| | 40 | </td> |
| | 41 | <td> |
| | 42 | <?php echo $form->labelTag( 'Entry/discution', 'Comments allowed:' );?><br /> |
| | 43 | <?php echo $html->checkbox('Entry/discution', null, array("value" => 1)); ?> |
| | 44 | </td> |
| | 45 | <td> |
| | 46 | <?php echo $form->labelTag( 'Entry/end', 'Finish edition:' );?><br /> |
| | 47 | <?php echo $html->checkbox('Entry/end', null, array("value" => 1)); ?> |
| | 48 | </td> |
| | 49 | </tr> |
| | 50 | <tr> |
| | 51 | <td colspan="3"> |
| | 52 | <?php echo $html->submit('Save') ?> |
| | 53 | </form> |
| | 54 | </td> |
| | 55 | </tr> |
| | 56 | </table> |
| | 57 | |