Changeset 689 for trunk/app/views/acquaintances
- Timestamp:
- 08/03/08 00:27:55 (4 months ago)
- Location:
- trunk/app/views/acquaintances
- Files:
-
- 2 modified
-
admin_edit.ctp (modified) (2 diffs)
-
admin_listing.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/acquaintances/admin_edit.ctp
r538 r689 1 1 <?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'); 4 4 echo $html->getCrumbs(' / '); 5 5 … … 8 8 ?> 9 9 <fieldset> 10 <legend> Edit link</legend>10 <legend><?php __('Edit link'); ?></legend> 11 11 <?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))); 13 13 14 14 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)) 16 16 ); 17 17 18 echo $form->input('Acquaintance.url', array( "size" => 65, "maxlength"=> 220));18 echo $form->input('Acquaintance.url', array('size' => 65, 'maxlength' => 220)); 19 19 20 echo $form->end( 'Save');20 echo $form->end(__('Save', true)); 21 21 echo '</fieldset>'; 22 22 ?> -
trunk/app/views/acquaintances/admin_listing.ctp
r541 r689 1 1 <?php 2 echo $html->addCrumb('Control Tools', '/admin/entries/start');2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 3 3 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'); 6 5 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)); 24 7 ?> 25 8 … … 27 10 <?php echo $form->create('Acquaintance', array('action'=>'add')); ?> 28 11 <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)); 39 24 ?> 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> 51 26 </div> 52 <?php $session->flash(); ?>53 27 54 28 <table style="width:100%"> 55 29 <?php 56 $th = array ('Edit', 'Name', 'Url', 'Delete');30 $th = array(__('Edit', true), __('Name', true), 'Url', __('Delete', true)); 57 31 echo $html->tableHeaders($th); 58 32 … … 72 46 ?> 73 47 </table> 48 49 50 <script type="text/javascript"> 51 <!-- 52 function hU() { 53 54 var 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>
