// 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($row_companies['CoGraphic']!='')
{ ?>
//---IF (the info equals this!) w/ an ELSE IF----
if($PCat=='Decks')
{ ?>
}
else if($PCat=='Trucks')
//---CSS - image border--------------------------
style="border-style:solid; border-width:1px; border-color:#1A293C;"
//---CSS - image w/float & border---------------
style="float: left; margin: 2px 6px 0px 0px; border-style:solid; border-width:1px; border-color:#004838;"
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: