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 |