Changeset 57 for trunk/app/views/catglossaries
- Timestamp:
- 08/09/07 13:20:22 (16 months ago)
- Location:
- trunk/app/views/catglossaries
- Files:
-
- 2 modified
-
admin_add.thtml (modified) (2 diffs)
-
admin_listing.thtml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/catglossaries/admin_add.thtml
r56 r57 1 2 <?php echo $javascript->link('myfunctions'); ?>3 4 1 <div> 5 2 <?php echo $html->addCrumb('Control Tools', '/entries/index'); ?> … … 10 7 <div class="spaced"> 11 8 12 <?php echo $html->formTag('/catglossaries/add/','post'); ?> 13 <?php echo $html->hiddenTag('Catglossary/user_id', $othAuth->user('id'))?> 9 <?php echo $html->formTag('/admin/catglossaries/add','post'); ?> 14 10 <fieldset> 15 11 <legend>New Category</legend> 16 12 <?php echo $form->labelTag( 'Catglossary/title', 'Title:' );?><br /> 17 13 <?php echo $html->input('Catglossary/title', array("size" => 40, "maxlength" => 60, "class"=>"formas", "value"=>"i.e.: Marine Biology")); ?> -
trunk/app/views/catglossaries/admin_listing.thtml
r56 r57 1 2 <?php echo $html->addCrumb('Control Tools', '/glossaries/index'); ?> 3 1 <script type="text/javascript"> 2 window.onload = timedMsg; 3 </script> 4 <?php $session->flash(); ?> 5 <?php echo $html->addCrumb('Control Tools', '/admin/entries/start'); ?> 4 6 <?php echo $html->getCrumbs(' / '); ?> 5 7 6 < div class="title_section">Glossaries</div>8 <p><?php echo $html->link($html->image('actions/new.png', array("alt"=>"Add new category", "title"=>"Add new category")), '/admin/catglossaries/add', null, false, false) ?></p> 7 9 8 9 <p><?php echo $html->link($html->image('actions/new.png', array("alt"=>"Add glossary", "title"=>"Add glossary")), '/catglossaries/add', null, false, false) ?></p> 10 <table class="tbadmin"> 10 11 11 12 <?php 12 // die(print_r($data));13 //exit(print_r($data)); 13 14 14 foreach ($data as $key => $val) { 15 echo '<p><a href="/glossaries/edit/'.$data[$key]['Catglossary']['id'].'">Edit</a> '; 16 echo $data[$key]['Catglossary']['title']; 17 echo ' <a href="/glossaries/delete/'.$data[$key]['Catglossary']['id'].'">Delete</a></p><hr />'; 18 } 19 ?> 15 $th = array ('Edit', 'See', 'Title', 'Status', 'Delete'); 16 echo $html->tableHeaders($th); 17 foreach ($data as $val) 18 { 19 20 $tr = array ( 21 $gags->sendEdit($val['Catglossary']['id'], 'catglossaries'), 22 $html->link($html->image('admin/eye_icon.gif', array("alt"=>"See ". $val['Catglossary']['title'], "title"=>"See ". $val['Catglossary']['title'])), '#', 23 array("onclick"=>"window.open('/catglossaries/display/".$othAuth->user('username').", null, 'status=1,toolbar=1,scrollbars=1,height=600,width=800';)"), null, null, false), 24 $html->link($val['Catglossary']['title'], '/admin/photos/listing/'.$val['Catglossary']['id']), 25 $gags->setStatus($val['Catglossary']['status']), 26 $gags->confirmDel($val['Catglossary']['id'], 'catglossaries') 27 ); 28 29 echo $html->tableCells($tr, array("class"=>"altRow", "onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='altRow'"), 30 array('class'=>'evenRow',"onmouseover"=>"this.className='highlight'", "onmouseout"=>"this.className='evenRow'")); 31 32 } 33 ?> 34 </table>
