Show
Ignore:
Timestamp:
05/21/08 15:27:00 (8 months ago)
Author:
aarkerio
Message:

New Try

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/quotes/admin_listing.ctp

    r307 r541  
    22  echo $html->addCrumb('Control Tools', '/admin/entries/start');  
    33  echo $html->getCrumbs(' / ');  
    4 ?> 
     4  echo $html->div('title_section', 'Quick News'); 
    55 
    6 <div class="title_section">Quick News</div> 
    7  
    8 <script type="text/javascript">  
    9 <!--  
    10 function hU() { 
    11  
    12 var tr = document.getElementById('trh'); 
    13  
    14   if (tr.style.display == 'none') 
    15   { 
    16             tr.style.display = 'table-row'; 
    17   } else { 
    18             tr.style.display = 'none'; 
    19   } 
    20 } 
    21 --> 
    22 </script> 
    23  
    24 <?php  
    256echo $html->para(null, $html->link($html->image('actions/new.png', array("alt"=>"Add new", "title"=>"Add new")), '#', array("onclick"=>"hU()"), false, false)); ?> 
    267 
    278<div id="trh" style="margin:0;padding:0;padding-left:40px;width:80%;display:none;"> 
    28 <?php echo $form->create('Quote', array('action'=>'admin_add')); ?> 
     9<?php echo $form->create('Quote', array('action'=>'add', 'onsubmit'=>'return chkData()')); ?> 
    2910 <fieldset> 
    3011 <legend>New quote</legend 
     
    6344?>  
    6445</table> 
     46<script type="text/javascript">  
     47<!--  
     48function hU() { 
     49 
     50var tr = document.getElementById('trh'); 
     51 
     52  if (tr.style.display == 'none') 
     53  { 
     54            tr.style.display = 'table-row'; 
     55  } else { 
     56            tr.style.display = 'none'; 
     57  } 
     58} 
     59--> 
     60</script>