CSS 特纳商业中心 - 加州小型工业公寓穆列塔

/* CSS Document */

/* ---------------------------------------------------- 
Layout Formatting
---------------------------------------------------- */ 

html 
	{ 
	height : 100%; 
	margin : 0 auto; 
	padding : 0;
	background-color : #BDAAA0;
	}

body 
	{ 
	margin : 0 auto; 
	padding : 0;
	width : 100%; 
	font-size : 11px;
	font-family : Verdana, Arial, Helvetica, sans-serif;
	color : #403A25;
	line-height : 18px;
	text-align : left;
	background-color : #BDAAA0;
	}
	
p 
	{
	margin: 0px;
	}
	
div#headerBg
	{
	margin : 0 auto; 
	padding : 0;
	background-repeat : repeat-x;
	background-color : #BD1B21;
	width : 760px;
	height : 107px;
	border-top-width : 1px;
	border-right-width : 1px;
	border-bottom-width : 1px;
	border-left-width : 1px;
	border-top-style : none;
	border-right-style : solid;
	border-bottom-style : none;
	border-left-style : solid;
	border-top-color : #000000;
	border-right-color : #000000;
	border-bottom-color : #000000;
	border-left-color : #000000;
	}
	
div#header 
	{
	width : 760px;
	height : 107px;
	margin : 0 auto; 
	padding : 0;
	}
	
div#headerLeft
	{
	float : left;
	width : 214px;
	height : 107px;
	background-color : #9D8D85;
	}

div#headerRight 
	{
	float : right;
	width : 534px;
	padding-top : 28px;
	padding-left : 12px;
	height : 79px;
	background-color : #BD1B21;
	}
	
div#nav
	{
	margin : 0 auto; 
	padding : 0;
	background-repeat : repeat-x;
	background-color : #000;
	width : 760px;
	height : 25px;
	border-top-width : 1px;
	border-right-width : 1px;
	border-bottom-width : 1px;
	border-left-width : 1px;
	border-top-style : none;
	border-right-style : solid;
	border-bottom-style : none;
	border-left-style : solid;
	border-top-color : #000000;
	border-right-color : #000000;
	border-bottom-color : #000000;
	border-left-color : #000000;
	}
	
div#navContent
	{
	width : 760px;
	margin : 0 auto;
	padding : 0;
	}

div#navLeft
	{
	float : left;
	width : 214px;
	height : 25px;
	background-color : #000;
	}

div#navRight 
	{
	float : right;
	width : 546px;
	height : 25px;
	background-color : #000;
	}
	
div#wrapper 
	{
	margin: 0px auto 0px auto;
	padding : 0px;
	width : 760px;
	background : url(/img/inner-background.gif) repeat;
	overflow : auto;
	border-top-width : 1px;
	border-right-width : 1px;
	border-bottom-width : 1px;
	border-left-width : 1px;
	border-top-style : none;
	border-right-style : solid;
	border-bottom-style : none;
	border-left-style : solid;
	border-top-color : #000000;
	border-right-color : #000000;
	border-bottom-color : #000000;
	border-left-color : #000000;
	}
	
div#wrapperColor
	{
	margin: 0px auto 0px auto;
	padding : 0px;
	width : 760px;
	background : url(/img/inner-background-black.gif) repeat;
	overflow : auto;
	}
	
div#contentLeft
	{
	float : left;
	width : 214px;
	}

div#contentLeftSizes
	{
	width : 155px;
	height : 270px;
	padding-top : 27px;
	padding-left : 54px;
	padding-right : 5px;
	background-color : #BD1B21;
	text-align: right;
	}

div#contentRight 
	{
	float : right;
	width : 546px;
	margin-bottom: 15px;
	}
	
