Project

General

Profile

« Previous | Next » 

Revision 583

Added by doc almost 17 years ago

Fixed bug with the edit module CSS file implementation (IE7, Opera)

View differences:

edit_css.php
2 2

  
3 3
// $Id$
4 4

  
5
######################################################################################################################
6
#
7
#	PURPOSE OF THIS FILE:
8
#	This file contains the routines required to edit the optional module files: frontend.css and backend.css.
9
# Nothing needs to be changed in this file. Keep it as is.
10
#
11
#	INVOKED BY:
12
#	This file should be invoked by clicking on a text link shown in modify.php.
13
#
14
######################################################################################################################
5
/*
15 6

  
16
/**
17
  Module developed for the Open Source Content Management System Website Baker (http://websitebaker.org)
18
  Copyright (C) year, Authors name
19
  Contact me: author(at)domain.xxx, http://authorwebsite.xxx
7
 Website Baker Project <http://www.websitebaker.org/>
8
 Copyright (C) 2004-2008, Ryan Djurovich
20 9

  
21
  This module is free software. You can redistribute it and/or modify it 
22
  under the terms of the GNU General Public License  - version 2 or later, 
23
  as published by the Free Software Foundation: http://www.gnu.org/licenses/gpl.html.
10
 Website Baker is free software; you can redistribute it and/or modify
11
 it under the terms of the GNU General Public License as published by
12
 the Free Software Foundation; either version 2 of the License, or
13
 (at your option) any later version.
24 14

  
25
  This module is distributed in the hope that it will be useful, 
26
  but WITHOUT ANY WARRANTY; without even the implied warranty of 
27
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
28
  GNU General Public License for more details.
29
**/
15
 Website Baker is distributed in the hope that it will be useful,
16
 but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18
 GNU General Public License for more details.
30 19

  
20
 You should have received a copy of the GNU General Public License
21
 along with Website Baker; if not, write to the Free Software
22
 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
23

  
24
*/
25

  
31 26
// include configuration file and admin wrapper script
32 27
require('../../config.php');
33 28
require(WB_PATH.'/modules/admin.php');
......
103 98
			
104 99
			<p><?php echo $TXT_EDIT_CSS_FILE; ?></p> 
105 100
			
106
			<textarea name="css_data" id="css_data" class="codepress css" cols="115" rows="25" wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
101
			<textarea id="css_data" class="codepress css" cols="115" rows="25"
102
				wrap="VIRTUAL" style="margin:2px;"><?php echo $css_content; ?></textarea>
107 103
			
108 104
			<table cellpadding="0" cellspacing="0" border="0" width="100%">
109 105
				<tr>
110 106
					<td align="left">
111
						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" onclick="javascript: css_codepress.value = css_data.getCode();" style="width: 100px; margin-top: 5px;" />
107
						<input name="save" type="submit" value="<?php echo $TEXT['SAVE'];?>" 
108
							onclick="javascript: css_codepress.value = css_data.getCode();" style="width: 100px; margin-top: 5px;" />
112 109
					</td>
113 110
					<td align="right">
114
						<input type="button" value="<?php echo $TEXT['CANCEL']; ?>"	onclick="javascript: window.location = '<?php echo ADMIN_URL;?>/pages/modify.php?page_id=<?php echo $page_id; ?>';"	style="width: 100px; margin-top: 5px;" />
111
						<input type="button" value="<?php echo $TEXT['CANCEL']; ?>"	
112
							onclick="javascript: window.location = '<?php echo ADMIN_URL;?>/pages/modify.php?page_id=<?php echo $page_id; ?>';" style="width: 100px; margin-top: 5px;" />
115 113
					</td>
116 114
				</tr>
117 115
			</table>

Also available in: Unified diff