From: <tim...@us...> - 2009-12-18 11:11:49
|
Revision: 3253 http://web-erp.svn.sourceforge.net/web-erp/?rev=3253&view=rev Author: tim_schofield Date: 2009-12-18 11:11:41 +0000 (Fri, 18 Dec 2009) Log Message: ----------- added new pdflanguage field to allow user pdf language support to be specified Modified Paths: -------------- trunk/UserSettings.php trunk/doc/Change.log.html Modified: trunk/UserSettings.php =================================================================== --- trunk/UserSettings.php 2009-12-18 10:57:40 UTC (rev 3252) +++ trunk/UserSettings.php 2009-12-18 11:11:41 UTC (rev 3253) @@ -10,7 +10,16 @@ echo '<p class="page_title_text"><img src="'.$rootpath.'/css/'.$theme.'/images/user.png" title="' . _('User Settings') . '" alt="">' . ' ' . _('User Settings'); +$PDFLanguages = array(_('Latin Western Languages'), + _('Eastern European Russian Japanese'), + _('Chinese'), + _('Korean'), + _('Vietnamese'), + _('Hebrew'), + _('Arabic'), + _('Thai')); + if (isset($_POST['Modify'])) { // no input errors assumed initially before we test $InputError = 0; @@ -56,7 +65,8 @@ SET displayrecordsmax=" . $_POST['DisplayRecordsMax'] . ", theme='" . $_POST['Theme'] . "', language='" . $_POST['Language'] . "', - email='". $_POST['email'] ."' + email='". $_POST['email'] ."', + pdflanguage=" . $_POST['PDFLanguage'] . " WHERE userid = '" . $_SESSION['UserID'] . "'"; $ErrMsg = _('The user alterations could not be processed because'); @@ -71,6 +81,7 @@ theme='" . $_POST['Theme'] . "', language='" . $_POST['Language'] . "', email='". $_POST['email'] ."', + pdflanguage=" . $_POST['PDFLanguage'] . " password='" . CryptPass($_POST['pass']) . "' WHERE userid = '" . $_SESSION['UserID'] . "'"; @@ -179,11 +190,24 @@ $_POST['email'] = $myrow['email']; } -echo "<td><input type=text name='email' size=40 value='" . $_POST['email'] . "'></td></tr> - </table> +echo "<td><input type=text name='email' size=40 value='" . $_POST['email'] . "'></td></tr>"; + +if (!isset($_POST['PDFLanguage'])){ + $_POST['PDFLanguage']=0; +} + +echo '<tr><td>' . _('PDF Language Support') . ': </td><td><select name="PDFLanguage">'; +for($i=0;$i<=7;$i++){ + if ($_POST['PDFLanguage']==$i){ + echo '<option selected value=' . $i .'>' . $PDFLanguages[$i] . '</option>'; + } else { + echo '<option value=' . $i .'>' . $PDFLanguages[$i]. '</option>'; + } +} +echo "</select></td></tr></table> <br><div class='centre'><input type='Submit' name='Modify' value=" . _('Modify') . '></div> </form>'; include('includes/footer.inc'); -?> +?> \ No newline at end of file Modified: trunk/doc/Change.log.html =================================================================== --- trunk/doc/Change.log.html 2009-12-18 10:57:40 UTC (rev 3252) +++ trunk/doc/Change.log.html 2009-12-18 11:11:41 UTC (rev 3253) @@ -1,5 +1,6 @@ <p><font SIZE=4 COLOR=BLUE><b>webERP Change Log</b></font></p> <p> +<p>18/12/09 Tim: UserSettings.php - added new pdflanguage field to allow user pdf language support to be specified <p>17/12/09 Tim: class.pdf.php - Corrections to addTextWrap() function <p>17/12/09 Tim: PrintSalesOrder_generic.php - Correctly set $Copy for when not customer copy. <p>14/12/09 Tim: upgrade3.11-3.12.sql - Include pdflanguage field in www_users This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |