From: <rc...@us...> - 2014-12-27 20:59:18
|
Revision: 7045 http://sourceforge.net/p/web-erp/reponame/7045 Author: rchacon Date: 2014-12-27 20:59:15 +0000 (Sat, 27 Dec 2014) Log Message: ----------- Allow translation of typename in CustomerTransInquiry.php. Modified Paths: -------------- trunk/CustomerTransInquiry.php trunk/doc/Change.log Modified: trunk/CustomerTransInquiry.php =================================================================== --- trunk/CustomerTransInquiry.php 2014-12-27 19:53:03 UTC (rev 7044) +++ trunk/CustomerTransInquiry.php 2014-12-27 20:59:15 UTC (rev 7045) @@ -1,13 +1,10 @@ <?php - /* $Id$*/ include('includes/session.inc'); $Title = _('Customer Transactions Inquiry'); - $ViewTopic = 'ARInquiries'; $BookMark = 'ARTransInquiry'; - include('includes/header.inc'); echo '<p class="page_title_text"> @@ -34,16 +31,14 @@ $resultTypes = DB_query($sql); echo '<option value="All">' . _('All') . '</option>'; -while ($myrow=DB_fetch_array($resultTypes)){ - if (isset($_POST['TransType'])){ - if ($myrow['typeid'] == $_POST['TransType']){ - echo '<option selected="selected" value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; - } else { - echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; +while($myrow=DB_fetch_array($resultTypes)) { + echo '<option'; + if(isset($_POST['TransType'])) { + if($myrow['typeid'] == $_POST['TransType']) { + echo ' selected="selected"' ; } - } else { - echo '<option value="' . $myrow['typeid'] . '">' . $myrow['typename'] . '</option>'; } + echo ' value="' . $myrow['typeid'] . '">' . _($myrow['typename']) . '</option>'; } echo '</select></td>'; @@ -54,14 +49,14 @@ $_POST['ToDate'] = Date($_SESSION['DefaultDateFormat']); } echo '<td>' . _('From') . ':</td> - <td><input tabindex="2" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="FromDate" required="required" maxlength="10" size="11" value="' . $_POST['FromDate'] . '" /></td> + <td><input alt="'.$_SESSION['DefaultDateFormat'].'" class="date" maxlength="10" name="FromDate" required="required" size="11" tabindex="2" type="text" value="' . $_POST['FromDate'] . '" /></td> <td>' . _('To') . ':</td> - <td><input tabindex="3" class="date" alt="'.$_SESSION['DefaultDateFormat'].'" type="text" name="ToDate" required="required" maxlength="10" size="11" value="' . $_POST['ToDate'] . '" /></td> + <td><input alt="'.$_SESSION['DefaultDateFormat'].'" class="date" maxlength="10" name="ToDate" required="required" size="11" tabindex="3" type="text" value="' . $_POST['ToDate'] . '" /></td> </tr> </table> <br /> <div class="centre"> - <input tabindex="4" type="submit" name="ShowResults" value="' . _('Show Transactions') . '" /> + <input name="ShowResults" tabindex="4" type="submit" value="' . _('Show Transactions') . '" /> </div> </div> </form>'; @@ -145,7 +140,7 @@ printf($format_base . '<td><a target="_blank" href="%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Invoice"><img src="%s" title="' . _('Click to preview the invoice') . '" /></a></td> </tr>', - $myrow['typename'], + _($myrow['typename']), $myrow['transno'], ConvertSQLDate($myrow['trandate']), $myrow['debtorno'], @@ -160,11 +155,11 @@ $myrow['transno'], $RootPath.'/css/'.$Theme.'/images/preview.gif'); - } elseif ($_POST['TransType']==11){ /* credit notes */ + } elseif($_POST['TransType']==11) { /* credit notes */ printf($format_base . '<td><a target="_blank" href="%s/PrintCustTrans.php?FromTransNo=%s&InvOrCredit=Credit"><img src="%s" title="' . _('Click to preview the credit') . '" /></a></td> </tr>', - $myrow['typename'], + _($myrow['typename']), $myrow['transno'], ConvertSQLDate($myrow['trandate']), $myrow['debtorno'], @@ -180,7 +175,7 @@ $RootPath.'/css/'.$Theme.'/images/preview.gif'); } else { /* otherwise */ printf($format_base . '</tr>', - $myrow['typename'], + _($myrow['typename']), $myrow['transno'], ConvertSQLDate($myrow['trandate']), $myrow['debtorno'], Modified: trunk/doc/Change.log =================================================================== --- trunk/doc/Change.log 2014-12-27 19:53:03 UTC (rev 7044) +++ trunk/doc/Change.log 2014-12-27 20:59:15 UTC (rev 7045) @@ -1,5 +1,6 @@ webERP Change Log +27/12/14 RChacon: Allow translation of typename in CustomerTransInquiry.php. 27/12/14 RChacon: Allow translation of typename in GLAccountInquiry.php. 27/12/14 RChacon: In AutomaticTranslationDescriptions.php, add comment for the SVN repository automatically updates the revision number, add $ViewTopic and $BookMark, and else if no translation. Add info to manual. 27/12/14 RChacon: Set boolean field needrevision to tiny integer with a maximum display width of 1, signed and not null. Add comments to sql file. |