// Replace PNG blue in old browsers ');?> // Could this "||" be an conditional 'OR' Example?: getStatus() || ORDER_STATUS_DECLINED == $order->getStatus()) { ?> //Get Server/General Info Root Directory: print ($_SERVER['DOCUMENT_ROOT']); IP Address: $_SERVER['REMOTE_ADDR']; URL Path: $_SERVER['PHP_PATH']; ???? Domain: $_SERVER['HTTP_HOST']; eg: www.tfsupplements.com THIS PAGE: $_SERVER['PHP_SELF']; eg: /index.php Query String: $_SERVER['QUERY_STRING']; eg: m=orders_browse Domain w/out "WWW": //---Print Page Link - Javascript---------------- Print This Page //---browser stuff------------------------------ javascript:history.back(); javascript:window.close(); onLoad="javascript:xAudio();" javascript:login('thwdb','alv6490','mysql.therapeutichealthworks.com' ) alt tag for text links: //---Hide status bar for all links on the page---------------------- HEAD TAG SCRIPT: USAGE IN BODY TAG: onload="hidestatus()" //---Filter SQL Results by Date---------------------------------- ThIS Month: month(CStartDate) = month(now()) month(CStartDate) >= month(now()) //---redirect (PHP & HTML)---------------------- PHP: HTML: //---include file-------------------------------- //---Get random file----------------------------- SELECT * FROM gallery ORDER BY RAND() LIMIT 1 //---format line breaks-------------------------- echo nl2br( ) //---All Caps-------------------------- strtoupper($storeCompanyName) //---Currency, but not printing decimal places---- number_format($number) //---Currency, printing decimal places----------- number_format($number, 2) //---Check if website link will work in browser ' . $webURL . ''; } else { echo '' . $webURL . ''; } ?> //---IF (the info is empty)---------------------- //---IF (the info equals this!) w/ an ELSE IF---- if($PCat=='Decks') { ?> style="float: left; margin: 1px; border-style:solid; border-width:1px; border-color:#FFFFFF;" style="border-style:solid; border-width:1px; border-color:#990000;" //---Alternate Row Color------------------------ ALTERNATE ROW COLOR! Ó tag echo " style=\"background-color:$mocolor\" onMouseOver=\"this.style.backgroundColor='$mocolor3'\" onMouseOut=\"this.style.backgroundColor='$mocolor'\""; // technocurve arc 3 php mv block2/3 end ?> Ó tage & above the while LOOP script if ($mocolor == $mocolor1) { $mocolor = $mocolor2; } else { $mocolor = $mocolor1; } // technocurve arc 3 php mv block3/3 end ?> //---Open Link With Form Button----------------- '"> //---Image As Form Submit Button //---Clip Sentence at Period-------------------- //---Truncate copy------------------------------ **Here is the truncate script for the variable **Here is the truncate function to call /* * string Truncate ( string str , int length) * @param string str string to truncate /abbreviate * @param int length length to truncate /abbreviate to * @param string traling string to use for trailing on truncated strings * @return string abbreviated string */ function Truncate ($str, $length=10, $trailing='...') { // take off chars for the trailing $length-=strlen($trailing); if (strlen($str) > $length) { // string exceeded length, truncate and add trailing dots return substr($str,0,$length).$trailing; } else { // string was already short enough, return the string $res = $str; } return $res; } //---Format Date-------------------------------- date("m/d/y",strtotime( )) date("M j, Y",strtotime("$StartDate")); Today's Date: //---IF EndDate is empty just show StartDate----- if($EndDate=="") { echo $FormStartDate; } //---Show both StartDate and EndDate------------- else { echo $FormStartDate; echo " - "; echo $FormEndDate; } //---Today's Date - Javascript------------------- //---PRINT THIS MUTHA - Javascript--------------- CLICK HERE TO PRINT //---New Window -(Uses "glodal.js" include)------ :::FLASH BTN VERSION on (release) { getURL("javascript:newWindow=window.open('/menus/dinner.html','popper1','width=450,height=550,scrollbars,resizable');newWindow.focus(); void(0);"); } //---VALIDATE FORM FIELDS---------------------- Form Code:
Header Script: //---PRELOAD & SWAP / ROLLOVER IMAGES------------------------------------------------- 1) DREAMWEAVER Preload / Swap script: BODY TAG: onLoad="MM_preloadImages('/includes/nav_menu_over_r1_c1.gif','/includes/nav_menu_over_r1_c2.gif','/includes/nav_menu_over_r1_c3.gif','/includes/nav_menu_over_r1_c4.gif','/includes/nav_menu_over_r1_c5.gif','/includes/nav_menu_over_r1_c6.gif','/includes/nav_menu_over_r1_c7.gif','/includes/nav_menu_over_r1_c8.gif') HEADER SCRIPT: // Combination of Preload and Rollover Swap Rollover Button Example Code: Home //---PRELOAD IMAGES------------------------------------------------- 2) method 1: Hide images for next page at bottom of this page This image doesn't actually appear - it just gets loaded at this point. Make sure you place this img element at the end of your page! Any undisplayed img elements should go at the end of your page, just before the tag. If not, they will load first... and slow down the loading of images that are on the first page. Always load what you need for the current page first. 3) method 2: Preload with Javascript! In HEAD TAG... /////////////////////////////////////////////////////// calculating-a-percentage http://asadream.wordpress.com/tutorials/tutorial-php-calculating-a-percentage/