From: <ex...@us...> - 2013-08-14 11:47:59
|
Revision: 6215 http://sourceforge.net/p/web-erp/reponame/6215 Author: exsonqu Date: 2013-08-14 11:47:56 +0000 (Wed, 14 Aug 2013) Log Message: ----------- 14/08/2013 Exson: html5 compatible for UserSettings.php Modified Paths: -------------- trunk/UserSettings.php Modified: trunk/UserSettings.php =================================================================== --- trunk/UserSettings.php 2013-08-14 11:06:32 UTC (rev 6214) +++ trunk/UserSettings.php 2013-08-14 11:47:56 UTC (rev 6215) @@ -121,7 +121,7 @@ echo '<tr> <td>' . _('Maximum Number of Records to Display') . ':</td> - <td><input type="text" class="number" name="DisplayRecordsMax" size="3" maxlength="3" value="' . $_POST['DisplayRecordsMax'] . '" /></td> + <td><input type="text" class="integer" required="required" title="'._('Must be postive integer').'" name="DisplayRecordsMax" size="3" maxlength="3" value="' . $_POST['DisplayRecordsMax'] . '" /></td> </tr>'; @@ -172,11 +172,11 @@ echo '</select></td></tr> <tr> <td>' . _('New Password') . ':</td> - <td><input type="password" name="Password" size="20" value="' . $_POST['Password'] . '" /></td> + <td><input type="password" name="Password" pattern="(?!^'.$_SESSION['UserID'].'$).{5,}" title="'._('Must be more than 5 characters and cannot be as same as userid').'" placeholder="'._('More than 5 characters').'" size="20" value="' . $_POST['Password'] . '" /></td> </tr> <tr> <td>' . _('Confirm Password') . ':</td> - <td><input type="password" name="PasswordCheck" size="20" value="' . $_POST['PasswordCheck'] . '" /></td> + <td><input type="password" name="PasswordCheck" pattern="(?!^'.$_SESSION['UserID'].'$).{5,}" title="'._('Must be more than 5 characters and cannot be as same as userid').'" placeholder="'._('More than 5 characters').'" size="20" value="' . $_POST['PasswordCheck'] . '" /></td> </tr> <tr> <td colspan="2" align="center"><i>' . _('If you leave the password boxes empty your password will not change') . '</i></td> @@ -191,7 +191,7 @@ $_POST['email'] = $myrow['email']; } -echo '<td><input type="text" name="email" size="40" value="' . $_POST['email'] . '" /></td> +echo '<td><input type="email" name="email" size="40" value="' . $_POST['email'] . '" /></td> </tr>'; if (!isset($_POST['PDFLanguage'])){ @@ -218,4 +218,4 @@ </form>'; include('includes/footer.inc'); -?> \ No newline at end of file +?> |
From: <ser...@us...> - 2014-08-19 11:53:24
|
Revision: 6833 http://sourceforge.net/p/web-erp/reponame/6833 Author: serakfalcon Date: 2014-08-19 11:53:15 +0000 (Tue, 19 Aug 2014) Log Message: ----------- Revert previous commit of UserSettings.php: experimental code was accidentally included along with previous commit for this file. Modified Paths: -------------- trunk/UserSettings.php Modified: trunk/UserSettings.php =================================================================== --- trunk/UserSettings.php 2014-08-19 11:44:16 UTC (rev 6832) +++ trunk/UserSettings.php 2014-08-19 11:53:15 UTC (rev 6833) @@ -2,11 +2,11 @@ /* $Id$*/ -include('includes/session_views.inc'); +include('includes/session.inc'); $Title = _('User Settings'); -include('includes/header_views.inc'); +include('includes/header.inc'); -echo '<p class="page_title_text"><img src="'.$MainView->getStyleLink() .'/images/user.png" title="' . +echo '<p class="page_title_text"><img src="'.$RootPath.'/css/'.$Theme.'/images/user.png" title="' . _('User Settings') . '" alt="" />' . ' ' . _('User Settings') . '</p>'; $PDFLanguages = array(_('Latin Western Languages - Times'), @@ -90,58 +90,76 @@ // update the session variables to reflect user changes on-the-fly $_SESSION['DisplayRecordsMax'] = $_POST['DisplayRecordsMax']; $_SESSION['Theme'] = trim($_POST['Theme']); /*already set by session.inc but for completeness */ - $_SESSION['Style'] = trim($_POST['Style']); - $Theme = $_SESSION['Style']; + $Theme = $_SESSION['Theme']; $_SESSION['Language'] = trim($_POST['Language']); $_SESSION['PDFLanguage'] = $_POST['PDFLanguage']; include ('includes/LanguageSetup.php'); // After last changes in LanguageSetup.php, is it required to update? } } +echo '<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8') . '">'; +echo '<div>'; +echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />'; -$UserForm = $MainView->createForm(); -$UserForm->setAction(htmlspecialchars($_SERVER['PHP_SELF'],ENT_QUOTES,'UTF-8')); -$UserForm->addHiddenControl('RealName',$_SESSION['UsersRealName']); -//addControl($key,$tabindex,$type,$caption = null,$settings = null,$htmlclass = null,$row = null,$order = null,$dimensions = null) -$UserForm->addControl(1,-1,'static',_('User ID') . ':',array('text' => $_SESSION['UserID']),null,1); -$UserForm->addControl(2,-1,'static',_('User Name') . ':',array('text' => $_SESSION['UsersRealName']),null,1); +If (!isset($_POST['DisplayRecordsMax']) OR $_POST['DisplayRecordsMax']=='') { -if (!isset($_POST['DisplayRecordsMax']) OR $_POST['DisplayRecordsMax']=='') { - $_POST['DisplayRecordsMax'] = $_SESSION['DefaultDisplayRecordsMax']; } -//addControl($key,$tabindex,$type,$caption = null,$settings = null,$htmlclass = null,$row = null,$order = null,$dimensions = null) -$UserForm->addControl(3,1,'text',_('Maximum Number of Records to Display') . ':',array( 'value' => $_POST['DisplayRecordsMax'], - 'name' => 'DisplayRecordsMax', - 'size' => 3, - 'maxlength' => 3, - 'required' => true),'integer'); - -$UserForm->addControl(4,2,'select', _('Language') . ':',array('name' => 'Language')); + +echo '<table class="selection"> + <tr> + <td>' . _('User ID') . ':</td> + <td>' . $_SESSION['UserID'] . '</td> + </tr>'; + +echo '<tr> + <td>' . _('User Name') . ':</td> + <td>' . $_SESSION['UsersRealName'] . ' + <input type="hidden" name="RealName" value="'.$_SESSION['UsersRealName'].'" /></td></tr>'; + +echo '<tr> + <td>' . _('Maximum Number of Records to Display') . ':</td> + <td><input type="text" class="integer" required="required" title="'._('The input must be positive integer').'" name="DisplayRecordsMax" size="3" maxlength="3" value="' . $_POST['DisplayRecordsMax'] . '" /></td> + </tr>'; + + +echo '<tr> + <td>' . _('Language') . ':</td> + <td><select name="Language">'; + if (!isset($_POST['Language'])){ $_POST['Language']=$_SESSION['Language']; } -//addControlOption($key,$text,$value,$isSelected = null,$id = null) + foreach ($LanguagesArray as $LanguageEntry => $LanguageName){ - //is this language selected? - $UserForm->addControlOption(4,$LanguageName['LanguageName'],$LanguageEntry,((isset($_POST['Language']) AND $_POST['Language'] == $LanguageEntry) || (!isset($_POST['Language']) AND $LanguageEntry == $DefaultLanguage))); + if (isset($_POST['Language']) AND $_POST['Language'] == $LanguageEntry){ + echo '<option selected="selected" value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] . '</option>'; + } elseif (!isset($_POST['Language']) AND $LanguageEntry == $DefaultLanguage) { + echo '<option selected="selected" value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] . '</option>'; + } else { + echo '<option value="' . $LanguageEntry . '">' . $LanguageName['LanguageName'] . '</option>'; + } } -//addControl($key,$tabindex,$type,$caption = null,$settings = null,$htmlclass = null,$row = null,$order = null,$dimensions = null) -$UserForm->addControl(5,3,'select',_('Theme') . ':',array('name' => 'Theme', 'childselect' => 'StylesID')); -$UserForm->addControl(6,4,'select',_('Styles') . ':',array('name' => 'Style', 'id' => 'StylesID', 'hasparent' => true)); -$allThemes = $MainView->getTemplates(true); -$styleOptions = array(); -$i = 0; -foreach ($allThemes as $aTheme) { - //addControlOption($key,$text,$value,$isSelected = null,$parentID = null,$id = null) - $UserForm->addControlOption(5,$aTheme['themename'],$aTheme['themefolder'],($MainView->getTheme() == 'themes/' . $aTheme['themefolder']),null,$i); - if (is_array($aTheme['styles'])) { - foreach($aTheme['styles'] as $key => $style) { - $UserForm->addControlOption(6,$style,$style,($MainView->getTheme() == 'themes/' . $aTheme['themefolder'] && $MainView->getStyle() == $style),$i); - } - } - $i++; +echo '</select></td></tr>'; + +echo '<tr> + <td>' . _('Theme') . ':</td> + <td><select name="Theme">'; + +$ThemeDirectories = scandir('css/'); + + +foreach ($ThemeDirectories as $ThemeName) { + + if (is_dir('css/' . $ThemeName) AND $ThemeName != '.' AND $ThemeName != '..' AND $ThemeName != '.svn'){ + + if ($_SESSION['Theme'] == $ThemeName){ + echo '<option selected="selected" value="' . $ThemeName . '">' . $ThemeName . '</option>'; + } else { + echo '<option value="' . $ThemeName . '">' . $ThemeName . '</option>'; + } + } } if (!isset($_POST['PasswordCheck'])) { @@ -150,46 +168,53 @@ if (!isset($_POST['Password'])) { $_POST['Password']=''; } +echo '</select></td></tr> + <tr> + <td>' . _('New Password') . ':</td> + <td><input type="password" name="Password" pattern="(?!^'.$_SESSION['UserID'].'$).{5,}" title="'._('Must be more than 5 characters and cannot be as same as userid').'" placeholder="'._('More than 5 characters').'" size="20" value="' . $_POST['Password'] . '" /></td> + </tr> + <tr> + <td>' . _('Confirm Password') . ':</td> + <td><input type="password" name="PasswordCheck" pattern="(?!^'.$_SESSION['UserID'].'$).{5,}" title="'._('Must be more than 5 characters and cannot be as same as userid').'" placeholder="'._('More than 5 characters').'" size="20" value="' . $_POST['PasswordCheck'] . '" /></td> + </tr> + <tr> + <td colspan="2" align="center"><i>' . _('If you leave the password boxes empty your password will not change') . '</i></td> + </tr> + <tr> + <td>' . _('Email') . ':</td>'; -$controlsettings['name'] = 'Password'; -$controlsettings['value'] = $_POST['Password']; -$controlsettings['pattern'] = '(?!^'.$_SESSION['UserID'].'$).{5,}'; -$controlsettings['title'] = _('Must be more than 5 characters and cannot be as same as userid'); -$controlsettings['placeholder'] = _('More than 5 characters'); -$controlsettings['size'] ='20'; - -//addControl($key,$tabindex,$type,$caption = null,$settings = null,$htmlclass = null,$row = null,$order = null,$dimensions = null) -$UserForm->addControl(7,5,'password',_('New Password') . ':',$controlsettings); -$controlsettings['name'] = 'PasswordCheck'; -$controlsettings['value'] = $_POST['PasswordCheck']; -$UserForm->addControl(8,6,'password',_('Confirm Password') . ':',$controlsettings); -$UserForm->addControl(9,-1,'content',null,array( 'align' => 'center', - 'text' => '<i>' . _('If you leave the password boxes empty your password will not change') . '</i>' - )); $sql = "SELECT email from www_users WHERE userid = '" . $_SESSION['UserID'] . "'"; $result = DB_query($sql,$db); $myrow = DB_fetch_array($result); if(!isset($_POST['email'])){ $_POST['email'] = $myrow['email']; } - -$UserForm->addControl(10,7,'email', _('Email') . ':',array( 'name' => 'email', - 'size' => 40, - 'value' => $_POST['email'])); - + +echo '<td><input type="email" name="email" size="40" value="' . $_POST['email'] . '" /></td> + </tr>'; + if (!isset($_POST['PDFLanguage'])){ $_POST['PDFLanguage']=$_SESSION['PDFLanguage']; } -$UserForm->addControl(11,8,'select',_('PDF Language Support') . ':',array('name' => 'PDFLanguage')); +echo '<tr> + <td>' . _('PDF Language Support') . ': </td> + <td><select name="PDFLanguage">'; -foreach($PDFLanguages as $i => $Lang){ - //addControlOption($key,$text,$value,$isSelected = null,$id = null) - $UserForm->addControlOption(11,$Lang,$i,($_POST['PDFLanguage']==$i)); +for($i=0;$i<count($PDFLanguages);$i++){ + if ($_POST['PDFLanguage']==$i){ + echo '<option selected="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> + </div> + </form>'; -$UserForm->addControl(12,9,'submit',_('Modify'),array('name' => 'Modify', - 'value' => _('Modify'))); -$UserForm->display(); -include('includes/footer_views.inc'); -?> +include('includes/footer.inc'); +?> \ No newline at end of file |
From: <rc...@us...> - 2017-04-12 15:50:49
|
Revision: 7750 http://sourceforge.net/p/web-erp/reponame/7750 Author: rchacon Date: 2017-04-12 15:50:47 +0000 (Wed, 12 Apr 2017) Log Message: ----------- Improve code readability. Modified Paths: -------------- trunk/UserSettings.php Modified: trunk/UserSettings.php =================================================================== --- trunk/UserSettings.php 2017-04-09 20:10:23 UTC (rev 7749) +++ trunk/UserSettings.php 2017-04-12 15:50:47 UTC (rev 7750) @@ -13,10 +13,12 @@ _('User Settings'), '" /> ',// Icon title. _('User Settings'), '</p>';// Page title. -$PDFLanguages = array(_('Latin Western Languages - Times'), - _('Eastern European Russian Japanese Korean Hebrew Arabic Thai'), - _('Chinese'), - _('Free Serif')); +$PDFLanguages = array( + _('Latin Western Languages - Times'), + _('Eastern European Russian Japanese Korean Hebrew Arabic Thai'), + _('Chinese'), + _('Free Serif') +); if(isset($_POST['Modify'])) { // no input errors assumed initially before we test @@ -26,13 +28,13 @@ ie the page has called itself with some user input */ //first off validate inputs sensible - if ($_POST['DisplayRecordsMax'] <= 0){ + if($_POST['DisplayRecordsMax'] <= 0) { $InputError = 1; prnMsg(_('The Maximum Number of Records on Display entered must not be negative') . '. ' . _('0 will default to system setting'),'error'); } //!!!for the demo only - enable this check so password is not changed - if ($AllowDemoMode AND $_POST['Password'] != ''){ + if($AllowDemoMode AND $_POST['Password'] != '') { $InputError = 1; prnMsg(_('Cannot change password in the demo or others would be locked out!'),'warn'); } @@ -39,26 +41,26 @@ $UpdatePassword = 'N'; - if ($_POST['PasswordCheck'] != ''){ - if (mb_strlen($_POST['Password'])<5){ + if($_POST['PasswordCheck'] != '') { + if(mb_strlen($_POST['Password']) < 5) { $InputError = 1; prnMsg(_('The password entered must be at least 5 characters long'),'error'); - } elseif (mb_strstr($_POST['Password'],$_SESSION['UserID'])!= False){ + } elseif(mb_strstr($_POST['Password'],$_SESSION['UserID'])!= False) { $InputError = 1; - prnMsg(_('The password cannot contain the user id'),'error'); + prnMsg(_('The password cannot contain the user id'), 'error'); } - if ($_POST['Password'] != $_POST['PasswordCheck']){ + if($_POST['Password'] != $_POST['PasswordCheck']) { $InputError = 1; - prnMsg(_('The password and password confirmation fields entered do not match'),'error'); - }else{ + prnMsg(_('The password and password confirmation fields entered do not match'), 'error'); + } else { $UpdatePassword = 'Y'; } } - if ($InputError != 1) { + if($InputError != 1) { // no errors - if ($UpdatePassword != 'Y'){ + if($UpdatePassword != 'Y') { $sql = "UPDATE www_users SET displayrecordsmax='" . $_POST['DisplayRecordsMax'] . "', theme='" . $_POST['Theme'] . "', @@ -68,9 +70,9 @@ showfieldhelp='" . $_POST['ShowFieldHelp'] . "', pdflanguage='" . $_POST['PDFLanguage'] . "' WHERE userid = '" . $_SESSION['UserID'] . "'"; - $ErrMsg = _('The user alterations could not be processed because'); + $ErrMsg = _('The user alterations could not be processed because'); $DbgMsg = _('The SQL that was used to update the user and failed was'); - $result = DB_query($sql, $ErrMsg, $DbgMsg); + $Result = DB_query($sql, $ErrMsg, $DbgMsg); prnMsg( _('The user settings have been updated') . '. ' . _('Be sure to remember your password for the next time you login'),'success'); } else { $sql = "UPDATE www_users @@ -83,9 +85,9 @@ pdflanguage='" . $_POST['PDFLanguage'] . "', password='" . CryptPass($_POST['Password']) . "' WHERE userid = '" . $_SESSION['UserID'] . "'"; - $ErrMsg = _('The user alterations could not be processed because'); + $ErrMsg = _('The user alterations could not be processed because'); $DbgMsg = _('The SQL that was used to update the user and failed was'); - $result = DB_query($sql, $ErrMsg, $DbgMsg); + $Result = DB_query($sql, $ErrMsg, $DbgMsg); prnMsg(_('The user settings have been updated'),'success'); } // Update the session variables to reflect user changes on-the-fly: @@ -96,7 +98,7 @@ $_SESSION['ShowPageHelp'] = $_POST['ShowPageHelp']; $_SESSION['ShowFieldHelp'] = $_POST['ShowFieldHelp']; $_SESSION['PDFLanguage'] = $_POST['PDFLanguage']; - include ('includes/LanguageSetup.php'); // After last changes in LanguageSetup.php, is it required to update? + include('includes/LanguageSetup.php');// After last changes in LanguageSetup.php, is it required to update? } } @@ -110,20 +112,17 @@ echo '<table class="selection"> <tr> - <td>' . _('User ID') . ':</td> - <td>' . $_SESSION['UserID'] . '</td> + <td>', _('User ID'), ':</td> + <td>', $_SESSION['UserID'], '</td> + </tr> + <tr> + <td>', _('User Name'), ':</td> + <td>', $_SESSION['UsersRealName'], '<input name="RealName" type="hidden" value="', $_SESSION['UsersRealName'], '" /></td></tr> + <tr> + <td>', _('Maximum Number of Records to Display'), ':</td> + <td><input class="integer" maxlength="3" name="DisplayRecordsMax" required="required" size="3" title="', _('The input must be positive integer'), '" type="text" value="', $_POST['DisplayRecordsMax'], '" /></td> </tr>'; -echo '<tr> - <td>' . _('User Name') . ':</td> - <td>' . $_SESSION['UsersRealName'] . ' - <input type="hidden" name="RealName" value="'.$_SESSION['UsersRealName'].'" /></td></tr>'; - -echo '<tr> - <td>' . _('Maximum Number of Records to Display') . ':</td> - <td><input type="text" class="integer" required="required" title="'._('The input must be positive integer').'" name="DisplayRecordsMax" size="3" maxlength="3" value="' . $_POST['DisplayRecordsMax'] . '" /></td> - </tr>'; - // Select language: echo '<tr> <td>', _('Language'), ':</td> @@ -151,9 +150,9 @@ foreach ($ThemeDirectories as $ThemeName) { - if (is_dir('css/' . $ThemeName) AND $ThemeName != '.' AND $ThemeName != '..' AND $ThemeName != '.svn'){ + if(is_dir('css/' . $ThemeName) AND $ThemeName != '.' AND $ThemeName != '..' AND $ThemeName != '.svn') { - if ($_SESSION['Theme'] == $ThemeName){ + if($_SESSION['Theme'] == $ThemeName) { echo '<option selected="selected" value="' . $ThemeName . '">' . $ThemeName . '</option>'; } else { echo '<option value="' . $ThemeName . '">' . $ThemeName . '</option>'; @@ -161,26 +160,28 @@ } } -if (!isset($_POST['PasswordCheck'])) { +if(!isset($_POST['PasswordCheck'])) { $_POST['PasswordCheck']=''; } -if (!isset($_POST['Password'])) { +if(!isset($_POST['Password'])) { $_POST['Password']=''; } -echo '</select></td></tr> +echo '</select> + </td> + </tr> <tr> - <td>' . _('New Password') . ':</td> - <td><input type="password" name="Password" pattern="(?!^'.$_SESSION['UserID'].'$).{5,}" title="'._('Must be more than 5 characters and cannot be as same as userid').'" placeholder="'._('More than 5 characters').'" size="20" value="' . $_POST['Password'] . '" /></td> + <td>', _('New Password'), ':</td> + <td><input name="Password" pattern="(?!^', $_SESSION['UserID'], '$).{5,}" placeholder="', _('More than 5 characters'), '" size="20" title="', _('Must be more than 5 characters and cannot be as same as userid'), '" type="password" value="', $_POST['Password'], '" /></td> </tr> <tr> - <td>' . _('Confirm Password') . ':</td> - <td><input type="password" name="PasswordCheck" pattern="(?!^'.$_SESSION['UserID'].'$).{5,}" title="'._('Must be more than 5 characters and cannot be as same as userid').'" placeholder="'._('More than 5 characters').'" size="20" value="' . $_POST['PasswordCheck'] . '" /></td> + <td>', _('Confirm Password'), ':</td> + <td><input name="PasswordCheck" pattern="(?!^', $_SESSION['UserID'], '$).{5,}" placeholder="', _('More than 5 characters'), '" size="20" title="', _('Must be more than 5 characters and cannot be as same as userid'), '" type="password" value="', $_POST['PasswordCheck'], '" /></td> </tr> <tr> - <td colspan="2" align="center"><i>' . _('If you leave the password boxes empty your password will not change') . '</i></td> + <td align="center" colspan="2"><i>', _('If you leave the password boxes empty your password will not change'), '</i></td> </tr> <tr> - <td>' . _('Email') . ':</td>'; + <td>', _('Email'), ':</td>'; $sql = "SELECT email, @@ -187,16 +188,16 @@ showpagehelp, showfieldhelp from www_users WHERE userid = '" . $_SESSION['UserID'] . "'"; -$result = DB_query($sql); -$myrow = DB_fetch_array($result); +$Result = DB_query($sql); +$myrow = DB_fetch_array($Result); -if(!isset($_POST['email'])){ +if(!isset($_POST['email'])) { $_POST['email'] = $myrow['email']; } $_POST['ShowPageHelp'] = $myrow['showpagehelp']; $_POST['ShowFieldHelp'] = $myrow['showfieldhelp']; -echo '<td><input type="email" name="email" size="40" value="' . $_POST['email'] . '" /></td> +echo '<td><input name="email" size="40" type="email" value="', $_POST['email'], '" /></td> </tr>'; // Turn off/on page help: @@ -230,17 +231,17 @@ '</td> </tr>'; // PDF Language Support: -if (!isset($_POST['PDFLanguage'])){ +if(!isset($_POST['PDFLanguage'])) { $_POST['PDFLanguage']=$_SESSION['PDFLanguage']; } echo '<tr> - <td>' . _('PDF Language Support') . ': </td> + <td>', _('PDF Language Support'), ': </td> <td><select name="PDFLanguage">'; -for($i=0;$i<count($PDFLanguages);$i++){ - if ($_POST['PDFLanguage']==$i){ - echo '<option selected="selected" value="' . $i .'">' . $PDFLanguages[$i] . '</option>'; +for($i=0; $i<count($PDFLanguages); $i++) { + if($_POST['PDFLanguage'] == $i) { + echo '<option selected="selected" value="', $i, '">', $PDFLanguages[$i], '</option>'; } else { - echo '<option value="' . $i .'">' . $PDFLanguages[$i]. '</option>'; + echo '<option value="', $i, '">', $PDFLanguages[$i], '</option>'; } } echo '</select></td> @@ -247,8 +248,8 @@ </tr> </table> <br /> - <div class="centre"><input type="submit" name="Modify" value="' . _('Modify') . '" /></div> - </div> + <div class="centre"><input name="Modify" type="submit" value="', _('Modify'), '" /></div> + </div> </form>'; include('includes/footer.inc'); |