From: Phil D. <we...@pa...> - 2004-08-29 04:49:09
|
Steve, Many hearty thanks for your latest contributions - it feels absolutely great not to be on my own with this anymore! I included the lot of it with just a couple of mods. I put language in the user settings script and made it look up the available directories for theme and language rather than hard coding them. As discussed I didn't see the requirement for the enable javascript option - this may be my understanding - and I was not keen on the small / two storey quick links. I used the user name as the link to user settings. The scripts that didnt display properly I resolved by including footer.inc and removing the </body></html> from these. I changed references to mysql specific functions to the DB abstraction functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = 1; where there was a new search - an error was returned where the previous page offset was too big for a smaller recordset returned with a new search. Got into trouble with SelectProduct.php a bit you may want to have another look but I couldnt get it to select an item. I eventually got it working somewhat but its a bit of a hack with a check to make sure the pageoffset is beyond the max - this caused an error if ($_POST['PageOffset']>$ListPageMax){ $_POST['PageOffset'] = $ListPageMax; } Also the hidden $_POST['Search'] I removed in favour of checking Go, Next and Previous. I also tried to encapsulate all the strings in _("string") for multi-language. I do like the diff file to work through what was actually changed it saves a massive amount of work really - so thanks for making it so easy! If you'd like to, please do add some comment about your contributions in a comment at the start of the script. Phil > A bit of java for the help may be very useful. It is a real pain and > confusing for many users to have the help appear full screen in > browser. Here's some code for Help.php that would do it if you > want... > > <?php > /* $Revision: 1.5 $ */ > > if (isset($_GET['Title'])){ > $HelpPageTitle = $_GET['Title']; > }elseif(isset($_POST['HelpPageTitle'])){ > $HelpPageTitle = $_POST['HelpPageTitle']; > } > > $title = "Help On " . $HelpPageTitle; > > $PageSecurity = 1; > > include("includes/session.inc"); > include("includes/header.inc"); > include('includes/htmlMimeMail.php'); > ?> > > <script language="JavaScript" type="text/javascript"> > <!-- > // resize window > window.resizeTo(900,500); > window.moveTo(15,200); > //--> > </script> > > <?php > if (isset($_GET['Page'])){ > $Page = $_GET['Page']; > } elseif (isset($_POST['Page'])){ > $Page = $_POST['Page']; > } > ... > > Steve > > |
From: Daintrees <p.d...@pa...> - 2004-09-02 19:59:34
|
I fixed this last night. Sorry bout that.... Phil ----- Original Message ----- From: "skaill" <sk...@ro...> To: <web...@li...> Sent: Thursday, September 02, 2004 11:34 PM Subject: Re: [Web-erp-developers] Re: Fw: Window Resize > The record max is working but Go does not work to change to any but page 1 > and Next does not work for anything but page 1 or 2 even if there are 5 > pages. > > I think a bit of my code was missed, Phil. Possibly incrementing the page. > Let me know if you want me to look into it further. > > Steve > > ----- Original Message ----- > From: "Phil Daintree" <we...@pa...> > To: <web...@li...> > Sent: Thursday, September 02, 2004 3:37 AM > Subject: Re: [Web-erp-developers] Re: Fw: Window Resize > > > > Whoops! Glad you are checking the standards are slipping. > > All fixed now ?? I hope. > > > > Phil > > > > On Thu, 2004-09-02 at 13:11, skaill wrote: > > > Phil, the paging does not seem to be working on the latest cvs I > downloaded > > > unless I've done something wrong. Where I switch pages it sticks on 1. > > > Also, even though my user settings say I am set at DisplayRecordsMax=50 > I am > > > paging on 4 records. Next seems to work to move to page 2 but not 3. > What > > > I checked was Select Customer with "a". > > > > > > Steve > > > > > > ----- Original Message ----- > > > From: "Phil Daintree" <we...@pa...> > > > To: <web...@li...> > > > Sent: Sunday, August 29, 2004 12:50 PM > > > Subject: [Web-erp-developers] Re: Fw: Window Resize > > > > > > > > > > Steve, > > > > > > > > Many hearty thanks for your latest contributions - it feels absolutely > > > > great not to be on my own with this anymore! > > > > > > > > I included the lot of it with just a couple of mods. I put language in > > > > the user settings script and made it look up the available directories > > > > for theme and language rather than hard coding them. As discussed I > > > > didn't see the requirement for the enable javascript option - this may > > > > be my understanding - and I was not keen on the small / two storey > quick > > > > links. I used the user name as the link to user settings. > > > > > > > > The scripts that didnt display properly I resolved by including > > > > footer.inc and removing the </body></html> from these. > > > > > > > > I changed references to mysql specific functions to the DB abstraction > > > > functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = > 1; > > > > where there was a new search - an error was returned where the > previous > > > > page offset was too big for a smaller recordset returned with a new > > > > search. Got into trouble with SelectProduct.php a bit you may want to > > > > have another look but I couldnt get it to select an item. I eventually > > > > got it working somewhat but its a bit of a hack with a check to make > > > > sure the pageoffset is beyond the max - this caused an error > > > > > > > > if ($_POST['PageOffset']>$ListPageMax){ > > > > $_POST['PageOffset'] = $ListPageMax; > > > > } > > > > > > > > Also the hidden $_POST['Search'] I removed in favour of checking Go, > > > > Next and Previous. > > > > > > > > I also tried to encapsulate all the strings in _("string") for > > > > multi-language. > > > > > > > > I do like the diff file to work through what was actually changed it > > > > saves a massive amount of work really - so thanks for making it so > easy! > > > > > > > > > > > > If you'd like to, please do add some comment about your contributions > in > > > > a comment at the start of the script. > > > > > > > > Phil > > > > > > > > > A bit of java for the help may be very useful. It is a real pain > and > > > > > confusing for many users to have the help appear full screen in > > > > > browser. Here's some code for Help.php that would do it if you > > > > > want... > > > > > > > > > > <?php > > > > > /* $Revision: 1.5 $ */ > > > > > > > > > > if (isset($_GET['Title'])){ > > > > > $HelpPageTitle = $_GET['Title']; > > > > > }elseif(isset($_POST['HelpPageTitle'])){ > > > > > $HelpPageTitle = $_POST['HelpPageTitle']; > > > > > } > > > > > > > > > > $title = "Help On " . $HelpPageTitle; > > > > > > > > > > $PageSecurity = 1; > > > > > > > > > > include("includes/session.inc"); > > > > > include("includes/header.inc"); > > > > > include('includes/htmlMimeMail.php'); > > > > > ?> > > > > > > > > > > <script language="JavaScript" type="text/javascript"> > > > > > <!-- > > > > > // resize window > > > > > window.resizeTo(900,500); > > > > > window.moveTo(15,200); > > > > > //--> > > > > > </script> > > > > > > > > > > <?php > > > > > if (isset($_GET['Page'])){ > > > > > $Page = $_GET['Page']; > > > > > } elseif (isset($_POST['Page'])){ > > > > > $Page = $_POST['Page']; > > > > > } > > > > > ... > > > > > > > > > > Steve > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by BEA Weblogic Workshop > > > > FREE Java Enterprise J2EE developer tools! > > > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > > > _______________________________________________ > > > > Web-erp-developers mailing list > > > > Web...@li... > > > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by BEA Weblogic Workshop > > > FREE Java Enterprise J2EE developer tools! > > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > > _______________________________________________ > > > Web-erp-developers mailing list > > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: Daintrees <p.d...@pa...> - 2004-09-03 21:46:29
|
thanks Steve ----- Original Message ----- From: "skaill" <sk...@ro...> To: <web...@li...> Sent: Saturday, September 04, 2004 1:38 AM Subject: Re: [Web-erp-developers] Re: Fw: Window Resize > Hi Phil, > > There is a problem with the latest cvs. It is in session.inc and is related > to the following new change: > > From > if (!function_exists('_')){ > function _ ($text){ > return $text; > } > } > > To > if (!function_exists('gettext')){ > function _($text){ > return gettext($text); > } > } > > If gettext does not exist then gettext cannot be returned. > > Steve > > ----- Original Message ----- > From: "Phil Daintree" <we...@pa...> > To: <web...@li...> > Sent: Friday, September 03, 2004 2:36 AM > Subject: Re: [Web-erp-developers] Re: Fw: Window Resize > > > > OK - have updated the upgrade script as suggested. > > > > Phil > > > > On Thu, 2004-09-02 at 23:02, skaill wrote: > > > Hi Phil, > > > > > > You may want to add a sql statement in the update to put defaults into > all > > > existing users for the new user fields. When I first came up I didn't > have > > > a css until I set one in User Settings. Theme should probably also have > a > > > default in the table of "professional". > > > > > > Steve > > > > > > ----- Original Message ----- > > > From: "Phil Daintree" <we...@pa...> > > > To: <web...@li...> > > > Sent: Sunday, August 29, 2004 12:50 PM > > > Subject: [Web-erp-developers] Re: Fw: Window Resize > > > > > > > > > > Steve, > > > > > > > > Many hearty thanks for your latest contributions - it feels absolutely > > > > great not to be on my own with this anymore! > > > > > > > > I included the lot of it with just a couple of mods. I put language in > > > > the user settings script and made it look up the available directories > > > > for theme and language rather than hard coding them. As discussed I > > > > didn't see the requirement for the enable javascript option - this may > > > > be my understanding - and I was not keen on the small / two storey > quick > > > > links. I used the user name as the link to user settings. > > > > > > > > The scripts that didnt display properly I resolved by including > > > > footer.inc and removing the </body></html> from these. > > > > > > > > I changed references to mysql specific functions to the DB abstraction > > > > functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = > 1; > > > > where there was a new search - an error was returned where the > previous > > > > page offset was too big for a smaller recordset returned with a new > > > > search. Got into trouble with SelectProduct.php a bit you may want to > > > > have another look but I couldnt get it to select an item. I eventually > > > > got it working somewhat but its a bit of a hack with a check to make > > > > sure the pageoffset is beyond the max - this caused an error > > > > > > > > if ($_POST['PageOffset']>$ListPageMax){ > > > > $_POST['PageOffset'] = $ListPageMax; > > > > } > > > > > > > > Also the hidden $_POST['Search'] I removed in favour of checking Go, > > > > Next and Previous. > > > > > > > > I also tried to encapsulate all the strings in _("string") for > > > > multi-language. > > > > > > > > I do like the diff file to work through what was actually changed it > > > > saves a massive amount of work really - so thanks for making it so > easy! > > > > > > > > > > > > If you'd like to, please do add some comment about your contributions > in > > > > a comment at the start of the script. > > > > > > > > Phil > > > > > > > > > A bit of java for the help may be very useful. It is a real pain > and > > > > > confusing for many users to have the help appear full screen in > > > > > browser. Here's some code for Help.php that would do it if you > > > > > want... > > > > > > > > > > <?php > > > > > /* $Revision: 1.5 $ */ > > > > > > > > > > if (isset($_GET['Title'])){ > > > > > $HelpPageTitle = $_GET['Title']; > > > > > }elseif(isset($_POST['HelpPageTitle'])){ > > > > > $HelpPageTitle = $_POST['HelpPageTitle']; > > > > > } > > > > > > > > > > $title = "Help On " . $HelpPageTitle; > > > > > > > > > > $PageSecurity = 1; > > > > > > > > > > include("includes/session.inc"); > > > > > include("includes/header.inc"); > > > > > include('includes/htmlMimeMail.php'); > > > > > ?> > > > > > > > > > > <script language="JavaScript" type="text/javascript"> > > > > > <!-- > > > > > // resize window > > > > > window.resizeTo(900,500); > > > > > window.moveTo(15,200); > > > > > //--> > > > > > </script> > > > > > > > > > > <?php > > > > > if (isset($_GET['Page'])){ > > > > > $Page = $_GET['Page']; > > > > > } elseif (isset($_POST['Page'])){ > > > > > $Page = $_POST['Page']; > > > > > } > > > > > ... > > > > > > > > > > Steve > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.Net email is sponsored by BEA Weblogic Workshop > > > > FREE Java Enterprise J2EE developer tools! > > > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > > > _______________________________________________ > > > > Web-erp-developers mailing list > > > > Web...@li... > > > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by BEA Weblogic Workshop > > > FREE Java Enterprise J2EE developer tools! > > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > > _______________________________________________ > > > Web-erp-developers mailing list > > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: skaill <sk...@ro...> - 2004-08-30 20:36:40
|
Sounds great! Hopefully you will get more help in the future, Phil because you (and webERP) deserve it ;) I wanted to do a lookup or at least hard coded combo box for themes too ;) Ah, the user name should be good. Possibly could have a small Preferences link beside their name instead but either way suffices. Say, we build in Javascript drop-down menus but a user prefers the regular menus and is used to them. Possibly they are running on a slower machine, PDA, etc. and find the Javascript too slow or doesn't work. The Javascript flag allows them to turn on or off the Javascript according to the device they happen to be using and their own preference which is how they work best. Yes, I think that was the problem with those 4 scripts. I will continue to include both diff and files in the future. Whatever's easier/fastest. Steve ----- Original Message ----- From: "Phil Daintree" <we...@pa...> To: <web...@li...> Sent: Sunday, August 29, 2004 12:50 PM Subject: [Web-erp-developers] Re: Fw: Window Resize > Steve, > > Many hearty thanks for your latest contributions - it feels absolutely > great not to be on my own with this anymore! > > I included the lot of it with just a couple of mods. I put language in > the user settings script and made it look up the available directories > for theme and language rather than hard coding them. As discussed I > didn't see the requirement for the enable javascript option - this may > be my understanding - and I was not keen on the small / two storey quick > links. I used the user name as the link to user settings. > > The scripts that didnt display properly I resolved by including > footer.inc and removing the </body></html> from these. > > I changed references to mysql specific functions to the DB abstraction > functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = 1; > where there was a new search - an error was returned where the previous > page offset was too big for a smaller recordset returned with a new > search. Got into trouble with SelectProduct.php a bit you may want to > have another look but I couldnt get it to select an item. I eventually > got it working somewhat but its a bit of a hack with a check to make > sure the pageoffset is beyond the max - this caused an error > > if ($_POST['PageOffset']>$ListPageMax){ > $_POST['PageOffset'] = $ListPageMax; > } > > Also the hidden $_POST['Search'] I removed in favour of checking Go, > Next and Previous. > > I also tried to encapsulate all the strings in _("string") for > multi-language. > > I do like the diff file to work through what was actually changed it > saves a massive amount of work really - so thanks for making it so easy! > > > If you'd like to, please do add some comment about your contributions in > a comment at the start of the script. > > Phil > > > A bit of java for the help may be very useful. It is a real pain and > > confusing for many users to have the help appear full screen in > > browser. Here's some code for Help.php that would do it if you > > want... > > > > <?php > > /* $Revision: 1.5 $ */ > > > > if (isset($_GET['Title'])){ > > $HelpPageTitle = $_GET['Title']; > > }elseif(isset($_POST['HelpPageTitle'])){ > > $HelpPageTitle = $_POST['HelpPageTitle']; > > } > > > > $title = "Help On " . $HelpPageTitle; > > > > $PageSecurity = 1; > > > > include("includes/session.inc"); > > include("includes/header.inc"); > > include('includes/htmlMimeMail.php'); > > ?> > > > > <script language="JavaScript" type="text/javascript"> > > <!-- > > // resize window > > window.resizeTo(900,500); > > window.moveTo(15,200); > > //--> > > </script> > > > > <?php > > if (isset($_GET['Page'])){ > > $Page = $_GET['Page']; > > } elseif (isset($_POST['Page'])){ > > $Page = $_POST['Page']; > > } > > ... > > > > Steve > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: skaill <sk...@ro...> - 2004-09-02 01:11:13
|
Phil, the paging does not seem to be working on the latest cvs I downloaded unless I've done something wrong. Where I switch pages it sticks on 1. Also, even though my user settings say I am set at DisplayRecordsMax=50 I am paging on 4 records. Next seems to work to move to page 2 but not 3. What I checked was Select Customer with "a". Steve ----- Original Message ----- From: "Phil Daintree" <we...@pa...> To: <web...@li...> Sent: Sunday, August 29, 2004 12:50 PM Subject: [Web-erp-developers] Re: Fw: Window Resize > Steve, > > Many hearty thanks for your latest contributions - it feels absolutely > great not to be on my own with this anymore! > > I included the lot of it with just a couple of mods. I put language in > the user settings script and made it look up the available directories > for theme and language rather than hard coding them. As discussed I > didn't see the requirement for the enable javascript option - this may > be my understanding - and I was not keen on the small / two storey quick > links. I used the user name as the link to user settings. > > The scripts that didnt display properly I resolved by including > footer.inc and removing the </body></html> from these. > > I changed references to mysql specific functions to the DB abstraction > functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = 1; > where there was a new search - an error was returned where the previous > page offset was too big for a smaller recordset returned with a new > search. Got into trouble with SelectProduct.php a bit you may want to > have another look but I couldnt get it to select an item. I eventually > got it working somewhat but its a bit of a hack with a check to make > sure the pageoffset is beyond the max - this caused an error > > if ($_POST['PageOffset']>$ListPageMax){ > $_POST['PageOffset'] = $ListPageMax; > } > > Also the hidden $_POST['Search'] I removed in favour of checking Go, > Next and Previous. > > I also tried to encapsulate all the strings in _("string") for > multi-language. > > I do like the diff file to work through what was actually changed it > saves a massive amount of work really - so thanks for making it so easy! > > > If you'd like to, please do add some comment about your contributions in > a comment at the start of the script. > > Phil > > > A bit of java for the help may be very useful. It is a real pain and > > confusing for many users to have the help appear full screen in > > browser. Here's some code for Help.php that would do it if you > > want... > > > > <?php > > /* $Revision: 1.5 $ */ > > > > if (isset($_GET['Title'])){ > > $HelpPageTitle = $_GET['Title']; > > }elseif(isset($_POST['HelpPageTitle'])){ > > $HelpPageTitle = $_POST['HelpPageTitle']; > > } > > > > $title = "Help On " . $HelpPageTitle; > > > > $PageSecurity = 1; > > > > include("includes/session.inc"); > > include("includes/header.inc"); > > include('includes/htmlMimeMail.php'); > > ?> > > > > <script language="JavaScript" type="text/javascript"> > > <!-- > > // resize window > > window.resizeTo(900,500); > > window.moveTo(15,200); > > //--> > > </script> > > > > <?php > > if (isset($_GET['Page'])){ > > $Page = $_GET['Page']; > > } elseif (isset($_POST['Page'])){ > > $Page = $_POST['Page']; > > } > > ... > > > > Steve > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Phil D. <we...@pa...> - 2004-09-02 07:37:17
|
Whoops! Glad you are checking the standards are slipping. All fixed now ?? I hope. Phil On Thu, 2004-09-02 at 13:11, skaill wrote: > Phil, the paging does not seem to be working on the latest cvs I downloaded > unless I've done something wrong. Where I switch pages it sticks on 1. > Also, even though my user settings say I am set at DisplayRecordsMax=50 I am > paging on 4 records. Next seems to work to move to page 2 but not 3. What > I checked was Select Customer with "a". > > Steve > > ----- Original Message ----- > From: "Phil Daintree" <we...@pa...> > To: <web...@li...> > Sent: Sunday, August 29, 2004 12:50 PM > Subject: [Web-erp-developers] Re: Fw: Window Resize > > > > Steve, > > > > Many hearty thanks for your latest contributions - it feels absolutely > > great not to be on my own with this anymore! > > > > I included the lot of it with just a couple of mods. I put language in > > the user settings script and made it look up the available directories > > for theme and language rather than hard coding them. As discussed I > > didn't see the requirement for the enable javascript option - this may > > be my understanding - and I was not keen on the small / two storey quick > > links. I used the user name as the link to user settings. > > > > The scripts that didnt display properly I resolved by including > > footer.inc and removing the </body></html> from these. > > > > I changed references to mysql specific functions to the DB abstraction > > functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = 1; > > where there was a new search - an error was returned where the previous > > page offset was too big for a smaller recordset returned with a new > > search. Got into trouble with SelectProduct.php a bit you may want to > > have another look but I couldnt get it to select an item. I eventually > > got it working somewhat but its a bit of a hack with a check to make > > sure the pageoffset is beyond the max - this caused an error > > > > if ($_POST['PageOffset']>$ListPageMax){ > > $_POST['PageOffset'] = $ListPageMax; > > } > > > > Also the hidden $_POST['Search'] I removed in favour of checking Go, > > Next and Previous. > > > > I also tried to encapsulate all the strings in _("string") for > > multi-language. > > > > I do like the diff file to work through what was actually changed it > > saves a massive amount of work really - so thanks for making it so easy! > > > > > > If you'd like to, please do add some comment about your contributions in > > a comment at the start of the script. > > > > Phil > > > > > A bit of java for the help may be very useful. It is a real pain and > > > confusing for many users to have the help appear full screen in > > > browser. Here's some code for Help.php that would do it if you > > > want... > > > > > > <?php > > > /* $Revision: 1.5 $ */ > > > > > > if (isset($_GET['Title'])){ > > > $HelpPageTitle = $_GET['Title']; > > > }elseif(isset($_POST['HelpPageTitle'])){ > > > $HelpPageTitle = $_POST['HelpPageTitle']; > > > } > > > > > > $title = "Help On " . $HelpPageTitle; > > > > > > $PageSecurity = 1; > > > > > > include("includes/session.inc"); > > > include("includes/header.inc"); > > > include('includes/htmlMimeMail.php'); > > > ?> > > > > > > <script language="JavaScript" type="text/javascript"> > > > <!-- > > > // resize window > > > window.resizeTo(900,500); > > > window.moveTo(15,200); > > > //--> > > > </script> > > > > > > <?php > > > if (isset($_GET['Page'])){ > > > $Page = $_GET['Page']; > > > } elseif (isset($_POST['Page'])){ > > > $Page = $_POST['Page']; > > > } > > > ... > > > > > > Steve > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: skaill <sk...@ro...> - 2004-09-02 11:33:55
|
The record max is working but Go does not work to change to any but page 1 and Next does not work for anything but page 1 or 2 even if there are 5 pages. I think a bit of my code was missed, Phil. Possibly incrementing the page. Let me know if you want me to look into it further. Steve ----- Original Message ----- From: "Phil Daintree" <we...@pa...> To: <web...@li...> Sent: Thursday, September 02, 2004 3:37 AM Subject: Re: [Web-erp-developers] Re: Fw: Window Resize > Whoops! Glad you are checking the standards are slipping. > All fixed now ?? I hope. > > Phil > > On Thu, 2004-09-02 at 13:11, skaill wrote: > > Phil, the paging does not seem to be working on the latest cvs I downloaded > > unless I've done something wrong. Where I switch pages it sticks on 1. > > Also, even though my user settings say I am set at DisplayRecordsMax=50 I am > > paging on 4 records. Next seems to work to move to page 2 but not 3. What > > I checked was Select Customer with "a". > > > > Steve > > > > ----- Original Message ----- > > From: "Phil Daintree" <we...@pa...> > > To: <web...@li...> > > Sent: Sunday, August 29, 2004 12:50 PM > > Subject: [Web-erp-developers] Re: Fw: Window Resize > > > > > > > Steve, > > > > > > Many hearty thanks for your latest contributions - it feels absolutely > > > great not to be on my own with this anymore! > > > > > > I included the lot of it with just a couple of mods. I put language in > > > the user settings script and made it look up the available directories > > > for theme and language rather than hard coding them. As discussed I > > > didn't see the requirement for the enable javascript option - this may > > > be my understanding - and I was not keen on the small / two storey quick > > > links. I used the user name as the link to user settings. > > > > > > The scripts that didnt display properly I resolved by including > > > footer.inc and removing the </body></html> from these. > > > > > > I changed references to mysql specific functions to the DB abstraction > > > functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = 1; > > > where there was a new search - an error was returned where the previous > > > page offset was too big for a smaller recordset returned with a new > > > search. Got into trouble with SelectProduct.php a bit you may want to > > > have another look but I couldnt get it to select an item. I eventually > > > got it working somewhat but its a bit of a hack with a check to make > > > sure the pageoffset is beyond the max - this caused an error > > > > > > if ($_POST['PageOffset']>$ListPageMax){ > > > $_POST['PageOffset'] = $ListPageMax; > > > } > > > > > > Also the hidden $_POST['Search'] I removed in favour of checking Go, > > > Next and Previous. > > > > > > I also tried to encapsulate all the strings in _("string") for > > > multi-language. > > > > > > I do like the diff file to work through what was actually changed it > > > saves a massive amount of work really - so thanks for making it so easy! > > > > > > > > > If you'd like to, please do add some comment about your contributions in > > > a comment at the start of the script. > > > > > > Phil > > > > > > > A bit of java for the help may be very useful. It is a real pain and > > > > confusing for many users to have the help appear full screen in > > > > browser. Here's some code for Help.php that would do it if you > > > > want... > > > > > > > > <?php > > > > /* $Revision: 1.5 $ */ > > > > > > > > if (isset($_GET['Title'])){ > > > > $HelpPageTitle = $_GET['Title']; > > > > }elseif(isset($_POST['HelpPageTitle'])){ > > > > $HelpPageTitle = $_POST['HelpPageTitle']; > > > > } > > > > > > > > $title = "Help On " . $HelpPageTitle; > > > > > > > > $PageSecurity = 1; > > > > > > > > include("includes/session.inc"); > > > > include("includes/header.inc"); > > > > include('includes/htmlMimeMail.php'); > > > > ?> > > > > > > > > <script language="JavaScript" type="text/javascript"> > > > > <!-- > > > > // resize window > > > > window.resizeTo(900,500); > > > > window.moveTo(15,200); > > > > //--> > > > > </script> > > > > > > > > <?php > > > > if (isset($_GET['Page'])){ > > > > $Page = $_GET['Page']; > > > > } elseif (isset($_POST['Page'])){ > > > > $Page = $_POST['Page']; > > > > } > > > > ... > > > > > > > > Steve > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by BEA Weblogic Workshop > > > FREE Java Enterprise J2EE developer tools! > > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > > _______________________________________________ > > > Web-erp-developers mailing list > > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: skaill <sk...@ro...> - 2004-09-02 11:02:24
|
Hi Phil, You may want to add a sql statement in the update to put defaults into all existing users for the new user fields. When I first came up I didn't have a css until I set one in User Settings. Theme should probably also have a default in the table of "professional". Steve ----- Original Message ----- From: "Phil Daintree" <we...@pa...> To: <web...@li...> Sent: Sunday, August 29, 2004 12:50 PM Subject: [Web-erp-developers] Re: Fw: Window Resize > Steve, > > Many hearty thanks for your latest contributions - it feels absolutely > great not to be on my own with this anymore! > > I included the lot of it with just a couple of mods. I put language in > the user settings script and made it look up the available directories > for theme and language rather than hard coding them. As discussed I > didn't see the requirement for the enable javascript option - this may > be my understanding - and I was not keen on the small / two storey quick > links. I used the user name as the link to user settings. > > The scripts that didnt display properly I resolved by including > footer.inc and removing the </body></html> from these. > > I changed references to mysql specific functions to the DB abstraction > functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = 1; > where there was a new search - an error was returned where the previous > page offset was too big for a smaller recordset returned with a new > search. Got into trouble with SelectProduct.php a bit you may want to > have another look but I couldnt get it to select an item. I eventually > got it working somewhat but its a bit of a hack with a check to make > sure the pageoffset is beyond the max - this caused an error > > if ($_POST['PageOffset']>$ListPageMax){ > $_POST['PageOffset'] = $ListPageMax; > } > > Also the hidden $_POST['Search'] I removed in favour of checking Go, > Next and Previous. > > I also tried to encapsulate all the strings in _("string") for > multi-language. > > I do like the diff file to work through what was actually changed it > saves a massive amount of work really - so thanks for making it so easy! > > > If you'd like to, please do add some comment about your contributions in > a comment at the start of the script. > > Phil > > > A bit of java for the help may be very useful. It is a real pain and > > confusing for many users to have the help appear full screen in > > browser. Here's some code for Help.php that would do it if you > > want... > > > > <?php > > /* $Revision: 1.5 $ */ > > > > if (isset($_GET['Title'])){ > > $HelpPageTitle = $_GET['Title']; > > }elseif(isset($_POST['HelpPageTitle'])){ > > $HelpPageTitle = $_POST['HelpPageTitle']; > > } > > > > $title = "Help On " . $HelpPageTitle; > > > > $PageSecurity = 1; > > > > include("includes/session.inc"); > > include("includes/header.inc"); > > include('includes/htmlMimeMail.php'); > > ?> > > > > <script language="JavaScript" type="text/javascript"> > > <!-- > > // resize window > > window.resizeTo(900,500); > > window.moveTo(15,200); > > //--> > > </script> > > > > <?php > > if (isset($_GET['Page'])){ > > $Page = $_GET['Page']; > > } elseif (isset($_POST['Page'])){ > > $Page = $_POST['Page']; > > } > > ... > > > > Steve > > > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |
From: Phil D. <we...@pa...> - 2004-09-03 06:38:50
|
OK - have updated the upgrade script as suggested. Phil On Thu, 2004-09-02 at 23:02, skaill wrote: > Hi Phil, > > You may want to add a sql statement in the update to put defaults into all > existing users for the new user fields. When I first came up I didn't have > a css until I set one in User Settings. Theme should probably also have a > default in the table of "professional". > > Steve > > ----- Original Message ----- > From: "Phil Daintree" <we...@pa...> > To: <web...@li...> > Sent: Sunday, August 29, 2004 12:50 PM > Subject: [Web-erp-developers] Re: Fw: Window Resize > > > > Steve, > > > > Many hearty thanks for your latest contributions - it feels absolutely > > great not to be on my own with this anymore! > > > > I included the lot of it with just a couple of mods. I put language in > > the user settings script and made it look up the available directories > > for theme and language rather than hard coding them. As discussed I > > didn't see the requirement for the enable javascript option - this may > > be my understanding - and I was not keen on the small / two storey quick > > links. I used the user name as the link to user settings. > > > > The scripts that didnt display properly I resolved by including > > footer.inc and removing the </body></html> from these. > > > > I changed references to mysql specific functions to the DB abstraction > > functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = 1; > > where there was a new search - an error was returned where the previous > > page offset was too big for a smaller recordset returned with a new > > search. Got into trouble with SelectProduct.php a bit you may want to > > have another look but I couldnt get it to select an item. I eventually > > got it working somewhat but its a bit of a hack with a check to make > > sure the pageoffset is beyond the max - this caused an error > > > > if ($_POST['PageOffset']>$ListPageMax){ > > $_POST['PageOffset'] = $ListPageMax; > > } > > > > Also the hidden $_POST['Search'] I removed in favour of checking Go, > > Next and Previous. > > > > I also tried to encapsulate all the strings in _("string") for > > multi-language. > > > > I do like the diff file to work through what was actually changed it > > saves a massive amount of work really - so thanks for making it so easy! > > > > > > If you'd like to, please do add some comment about your contributions in > > a comment at the start of the script. > > > > Phil > > > > > A bit of java for the help may be very useful. It is a real pain and > > > confusing for many users to have the help appear full screen in > > > browser. Here's some code for Help.php that would do it if you > > > want... > > > > > > <?php > > > /* $Revision: 1.5 $ */ > > > > > > if (isset($_GET['Title'])){ > > > $HelpPageTitle = $_GET['Title']; > > > }elseif(isset($_POST['HelpPageTitle'])){ > > > $HelpPageTitle = $_POST['HelpPageTitle']; > > > } > > > > > > $title = "Help On " . $HelpPageTitle; > > > > > > $PageSecurity = 1; > > > > > > include("includes/session.inc"); > > > include("includes/header.inc"); > > > include('includes/htmlMimeMail.php'); > > > ?> > > > > > > <script language="JavaScript" type="text/javascript"> > > > <!-- > > > // resize window > > > window.resizeTo(900,500); > > > window.moveTo(15,200); > > > //--> > > > </script> > > > > > > <?php > > > if (isset($_GET['Page'])){ > > > $Page = $_GET['Page']; > > > } elseif (isset($_POST['Page'])){ > > > $Page = $_POST['Page']; > > > } > > > ... > > > > > > Steve > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > |
From: skaill <sk...@ro...> - 2004-09-03 13:37:49
|
Hi Phil, There is a problem with the latest cvs. It is in session.inc and is related to the following new change: From if (!function_exists('_')){ function _ ($text){ return $text; } } To if (!function_exists('gettext')){ function _($text){ return gettext($text); } } If gettext does not exist then gettext cannot be returned. Steve ----- Original Message ----- From: "Phil Daintree" <we...@pa...> To: <web...@li...> Sent: Friday, September 03, 2004 2:36 AM Subject: Re: [Web-erp-developers] Re: Fw: Window Resize > OK - have updated the upgrade script as suggested. > > Phil > > On Thu, 2004-09-02 at 23:02, skaill wrote: > > Hi Phil, > > > > You may want to add a sql statement in the update to put defaults into all > > existing users for the new user fields. When I first came up I didn't have > > a css until I set one in User Settings. Theme should probably also have a > > default in the table of "professional". > > > > Steve > > > > ----- Original Message ----- > > From: "Phil Daintree" <we...@pa...> > > To: <web...@li...> > > Sent: Sunday, August 29, 2004 12:50 PM > > Subject: [Web-erp-developers] Re: Fw: Window Resize > > > > > > > Steve, > > > > > > Many hearty thanks for your latest contributions - it feels absolutely > > > great not to be on my own with this anymore! > > > > > > I included the lot of it with just a couple of mods. I put language in > > > the user settings script and made it look up the available directories > > > for theme and language rather than hard coding them. As discussed I > > > didn't see the requirement for the enable javascript option - this may > > > be my understanding - and I was not keen on the small / two storey quick > > > links. I used the user name as the link to user settings. > > > > > > The scripts that didnt display properly I resolved by including > > > footer.inc and removing the </body></html> from these. > > > > > > I changed references to mysql specific functions to the DB abstraction > > > functions DB_data_seek in ConnectDB.inc. I set $_POST['PageOffset'] = 1; > > > where there was a new search - an error was returned where the previous > > > page offset was too big for a smaller recordset returned with a new > > > search. Got into trouble with SelectProduct.php a bit you may want to > > > have another look but I couldnt get it to select an item. I eventually > > > got it working somewhat but its a bit of a hack with a check to make > > > sure the pageoffset is beyond the max - this caused an error > > > > > > if ($_POST['PageOffset']>$ListPageMax){ > > > $_POST['PageOffset'] = $ListPageMax; > > > } > > > > > > Also the hidden $_POST['Search'] I removed in favour of checking Go, > > > Next and Previous. > > > > > > I also tried to encapsulate all the strings in _("string") for > > > multi-language. > > > > > > I do like the diff file to work through what was actually changed it > > > saves a massive amount of work really - so thanks for making it so easy! > > > > > > > > > If you'd like to, please do add some comment about your contributions in > > > a comment at the start of the script. > > > > > > Phil > > > > > > > A bit of java for the help may be very useful. It is a real pain and > > > > confusing for many users to have the help appear full screen in > > > > browser. Here's some code for Help.php that would do it if you > > > > want... > > > > > > > > <?php > > > > /* $Revision: 1.5 $ */ > > > > > > > > if (isset($_GET['Title'])){ > > > > $HelpPageTitle = $_GET['Title']; > > > > }elseif(isset($_POST['HelpPageTitle'])){ > > > > $HelpPageTitle = $_POST['HelpPageTitle']; > > > > } > > > > > > > > $title = "Help On " . $HelpPageTitle; > > > > > > > > $PageSecurity = 1; > > > > > > > > include("includes/session.inc"); > > > > include("includes/header.inc"); > > > > include('includes/htmlMimeMail.php'); > > > > ?> > > > > > > > > <script language="JavaScript" type="text/javascript"> > > > > <!-- > > > > // resize window > > > > window.resizeTo(900,500); > > > > window.moveTo(15,200); > > > > //--> > > > > </script> > > > > > > > > <?php > > > > if (isset($_GET['Page'])){ > > > > $Page = $_GET['Page']; > > > > } elseif (isset($_POST['Page'])){ > > > > $Page = $_POST['Page']; > > > > } > > > > ... > > > > > > > > Steve > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.Net email is sponsored by BEA Weblogic Workshop > > > FREE Java Enterprise J2EE developer tools! > > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > > _______________________________________________ > > > Web-erp-developers mailing list > > > Web...@li... > > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by BEA Weblogic Workshop > > FREE Java Enterprise J2EE developer tools! > > Get your free copy of BEA WebLogic Workshop 8.1 today. > > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > > _______________________________________________ > > Web-erp-developers mailing list > > Web...@li... > > https://lists.sourceforge.net/lists/listinfo/web-erp-developers > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > Web-erp-developers mailing list > Web...@li... > https://lists.sourceforge.net/lists/listinfo/web-erp-developers |