Changeset 679

Show
Ignore:
Timestamp:
07/29/08 18:18:05 (4 months ago)
Author:
aarkerio
Message:

Update helps

Location:
trunk/app
Files:
1 added
8 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/config/sql/helps_es_postgresql.sql

    r678 r679  
    1 -- Data for Name: helps; Type: TABLE DATA; Schema: public; Owner: karamelo 
     1-- Data for Name: helps; Type: TABLE DATA; Schema: public;  
     2INSERT INTO helps (url, help, lang) VALUES ('/admin/vclassrooms/listing', '<h2>Classrooms</h2> 
     3Here you can setup your classes. The students will see the class on your blog and ask you to join the class, then yopu can authorized or deny the studen request.<br /> 
     4<br /> 
     5Change status to desactived the classroom temporarily.', 'es'); 
    26 
    3 INSERT INTO helps VALUES (1, '/admin/vclassrooms/listing', '<h2>Classrooms</h2> 
    4 Here you can setup your classes.  The students will see the class on your blog and ask you to join the class, then yopu can authorized or deny the studen request.<br /> 
    5 <br /> 
    6 Change status to desactived the classroom temporarily.', 'en'); 
    7 INSERT INTO helps VALUES (3, '/admin/entries/listing', '<h1>eduBlog Entries</h1> 
     7INSERT INTO helps (url, help, lang) VALUES ('/admin/entries/listing', '<h1>eduBlog Entries</h1> 
    88eduBlog is the core of your teaching tools, around it you can link different pedagogic materials. You can access your blog on:<br /> 
    99<br /> 
     
    1111<br /> 
    1212where &quot;username&quot; is your login. <br /> 
    13 You can see the comments made by visitors on your blog clicking over: <img width="22" height="27" src="/img/static/forum.gif" alt="Comments" />', 'en'); 
    14 INSERT INTO helps VALUES (5, '/admin/entries/add', '<h1>Add new entry</h1> 
     13You can see the comments made by visitors on your blog clicking over: <img width="22" height="27" src="/img/static/forum.gif" alt="Comments" />', 'es'); 
    1514 
    16 <p>You  upload and add an image clicking on <img width="45" height="19" src="/img/admin/myimages.jpg" alt="Upload image" /></p>', 'en'); 
    17 INSERT INTO helps VALUES (6, '/admin/comments/listing', '<h1>Comments in your blog</h1> 
    18 <p>See and delete comments on your blog</p> 
    19 ', 'en'); 
    20 INSERT INTO helps VALUES (7, '/admin/webquests/listing', '<h1>Webquests</h1> 
     15INSERT INTO helps (url, help, lang) VALUES ('/admin/entries/add', '<h1>Add new entry</h1> 
     16<p>You  upload and add an image clicking on <img width="45" height="19" src="/img/admin/myimages.jpg" alt="Upload image" /></p>', 'es'); 
     17 
     18INSERT INTO helps (url, help, lang) VALUES ('/admin/comments/listing', '<h1>Comments in your blog</h1> 
     19<p>See and delete comments on your blog</p>', 'es'); 
     20 
     21INSERT INTO helps (url, help, lang) VALUES ('/admin/webquests/listing', '<h1>Webquests</h1> 
    2122<p>A WebQuest is an inquiry-oriented lesson format in which most or all the information that            learners work with comes from the web. The model was developed by <a target="_blank" href="http://edweb.sdsu.edu/people/bdodge/">Bernie             Dodge</a>           at San Diego State University in February, 1995 with early input from           SDSU/Pacific Bell Fellow <a target="_blank" href="http://tommarch.com/ozblog/">Tom March, </a>the <a target="_blank" href="http://www.edtech.sandi.net/">Educational            Technology</a> staff at San Diego Unified           School District, and waves of participants each summer at the <a target="_blank" href="http://tttc.org/">Teach          the Teachers Consortium</a>. </p> 
    22 <p>Since those beginning days, tens of thousands of teachers have embraced WebQuests as a           way to make good use of the internet while engaging their students in the kinds             of thinking that the 21st century requires. The model has spread around the world,          with special enthusiasm in Brazil, Spain, China, Australia and Holland.  </p>', 'en'); 
    23 INSERT INTO helps VALUES (9, '/admin/ecourses/listing', '<h1>eCourses</h1> 
    24 <p>Just as they sound, eCourses are courses that are offered online. These courses, which are often hosted over the internet, enable internet users to get an education or familiarize themselves with something new, often right from the comfort of their own homes. Although eCourses have similar goals, to educate internet users, those goals are accomplished in different ways. There are some individuals who are considered experts in their field, such as the field from working from home. Many experts create eCourses and distribute them online for other internet users to benefit from.</p>', 'en'); 
     23<p>Since those beginning days, tens of thousands of teachers have embraced WebQuests as a           way to make good use of the internet while engaging their students in the kinds             of thinking that the 21st century requires. The model has spread around the world,          with special enthusiasm in Brazil, Spain, China, Australia and Holland.  </p>', 'es'); 
    2524 
    26 INSERT INTO helps VALUES (8, '/admin/webquests/edit', '<h1>Webquest Sections</h1> 
    27 <h1>What is a Webquest?</h1> 
    28 <p>A webquest is an assignment which asks students to use the World Wide Web to learn about and/or synthesize their knowledge a specific topic. A ÒtrueÓ webquest, as originally designed by Bernie Dodge and Tom March, requires synthesis of the new knowledge by accomplishing a Òtask,Ó often to solve a hypothetical problem or address a real-world issue. Simpler web activities designed for students to investigate and collect new knowledge from web-based sources can also be a more engaging and effective replacement for read-the-chapter-and-complete-the-review-questions.  This tutorial will walk you through the basics to create a simple or more elaborate activity. </p> 
     25INSERT INTO helps (url, help, lang) VALUES ('/admin/ecourses/listing', '<h1>eCourses</h1> 
     26<p>Just as they sound, eCourses are courses that are offered online. These courses, which are often hosted over the internet, enable internet users to get an education or familiarize themselves with something new, often right from the comfort of their own homes. Although eCourses have similar goals, to educate internet users, those goals are accomplished in different ways. There are some individuals who are considered experts in their field, such as the field from working from home. Many experts create eCourses and distribute them online for other internet users to benefit from.</p>', 'es'); 
    2927 
    30 <p>The assignment can be given on paper, certainly the simplest and most portable option. For an example, click here to print out a simple "on paper" webquest on Laura Ingalls Wilder. (You\'ll need Adobe\'s Acrobat Reader, which is available from the TeachersFirst Toolbox.</p> 
     28INSERT INTO helps (url, help, lang) VALUES ('/admin/webquests/edit', '<h1>Secciones de un Webquest</h1> 
     29<h1>Que es un Webquest?</h1> 
    3130 
    32 <p>A webquest assignment can also be given on the web itself by sending students to a web page which serves as the "home base" for the studentÕs information search. For an example, click here to see an "on the web" webquest bsed on Harper Lee\'s book To Kill A Mockingbird.</p> 
     31<p>Webquests can also increase the "comfort level" of students using the Internet for learning activities. While your students are probably already computer literate, a properly designed webquest can help students become creative researchers rather than simply "surfing" from one site to another.</p>', 'es'); 
    3332 
    34 <p>You can also present a webquest using some other multi-media software such as Hyperstudio or Powerpoint.</p> 
    35 <p>The quality of your webquest depends on the ideas and thought that go into in more than on flashy presentation technologies. ItÕs easy to create a mediocre webquest, and it\'s far more difficult to create quest that really works well.</p> 
    36 <h1>Why Bother?</h1> 
    37 <p>Why should you take the time to create a webquest? The best reason is that, like any carefully planned lesson, a good webquest makes learning interesting for your students. Beyond that, however, several other factors make webquests a powerful learning tool. 
    38  
    39 <p>First, a good webquest puts the power of the web behind your topic. You can show students - or let them discover for themselves, not just tell them. Web sites can take your students anywhere in the world.</p> 
    40  
    41 <p>Webquests are a way to let students work at their own pace, either individually or in teams.A webquest lets students explore selected areas in more depth, but within limits that you have selected. This makes webquests ideal for classes which combine students with different ability levels.Webquests offer a different, more dynamic approach to teaching the value of research. 
    42 Webquests can also increase the "comfort level" of students using the Internet for learning activities. While your students are probably already computer literate, a properly designed webquest can help students become creative researchers rather than simply "surfing" from one site to another.</p>', 'en'); 
    43  
    44 INSERT INTO helps VALUES (11, '/admin/lessons/listing', '<h1>Lessons</h1> 
     33INSERT INTO helps (url, help, lang) VALUES ('/admin/lessons/listing', '<h1>Lessons</h1> 
    4534<br /> 
    46 You can understand &quot;Lessons&quot; like one static and long  page. As teacher you used to write essays and resumes about your subject. You can add images, PDF and mp3 files  to your Lessons to make them more fun and complete.', 'en'); 
    47 INSERT INTO helps VALUES (12, '/admin/catfaqs/listing', '<h1>FAQs</h1> 
     35You can understand &quot;Lessons&quot; like one static and long  page. As teacher you used to write essays and resumes about your subject. You can add images, PDF and mp3 files  to your Lessons to make them more fun and complete.', 'es'); 
     36INSERT INTO helps (url, help, lang) VALUES ('/admin/catfaqs/listing', '<h1>FAQs</h1> 
    4837<br /> 
    49 As teacher you face the Frequently Asked Question syndrom&nbsp; ;-)&nbsp; With FAQs tool you can give one explanation as long as you wish and in your own words.', 'en'); 
    50 INSERT INTO helps VALUES (13, '/admin/catglossaries/listing', '<h1>Glossaries</h1> 
     38As teacher you face the Frequently Asked Question syndrom&nbsp; ;-)&nbsp; With FAQs tool you can give one explanation as long as you wish and in your own words.', 'es'); 
     39INSERT INTO helps (url, help, lang) VALUES ('/admin/catglossaries/listing', '<h1>Glossaries</h1> 
    5140<p>A glossary is an alphabetized collection of specialized terms with their meanings. Glossary entries help the general reader to understand new or uncommon vocabulary and specialized terms.Sometimes glossaries include pictures.</p> 
    5241<h2><strong>Example:</strong></h2> 
    5342<p>Term:<strong> ADSL</strong> <br /> 
    5443</p> 
    55 <p>Definition:  (Asymmetric Digital Subscriber Line) <!-- Copyright by Matisse "ADSL" Enzer -->A <em>DSL</em> line where the upload speed is different from the download speed. Usually the download speed is much greater.</p>', 'en'); 
    56 INSERT INTO helps VALUES (14, '/admin/podcasts/listing', '<h1>Podcast</h1> 
     44<p>Definition:  (Asymmetric Digital Subscriber Line) <!-- Copyright by Matisse "ADSL" Enzer -->A <em>DSL</em> line where the upload speed is different from the download speed. Usually the download speed is much greater.</p>', 'es'); 
     45 
     46INSERT INTO helps (url, help, lang) VALUES ('/admin/podcasts/listing', '<h1>Podcast</h1> 
    5747<p>The best way to understand podcasting is to imaging a merger between blogging (regularly posted articles of news, insight, fun, grips, literature, and more) and radio (an established broadcasting medium that people have listened to for news&nbsp; and entertainment for generations).</p> 
    5848<ul> 
     
    6555<strong>Recommended Links</strong><br /> 
    6656<p><a href="javascript:void(window.open(''http://www.epnweb.org/'',''sadasd'',''resizable=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,fullscreen=no,dependent=no,width=800,height=600''))">The Educational Podcast Network</a></p> 
    67 <p><a href="javascript:void(window.open(''http://www.podcastingnews.com/articles/How-to-Podcast.html'',''newwindow'',''resizable=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,fullscreen=no,dependent=no,width=800,height=600''))">How to make a podcast</a></p>', 'en'); 
    68 INSERT INTO helps VALUES (15, '/admin/shares/listing', '<h1>Shares</h1> 
     57<p><a href="javascript:void(window.open(''http://www.podcastingnews.com/articles/How-to-Podcast.html'',''newwindow'',''resizable=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,fullscreen=no,dependent=no,width=800,height=600''))">How to make a podcast</a></p>', 'es'); 
     58INSERT INTO helps (url, help, lang) VALUES ('/admin/shares/listing', '<h1>Shares</h1> 
    6959<p>Shares are resources wich you put downladable for the students. You can share documents, spreadsheets, presentations, PDFs, HTML and even zip compressed files. <br /> 
    7060</p> 
    7161<p><br /> 
    72 </p>', 'en'); 
    73 INSERT INTO helps VALUES (16, '/admin/tests/listing', '<h1>Tests</h1> 
    74 <p>You are teacher, you know very well what a test is  ;-)</p>', 'en'); 
    75 INSERT INTO helps VALUES (2, '/admin/entries/start', '<h1>Control Panel</h1> 
     62</p>', 'es'); 
     63INSERT INTO helps (url, help, lang) VALUES ('/admin/tests/listing', '<h1>Tests</h1> 
     64<p>You are teacher, you know very well what a test is  ;-)</p>', 'es'); 
     65INSERT INTO helps (url, help, lang) VALUES ('/admin/entries/start', '<h1>Control Panel</h1> 
    7666<p>Welcome to Karamelo&trade;</p> 
    7767<p>Karamelo is a set of tools that help you to organize, expand and improve the teaching-learning process. This is your control panel screen. You have diferent tools but the central component is your blog or eduBlog arround it your students keep in touch and informed about the courses. On your blog you will see a &quot;Portfolio&quot; tab wich show the resorces an materials you create with Karamelo.<br /> 
     
    8373</p> 
    8474<p>If you choose share your materials, teachers from Australia or South Africa will be able to import your materials in his own Karamelo instance, always respecting your license and put your name as author. Share does not mean that other people can change your materials.<br /> 
    85 </p>', 'en'); 
    86 INSERT INTO helps VALUES (17, '/admin/acquaintances/listing', '<h1>Acquaintances (links)</h1> 
    87 <p>Here you can manage a list of links that you recommend to your students as useful.</p>', 'en'); 
    88 INSERT INTO helps VALUES (18, '/admin/quotes/listing', '<h1>Quotes</h1> 
    89 <p>Quotes than appear randomly in your edublog foot.</p>', 'en'); 
    90 INSERT INTO helps VALUES (20, '/admin/images/listing', '<h1>Images</h1> 
     75</p>', 'es'); 
     76INSERT INTO helps (url, help, lang) VALUES ('/admin/acquaintances/listing', '<h1>Acquaintances (links)</h1> 
     77<p>Here you can manage a list of links that you recommend to your students as useful.</p>', 'es'); 
     78INSERT INTO helps (url, help, lang) VALUES ('/admin/quotes/listing', '<h1>Quotes</h1> 
     79<p>Quotes than appear randomly in your edublog foot.</p>', 'es'); 
     80INSERT INTO helps (url, help, lang) VALUES ('/admin/images/listing', '<h1>Images</h1> 
    9181<p>Your images repository, note that in order to keep the uniqueness of each image on the server when you upload an image Karamelo change the name to  &quot;user_number_serial&quot;.(png | jpg| gif). Id est, if the user &quot;karlashi&quot;  upload   the image twister_diagram.gif, the image name will be changed to something like  karlashi_345.gif.</p> 
    9282<p>You can include the image in your blog or webquest using the boton &quot;Insert Image&quot;:</p> 
     
    9686</p> 
    9787<p>the path to your images is:   /img/imgusers/yourimage.jpg <br /> 
    98 </p>', 'en'); 
    99 INSERT INTO helps VALUES (19, '/admin/treasures/listing', '<h1>Treasure Hunt</h1> 
     88</p>', 'es'); 
     89INSERT INTO helps (url, help, lang) VALUES ('/admin/treasures/listing', '<h1>Treasure Hunt</h1> 
    10090<p>Treasure hunt  is an activity made for groups than five or six members wich try to follow the clues in order to get the &quot;Treasure&quot;.</p> 
    10191<p align="center"><img width="302" height="252" src="/img/static/treasure_map.jpg" alt="Treasure" /><br /> 
     
    10696<p> </p> 
    10797<p><br /> 
    108 </p>', 'en'); 
     98</p>', 'es'); 
    10999 
  • trunk/app/controllers/helps_controller.php

    r548 r679  
    3232 public function display($a, $b, $c)  
    3333 { 
    34         $url = '/'.$a .'/'.$b .'/'.$c; 
    35         //exit($url); 
    36         $this->layout    = 'help'; 
    37         $this->pageTitle = 'Karamelo Help'; 
    38         $conditions      = array('url'=>$url); 
    39         $fields          = array('help', 'url', 'lang');   
    40         $this->set('data', $this->Help->find($conditions, $fields)); 
     34   $url  = '/'.$a .'/'.$b .'/'.$c; 
     35   $lang = (Configure::read('Config.language')) ?  Configure::read('Config.language') : 'en'; 
     36    
     37   $this->layout    = 'help'; 
     38   $this->pageTitle = 'Karamelo ' . __('Help', true); 
     39   $conditions      = array('url'=>$url, 'lang'=> $lang); 
     40   $fields          = array('help', 'url', 'lang');   
     41   $this->set('data', $this->Help->find($conditions, $fields)); 
    4142 } 
    4243 
    4344 public function index($set=null)  
    4445 { 
    45         $this->layout    = ( isset($set) ) ? 'admin' : 'help'; //small window or admin panel? 
    46         $this->pageTitle = 'Karamelo Help'; 
    47         $conditions      = array("lang"=>"en"); 
    48         $fields          = array('help', 'url', 'lang');   
    49         $this->set('data', $this->Help->findAll($conditions, $fields)); 
     46  $lang = (Configure::read('Config.language')) ?  Configure::read('Config.language') : 'en'; 
     47  $this->layout    = ( isset($set) ) ? 'admin' : 'help'; //small window or admin panel? 
     48  $this->pageTitle = 'Karamelo '. __('Help', true); 
     49  $conditions      = array('lang'=>$lang); 
     50  $fields          = array('help', 'url', 'lang');   
     51  $order           = 'url'; 
     52  $this->set('data', $this->Help->findAll($conditions, $fields, $order)); 
    5053 } 
    5154  
     
    5457 public function admin_newticket()  
    5558 { 
    56         $this->layout    = 'admin'; 
    57         $this->pageTitle = 'Karamelo Help'; 
    58         $conditions      = array("lang"=>"en"); 
    59         $fields          = array('help', 'url', 'lang');   
    60         $this->set('data', $this->Help->findAll($conditions, $fields)); 
     59  $this->layout    = 'admin'; 
     60  $this->pageTitle = 'Karamelo Help'; 
     61  $conditions      = array("lang"=>"en"); 
     62  $fields          = array('help', 'url', 'lang');   
     63  $this->set('data', $this->Help->findAll($conditions, $fields)); 
    6164 } 
    6265  
    6366 public function admin_submit() 
    6467 {      
    65        if ( !empty( $this->data['Help'] ) ) 
    66        {   
     68   if ( !empty( $this->data['Help'] ) ):  
    6769      $this->Sanitize = new Sanitize; 
    6870           
     
    7678                  $this->msgFlash('Email sent, Thanks!', '/admin/entries/start'); 
    7779      endif; 
    78            
    79         } 
     80  endif; 
    8081 } 
    8182  
     
    104105     $this->layout = 'admin'; 
    105106      
    106      if (!empty($this->data['Help'])) 
    107      { 
    108           //die(debug($this->data['Help'])); 
     107     if (!empty($this->data['Help'])): 
     108         //die(debug($this->data['Help'])); 
    109109        $this->Sanitize = new Sanitize; 
    110110         
     
    115115        $this->Help->create(); 
    116116 
    117         if ($this->Help->save($this->data['Help'])) 
    118          { 
    119                $id = $this->Help->getLastInsertID(); 
    120               $this->msgFlash('Help saved','/admin/helps/edit/'.$id); 
    121          } 
    122       }  
     117        if ($this->Help->save($this->data)): 
     118          $id = $this->Help->getLastInsertID(); 
     119              $this->msgFlash(__('Data saved', true),'/admin/helps/edit/'.$id); 
     120    endif; 
     121    endif; 
    123122 } 
    124123  
     
    130129         
    131130        $this->data = $this->Help->read(null, $help_id); 
    132      
    133131    else: 
    134      
    135         if ($this->Help->save($this->data['Help'])): 
    136               $this->msgFlash('Help updated.','/admin/helps/edit/'.$this->data['Help']['id']); 
     132        if ( $this->Help->save($this->data) ): 
     133        if ( $this->data['Help']['end'] == 1 ): 
     134            $return = '/admin/helps/listing';  
     135        else: 
     136            $return = '/admin/helps/edit/'.$this->data['Help']['id']; 
     137        endif; 
     138            $this->msgFlash(__('Data saved', true), $return);     
    137139    endif; 
    138  
    139140    endif; 
    140141 } 
    141142  
    142  public function admin_delete($id) 
     143 public function admin_delete($help_id) 
    143144 { 
    144    if ( $this->Help->del($id) ): 
    145               $this->msgFlash('Help deleted','/admin/helps/listing'); 
     145   if ( $this->Help->del($help_id) ): 
     146           $this->msgFlash(__('Help deleted', true),'/admin/helps/listing'); 
    146147   endif; 
    147148 } 
     
    162163    $this->set('report', $report); 
    163164    //Do not pass any args to send()  
    164     if ( $this->Email->send() )  
    165     { 
     165    if ( $this->Email->send() ): 
    166166            return true;  
    167     }  
    168     else 
    169     { 
     167    else: 
    170168            return false; 
    171     } 
     169    endif; 
    172170 } 
    173171} 
  • trunk/app/locale/spa/LC_MESSAGES/default.po

    r678 r679  
    211211msgid  "Lessons" 
    212212msgstr "Lecciones" 
     213 
     214msgid  "My Images" 
     215msgstr "Mis imágenes" 
     216 
     217msgid  "End edition" 
     218msgstr "Finalizar edición" 
    213219 
    214220msgid  "New Lesson" 
  • trunk/app/views/entries/admin_edit.ctp

    r660 r679  
    2323   echo $form->select('Entry.subject_id', $subjects);  
    2424  ?> 
    25 </td>  <td> 
    26   <?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> 
     25</td> <td> 
     26<?php  
     27  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);  
     28?> 
    2729  </td> 
    2830  </tr> 
  • trunk/app/views/helps/admin_edit.ctp

    r438 r679  
    11<?php  
    2    echo $javascript->link('fckeditor/fckeditor');  
     2//echo $javascript->link('fckeditor/fckeditor');  
    33  
    4    echo $html->addCrumb('Control Tools', '/admin/entries/start'); 
    5    echo $html->addCrumb('Helps', '/admin/helps/listing');   
     4   echo $html->addCrumb('Control Panel', '/admin/entries/start'); 
     5   echo $html->addCrumb(__('Helps', true), '/admin/helps/listing');   
    66   echo $html->getCrumbs(' / ');  
    77 
     
    1111 
    1212<fieldset> 
    13 <legend>Edit help</legend> 
     13<legend><?php __('Edit help'); ?></legend> 
    1414<table> 
    1515<tr> 
    1616  <td> 
    17   <?php echo $form->input('Help.url', array("size" => 30, "maxlength" => 100)); ?> 
    18  
     17  <?php echo $form->input('Help.url', array('size' => 30, 'maxlength' => 100)); ?> 
    1918</td> 
    2019<td> 
    2120   <?php  
    2221    echo $form->label('Help.lang', 'Lang:') .'<br />'; 
    23     $langs = array("en"=>"English", "es"=>"Espanol", "fr"=>"Francaise", "de"=>"Deutschland", "af"=>"Afrikaans", "id"=>"Indonesian"); 
     22    $langs = array('en'=>'English', 'es'=>'Espanol', 'fr'=>'Francaise', 'de'=>'Deutsch', 'af'=>'Afrikaans', 'id'=>'Indonesian'); 
    2423    echo $form->select('Help.lang', $langs, null, null, null, false);  
    2524   ?> 
     
    2726 
    2827<td> 
    29    <?php echo $html->link($html->image('admin/myimages.jpg', array("alt"=>"My Images", "url"=>"My Images")), '#', array("onclick"=>"javascript:window.open('/admin/images/listing/set', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=500')"), null, false) ?> 
     28<?php 
     29  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);  
     30?> 
    3031</td> 
    3132</tr> 
     
    3435   <?php  
    3536     echo $form->label('Help.help', 'Help:'); 
    36      echo $form->textarea('Help.help', array('cols'=>80, 'rows'=>25));  
    37      echo $fck->load('HelpHelp', 'Karamelo', 700, 600);  
     37     echo $form->textarea('Help.help', array('cols'=>100, 'rows'=>25));  
     38     //echo $fck->load('HelpHelp', 'Karamelo', 700, 600);  
    3839   ?>  
    3940</td></tr> 
    4041 
    4142<tr> 
    42   <td colspan="3"><?php echo $form->label( 'Help.end', 'End edition:') . $form->checkbox('Help.end', array('value'=>1)); ?></td> 
     43  <td colspan="3"><?php echo $form->label('Help.end', __('End edition', true)) . $form->checkbox('Help.end', array('value'=>1)); ?></td> 
    4344</tr> 
    4445<tr><td colspan="3"> 
    45   <?php echo $form->end('Save');  ?> 
     46  <?php echo $form->end(__('Save', true));  ?> 
    4647</fieldset> 
    4748</td></tr></table> 
  • trunk/app/views/helps/display.ctp

    r437 r679  
    11<?php  
    22    //die(debug($data)); 
    3     $tmp  = $html->div('titulo', 'Karamelo Help'); 
     3    $tmp  = $html->div('titulo', 'Karamelo Help');     
    44    $tmp .= $data['Help']['help'].'<br />'; 
    5     $tmp .= 'URL:  ' . $data['Help']['url'].'<br />'; 
    6     $tmp .= 'Lang: ' . $data['Help']['lang'].'<br />';      
     5// $tmp .= 'URL:  ' . $data['Help']['url'].'<br />'; 
     6//  $tmp .= 'Lang: ' . $data['Help']['lang'].'<br />';    
     7    $tmp .= $html->image('static/help-renky.jpg', array('alt'=>__('Help', true), 'title'=>__('Help', true))); 
    78 
    89    echo $html->div('marco', $tmp); 
  • trunk/app/views/layouts/admin.ctp

    r620 r679  
    5252<?php echo $html->div('footer', $html->link('Chipotle Software &copy; 2002-2008 GPLv3', 'http://www.chipotle-software.com/', null, false, false)); ?> 
    5353 
    54 <div style="position:absolute;top:22px;left:950px"><!-- help button--> 
    55   <?php  
    56      // help popup window 
    57      $o = '/admin/'.$this->name .'/'.$this->action; 
    58      $o = strtolower(str_replace('admin_', '', $o)); 
    59      $path = '/helps/display' . $o; 
    60      //echo $o;  
    61      $t="javascript:window.open('".$path."', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=400')"; 
     54<div style="position:absolute;top:15px;right:60px"><!-- help button--> 
     55<?php  
     56  // help popup window 
     57  $o = '/admin/'.$this->name .'/'.$this->action; 
     58  $o = strtolower(str_replace('admin_', '', $o)); 
     59  $path = '/helps/display' . $o; 
     60  //echo $o;  
     61  $t="javascript:window.open('".$path."', 'blank', 'toolbar=no, scrollbars=yes,width=700,height=400')"; 
    6262       
    63       echo $html->link($html->image('admin/help.gif', array("alt"=>"Help", "title"=>"Help", "class"=>"helping")),  
    64                                   '#header', 
    65                                   array("onclick"=>$t), 
    66                                   null, false); 
     63  echo $html->link($html->image('admin/help.gif', array("alt"=>"Help", "title"=>"Help", "class"=>"helping")),  
     64        '#header', 
     65        array("onclick"=>$t), 
     66        null, false); 
    6767?> 
    6868</div>  
  • trunk/app/views/layouts/help.ctp

    r330 r679  
    3333.der {text-align:right;font-weight:bold;font-size:9pt;} 
    3434#container {text-align:left;font-size:10pt;width:350px;margin-left:auto;margin-right:auto;} 
    35 #titulo {border-bottom:1px #268698 solid; padding:5px;color:#268698;font-size:16pt;} 
     35.titulo {border-bottom:1px #268698 solid; padding:5px;color:#268698;font-size:16pt;} 
    3636#marco {border:1px grey solid;padding:5px;color:#268698;background-color:#dadada;font-size:10pt;width:80%;margin:5px auto 2px auto;} 
    3737.warning {color:red;font-size:10px;text-align:left;}