Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Rekcor

  1. Rekcor

    mktime bug?

    Thanx, the correct syntax is: echo date('d-M-Y H:i:s', mktime(0,0,0,12,25,1978)); //25-Dec-1978 00:00:00
  2. Rekcor

    mktime bug?

    The following code is causing me a headache. I want to put: "12-25-2004 0:0:0" on the screen. But the following code: echo date('d-m-Y H:m:s', mktime(0,0,0,12,25,1978)); returns: 25-Dec-1978 12:12:00 What is happening?
  3. Rekcor

    table columns 100% problem

    it does! thanx, enjoy your star!
  4. Rekcor

    table columns 100% problem

    I've got a simple problem but I can't find the solution. I hope someone can help me (I was surprised I couldnt find it in previous posts on this forum...) What I want is: a table (width 100%) with 3 columns, two with a fixed width (e.g. 50 and 40px), one with a variable width (which 'fills the...
  5. Rekcor

    Calculate timestamp from week number

    Woops! Found a small bug: summer time isnt taken up in my function! /** * PUBLIC getTimestampFromWeeknr($iYear, $iWeek) * Function to calculate the timestamp of at monday 0:00am * in given year and week according to ISO-8601 standards * * return: array with TCalenderEvent objects **/...
  6. Rekcor

    Calculate timestamp from week number

    I found out myself. For those who are interested: /** * PUBLIC getTimestampFromWeeknr($iYear, $iWeek) * Function to calculate the timestamp of at monday 0:00am * in given year and week according to ISO-8601 standards * * return: array with TCalenderEvent objects **/ function...
  7. Rekcor

    Regular expressions - search and replace question

    I think preg_replace() is fine. Here is a great reference (and website) of regular expressions: http://www.regular-expressions.info/reference.html A quick solution (dont know if it works): $pattern = "/\n{1,}|\r{1,}(\r\n){1,}/"; $replacement = "<p>"; echo preg_replace($pattern, $replacement...
  8. Rekcor

    Calculate timestamp from week number

    I want to write a function which calculates the timestamp from a week number: function timestampFromWeeknr($iWeekNr, $iYear) { //here should come magical calculation return $iTimeStamp } More accurately speaking, it should be the timestamp from the Monday of that week, at 0:00am. Has...
  9. Rekcor

    Jumping tab in form

    The zip file contains numerous files, please copy/paste relevant code in your question using the [ code ] and [ / code ] tags of this form. We'd like to help you, but we do not have the time to read a couple hundred lines of code.
  10. Rekcor

    A good DHTML editor ?

    I'd advise you to use Crimson Editor. It's great (and freeware)!
  11. Rekcor

    inter-site communication

    We would like to help you, but you didn't ask a question. Can you be more specific on the problem?
  12. Rekcor

    Print

    In IE there is this Javascript onbeforeprint function. Using Javascript you could replace all images by <span>s with the alt text inside. But I only recommend this when you are sure all your users use IE
  13. Rekcor

    IFrame Question

    my solution works in all browsers... ;) good luck
  14. Rekcor

    IFrame Question

    How can the user click the menu when the page is scrolled down? Is the menu in another page? Maybe you could use the #top in your menu. I assume there is an 'onclick' event somewhere. Just in my own words (not realy js) onclick=" iframe.src='bla'; //set the source for the iframe...
  15. Rekcor

    vertical navigation menus

    See a previous post of mine: //get current filename var fileName = document.URL.substring(document.URL.lastIndexOf('/')+1) if (fileName=="fish.htm") { togSub(document.getElementById('ML4')); } The submenu ML4 is openend when the filename is 'fish.htm' You could also pass some...

Part and Inventory Search

Back
Top