From: Lo?c C. <lo...@us...> - 2001-05-04 16:26:31
|
Update of /cvsroot/phpmychat/phpMyChat-0.15/chat In directory usw-pr-cvs1:/tmp/cvs-serv22210/chat Modified Files: input.php3 Log Message: Improved a bit the message box size Index: input.php3 =================================================================== RCS file: /cvsroot/phpmychat/phpMyChat-0.15/chat/input.php3,v retrieving revision 1.31 retrieving revision 1.32 diff -C2 -r1.31 -r1.32 *** input.php3 2001/05/01 15:31:48 1.31 --- input.php3 2001/05/04 16:26:29 1.32 *************** *** 230,235 **** $msgValue = ''; } ! // Define the default message box size (presumed resolution is 800*600) ! $msgBoxSize = floor((800-130) / (L_FONT_SIZE * 0.85)) - 7; // The urls for the help and the smilies popups $helpUrl = 'help_popup.' . C_EXTENSION --- 230,237 ---- $msgValue = ''; } ! // Define the message box size ! // = (frame width - margins - send button size) / column width ! $msgBoxSize = floor(($dbSessionVars['winWidth'] - 130 - 10 - ((strlen(L_OK) + 7) * $dbSessionVars['colWidth'])) / $dbSessionVars['colWidth']); ! // The urls for the help and the smilies popups $helpUrl = 'help_popup.' . C_EXTENSION *************** *** 314,318 **** <table border="0" cellpadding="0" cellspacing="0"> <tr> ! <td align="<?php echo($cellAlign); ?>" colspan="3" nowrap="nowrap"> <?php // Put the session id in an hidden field --- 316,320 ---- <table border="0" cellpadding="0" cellspacing="0"> <tr> ! <td align="<?php echo($cellAlign); ?>" colspan="4" nowrap="nowrap"> <?php // Put the session id in an hidden field *************** *** 329,351 **** <!-- Message box --> - <script type="text/javascript" language="javascript1.2"> - <!-- - // Get the size of the window - winWidth = 0; - if (typeof(document.body) != 'undefined' - && typeof(document.body.clientWidth) != 'undefined') - winWidth = document.body.clientWidth; - else if (typeof(window.innerWidth) != 'undefined') - winWidth = window.innerWidth; - // Define the size of the message box and display it - msgBoxSize = (winWidth) - ? Math.floor(winWidth / (<?php echo(L_FONT_SIZE); ?> * 0.85)) - 7 - : <?php echo($msgBoxSize); ?>; - document.write('<input type="text" name="message" size="' + msgBoxSize + '" maxlength="299" value="<?php echo(addslashes($msgValue)); ?>" />'); - // --> - </script> - <noscript> <input type="text" name="message" size="<?php echo($msgBoxSize); ?>" maxlength="299" value="<?php echo($msgValue); ?>" /> - </noscript> --- 331,335 ---- *************** *** 359,363 **** <tr> ! <td align="<?php echo($cellAlign); ?>" valign="middle"> <!-- Help popup link --> <a href="<?php echo($helpUrl); ?>" target="help_popup" onclick="window.parent.pmcHelpPopup(<?php echo((L_CHARSET == 'windows-1256') ? 610 : 10); ?>); return false" onmouseover="document.images['helpImg'].src = window.parent.jsImgHelpOn.src" onmouseout="document.images['helpImg'].src = window.parent.jsImgHelpOff.src"><img name="helpImg" src="images/help_off.gif" width="15" height="15" border="0" alt="<?php echo(L_HLP); ?>" onclick="window.parent.pmcSetMsgBoxFocus()" /></a> --- 343,347 ---- <tr> ! <td align="<?php echo($cellAlign); ?>" valign="middle" nowrap="nowrap"> <!-- Help popup link --> <a href="<?php echo($helpUrl); ?>" target="help_popup" onclick="window.parent.pmcHelpPopup(<?php echo((L_CHARSET == 'windows-1256') ? 610 : 10); ?>); return false" onmouseover="document.images['helpImg'].src = window.parent.jsImgHelpOn.src" onmouseout="document.images['helpImg'].src = window.parent.jsImgHelpOff.src"><img name="helpImg" src="images/help_off.gif" width="15" height="15" border="0" alt="<?php echo(L_HLP); ?>" onclick="window.parent.pmcSetMsgBoxFocus()" /></a> *************** *** 382,386 **** { ?> ! <td align="<?php echo($cellAlign); ?>" valign="middle"> <!-- The color picker --> <script type="text/javascript" language="javascript1.1"> --- 366,370 ---- { ?> ! <td align="<?php echo($cellAlign); ?>" valign="middle" nowrap="nowrap"> <!-- The color picker --> <script type="text/javascript" language="javascript1.1"> *************** *** 405,409 **** { ?> ! <td align="<?php echo($cellAlign); ?>" valign="middle"> <!-- Message colors --> <select name="color"> --- 389,393 ---- { ?> ! <td align="<?php echo($cellAlign); ?>" valign="middle" nowrap="nowrap"> <!-- Message colors --> <select name="color"> *************** *** 425,430 **** ?> <!-- Messages for browsers that do not support javascript --> ! <td width="200" align="bottom"> <?php echo($lowMessage . "\n"); ?> </td> --- 409,416 ---- ?> + <td> </td> + <!-- Messages for browsers that do not support javascript --> ! <td width="1000" align="bottom"> <?php echo($lowMessage . "\n"); ?> </td> |