div#footer
	{
	width : 760px;
	margin : 0 auto; 
	padding : 0;
	border-top-width : 1px;
	border-right-width : 1px;
	border-bottom-width : 1px;
	border-left-width : 1px;
	border-top-style : solid;
	border-right-style : none;
	border-bottom-style : none;
	border-left-style : none;
	border-top-color : #000000;
	border-right-color : #000000;
	border-bottom-color : #000000;
	border-left-color : #000000;
	background-color : #BDAAA0;
	}
	
div#footerContent
	{
	margin : 0px auto;
	width : 760px;
	font-size : 9px;
	text-align : center;
	line-height : 23px;
	clear : both;
	}
	
/* ---------------------------------------------------- 
Buttons
---------------------------------------------------- */ 

#home
	{ 
	width : 39px; 
	height : 25px; 
	padding-left : 16px;
	margin-left : 12px;
	overflow : hidden; 
	background : url(/img/b-home.gif) top left no-repeat;
	display : block;
	float : left;
	text-indent : -99999px;
	} 
  
#home:hover
	{ 
	background-position : bottom left; 
	}
	
#location
	{ 
	width : 58px; 
	height : 25px; 
	padding-left : 16px;
	overflow : hidden; 
	background : url(/img/b-location.gif) top left no-repeat;
	display : block;
	float : left;
	text-indent : -99999px;
	} 
  
#location:hover
	{ 
	background-position : bottom left; 
	}
	
#availabilites
	{ 
	width : 87px; 
	height : 25px; 
	padding-left : 16px;
	overflow : hidden; 
	background : url(/img/b-availabilities.gif) top left no-repeat;
	display : block;
	float : left;
	text-indent : -99999px;
	} 
  
#availabilites:hover
	{ 
	background-position : bottom left; 
	}
	
#financing
	{ 
	width : 67px; 
	height : 25px; 
	padding-left : 16px;
	overflow : hidden; 
	background : url(/img/b-financing.gif) top left no-repeat;
	display : block;
	float : left;
	text-indent : -99999px;
	} 
  
#financing:hover
	{ 
	background-position : bottom left; 
	}
	
#contact
	{ 
	width : 54px; 
	height : 25px; 
	padding-left : 16px;
	overflow : hidden; 
	background : url(/img/b-contact.gif) top left no-repeat;
	display : block;
	float : left;
	text-indent : -99999px;
	} 
  
#contact:hover
	{ 
	background-position : bottom left; 
	}
	
#brochure
	{ 
	width : 63px; 
	height : 25px; 
	padding-left : 16px;
	overflow : hidden; 
	background : url(/img/b-brochure.gif) top left no-repeat;
	display : block;
	float : left;
	text-indent : -99999px;
	} 
  
#brochure:hover
	{ 
	background-position : bottom left; 
	}

/* ---------------------------------------------------- 
Link Formatting
---------------------------------------------------- */ 

div#contentRight a:link 
	{
	color : #BD1B21;
	background-color : transparent;
	text-decoration : underline;
	}

div#contentRight a:visited
	{
	color : #BD1B21;
	background-color : transparent;
	text-decoration : underline;
	}

div#contentRight a:hover
	{
	color : #403A25;
	background-color : transparent;
	text-decoration : underline;
	}

div#footerContent a:link 
	{
	color : #403A25;
	background-color : transparent;
	text-decoration : none;
	padding : 2px;
	}

div#footerContent a:visited
	{
	color : #403A25;
	background-color : transparent;
	text-decoration : none;
	padding : 2px;
	}

div#footerContent a:hover
	{
	color : #FFD400;
	background-color : #BD1B21;
	text-decoration : none;
	padding : 2px;
	}

#directions
	{
	width : 142px; 
	height : 31px; 
	overflow : hidden; 
	background : url(/img/b-getdirections.gif) top right no-repeat;
	display : block;
	float : left;
	text-indent : -99999px;
	} 
  
#directions:hover
	{ 
	background-position : bottom right; 
	}

/* ---------------------------------------------------- 
Content Formatting
---------------------------------------------------- */ 

.turnerLogo
	{
	padding-top : 10px;
	}
	
