php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login

Patch wider_textareas.patch for Website problem Bug #55725

Patch version 2011-09-19 11:42 UTC

Return to Bug #55725 | Download this patch
Patch Revisions:

Developer: rquadling@php.net

Index: www/bug.php
===================================================================
--- www/bug.php	(revision 316977)
+++ www/bug.php	(working copy)
@@ -913,7 +913,7 @@
 	<?php
 	if ($bug['status'] !== 'Spam') {
 	?>
-		<textarea cols="80" rows="8" name="ncomment" id="ncomment" wrap="physical"><?php echo htmlspecialchars($ncomment); ?></textarea>
+		<textarea rows="8" name="ncomment" id="ncomment" wrap="physical"><?php echo htmlspecialchars($ncomment); ?></textarea>
 	<?php
 	} else {
 		echo 'This bug has a SPAM status, so no additional comments are needed.';
@@ -996,7 +996,7 @@
 	<div>
 		<input type="hidden" name="id" value="<?php echo $bug_id; ?>" />
 		<input type="hidden" name="edit" value="<?php echo $edit; ?>" />
-		<textarea cols="80" rows="10" name="ncomment" wrap="physical"><?php echo htmlspecialchars($ncomment); ?></textarea>
+		<textarea rows="10" name="ncomment" wrap="physical"><?php echo htmlspecialchars($ncomment); ?></textarea>
 		<br /><input type="submit" name="preview" value="Preview">&nbsp;<input type="submit" value="Submit" />
 	</div>
 
Index: www/css/style.css
===================================================================
--- www/css/style.css	(revision 316977)
+++ www/css/style.css	(working copy)
@@ -223,6 +223,7 @@
 
 textarea {
 	font-family: "andale mono", "monotype.com", "courier new", monospace;
+	width : 100%;
 }
 
 input.small, select.small {
Index: www/fix.php
===================================================================
--- www/fix.php	(revision 316977)
+++ www/fix.php	(working copy)
@@ -88,7 +88,7 @@
 		</tr>
 		<tr>
 			<th>Note:</th>
-			<td colspan="5"><textarea cols="80" rows="8" name="ncomment" wrap="physical"><?php echo htmlspecialchars($ncomment); ?></textarea></td>
+			<td colspan="5"><textarea rows="8" name="ncomment" wrap="physical"><?php echo htmlspecialchars($ncomment); ?></textarea></td>
 		</tr> 
 	</table>
 	<input type="submit" value="Resolve" />
Index: www/report.php
===================================================================
--- www/report.php	(revision 316977)
+++ www/report.php	(working copy)
@@ -462,7 +462,7 @@
 					</p>
 				</th>
 				<td class="form-input">
-					<textarea cols="80" rows="15" name="in[ldesc]" wrap="physical"><?php echo htmlspecialchars($_POST['in']['ldesc'], ENT_COMPAT, 'UTF-8'); ?></textarea>
+					<textarea rows="15" name="in[ldesc]" wrap="physical"><?php echo htmlspecialchars($_POST['in']['ldesc'], ENT_COMPAT, 'UTF-8'); ?></textarea>
 				</td>
 			</tr>
 			<tr>
@@ -476,7 +476,7 @@
 					</p>
 				</th>
 				<td class="form-input">
-					<textarea cols="80" rows="15" name="in[repcode]" wrap="no"><?php echo htmlspecialchars($_POST['in']['repcode'], ENT_COMPAT, 'UTF-8'); ?></textarea>
+					<textarea rows="15" name="in[repcode]" wrap="no"><?php echo htmlspecialchars($_POST['in']['repcode'], ENT_COMPAT, 'UTF-8'); ?></textarea>
 				</td>
 			</tr>
 <?php
@@ -493,7 +493,7 @@
 					</p>
 				</th>
 				<td class="form-input">
-					<textarea cols="80" rows="15" name="in[expres]" wrap="physical"><?php echo htmlspecialchars($_POST['in']['expres'], ENT_COMPAT, 'UTF-8'); ?></textarea>
+					<textarea rows="15" name="in[expres]" wrap="physical"><?php echo htmlspecialchars($_POST['in']['expres'], ENT_COMPAT, 'UTF-8'); ?></textarea>
 				</td>
 			</tr>
 
@@ -506,7 +506,7 @@
 					</p>
 				</th>
 				<td class="form-input">
-					<textarea cols="80" rows="15" name="in[actres]" wrap="physical"><?php echo htmlspecialchars($_POST['in']['actres'], ENT_COMPAT, 'UTF-8'); ?></textarea>
+					<textarea rows="15" name="in[actres]" wrap="physical"><?php echo htmlspecialchars($_POST['in']['actres'], ENT_COMPAT, 'UTF-8'); ?></textarea>
 				</td>
 			</tr>
 
 
PHP Copyright © 2001-2019 The PHP Group
All rights reserved.
Last updated: Sun Dec 15 18:01:25 2019 UTC