Changeset 5333
- Timestamp:
- 01/10/12 08:46:31 (12 years ago)
- Location:
- trunk/admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/inc/class.uimainscreen.inc.php
r1362 r5333 148 148 $current_message = $GLOBALS['phpgw']->db->f('content'); 149 149 150 if($_POST['htmlarea'])151 {152 $text_or_htmlarea=$html->htmlarea('message',stripslashes($current_message));153 $htmlarea_button='<input type="submit" name="no-htmlarea" onclick="self.location.href=\''.$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uimainscreen.index&htmlarea=true').'\'" value="'.lang('disable WYSIWYG-editor').'">';154 }155 else156 {157 $text_or_htmlarea='<textarea name="message" style="width:100%; min-width:350px; height:300px;" wrap="virtual">' . stripslashes($current_message) . '</textarea>';158 $htmlarea_button='<input type="submit" name="htmlarea" onclick="self.location.href=\''.$GLOBALS['phpgw']->link('/index.php','menuaction=admin.uimainscreen.index&htmlarea=true').'\'" value="'.lang('activate WYSIWYG-editor').'">';150 $text_or_htmlarea.= '<script type="text/javascript" src="./library/ckeditor/ckeditor.js"></script>'; 151 $text_or_htmlarea.= '<textarea name="message">'.$current_message.'</textarea>'; 152 $text_or_htmlarea.= '<script type="text/javascript">'. 153 'CKEDITOR.replace( \'message\',{'. 154 'removePlugins : \'elementspath\','. 155 'skin : \'office2003\','. 156 'toolbar : \'Full\''. 157 '}'. 158 ');</script>'; 159 159 160 }161 162 $GLOBALS['phpgw']->js->validate_file('jscode','openwindow','admin');163 160 $GLOBALS['phpgw']->common->phpgw_header(); 164 161 echo parse_navbar(); … … 184 181 $GLOBALS['phpgw']->template->set_var('tr_color',$tr_color); 185 182 $GLOBALS['phpgw']->template->set_var('value','<input type="submit" name="submit" value="' . lang('Save') 186 . '"><input type="submit" name="cancel" value="'. lang('cancel') .'">' .$htmlarea_button);183 . '"><input type="submit" name="cancel" value="'. lang('cancel') .'">'); 187 184 $GLOBALS['phpgw']->template->fp('rows','row_2',True); 188 185 } -
trunk/admin/templates/default/mainscreen_message.tpl
r1362 r5333 8 8 </table> 9 9 </form> 10 <script language="Javascript">11 // FIX WYSIWYG IFRAME POSITION12 setTimeout("setIframeTop()",1);13 function setIframeTop()14 {15 var iframe = document.getElementsByTagName("IFRAME")[0];16 if(iframe){17 var div = document.createElement("DIV");18 div.style.height = "70px";19 iframe.parentNode.insertBefore( div, iframe);20 }21 else22 setTimeout("setIframeTop()",1);23 }24 </script>25 10 <!-- END form --> 26 11 … … 33 18 <!-- BEGIN row_2 --> 34 19 <tr > 35 <td style="width: 580px" colspan="2" align="left">{value}</td>20 <td style="width:100%" colspan="2" align="left">{value}</td> 36 21 </tr> 37 22 <!-- END row_2 -->
Note: See TracChangeset
for help on using the changeset viewer.