From: <ex...@us...> - 2013-04-29 10:43:50
|
Revision: 5864 http://sourceforge.net/p/web-erp/reponame/5864 Author: exsonqu Date: 2013-04-29 10:43:45 +0000 (Mon, 29 Apr 2013) Log Message: ----------- 04/29/2013: Exson Add new configuration for users use smtp mail. Modified Paths: -------------- trunk/SystemParameters.php Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2013-04-29 10:41:57 UTC (rev 5863) +++ trunk/SystemParameters.php 2013-04-29 10:43:45 UTC (rev 5864) @@ -95,6 +95,9 @@ }elseif (mb_strlen($_POST['X_FrequentlyOrderedItems']) > 2 OR !is_numeric($_POST['X_FrequentlyOrderedItems'])) { $InputError = 1; prnMsg(_('The number of frequently ordered items to display must be numeric'),'error'); + }elseif (strlen($_POST['X_SmtpSetting']) != 1 OR !is_numeric($_POST['X_SmtpSetting'])){ + $InputError = 1; + prnMsg(_('The SMTP setting should be selected as Yes or No'),'error'); } if ($InputError !=1){ @@ -312,6 +315,10 @@ if ($_SESSION['AutoAuthorisePO'] != $_POST['X_AutoAuthorisePO']){ $sql[] = "UPDATE config SET confvalue='" . $_POST['X_AutoAuthorisePO'] . "' WHERE confname='AutoAuthorisePO'"; } + if ($_SESSION['SmtpSetting'] != $_POST['X_SmtpSetting']){ + $sql[] = "UPDATE config SET confvalue = '".$_POST['X_SmtpSetting'] ." ' WHERE confname='SmtpSetting'"; + + } $ErrMsg = _('The system configuration could not be updated because'); if (sizeof($sql) > 1 ) { $result = DB_Txn_Begin($db); @@ -1075,11 +1082,20 @@ <td><input type="text" name="X_InventoryManagerEmail" size="50" maxlength="50" value="' . $_SESSION['InventoryManagerEmail'] . '" /></td> <td>' . _('The email address for the inventory manager, where notifications of all manual stock adjustments created are sent by the system. Leave blank if no emails should be sent to the factory manager for manual stock adjustments') .'</td></tr>'; +echo '<tr style="outline: 1px solid"><td>' . _('Using Smtp Mail'). '</td> + <td><select type="text" name="X_SmtpSetting" > + <option select="selected" value = "0">'._('No').'</otpion> + <option value = "1">'._('Yes').'</option> + </td> + <td>'. _('The default setting is using mail in default php.ini, if you choose Yes for this selection, you can use the SMTP set in the setup section.').'</td></tr>'; + + + echo '</table> <br /><div class="centre"><input type="submit" name="submit" value="' . _('Update') . '" /></div> </div> </form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> |
From: <ex...@us...> - 2013-04-30 01:57:45
|
Revision: 5867 http://sourceforge.net/p/web-erp/reponame/5867 Author: exsonqu Date: 2013-04-30 01:57:42 +0000 (Tue, 30 Apr 2013) Log Message: ----------- 04/30/2013 Exson: fixed the Smtp config missing </select> tag and cannot display the session setting bugs. Reported by Tim. Modified Paths: -------------- trunk/SystemParameters.php Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2013-04-29 11:22:45 UTC (rev 5866) +++ trunk/SystemParameters.php 2013-04-30 01:57:42 UTC (rev 5867) @@ -1082,16 +1082,27 @@ <td><input type="text" name="X_InventoryManagerEmail" size="50" maxlength="50" value="' . $_SESSION['InventoryManagerEmail'] . '" /></td> <td>' . _('The email address for the inventory manager, where notifications of all manual stock adjustments created are sent by the system. Leave blank if no emails should be sent to the factory manager for manual stock adjustments') .'</td></tr>'; -echo '<tr style="outline: 1px solid"><td>' . _('Using Smtp Mail'). '</td> - <td><select type="text" name="X_SmtpSetting" > - <option select="selected" value = "0">'._('No').'</otpion> - <option value = "1">'._('Yes').'</option> - </td> - <td>'. _('The default setting is using mail in default php.ini, if you choose Yes for this selection, you can use the SMTP set in the setup section.').'</td></tr>'; +echo '<tr style="outline: 1px solid"> + <td>' . _('Using Smtp Mail'). '</td> + <td> + <select type="text" name="X_SmtpSetting" >'; + if($_SESSION['SmtpSetting'] == 0){ + echo '<option select="selected" value="0">'._('No').'</option>'; + echo '<option value="1">'._('Yes').'</option>'; + }elseif($_SESSION['SmtpSetting'] == 1){ + echo '<option select="selected" value="1">'._('Yes').'</option>'; + echo '<option value="0">'._('No').'</option>'; + } +echo ' </select> + </td> + <td>'. _('The default setting is using mail in default php.ini, if you choose Yes for this selection, you can use the SMTP set in the setup section.').' + </td> + </tr>'; + echo '</table> <br /><div class="centre"><input type="submit" name="submit" value="' . _('Update') . '" /></div> </div> |
From: <te...@us...> - 2013-06-29 06:21:46
|
Revision: 6039 http://sourceforge.net/p/web-erp/reponame/6039 Author: tehonu Date: 2013-06-29 06:21:41 +0000 (Sat, 29 Jun 2013) Log Message: ----------- Country names comes from the array, not the currency table Modified Paths: -------------- trunk/SystemParameters.php Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2013-06-29 03:26:34 UTC (rev 6038) +++ trunk/SystemParameters.php 2013-06-29 06:21:41 UTC (rev 6039) @@ -660,7 +660,7 @@ } echo '</select></td> - <td>' . _('This parameter is only effective if Do Freight Calculation is set to Yes. Country names come from the currencies table.') .'</td></tr>'; + <td>' . _('This parameter is only effective if Do Freight Calculation is set to Yes.') .'</td></tr>'; // StandardCostDecimalPlaces echo '<tr style="outline: 1px solid"><td>' . _('Standard Cost Decimal Places') . ':</td> |
From: <ex...@us...> - 2013-08-15 09:30:52
|
Revision: 6232 http://sourceforge.net/p/web-erp/reponame/6232 Author: exsonqu Date: 2013-08-15 09:30:49 +0000 (Thu, 15 Aug 2013) Log Message: ----------- 15/8/2013 Exson: Modify 'manual' to 'manually' in SystemParameters.php to remove the translation frustration and make it html5 compatible. Modified Paths: -------------- trunk/SystemParameters.php Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2013-08-15 07:51:51 UTC (rev 6231) +++ trunk/SystemParameters.php 2013-08-15 09:30:49 UTC (rev 6232) @@ -397,18 +397,18 @@ // PastDueDays1 echo '<tr style="outline: 1px solid"><td>' . _('First Overdue Deadline in (days)') . ':</td> - <td><input type="text" class="number" name="X_PastDueDays1" value="' . $_SESSION['PastDueDays1'] . '" size="3" maxlength="3" /></td> + <td><input type="text" class="integer" required="required" pattern="(?!^0\d+$)[\d]+" title="'._('The input must be integer').'" name="X_PastDueDays1" value="' . $_SESSION['PastDueDays1'] . '" size="3" maxlength="3" /></td> <td>' . _('Customer and supplier balances are displayed as overdue by this many days. This parameter is used on customer and supplier enquiry screens and aged listings') . '</td></tr>'; // PastDueDays2 echo '<tr style="outline: 1px solid"><td>' . _('Second Overdue Deadline in (days)') . ':</td> - <td><input type="text" class="number" name="X_PastDueDays2" value="' . $_SESSION['PastDueDays2'] . '" size="3" maxlength="3" /></td> + <td><input type="text" class="integer" required="required" pattern="(?!^0\d+$)[\d]+" title="'._('The input must be integer').'" name="X_PastDueDays2" value="' . $_SESSION['PastDueDays2'] . '" size="3" maxlength="3" /></td> <td>' . _('As above but the next level of overdue') . '</td></tr>'; // DefaultCreditLimit echo '<tr style="outline: 1px solid"><td>' . _('Default Credit Limit') . ':</td> - <td><input type="text" class="number" name="X_DefaultCreditLimit" value="' . $_SESSION['DefaultCreditLimit'] . '" size="12" maxlength="12" /></td> + <td><input type="text" class="number" required="required" title="'._('The input must be numeric').'" name="X_DefaultCreditLimit" value="' . $_SESSION['DefaultCreditLimit'] . '" size="12" maxlength="12" /></td> <td>' . _('The default used in new customer set up') . '</td></tr>'; // Check Credit Limits @@ -435,12 +435,12 @@ // QuickEntries echo '<tr style="outline: 1px solid"><td>' . _('Quick Entries') . ':</td> - <td><input type="text" class="number" name="X_QuickEntries" value="' . $_SESSION['QuickEntries'] . '" size="3" maxlength="2" /></td> + <td><input type="text" class="integer" required="required" pattern="[1-9][\d]{0,1}" name="X_QuickEntries" value="' . $_SESSION['QuickEntries'] . '" size="3" maxlength="2" /></td> <td>' . _('This parameter defines the layout of the sales order entry screen. The number of fields available for quick entries. Any number from 1 to 99 can be entered.') . '</td></tr>'; // Frequently Ordered Items echo '<tr style="outline: 1px solid"><td>' . _('Frequently Ordered Items') . ':</td> - <td><input type="text" class="number" name="X_FrequentlyOrderedItems" value="' . $_SESSION['FrequentlyOrderedItems'] . '" size="3" maxlength="2" /></td> + <td><input type="text" class="integer" pattern="(?!^0[1-9]+$)[\d]{1,2}" name="X_FrequentlyOrderedItems" value="' . $_SESSION['FrequentlyOrderedItems'] . '" size="3" maxlength="2" /></td> <td>' . _('To show the most frequently ordered items enter the number of frequently ordered items you wish to display from 1 to 99. If you do not wish to display the frequently ordered item list enter 0.') . '</td></tr>'; // SO_AllowSameItemMultipleTimes @@ -493,7 +493,7 @@ echo '<tr style="outline: 1px solid"><td>' . _('Auto Update Exchange Rates Daily') . ':</td> <td><select name="X_UpdateCurrencyRatesDaily"> <option '.($_SESSION['UpdateCurrencyRatesDaily']!='1'?'selected="selected" ':'').'value="1">'._('Automatic').'</option> - <option '.($_SESSION['UpdateCurrencyRatesDaily']=='0'?'selected="selected" ':'').'value="0">'._('Manual').'</option> + <option '.($_SESSION['UpdateCurrencyRatesDaily']=='0'?'selected="selected" ':'').'value="0">'._('Manually').'</option> </select></td> <td>' . _('Automatic updates to exchange rates will retrieve the latest daily rates from either the European Central Bank or Google once per day - when the first user logs in for the day. Manual will never update the rates automatically - exchange rates will need to be maintained manually') . '</td> </tr>'; @@ -610,7 +610,7 @@ //FreightChargeAppliesIfLessThan echo '<tr style="outline: 1px solid"><td>' . _('Apply freight charges if an order is less than') . ':</td> - <td><input type="text" class="number" name="X_FreightChargeAppliesIfLessThan" size="12" maxlength="12" value="' . $_SESSION['FreightChargeAppliesIfLessThan'] . '" /></td> + <td><input type="text" class="number" required="required" title="'._('The input must be numeric').'" name="X_FreightChargeAppliesIfLessThan" size="12" maxlength="12" value="' . $_SESSION['FreightChargeAppliesIfLessThan'] . '" /></td> <td>' . _('This parameter is only effective if Do Freight Calculation is set to Yes. If it is set to 0 then freight is always charged. The total order value is compared to this value in deciding whether or not to charge freight') .'</td></tr>'; @@ -703,12 +703,12 @@ // OverChargeProportion echo '<tr style="outline: 1px solid"><td>' . _('Allowed Over Charge Proportion') . ':</td> - <td><input type="text" class="number" name="X_OverChargeProportion" size="4" maxlength="3" value="' . $_SESSION['OverChargeProportion'] . '" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d+$)[\d]{1,2}|(100)" required="required" title="'._('The input must between 0~100').'" name="X_OverChargeProportion" size="4" maxlength="3" value="' . $_SESSION['OverChargeProportion'] . '" placeholder="'._('integer between 0-100').'" /></td> <td>' . _('If check price charges vs Order price is set to yes then this proportion determines the percentage by which invoices can be overcharged with respect to price') .'</td></tr>'; // OverReceiveProportion echo '<tr style="outline: 1px solid"><td>' . _('Allowed Over Receive Proportion') . ':</td> - <td><input type="text" class="number" name="X_OverReceiveProportion" size="4" maxlength="3" value="' . $_SESSION['OverReceiveProportion'] . '" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d+$)[\d]{1,2}|(100)" required="required" title="'._('The input must between 0~100').'" name="X_OverReceiveProportion" size="4" maxlength="3" value="' . $_SESSION['OverReceiveProportion'] . '" /></td> <td>' . _('If check quantity charged vs delivery quantity is set to yes then this proportion determines the percentage by which invoices can be overcharged with respect to delivery') .'</td></tr>'; // PO_AllowSameItemMultipleTimes @@ -751,13 +751,13 @@ //PageLength echo '<tr style="outline: 1px solid"><td>' . _('Report Page Length') . ':</td> - <td><input type="text" class="number" name="X_PageLength" size="4" maxlength="6" value="' . $_SESSION['PageLength'] . '" /></td><td> </td> + <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" title="'._('The input should be between 1~999').'" placeholder="'._(' 1 to 999').'" name="X_PageLength" size="4" maxlength="6" value="' . $_SESSION['PageLength'] . '" /></td><td> </td> </tr>'; //DefaultDisplayRecordsMax echo '<tr style="outline: 1px solid"> <td>' . _('Default Maximum Number of Records to Show') . ':</td> - <td><input type="text" class="number" name="X_DefaultDisplayRecordsMax" size="4" maxlength="3" value="' . $_SESSION['DefaultDisplayRecordsMax'] . '" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" required="required" title="'._('The records should be between 1 and 999').'" name="X_DefaultDisplayRecordsMax" size="4" maxlength="3" value="' . $_SESSION['DefaultDisplayRecordsMax'] . '" /></td> <td>' . _('When pages have code to limit the number of returned records - such as select customer, select supplier and select item, then this will be the default number of records to show for a user who has not changed this for themselves in user settings.') . '</td> </tr>'; @@ -775,7 +775,7 @@ //MaxImageSize echo '<tr style="outline: 1px solid"> <td>' . _('Maximum Size in KB of uploaded images') . ':</td> - <td><input type="text" class="number" name="X_MaxImageSize" size="4" maxlength="3" value="' . $_SESSION['MaxImageSize'] . '" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]{1,3}" required="required" title="'._('The input should be between 1 to 999').'" placeholder="'._('1 t0 999').'" name="X_MaxImageSize" size="4" maxlength="3" value="' . $_SESSION['MaxImageSize'] . '" /></td> <td>' . _('Picture files of items can be uploaded to the server. The system will check that files uploaded are less than this size (in KB) before they will be allowed to be uploaded. Large pictures will make the system slow and will be difficult to view in the stock maintenance screen.') .'</td> </tr>'; //NumberOfMonthMustBeShown @@ -789,7 +789,7 @@ $_SESSION['NumberOfMonthMustBeShown'] = $row['confvalue']; echo '<tr style="outline: 1px solid"><td>' . _('Number Of Month Must Be Shown') . ':</td> - <td><input type="text" class="number" name="X_NumberOfMonthMustBeShown" size="4" maxlength="3" value="' . $_SESSION['NumberOfMonthMustBeShown'] . '" /></td> + <td><input type="text" class="integer" pattern="(?!^0\d*$)[\d]+" required="required" title="'._('input must be positive integer').'" placeholder="'._('postive integer').'" name="X_NumberOfMonthMustBeShown" size="4" maxlength="3" value="' . $_SESSION['NumberOfMonthMustBeShown'] . '" /></td> <td>' . _('Number of month must be shown on report can be changed with this parameters ex: in CustomerInquiry.php ') .'</td> </tr>'; @@ -1025,7 +1025,7 @@ //Months of Audit Trail to Keep echo '<tr style="outline: 1px solid"><td>' . _('Months of Audit Trail to Retain') . ':</td> - <td><input type="text" class="number" name="X_MonthsAuditTrail" size="3" maxlength="2" value="' . $_SESSION['MonthsAuditTrail'] . '" /></td><td>' . _('If this parameter is set to 0 (zero) then no audit trail is retained. An audit trail is a log of which users performed which additions updates and deletes of database records. The full SQL is retained') . '</td> + <td><input type="text" class="integer" pattern="(?!^0\d+$)[\d]{1,2}" required="required" name="X_MonthsAuditTrail" size="3" maxlength="2" value="' . $_SESSION['MonthsAuditTrail'] . '" /></td><td>' . _('If this parameter is set to 0 (zero) then no audit trail is retained. An audit trail is a log of which users performed which additions updates and deletes of database records. The full SQL is retained') . '</td> </tr>'; //Which messages to log @@ -1145,4 +1145,4 @@ </form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> |
From: <rc...@us...> - 2013-12-04 18:11:58
|
Revision: 6477 http://sourceforge.net/p/web-erp/reponame/6477 Author: rchacon Date: 2013-12-04 18:11:55 +0000 (Wed, 04 Dec 2013) Log Message: ----------- Deletes hidden characters. Modified Paths: -------------- trunk/SystemParameters.php Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2013-12-04 18:01:01 UTC (rev 6476) +++ trunk/SystemParameters.php 2013-12-04 18:11:55 UTC (rev 6477) @@ -475,7 +475,7 @@ } } echo '</select></td> - <td>' . _('Select the languages in which translations of the item description will be maintained. The default language is excluded.') . '</td> + <td>' . _('Select the languages in which translations of the item description will be maintained. The default language is excluded.') . '</td> </tr>'; //'RequirePickingNote' |
From: <ex...@us...> - 2014-11-17 04:08:23
|
Revision: 6988 http://sourceforge.net/p/web-erp/reponame/6988 Author: exsonqu Date: 2014-11-17 04:08:15 +0000 (Mon, 17 Nov 2014) Log Message: ----------- 17/11/14 Exson: Fixed InvoiceQuantityDefault parameters failed to save in SystemParameters.php. Reported by Richard. Modified Paths: -------------- trunk/SystemParameters.php Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2014-11-15 09:19:50 UTC (rev 6987) +++ trunk/SystemParameters.php 2014-11-17 04:08:15 UTC (rev 6988) @@ -510,7 +510,7 @@ //Default Invoice Quantity echo '<tr style="outline: 1px solid"><td>' . _('Invoice Quantity Default') . ':</td> - <td><select name="X_InvoicePortraitFormat"> + <td><select name="X_InvoiceQuantityDefault"> <option '.($_SESSION['InvoiceQuantityDefault']=='0'?'selected="selected" ':'').'value="0">' . _('0') . '</option> <option '.($_SESSION['InvoiceQuantityDefault']=='1'?'selected="selected" ':'').'value="1">' . _('Outstanding') . '</option> </select></td> |
From: <ex...@us...> - 2015-04-07 10:30:27
|
Revision: 7263 http://sourceforge.net/p/web-erp/reponame/7263 Author: exsonqu Date: 2015-04-07 10:30:19 +0000 (Tue, 07 Apr 2015) Log Message: ----------- 07/04/15 Exson: Fixed the Wiki link broken bug in SystemParameters.php. Modified Paths: -------------- trunk/SystemParameters.php Modified: trunk/SystemParameters.php =================================================================== --- trunk/SystemParameters.php 2015-04-06 08:24:23 UTC (rev 7262) +++ trunk/SystemParameters.php 2015-04-07 10:30:19 UTC (rev 7263) @@ -264,7 +264,7 @@ if ($_SESSION['CheckCreditLimits'] != $_POST['X_CheckCreditLimits'] ) { $sql[] = "UPDATE config SET confvalue = '". ($_POST['X_CheckCreditLimits'])."' WHERE confname = 'CheckCreditLimits'"; } - if ($_SESSION['WikiApp'] != $_POST['X_WikiApp'] ) { + if ($_SESSION['WikiApp'] !== $_POST['X_WikiApp'] ) { $sql[] = "UPDATE config SET confvalue = '". $_POST['X_WikiApp']."' WHERE confname = 'WikiApp'"; } if ($_SESSION['WikiPath'] != $_POST['X_WikiPath'] ) { @@ -989,7 +989,7 @@ echo '<tr style="outline: 1px solid"><td>' . _('Wiki application') . ':</td> <td><select name="X_WikiApp">'; for ($i=0; $i < sizeof($WikiApplications); $i++ ) { - echo '<option '.($_SESSION['WikiApp'] == $i ? 'selected="selected" ' : '').'value="'. $i .'">' . $WikiApplications[$i] . '</option>'; + echo '<option '.($_SESSION['WikiApp'] == $WikiApplications[$i] ? 'selected="selected" ' : '').'value="'.$WikiApplications[$i].'">' . $WikiApplications[$i] . '</option>'; } echo '</select></td> <td>' . _('This feature makes webERP show links to a free form company knowledge base using a wiki. This allows sharing of important company information - about customers, suppliers and products and the set up of work flow menus and/or company procedures documentation') . '</td></tr>'; |