Changeset 679
- Timestamp:
- 07/29/08 18:18:05 (4 months ago)
- Location:
- trunk/app
- Files:
-
- 1 added
- 8 modified
-
config/sql/helps_es_postgresql.sql (modified) (6 diffs)
-
controllers/helps_controller.php (modified) (7 diffs)
-
locale/spa/LC_MESSAGES/default.po (modified) (1 diff)
-
views/entries/admin_edit.ctp (modified) (1 diff)
-
views/helps/admin_edit.ctp (modified) (4 diffs)
-
views/helps/display.ctp (modified) (1 diff)
-
views/layouts/admin.ctp (modified) (1 diff)
-
views/layouts/help.ctp (modified) (1 diff)
-
webroot/img/static/help-renky.jpg (added)
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; 2 INSERT INTO helps (url, help, lang) VALUES ('/admin/vclassrooms/listing', '<h2>Classrooms</h2> 3 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 /> 4 <br /> 5 Change status to desactived the classroom temporarily.', 'es'); 2 6 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> 7 INSERT INTO helps (url, help, lang) VALUES ('/admin/entries/listing', '<h1>eduBlog Entries</h1> 8 8 eduBlog is the core of your teaching tools, around it you can link different pedagogic materials. You can access your blog on:<br /> 9 9 <br /> … … 11 11 <br /> 12 12 where "username" 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> 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" />', 'es'); 15 14 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> 15 INSERT 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 18 INSERT 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 21 INSERT INTO helps (url, help, lang) VALUES ('/admin/webquests/listing', '<h1>Webquests</h1> 21 22 <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'); 25 24 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> 25 INSERT 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'); 29 27 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> 28 INSERT INTO helps (url, help, lang) VALUES ('/admin/webquests/edit', '<h1>Secciones de un Webquest</h1> 29 <h1>Que es un Webquest?</h1> 31 30 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'); 33 32 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> 33 INSERT INTO helps (url, help, lang) VALUES ('/admin/lessons/listing', '<h1>Lessons</h1> 45 34 <br /> 46 You can understand "Lessons" 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.', 'e n');47 INSERT INTO helps VALUES (12,'/admin/catfaqs/listing', '<h1>FAQs</h1>35 You can understand "Lessons" 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'); 36 INSERT INTO helps (url, help, lang) VALUES ('/admin/catfaqs/listing', '<h1>FAQs</h1> 48 37 <br /> 49 As teacher you face the Frequently Asked Question syndrom ;-) With FAQs tool you can give one explanation as long as you wish and in your own words.', 'e n');50 INSERT INTO helps VALUES (13,'/admin/catglossaries/listing', '<h1>Glossaries</h1>38 As teacher you face the Frequently Asked Question syndrom ;-) With FAQs tool you can give one explanation as long as you wish and in your own words.', 'es'); 39 INSERT INTO helps (url, help, lang) VALUES ('/admin/catglossaries/listing', '<h1>Glossaries</h1> 51 40 <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> 52 41 <h2><strong>Example:</strong></h2> 53 42 <p>Term:<strong> ADSL</strong> <br /> 54 43 </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 46 INSERT INTO helps (url, help, lang) VALUES ('/admin/podcasts/listing', '<h1>Podcast</h1> 57 47 <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 and entertainment for generations).</p> 58 48 <ul> … … 65 55 <strong>Recommended Links</strong><br /> 66 56 <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>', 'e n');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'); 58 INSERT INTO helps (url, help, lang) VALUES ('/admin/shares/listing', '<h1>Shares</h1> 69 59 <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 /> 70 60 </p> 71 61 <p><br /> 72 </p>', 'e n');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>', 'e n');75 INSERT INTO helps VALUES (2,'/admin/entries/start', '<h1>Control Panel</h1>62 </p>', 'es'); 63 INSERT 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'); 65 INSERT INTO helps (url, help, lang) VALUES ('/admin/entries/start', '<h1>Control Panel</h1> 76 66 <p>Welcome to Karamelo™</p> 77 67 <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 "Portfolio" tab wich show the resorces an materials you create with Karamelo.<br /> … … 83 73 </p> 84 74 <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>', 'e n');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>', 'e n');88 INSERT INTO helps VALUES (18,'/admin/quotes/listing', '<h1>Quotes</h1>89 <p>Quotes than appear randomly in your edublog foot.</p>', 'e n');90 INSERT INTO helps VALUES (20,'/admin/images/listing', '<h1>Images</h1>75 </p>', 'es'); 76 INSERT 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'); 78 INSERT INTO helps (url, help, lang) VALUES ('/admin/quotes/listing', '<h1>Quotes</h1> 79 <p>Quotes than appear randomly in your edublog foot.</p>', 'es'); 80 INSERT INTO helps (url, help, lang) VALUES ('/admin/images/listing', '<h1>Images</h1> 91 81 <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 "user_number_serial".(png | jpg| gif). Id est, if the user "karlashi" upload the image twister_diagram.gif, the image name will be changed to something like karlashi_345.gif.</p> 92 82 <p>You can include the image in your blog or webquest using the boton "Insert Image":</p> … … 96 86 </p> 97 87 <p>the path to your images is: /img/imgusers/yourimage.jpg <br /> 98 </p>', 'e n');99 INSERT INTO helps VALUES (19,'/admin/treasures/listing', '<h1>Treasure Hunt</h1>88 </p>', 'es'); 89 INSERT INTO helps (url, help, lang) VALUES ('/admin/treasures/listing', '<h1>Treasure Hunt</h1> 100 90 <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 "Treasure".</p> 101 91 <p align="center"><img width="302" height="252" src="/img/static/treasure_map.jpg" alt="Treasure" /><br /> … … 106 96 <p> </p> 107 97 <p><br /> 108 </p>', 'e n');98 </p>', 'es'); 109 99 -
trunk/app/controllers/helps_controller.php
r548 r679 32 32 public function display($a, $b, $c) 33 33 { 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)); 41 42 } 42 43 43 44 public function index($set=null) 44 45 { 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)); 50 53 } 51 54 … … 54 57 public function admin_newticket() 55 58 { 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)); 61 64 } 62 65 63 66 public function admin_submit() 64 67 { 65 if ( !empty( $this->data['Help'] ) ) 66 { 68 if ( !empty( $this->data['Help'] ) ): 67 69 $this->Sanitize = new Sanitize; 68 70 … … 76 78 $this->msgFlash('Email sent, Thanks!', '/admin/entries/start'); 77 79 endif; 78 79 } 80 endif; 80 81 } 81 82 … … 104 105 $this->layout = 'admin'; 105 106 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'])); 109 109 $this->Sanitize = new Sanitize; 110 110 … … 115 115 $this->Help->create(); 116 116 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; 123 122 } 124 123 … … 130 129 131 130 $this->data = $this->Help->read(null, $help_id); 132 133 131 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); 137 139 endif; 138 139 140 endif; 140 141 } 141 142 142 public function admin_delete($ id)143 public function admin_delete($help_id) 143 144 { 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'); 146 147 endif; 147 148 } … … 162 163 $this->set('report', $report); 163 164 //Do not pass any args to send() 164 if ( $this->Email->send() ) 165 { 165 if ( $this->Email->send() ): 166 166 return true; 167 } 168 else 169 { 167 else: 170 168 return false; 171 }169 endif; 172 170 } 173 171 } -
trunk/app/locale/spa/LC_MESSAGES/default.po
r678 r679 211 211 msgid "Lessons" 212 212 msgstr "Lecciones" 213 214 msgid "My Images" 215 msgstr "Mis imágenes" 216 217 msgid "End edition" 218 msgstr "Finalizar edición" 213 219 214 220 msgid "New Lesson" -
trunk/app/views/entries/admin_edit.ctp
r660 r679 23 23 echo $form->select('Entry.subject_id', $subjects); 24 24 ?> 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 ?> 27 29 </td> 28 30 </tr> -
trunk/app/views/helps/admin_edit.ctp
r438 r679 1 1 <?php 2 echo $javascript->link('fckeditor/fckeditor');2 //echo $javascript->link('fckeditor/fckeditor'); 3 3 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'); 6 6 echo $html->getCrumbs(' / '); 7 7 … … 11 11 12 12 <fieldset> 13 <legend> Edit help</legend>13 <legend><?php __('Edit help'); ?></legend> 14 14 <table> 15 15 <tr> 16 16 <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)); ?> 19 18 </td> 20 19 <td> 21 20 <?php 22 21 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'); 24 23 echo $form->select('Help.lang', $langs, null, null, null, false); 25 24 ?> … … 27 26 28 27 <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 ?> 30 31 </td> 31 32 </tr> … … 34 35 <?php 35 36 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); 38 39 ?> 39 40 </td></tr> 40 41 41 42 <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> 43 44 </tr> 44 45 <tr><td colspan="3"> 45 <?php echo $form->end( 'Save'); ?>46 <?php echo $form->end(__('Save', true)); ?> 46 47 </fieldset> 47 48 </td></tr></table> -
trunk/app/views/helps/display.ctp
r437 r679 1 1 <?php 2 2 //die(debug($data)); 3 $tmp = $html->div('titulo', 'Karamelo Help'); 3 $tmp = $html->div('titulo', 'Karamelo Help'); 4 4 $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))); 7 8 8 9 echo $html->div('marco', $tmp); -
trunk/app/views/layouts/admin.ctp
r620 r679 52 52 <?php echo $html->div('footer', $html->link('Chipotle Software © 2002-2008 GPLv3', 'http://www.chipotle-software.com/', null, false, false)); ?> 53 53 54 <div style="position:absolute;top: 22px;left:950px"><!-- help button-->55 <?php56 // help popup window57 $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')"; 62 62 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); 67 67 ?> 68 68 </div> -
trunk/app/views/layouts/help.ctp
r330 r679 33 33 .der {text-align:right;font-weight:bold;font-size:9pt;} 34 34 #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;} 36 36 #marco {border:1px grey solid;padding:5px;color:#268698;background-color:#dadada;font-size:10pt;width:80%;margin:5px auto 2px auto;} 37 37 .warning {color:red;font-size:10px;text-align:left;}
