Show
Ignore:
Timestamp:
08/03/08 00:27:55 (4 months ago)
Author:
aarkerio
Message:

Test JS

Location:
trunk/app/views/acquaintances
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/acquaintances/admin_edit.ctp

    r538 r689  
    11<?php  
    2   echo $html->addCrumb('Control Tools', '/admin/entries/start');  
    3   echo $html->addCrumb('Links', '/admin/acquaintances/listing');  
     2  echo $html->addCrumb('Control Panel', '/admin/entries/start');  
     3  echo $html->addCrumb(__('Links', true), '/admin/acquaintances/listing');  
    44  echo $html->getCrumbs(' / ');  
    55 
     
    88?> 
    99<fieldset> 
    10  <legend>Edit link</legend> 
     10 <legend><?php __('Edit link'); ?></legend> 
    1111<?php  
    12   echo $form->input('Acquaintance.name', array("size" => 50, "maxlength" => 50)); 
     12  echo $form->input('Acquaintance.name', array('size'=>50,'maxlength'=>50, 'label'=>__('Name', true))); 
    1313 
    1414 echo $html->para(null, 
    15    $form->input('Acquaintance.description', 'Description:') . $form->textarea('Acquaintance.description', array("cols" => 40, "rows" =>4)) 
     15   $form->label('Acquaintance.description', __('Description', true)) . $form->textarea('Acquaintance.description', array('cols' => 40, 'rows' =>4)) 
    1616  ); 
    1717 
    18   echo $form->input('Acquaintance.url', array("size" => 65, "maxlength" => 220)); 
     18  echo $form->input('Acquaintance.url', array('size' => 65, 'maxlength' => 220)); 
    1919    
    20   echo $form->end('Save'); 
     20  echo $form->end(__('Save', true)); 
    2121echo '</fieldset>';  
    2222?> 
  • trunk/app/views/acquaintances/admin_listing.ctp

    r541 r689  
    11<?php  
    2   echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
     2  echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
    33  echo $html->getCrumbs(' / ');  
    4   echo $html->div('title_section', $session->read('Auth.User.username') . '\'s Acquaintance'); 
    5 ?> 
     4  echo $html->div('title_section', $session->read('Auth.User.username') . '\'s Acquaintances'); 
    65 
    7 <script type="text/javascript">  
    8 <!--  
    9 function hU() { 
    10  
    11 var tr = document.getElementById('trh'); 
    12  
    13   if (tr.style.display == 'none') 
    14   { 
    15             tr.style.display = 'table-row'; 
    16   } else { 
    17             tr.style.display = 'none'; 
    18   } 
    19 } 
    20 --> 
    21 </script> 
    22  
    23 <?php echo $html->para(null, $html->link($html->image('actions/new.png', array("alt"=>"Add new link", "title"=>"Add new link")), '#', array('onclick'=>'hU()'), false, false));  
     6  echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '#', array('onclick'=>'hU()'), false, false));  
    247?> 
    258 
     
    2710<?php echo $form->create('Acquaintance', array('action'=>'add')); ?> 
    2811 <fieldset> 
    29  <legend>New Acquaintance</legend> 
    30    <?php  
    31     echo $form->input('Acquaintance.name', array("size" => 30, "maxlength"=>50));  
    32     echo $form->error('Acquaintance.name', 'A name is required.');  
    33    ?> 
    34    <br /><br /> 
    35 <p> 
    36 <?php 
    37   echo $form->label('Acquaintance.description', 'Description:'); 
    38   echo $form->textarea('Acquaintance.description', array("cols" => 40, "rows" =>3)); 
     12 <legend><?php __('New Acquaintance'); ?></legend> 
     13 <?php  
     14  echo $form->input('Acquaintance.name', array('size'=>30, 'maxlength'=>50, 'label'=>__('Name', true)));  
     15  echo $form->error('Acquaintance.name', 'A name is required.');  
     16  
     17  echo $form->label('Acquaintance.description', __('Description', true)) . '<br />'; 
     18  echo $form->textarea('Acquaintance.description', array('cols' => 40, 'rows' =>3)); 
     19 
     20  echo $form->input('Acquaintance.url', array('size'=>60,'maxlength'=>300, 'value'=>'http://')); 
     21  echo $form->error('Acquaintance.url', 'A URL is required.');  
     22 
     23  echo $form->end(__('Save', true));  
    3924?> 
    40 </p>   
    41 <?php  
    42     echo $form->input('Acquaintance.url', array("size" => 60, "maxlength"=>300, "value"=>"http://")); 
    43     echo $form->error('Acquaintance.url', 'An author is required.');  
    44 ?> 
    45     
    46    <div style="clear:both"></div> 
    47    </fieldset> 
    48   <?php echo $form->end('Save'); ?> 
    49 </form> 
    50  
     25 </fieldset> 
    5126</div> 
    52  <?php $session->flash(); ?> 
    5327  
    5428<table style="width:100%"> 
    5529<?php 
    56 $th = array ('Edit', 'Name', 'Url', 'Delete'); 
     30$th = array(__('Edit', true), __('Name', true), 'Url', __('Delete', true)); 
    5731echo $html->tableHeaders($th); 
    5832 
     
    7246?>  
    7347</table> 
     48 
     49 
     50<script type="text/javascript">  
     51<!--  
     52function hU() { 
     53 
     54var tr = document.getElementById('trh'); 
     55 
     56  if (tr.style.display == 'none') 
     57  { 
     58            tr.style.display = 'table-row'; 
     59  } else { 
     60            tr.style.display = 'none'; 
     61  } 
     62} 
     63--> 
     64</script>