.leeLogo
	{
	padding-top : 20px;
	padding-bottom : 20px;
	}
	
#homeHeader
	{
	clear : both;
	width : 534px;
	height : 17px;
	padding-top : 7px;
	padding-left : 12px;
	background-color : #000;
	}
	
div#homeBulletsLeft
	{
	width : 253px;
	float : left;
	padding-top : 5px;
	padding-left : 15px;
	}

div#homeBulletsLeft p
	{
	padding-left : 22px;
	padding-bottom: 15px;
	}

div#homeBulletsLeft p a
	{
	color : #BD1B21;
	}
	
div#homeBulletsright
	{
	width : 253px;
	float : right;
	padding-top : 5px;
	padding-right : 20px;
	}
	
ul
	{
	list-style-type : square;
	list-style-image : url(/img/bullet.gif);
	margin-left : 26px;
	padding-left : 6px;
	}
	
#flashcontent 
	{
	width : 546px;
	}

#contactInfo 
	{
	float : left;
	padding-top : 75px;
	padding-left : 163px;
	}

.textButton 
	{
	font-weight : bold;
	text-transform : uppercase;
	text-align : center;
	cursor : pointer;
	}
	
.textButtonOvr
	{
	color : #BD1B21;
	font-weight : bold;
	text-transform : uppercase;
	text-align : center;
	cursor : pointer;
	}

HTML 特纳商业中心 - 加州小型工业公寓穆列塔

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Turner Commerce Center - Small Industrial Condos Murrieta, California</title>
<link href="/css/web.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="/js/swfobject.js"></script>
<script language="JavaScript" type="text/JavaScript">
<!--

  function MM_openBrWindow(theURL,winName,features) { 
  window.open(theURL,winName,features);
}

var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}
-->
</script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en-us" />
<meta http-equiv="imagetoolbar" content="false" />
<meta name="MSSmartTagsPreventParsing" content="true" />
<meta name="ICBM" content="40.746990, -73.980537" />
<meta name="Generator" content="Quickspace - Copyright (C) 2006, All rights reserved." />
<meta name="robots" content="index, follow" />

<meta name="DC.title" content="Turner Commerce Center" />
<meta name="description" content="Small Industrial Condos, Murrieta, California" />
<meta name="keywords" content="Industrial, Condos, Murrieta, California" />
</head>
<body>
<div id="headerBg">
	<div id="header">
		<div id="headerLeft"></div>
			<div id="headerRight">
				<a href="/index.asp"><img src="/img/logo.gif" alt="Turner Commerce Center Logo" border="0" /></a>
			</div>
	</div>

</div>
<div id="nav">
	<div id="navContent">
		<div id="navLeft"></div>
		<div id="navRight">
			<a href="/index.asp" id="home" title="Home">Home</a>
			<a href="/location.asp" id="location" title="Location">Location</a>
			<a href="/availabilities.asp" id="availabilites" title="Availabilities">Availabilities</a>

			<a href="/financing.asp" id="financing" title="Financing">Financing</a>
			<a href="/contact.asp" id="contact" title="Contact">Contact</a>
			<a href="/docs/Turner-Commerce-Center-Brochure.pdf" id="brochure" title="Brochure" target="_blank">Brochure</a>	
		</div>
	</div>
