From: <tim...@us...> - 2012-02-15 10:16:06
|
Revision: 4903 http://web-erp.svn.sourceforge.net/web-erp/?rev=4903&view=rev Author: tim_schofield Date: 2012-02-15 10:15:55 +0000 (Wed, 15 Feb 2012) Log Message: ----------- Ensure all PHP keywords are in lower case for consistency across the code base Modified Paths: -------------- trunk/AddCustomerContacts.php Modified: trunk/AddCustomerContacts.php =================================================================== --- trunk/AddCustomerContacts.php 2012-02-15 06:47:20 UTC (rev 4902) +++ trunk/AddCustomerContacts.php 2012-02-15 10:15:55 UTC (rev 4903) @@ -34,7 +34,7 @@ ie the page has called itself with some user input */ //first off validate inputs sensible - if (isset($_POST['Con_ID']) AND !is_long((integer)$_POST['Con_ID'])) { + if (isset($_POST['Con_ID']) and !is_long((integer)$_POST['Con_ID'])) { $InputError = 1; prnMsg( _('The Contact ID must be an integer.'), 'error'); } elseif (mb_strlen($_POST['ContactName']) >40) { @@ -43,12 +43,12 @@ } elseif( trim($_POST['ContactName']) == '' ) { $InputError = 1; prnMsg( _('The contact name may not be empty'), 'error'); - } elseif (!IsEmailAddress($_POST['ContactEmail']) AND mb_strlen($_POST['ContactEmail'])>0){ + } elseif (!IsEmailAddress($_POST['ContactEmail']) and mb_strlen($_POST['ContactEmail'])>0){ $InputError = 1; prnMsg( _('The contact email address is not a valid email address'), 'error'); } - if (isset($Id) AND ($Id AND $InputError !=1)) { + if (isset($Id) and ($Id and $InputError !=1)) { $sql = "UPDATE custcontacts SET contactname='" . $_POST['ContactName'] . "', role='" . $_POST['ContactRole'] . "', phoneno='" . $_POST['ContactPhone'] . "', @@ -89,7 +89,7 @@ unset($_POST['ContactEmail']); unset($_POST['Con_ID']); } -} elseif (isset($_GET['delete']) AND $_GET['delete']) { +} elseif (isset($_GET['delete']) and $_GET['delete']) { //the link to delete a selected record was clicked instead of the submit button // PREVENT DELETES IF DEPENDENT RECORDS IN 'SalesOrders' @@ -209,24 +209,24 @@ } echo '<tr><td>'. _('Contact Name') . '</td>'; - if (isset($_POST['ContactName'])) { + if (isset($_POST['ContactName'])) { echo '<td><input type="text" name="ContactName" value="' . $_POST['ContactName']. '" size="35" maxlength="40" /></td> </tr>'; - } else { + } else { echo '<td><input type="text" name="ContactName" size="35" maxlength="40" /></td> </tr>'; - } + } echo '<tr> <td>' . _('Role') . '</td>'; - if (isset($_POST['ContactRole'])) { - echo '<td><input type="text" name="ContactRole" value="'. $_POST['ContactRole']. '" size="35" maxlength="40" /></td> + if (isset($_POST['ContactRole'])) { + echo '<td><input type="text" name="ContactRole" value="'. $_POST['ContactRole']. '" size="35" maxlength="40" /></td> </tr>'; - } else { - echo '<td><input type="text" name="ContactRole" size="35" maxlength="40" /></td> + } else { + echo '<td><input type="text" name="ContactRole" size="35" maxlength="40" /></td> </tr>'; - } + } echo '<tr><td>' . _('Phone') . '</td>'; - if (isset($_POST['ContactPhone'])) { + if (isset($_POST['ContactPhone'])) { echo '<td><input type="text" name="ContactPhone" value="' . $_POST['ContactPhone'] . '" size="35" maxlength="40" /></td> </tr>'; } else { @@ -241,7 +241,7 @@ } else { echo '<td><input type="text" name="ContactEmail" size="55" maxlength="55" /></td> </tr>'; - } + } echo '<tr> <td>' . _('Notes') . '</td>'; if (isset($_POST['ContactNotes'])) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |