|
From: <rc...@us...> - 2015-01-17 03:14:29
|
Revision: 7081
http://sourceforge.net/p/web-erp/reponame/7081
Author: rchacon
Date: 2015-01-17 03:14:28 +0000 (Sat, 17 Jan 2015)
Log Message:
-----------
Inserts HTML line breaks before all newlines in the default language's long description.
Modified Paths:
--------------
trunk/RevisionTranslations.php
trunk/doc/Change.log
Modified: trunk/RevisionTranslations.php
===================================================================
--- trunk/RevisionTranslations.php 2015-01-16 22:59:26 UTC (rev 7080)
+++ trunk/RevisionTranslations.php 2015-01-17 03:14:28 UTC (rev 7081)
@@ -76,10 +76,10 @@
}
echo '<td>' . $myrow['stockid'] . '</td>
- <td>'. $_SESSION['Language']. '</td>
+ <td>' . $_SESSION['Language']. '</td>
<td>' . $myrow['description'] . '</td>
- <td>' . $myrow['longdescription'] . '</td>
- </tr>';
+ <td>' . nl2br($myrow['longdescription']) . '</td>
+ <td> </td></tr>';// nl2br: Inserts HTML line breaks before all newlines in a string.
if($k==1) {
echo '<tr class="EvenTableRows">';
@@ -89,21 +89,18 @@
$k=1;
}
- echo '<td></td>
+ echo '<td> </td>
<td>' . $myrow['language_id'] . '</td>';
+ echo '<td><input class="text" maxlength="50" name="DescriptionTranslation' . $i .'" size="52" type="text" value="'. $myrow['descriptiontranslation'] .'" /></td>
+ <td><textarea name="LongDescriptionTranslation' . $i .'" cols="70" rows="5">'. $myrow['longdescriptiontranslation'] .'" </textarea></td>';
+
echo '<td>
- <input type="text" class="text" name="DescriptionTranslation' . $i .'" maxlength="50" size="52" value="'. $myrow['descriptiontranslation'] .'" />
+ <input name="Revised' . $i . '" type="checkbox" value="1" />
+ <input name="StockID' . $i . '" type="hidden" value="' . $myrow['stockid'] . '" />
+ <input name="LanguageID' . $i . '" type="hidden" value="' . $myrow['language_id'] . '" />
</td>
- <td>
- <textarea name="LongDescriptionTranslation' . $i .'" cols="70" rows="5">'. $myrow['longdescriptiontranslation'] .'" </textarea></td>
- </td>';
-
- echo '<td><input type="checkbox" name="Revised' . $i.'" value="1" />
- </td>
</tr>';
- echo '<input type="hidden" value="' . $myrow['stockid'] . '" name="StockID' . $i . '" />
- <input type="hidden" value="' . $myrow['language_id'] . '" name="LanguageID' . $i . '" />';
$i++;
} //end of looping
Modified: trunk/doc/Change.log
===================================================================
--- trunk/doc/Change.log 2015-01-16 22:59:26 UTC (rev 7080)
+++ trunk/doc/Change.log 2015-01-17 03:14:28 UTC (rev 7081)
@@ -1,4 +1,6 @@
webERP Change Log
+
+16/01/15 RChacon: Inserts HTML line breaks before all newlines in the default language's long description.
12/1/15 Exson: Remove redundant code from Prices.php.
12/1/15 Exson: Fixed bug in Z_AutoCustomerAllocations.php to make it workable.
9/1/15 Bob Thomas: Removed reference to AliasNbPages() now no longer part of TCPDF
|