</div>
<div id="wrapper">
	<div id="contentLeft">
	  <div id="contentLeftSizes">

			<img src="/img/condo-sizes.gif" alt="Condo Sizes" width="130" height="190" /><br />
			<br /><br />
      <a href="/aerial.asp" onclick="NewWindow(this.href,'name','760','491','no');return false"><img src="/img/view-aerial.gif" alt="View Aerial" width="152" height="21" border="0" /></a></div>
		<div align="center"><a href="http://www.turnerdevelopment.net" target="_blank"><img src="/img/turner-logo.gif" alt="Turner Development Corporation" width="145" height="59" border="0" class="turnerLogo" /></a></div>
		<div align="center"><a href="http://www.lee-associates.com" target="_blank"><img src="/img/lee-logo.gif" alt="Lee & Associates Logo" border="0" class="leeLogo" /></a></div>
	</div>
	<div id="contentRight">
		<div>
		<div id="flashcontent" align="center">

			<p><strong>You need to upgrade your Flash Player</strong></p>
			<p><a href="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&promoid=BIOW">Please go here to download the latest version</a></p>
		</div>
		
		<script type="text/javascript">
		// <![CDATA[
		
		var so = new SWFObject("/aerial.swf", "sotester", "546", "297", "8", "#515151");
		so.write("flashcontent");
		
		// ]]>
		</script>
		</div>
		<div id="homeHeader"><img src="img/h-property-features.gif" alt="Property Features" /></div>
		<div>

			<div id="homeBulletsLeft">
				<ul>
					<li>50,388 Total Sq. Ft. (21 units)</li>
					<li>Extensive Exterior Re-Hab</li>
					<li>New Air Conditioning Units</li>
					<li>Abundant Parking (3.0/1,000)</li>
					<li>Premier Location Adjacent to Murrieta Auto Mall & future I-15 interchange</li>

				</ul>
				<p><a href="#">Frequently Asked Quetions</a></p>
			</div>
			<div id="homeBulletsright">
				<ul>
					<li>Close Proximity to Restaurants, Services & Major Throughfares</li>
					<li>Auto, Office & Accessory Retail Uses Allowed (MU-2 Zoning)</li>

					<li>New Roofs</li>
				</ul>
			</div>
		</div>
	</div>
</div>
<div id="footer">
	<div id="footerContent">
		© 2006 Turner Development Corporation. All rights reserved. | <a href="http://www.quickspace.com" target="_blank">Created by Quickspace</a>

	</div>
</div>	
</body>
</html>

C# SQL Stored Proc生成表示数据字段名称的C#常量列表。

SELECT 'public const string COLUMN_' + UPPER(col.TABLE_NAME) + '_' + UPPER(col.COLUMN_NAME) + ' = "' + col.COLUMN_NAME + '";' As [Name] 
FROM 		INFORMATION_SCHEMA.COLUMNS col
INNER JOIN 	INFORMATION_SCHEMA.TABLES tab ON tab.TABLE_NAME = col.TABLE_NAME 
WHERE 		tab.TABLE_TYPE = 'BASE TABLE'
AND			tab.TABLE_NAME NOT IN ('dtproperties', 'sysdiagrams')

UNION

SELECT 		'public const string TABLE_' + UPPER(tab.TABLE_NAME) + ' = "' + tab.TABLE_NAME + '";' As sName 
FROM 		INFORMATION_SCHEMA.TABLES tab
WHERE 		tab.TABLE_TYPE = 'BASE TABLE'
AND			tab.TABLE_NAME NOT IN ('dtproperties', 'sysdiagrams')
ORDER BY 	[Name] ASC

PHP 删除喊叫

function RemoveShouting($string)
{
 $lower_exceptions = array( 
       "to" => "1", "a" => "1", "the" => "1", "of" => "1"
 ); 
 
 $higher_exceptions = array(  
       "I" => "1", "II" => "1", "III" => "1", "IV" => "1",  
       "V" => "1", "VI" => "1", "VII" => "1", "VIII" => "1",
       "XI" => "1", "X" => "1", "GAs"=>'1'
 ); 
 
 $words = split(" ", $string); 
 $newwords = array(); 
 foreach ($words as $word)
 {
  if (!$higher_exceptions[$word]) $word = strtolower($word);
  if (!$lower_exceptions[$word]) $word[0] = strtoupper($word[0]);
  array_push($newwords, $word);
 }
 return join(" ", $newwords);
}

PHP FINDSTR

