Changeset 701 for trunk/app/views
- Timestamp:
- 08/08/08 16:03:49 (4 months ago)
- Location:
- trunk/app/views
- Files:
-
- 8 modified
-
entries/admin_add.ctp (modified) (2 diffs)
-
entries/admin_edit.ctp (modified) (2 diffs)
-
glossaries/admin_edit.ctp (modified) (2 diffs)
-
news/admin_add.ctp (modified) (4 diffs)
-
news/admin_edit.ctp (modified) (4 diffs)
-
news/admin_listing.ctp (modified) (2 diffs)
-
quotes/admin_listing.ctp (modified) (3 diffs)
-
users/admin_edit.ctp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/entries/admin_add.ctp
r633 r701 13 13 <?php 14 14 echo $form->input('Entry.title', array('size' => 50, 'maxlength' => 50, 'label'=>__('Title', true))); 15 echo $form->error('Entry.title' , 'Title is required.');15 echo $form->error('Entry.title'); 16 16 ?> 17 17 </td> … … 31 31 echo $form->textarea('Entry.body', array('cols'=>80, 'rows'=>30)); 32 32 echo $fck->load('EntryBody', 'Karamelo'); 33 echo $form->error('Entry.body'); 33 34 ?> 34 35 </td></tr> -
trunk/app/views/entries/admin_edit.ctp
r679 r701 51 51 <td> 52 52 <?php 53 echo $form->label('Entry.end', 'Finish edition');53 echo $form->label('Entry.end', __('Finish edition', true) ); 54 54 echo $form->checkbox('Entry.end', array('value'=>1)); 55 55 ?> … … 62 62 </tr> 63 63 </table> 64 65 64 </fieldset> -
trunk/app/views/glossaries/admin_edit.ctp
r318 r701 1 <div>2 1 <?php 3 echo $html->addCrumb('Control Tools', '/admin/entries/start'); 4 echo $html->addCrumb('Glossaries', '/admin/catglossaries/listing'); 5 echo $html->getCrumbs(' / '); 6 ?> 7 </div> 8 9 <?php 2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 3 echo $html->addCrumb(__('Glossaries', true), '/admin/catglossaries/listing'); 4 echo $html->getCrumbs(' / '); 5 10 6 echo $form->create('Glossary'); 11 7 echo $form->hidden('Glossary.id'); … … 13 9 ?> 14 10 <fieldset> 15 <legend> Edit Item</legend>11 <legend><?php __('Edit item'); ?></legend> 16 12 <?php 17 echo $form->input('Glossary.item', array( "size" => 30, "maxlength"=> 90));13 echo $form->input('Glossary.item', array('size' => 30, 'maxlength' => 90)); 18 14 echo $form->error('Glossary.item', 'An item is required.'); 19 15 20 echo $form->label('Glossary.definition', 'Definition:');21 echo $form->textarea('Glossary.definition', array( "cols" => 40, "rows"=> 6));16 echo $form->label('Glossary.definition', __('Definition', true)); 17 echo $form->textarea('Glossary.definition', array('cols' => 40, 'rows' => 6)); 22 18 echo $form->error('Glossary.definition', 'A category definition is required.'); 23 ?>24 <div style="clear:both"></div>25 <br /></fieldset>26 <?php echo $form->submit('Save'); ?>19 20 echo $form->submit(__('Save', true)); 21 ?> 22 </fieldset> -
trunk/app/views/news/admin_add.ctp
r620 r701 6 6 echo $html->addCrumb(__('News', true), '/admin/news/listing'); 7 7 echo $html->getCrumbs(' / '); 8 echo $form->create('News' , array('onsubmit'=>'return validateNew()'));8 echo $form->create('News'); 9 9 10 10 echo $html->div('title_section', __('Add new', true)); … … 12 12 <table> 13 13 <tr> 14 <td><?php echo $form->input('News.title', array('size' => 40, 'maxlength' => 120)); ?> </td> 14 15 <td> 15 <?php16 echo $form->input('News.title', array('size' => 40, 'maxlength' => 120));17 echo $form->error('News.title', 'Title is required.');18 ?>19 </td><td>20 16 <?php 21 17 echo $form->label('News.theme_id', __('Theme', true)); 22 18 echo $form->select('News.theme_id', $themes, null, null, null, false, false); 23 19 ?> 24 </td><td> 25 <?php 26 echo $form->input('News.reference', array('size'=> 30, 'maxlength'=> 250, 'value'=>'http://')); 27 ?> 28 </td><td> 29 <?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> 20 </td> 21 <td><?php echo $form->input('News.reference', array('size'=> 30, 'maxlength'=> 340)); ?></td> 22 <td> 23 <?php echo $html->link($html->image('admin/myimages.jpg', array('alt'=>__('My Images', true), 'title'=>__('My Images', true))), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?></p> 30 24 </td></tr> 31 32 25 <tr><td colspan="4"> 33 26 <?php 34 echo $form-> label('News.Body', 'Body:').'<br />';27 echo $form->error('News.body').'<br />'; 35 28 echo $form->textarea('News.body', array('cols'=>80, 'rows'=>35)); 36 29 echo $fck->load('NewsBody', 'Karamelo'); … … 39 32 <tr><td> 40 33 <?php 41 echo $form->label('News.status', 'Published:');34 echo $form->label('News.status', __('Published', true) ); 42 35 echo $form->checkbox('News.status', array('value'=>1)); 43 36 ?> 44 37 </td><td> 45 38 <?php 46 echo $form->label('News.comments', 'Comments actived:');39 echo $form->label('News.comments', __('Allow comments', true) ); 47 40 echo $form->checkbox('News.comments', array('value'=>1)); 48 41 ?> … … 50 43 <td colspan="2"> 51 44 <?php 52 echo $form->label('News.end', 'Finish editing:');45 echo $form->label('News.end', __('Finish edition', true)); 53 46 echo $form->checkbox('News.end', array('value'=>1)); 54 47 ?> 55 48 </td> 56 49 </tr> 57 58 <tr><td colspan="4"> <?php echo $form->end(__('Save', true)); ?> </td></tr> 59 50 <tr><td colspan="4"> <?php echo $form->end(__('Save', true)); ?> </td></tr> 60 51 </table> 52 </fieldset> -
trunk/app/views/news/admin_edit.ctp
r620 r701 5 5 echo $html->getCrumbs(' / '); 6 6 7 echo $html->para(null, $html->link($html->image('actions/new.png', array( "alt"=>"Add new", "title"=>"Add new")), '/admin/news/add', null, false, false));7 echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new',true))), '/admin/news/add', null, false, false)); 8 8 9 echo $form->create('News' , array('onsubmit'=>'return validateNew()'));9 echo $form->create('News'); 10 10 echo $form->hidden('News.id'); 11 11 ?> 12 12 <table> 13 13 <tr> 14 <td> 15 <?php 16 echo $form->input('News.title', array('size' => 40, 'maxlength' => 120, 'label'=>__('Title', true))); 17 echo $form->error('News.title', 'Title is required.'); 18 ?> 19 </td> 14 <td> <?php echo $form->input('News.title', array('size' => 40, 'maxlength' => 120, 'label'=>__('Title', true))); ?></td> 20 15 <td> 21 16 <?php 22 echo $form->label('News.theme_id', 'Theme:');17 echo $form->label('News.theme_id', __('Theme', true)); 23 18 echo $form->select('News.theme_id', $themes, null, null, false); 24 19 ?> 25 20 </td> 26 <td> 27 <?php echo $form->input('News.reference', array("size" => 30, "maxlength" => 250, 'value'=>'http://')); ?> 28 </td> 21 <td><?php echo $form->input('News.reference', array('size'=> 30, 'maxlength' => 340)); ?></td> 29 22 <td> 30 23 <?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> … … 33 26 <tr><td colspan="4"> 34 27 <?php 35 echo $form-> label('News.Body', 'Body:') . '<br />';28 echo $form->error('News.body'); 36 29 echo $form->textarea('News.body', array('cols'=>90, 'rows'=>35)); 37 30 echo $fck->load('NewsBody', 'Karamelo'); … … 41 34 <td> 42 35 <?php 43 echo $form->label('News.status', 'Published:');44 echo $form->checkbox('News.status', array( "value"=>1));36 echo $form->label('News.status', __('Published', true)); 37 echo $form->checkbox('News.status', array('value'=>1)); 45 38 ?> 46 39 </td> 47 40 <td> 48 41 <?php 49 echo $form->label('News.comments', 'Allow comments:');50 echo $form->checkbox('News.comments', array( "value"=>1));42 echo $form->label('News.comments', __('Allow comments', true)); 43 echo $form->checkbox('News.comments', array('value'=>1)); 51 44 ?> 52 45 </td> 53 46 <td colspan="2"> 54 47 <?php 55 echo $form->label('News.end', 'Finish editing:');56 echo $form->checkbox('News.end', array("value"=>1));48 echo $form->label('News.end', __('Finish edition', true)); 49 echo $form->checkbox('News.end', array('value'=>1)); 57 50 ?> 58 51 </td> … … 60 53 <tr><td colspan="4"> <?php echo $form->end(__('Save', true)); ?></td></tr> 61 54 </table> 55 </fieldset> -
trunk/app/views/news/admin_listing.ctp
r653 r701 1 1 <?php 2 //die(debug($data));3 2 echo $html->div('title_section', __('News', true)); 4 3 echo $html->link($html->image('actions/new.png', array('alt'=>__('Add new', true), 'title'=>__('Add new', true))), '/admin/news/add', null, false, false); 5 4 echo ' '; 6 echo $html->link($html->image('static/forum.gif', array( "alt"=>"See comments", "title"=>"See comments")), '/admin/discussions/listing', null, false, false);5 echo $html->link($html->image('static/forum.gif', array('alt'=>__('See comments', true),'title'=>__('See comments', true))), '/admin/discussions/listing', null, false, false); 7 6 ?> 8 7 <table class="tbadmin"> 9 8 <?php 10 11 9 $th = array(__('Edit', true), __('Title', true), __('Author', true), __('Status', true), __('Delete', true)); 12 10 echo $html->tableHeaders($th); … … 25 23 26 24 endforeach; 27 ?>28 </table>29 25 30 <?php 26 echo '</table>'; 27 31 28 $t = $html->div(null,$paginator->prev('« '.__('Previous', true). ' ',null,null,array('class'=>'disabled')),array('style'=>'width:100px;float:left')); 32 29 $t .= $html->div(null, $paginator->next(' '.__('Next', true). ' »', null, null, array('class' => 'disabled')),array('style'=>'width:100px;float:right')); -
trunk/app/views/quotes/admin_listing.ctp
r610 r701 1 1 <?php 2 echo $html->addCrumb('Control Panel', '/admin/entries/start');3 echo $html->getCrumbs(' / ');2 echo $html->addCrumb('Control Panel', '/admin/entries/start'); 3 echo $html->getCrumbs(' / '); 4 4 5 echo $html->div('title_section', __('Quotes', true));5 echo $html->div('title_section', __('Quotes', true)); 6 6 7 echo $html->para(null, $html->link($html->image('actions/new.png', array('alt'=>'Add new quote','title'=>'Add new quote')), '#', array("onclick"=>"hU()"), false, false)); ?>7 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)); ?> 8 8 9 9 <div id="trh" style="margin:0;padding:0;padding-left:40px;width:80%;display:none;"> … … 12 12 <legend><?php __('New quote'); ?></legend> 13 13 <?php 14 echo $form->input('Quote.quote', array( "size" => 60, "maxlength"=>130));14 echo $form->input('Quote.quote', array('size'=> 60, 'maxlength'=>130)); 15 15 echo $form->error('Quote.quote', 'A quote is required.'); 16 16 … … 21 21 <div style="clear:both"></div> 22 22 </fieldset> 23 <?php echo $form->end( 'Save'); ?>23 <?php echo $form->end(__('Save', true)); ?> 24 24 25 25 </div> -
trunk/app/views/users/admin_edit.ctp
r686 r701 4 4 echo $javascript->link('myfunctions'); 5 5 6 if ($this->data[ "User"]["id"] != $session->read('Auth.User.id')):7 die('Error');6 if ($this->data['User']['id'] != $session->read('Auth.User.id')): 7 echo $this->getSupport(); 8 8 endif; 9 9 … … 15 15 <fieldset> 16 16 <?php 17 18 echo '<legend>'.$session->read('Auth.User.username') .'\'s account</legend>'; 19 echo $form->input('User.pwd', array('size'=>9, 'maxlength'=>9, 'value'=>'', 'label'=>__('Password', true))) . ' '.__('Left empty if you do not want to change', true); 20 echo $html->para(null, '<br />'); 17 18 echo '<legend>'.$session->read('Auth.User.username') .'\'s '.__('profile', true).'</legend>'; 21 19 22 20 echo $form->input('User.name', array('size' => 35, 'maxlength'=>50)); 23 echo $form->error('User.name', 'A name is required.');24 21 25 22 echo $form->input('User.email', array('size' => 30, 'maxlength'=>50)); 26 echo $form->error('User.email', 'An email is required.');27 23 28 echo $form->label('User.layout', __('Layout',true) .': ');24 echo $form->label('User.layout', __('Layout',true)); 29 25 $styles = array('rubyx'=>'Rubyx', 'school'=>'School', 'paris'=>'Paris', 'basic'=>'Basic'); 30 26 echo $form->select('User.layout', $styles, null, null, false); 31 27 32 echo $form->label('User.cv', __(' Profile',true) );28 echo $form->label('User.cv', __('profile',true) ); 33 29 echo $form->textarea('User.cv', array('cols' => 70, 'rows' => 7)); 34 30 35 31 echo $form->input('User.quote', array('size' => 70, 'maxlength' => 150, 'label'=>__('Quote', true))); 36 32 37 echo $form->input('User.name_blog', array('size' => 45, 'maxlength' => 150 ));33 echo $form->input('User.name_blog', array('size' => 45, 'maxlength' => 150, 'label'=>__('eduBlog name', true))); 38 34 39 35 echo $form->label('User.newsletter', __('Subscribe to newsletter', true).': '); 40 36 echo $form->checkbox('User.newsletter', array('value' => 1)); 37 38 echo $html->div(null, $form->input('User.pwd', array('size'=>9, 'maxlength'=>9, 'value'=>'', 'label'=>__('Password', true))) . ' '.__('Left empty if you do not want to change', true), array('style'=>'clear:both;margin:25px 0 16px 0;')); 41 39 42 40 echo $form->end(__('Save', true));
