Changeset 36 for trunk/app/views/entries

Show
Ignore:
Timestamp:
07/16/07 17:29:03 (17 months ago)
Author:
aarkerio
Message:

Images

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/entries/admin_add.thtml

    r14 r36  
    22<?php echo $javascript->link('fckeditor/fckeditor'); ?>  
    33 
    4 <div class="spaced"> 
    5  
    6 <?php echo $html->addCrumb('Control Tools', '/entries/index'); ?>  
    7 <?php echo $html->addCrumb('Entries', '/entries/listing'); ?>  
     4<?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?>  
     5<?php echo $html->addCrumb('Entries', '/admin/entries/listing'); ?>  
    86<?php echo $html->getCrumbs(' / '); ?> 
    9  
    10 <?php echo $html->formTag('/entries/add/','post', array("onsubmit"=>"return validateEntry()")); ?> 
    11  
     7<?php echo $html->formTag('/admin/entries/add/','post', array("onsubmit"=>"return validateEntry()")); ?> 
    128<?php echo $html->hiddenTag('Entry/user_id', $othAuth->user('id')) ?> 
    139<fieldset> 
    1410<legend>New Entry</legend> 
    15   <?php echo $form->labelTag( 'Entry/title', 'Title' );?><br />  
    16   <?php echo $html->input('Entry/title', array("size" => 40, "maxlength" => 50)); ?> 
     11 
     12<table style="margin:0 auto 0 auto;"> 
     13<tr><td> 
     14   
     15  <?php echo $form->labelTag( 'Entry/title', 'Title:' );?><br />  
     16  <?php echo $html->input('Entry/title', array("size" => 50, "maxlength" => 50)); ?> 
    1717  <?php echo $html->tagErrorMsg('Entry/title', 'Title is required.'); ?> 
    18   <br /><br /> 
     18  </td> 
    1919   
    20   <p><?php echo $form->labelTag( 'Entry/category_id', 'Category' );?> 
    21   <br /> 
    22       <?php  
    23       /*$html->selectTag( 
    24       $fieldName, 
    25       $optionElements, 
    26       $selected = null, 
    27       $selectAttr = array(), 
    28       $optionAttr = null, 
    29       $showEmpty = true, 
    30       $return = false     
    31       selectTag ($fieldName, $optionElements, $selected=null, $selectAttr=array(), $optionAttr=null, $showEmpty=true, $return=false) 
    32       */ 
    33       echo $html->selectTag('Entry/category_id', $categories, null, $html->tagValue('Entry/category_id'), array("class"=>"formas"), false, false);  
     20  <td> 
     21     <?php echo $form->labelTag( 'Entry/subject_id', 'Subject:' );?><br /> 
     22     <?php  
     23      echo $html->selectTag('Entry/subject_id', $subjects, null, $html->tagValue('Entry/subject_id'), null, false, false);  
    3424       
    35       echo $html->link($html->image('static/add.png', array("alt"=>"Add category", "title"=>"Add category")), '#', array("onclick"=>"javascript:window.open('/categories/listing', 'blank', 'toolbar=no, scrollbars=yes,width=350,height=500')"), null, false); 
     25      /* echo $html->link($html->image('static/add.png', array("alt"=>"Add category", "title"=>"Add category")), '#', array("onclick"=>"javascript:window.open('/admin/categories/listing', 'blank', 'toolbar=no, scrollbars=yes,width=350,height=500')"), null, false);*/ 
    3626      ?> 
    37   </p> 
     27  </td> 
    3828   
    39   <p style="text-align:right;"> 
    40   <?php echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "title"=>"My Images")), '#', array("onclick"=>"javascript:window.open('/images/listview', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?></p> 
    41   <p> 
     29  <td> 
     30  <?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> 
     31  </td> 
     32  </tr> 
     33  <tr><td colspan="3"> 
    4234  <?php echo $form->labelTag( 'Entry/Body', 'Body:' );?><br /> 
    43   <?php echo $html->textarea('Entry/body', array("class"=>"formas", "cols"=>80, "rows"=>45)) ?> 
     35  <?php echo $html->textarea('Entry/body', array("class"=>"formas", "cols"=>80, "rows"=>55)) ?> 
    4436  <?php echo $fck->load('Entry/body', 'Karamelo'); ?>  
    4537  <?php echo $html->tagErrorMsg('Entry/body', 'Body is required.'); ?> 
    46   <br /> 
    47   </p> 
     38  </td></tr> 
    4839   
    49   <p><?php echo $form->labelTag( 'Entry/status', 'Published:' );?><br /> 
    50   <?php echo $html->checkbox('Entry/status'); ?> 
    51   <br /></p> 
     40  <tr> 
     41  <td> 
     42       <?php echo $form->labelTag( 'Entry/status', 'Published:' );?> 
     43       <?php echo $html->checkbox('Entry/status', null, array("value"=>1)); ?> 
     44  </td><td colspan="2"> 
     45     <?php echo $form->labelTag( 'Entry/disc', 'Comments allowed:' );?> 
     46     <?php echo $html->checkbox('Entry/disc', null, array("value"=>1)); ?> 
     47  </td></tr> 
    5248   
    53   <p><?php echo $form->labelTag( 'Entry/disc', 'Comments allowed:' );?><br /> 
    54   <?php echo $html->checkbox('Entry/disc'); ?> 
    55   <br /></p> 
    56     
    57   <br /> 
     49  <tr><td colspan="3"> 
    5850  <?php echo $html->submit('Add'); ?> 
     51</td></tr> 
     52</table> 
     53 
    5954</fieldset> 
    6055</form> 
    61 </div>