function findStr($string,$beg,$end) {
	  $p1 = strpos($string, $beg) + strlen($beg);
	  $string2 = substr($string,$p1);
	  $p2 = strpos($string2, $end);
	  $found = substr($string,$p1,$p2);
	  return $found;
}

Smarty 部分循环

{section name=lehrst loop=$data}

     {$data[lehrst].uni}

{/section}

Smarty 带有配置变量的mailto

{assign var=foo value=#supportmail#}
{mailto address="$foo" encode="javascript_charcode" text="E-Mail" subject="support mail"}

JavaScript ID的元素

document.getElementById("invitemobile"+line).value = "";

JavaScript Capa con ancho fijo

<!--- tooltip.js -->
// position of the tooltip relative to the mouse in pixel //
var offsetx = -12;
var offsety =  8;

function newelement(newid)
{ 
    if(document.createElement)
    { 
        var el = document.createElement('div'); 
        el.id = newid;     
        with(el.style)
        { 
            display = 'none';
            position = 'absolute';
        } 
        el.innerHTML = ' '; 
        document.body.appendChild(el); 
    } 
} 
var ie5 = (document.getElementById && document.all); 
var ns6 = (document.getElementById && !document.all); 
var ua = navigator.userAgent.toLowerCase();
var isapple = (ua.indexOf('applewebkit') != -1 ? 1 : 0);
function getmouseposition(e)
{
    if(document.getElementById)
    {
        var iebody=(document.compatMode && 
        	document.compatMode != 'BackCompat') ? 
        		document.documentElement : document.body;
        pagex = (isapple == 1 ? 0:(ie5)?iebody.scrollLeft:window.pageXOffset);
        pagey = (isapple == 1 ? 0:(ie5)?iebody.scrollTop:window.pageYOffset);
        mousex = (ie5)?event.x:(ns6)?clientX = e.clientX:false;
        mousey = (ie5)?event.y:(ns6)?clientY = e.clientY:false;

        var lixlpixel_tooltip = document.getElementById('tooltip');
        lixlpixel_tooltip.style.left = (mousex+pagex+offsetx) + 'px';
        lixlpixel_tooltip.style.top = (mousey+pagey+offsety) + 'px';
    }
}
function tooltip(tip)
{
    if(!document.getElementById('tooltip')) newelement('tooltip');
    var lixlpixel_tooltip = document.getElementById('tooltip');
    lixlpixel_tooltip.innerHTML = tip;
    lixlpixel_tooltip.style.display = 'block';
    document.onmousemove = getmouseposition;
}
function exit()
{
    document.getElementById('tooltip').style.display = 'none';
}
<!-- fin tooltip.js -->

<div style="width: 52px; overflow: auto; overflow-x:hidden" onmouseover="tooltip('<%=textoCelda%>');" onmouseout="exit();" >
<%=textoCelda%>
</div>

PHP ArticleHandler.class用法示例

$currentCat  = $_REQUEST['cat'];
$categories  = new articleHandler($CATEGORIES_PATH) ;
...
// getting the breadcrumds
if(is_string($currentCat)){
  $bread = $categories->get_breadCrumbs($currentCat);
  for($i = count($bread)-1; $i >= 0; $i--){
    if($i==O){
      //this is the location the user is @, so no link has to be set
      $t->set_var("currentone" , $bread[$i][0]);
    }else{
      //parse the breadcrumbs
      $t->set_var("loc", $bread[$i][1]);
      $t->set_var("tekst", $bread[$i][0]);
      $t->parse("crumbs" , "bread", true);
    }
  }
}

//get items in a categorie
//1 stands for the field number being used
$itemsInCat = $items->searchFor($currentCat, 1);

//get subcategories of an categorie
//5 stands for the field number being used
$subCats = $categories->searchFor($currentCat, 5);

//adding an article without a photo
$items->add_art($cat, $csv);

//adding a product with a photo
$items->add_art($cat, $csv,$_FILES["_pic"]["tmp_name"]);

//deleting an article
$items->del_art(...);
...

//The same goes with categories