Revision 1069
Added by Matthias over 15 years ago
modify_droplet.php | ||
---|---|---|
62 | 62 |
<br /> |
63 | 63 |
<form name="modify" action="<?php echo WB_URL; ?>/modules/droplets/save_droplet.php" method="post" style="margin: 0;"> |
64 | 64 |
<input type="hidden" name="data_codepress" value="" /> |
65 |
<input type="hidden" name="droplet_id" value="<?php echo $droplet_id; ?>"> |
|
66 |
<input type="hidden" name="show_wysiwyg" value="<?php echo $fetch_content['show_wysiwyg']; ?>"> |
|
65 |
<input type="hidden" name="droplet_id" value="<?php echo $droplet_id; ?>" />
|
|
66 |
<input type="hidden" name="show_wysiwyg" value="<?php echo $fetch_content['show_wysiwyg']; ?>" />
|
|
67 | 67 |
|
68 | 68 |
<table class="row_a" cellpadding="4" cellspacing="0" border="0" width="100%"> |
69 | 69 |
<tr> |
... | ... | |
85 | 85 |
<?php echo $TEXT['ACTIVE']; ?>: |
86 | 86 |
</td> |
87 | 87 |
<td> |
88 |
<input type="radio" name="active" id="active_true" value="1" <?php if($fetch_content['active'] == 1) { echo ' checked'; } ?> /> |
|
88 |
<input type="radio" name="active" id="active_true" value="1" <?php if($fetch_content['active'] == 1) { echo ' checked="checked"'; } ?> />
|
|
89 | 89 |
<a href="#" onclick="javascript: document.getElementById('active_true').checked = true;"> |
90 | 90 |
<label><?php echo $TEXT['YES']; ?></label> |
91 | 91 |
</a> |
92 |
<input type="radio" name="active" id="active_false" value="0" <?php if($fetch_content['active'] == 0) { echo ' checked'; } ?> /> |
|
92 |
<input type="radio" name="active" id="active_false" value="0" <?php if($fetch_content['active'] == 0) { echo ' checked="checked"'; } ?> />
|
|
93 | 93 |
<a href="#" onclick="javascript: document.getElementById('active_false').checked = true;"> |
94 | 94 |
<label><?php echo $TEXT['NO']; ?></label> |
95 | 95 |
</a> |
... | ... | |
105 | 105 |
</td> |
106 | 106 |
<td> |
107 | 107 |
<?php echo $DR_TEXT['ADMIN_EDIT']; ?> |
108 |
<input type="radio" name="admin_edit" id="admin_edit_true" value="1" <?php if($fetch_content['admin_edit'] == 1) { echo ' checked'; } ?> /> |
|
108 |
<input type="radio" name="admin_edit" id="admin_edit_true" value="1" <?php if($fetch_content['admin_edit'] == 1) { echo ' checked="checked"'; } ?> />
|
|
109 | 109 |
<a href="#" onclick="javascript: document.getElementById('admin_edit_true').checked = true;"> |
110 | 110 |
<label><?php echo $TEXT['YES']; ?></label> |
111 | 111 |
</a> |
112 |
<input type="radio" name="admin_edit" id="admin_edit_false" value="0" <?php if($fetch_content['admin_edit'] == 0) { echo ' checked'; } ?> /> |
|
112 |
<input type="radio" name="admin_edit" id="admin_edit_false" value="0" <?php if($fetch_content['admin_edit'] == 0) { echo ' checked="checked"'; } ?> />
|
|
113 | 113 |
<a href="#" onclick="javascript: document.getElementById('admin_edit_false').checked = true;"> |
114 | 114 |
<label><?php echo $TEXT['NO']; ?></label> |
115 | 115 |
</a> |
116 | 116 |
|
117 | 117 |
<?php echo $DR_TEXT['ADMIN_VIEW']; ?>: |
118 |
<input type="radio" name="admin_view" id="admin_view_true" value="1" <?php if($fetch_content['admin_view'] == 1) { echo ' checked'; } ?> /> |
|
118 |
<input type="radio" name="admin_view" id="admin_view_true" value="1" <?php if($fetch_content['admin_view'] == 1) { echo ' checked="checked"'; } ?> />
|
|
119 | 119 |
<a href="#" onclick="javascript: document.getElementById('admin_view_true').checked = true;"> |
120 | 120 |
<label><?php echo $TEXT['YES']; ?></label> |
121 | 121 |
</a> |
122 |
<input type="radio" name="admin_view" id="admin_view_false" value="0" <?php if($fetch_content['admin_view'] == 0) { echo ' checked'; } ?> /> |
|
122 |
<input type="radio" name="admin_view" id="admin_view_false" value="0" <?php if($fetch_content['admin_view'] == 0) { echo ' checked="checked"'; } ?> />
|
|
123 | 123 |
<a href="#" onclick="javascript: document.getElementById('admin_view_false').checked = true;"> |
124 | 124 |
<label><?php echo $TEXT['NO']; ?></label> |
125 | 125 |
</a> |
... | ... | |
130 | 130 |
?> |
131 | 131 |
<tr> |
132 | 132 |
<td valign="top" class="setting_name" width="60px"><?php echo $TEXT['CODE']; ?>:</td> |
133 |
<td ><textarea name="savecontent" id ="contentedit" style="width: 98%; height: 450px;" wrap="off"><?php echo $content; ?></textarea>
|
|
133 |
<td ><textarea name="savecontent" id ="contentedit" style="width: 98%; height: 450px;" rows="50" cols="120"><?php echo $content; ?></textarea>
|
|
134 | 134 |
</td> |
135 | 135 |
</tr> |
136 | 136 |
<tr> |
... | ... | |
140 | 140 |
<tr> |
141 | 141 |
<td valign="top" class="setting_name" width="60px"><?php echo $TEXT['COMMENTS']; ?>:</td> |
142 | 142 |
<td> |
143 |
<textarea name="comments" style="width: 98%; height: 100px;"><?php echo stripslashes($fetch_content['comments']); ?></textarea> |
|
143 |
<textarea name="comments" style="width: 98%; height: 100px;" rows="50" cols="120"><?php echo stripslashes($fetch_content['comments']); ?></textarea>
|
|
144 | 144 |
</td> |
145 | 145 |
</tr> |
146 | 146 |
<tr> |
... | ... | |
160 | 160 |
<?php |
161 | 161 |
} |
162 | 162 |
?> |
163 |
</form> |
|
163 |
|
|
164 | 164 |
</td> |
165 | 165 |
<td align="right"> |
166 | 166 |
<button class="cancel" type="button" onclick="javascript: window.location = '<?php echo $module_edit_link; ?>';"><?php echo $TEXT['CANCEL']; ?></button> |
167 | 167 |
</td> |
168 | 168 |
</tr> |
169 | 169 |
</table> |
170 |
|
|
170 |
</form> |
|
171 | 171 |
<?php |
172 | 172 |
|
173 | 173 |
// Print admin footer |
Also available in: Unified diff
Fixed some validiation bugs in core and different modules (Thanks to luisehahne)