示例#1
0
	<div id="hd">
		<div id="logo"><a href="/index.php" class="link"><img src="/static/css/i/logo.png" /></a></div>
		<div class="guides">
			<div class="city">
				<h2><?php 
echo $city['name'];
?>
</h2>
			</div>
			<?php 
if (count($INI['hotcity']) > 1 || !in_array($city['ename'], array_keys($INI['hotcity']))) {
    ?>
			<div id="guides-city-change" class="change">Change</div>
			<div id="guides-city-list" class="city-list">
				<ul><?php 
    echo current_city($city['ename'], $INI['hotcity']);
    ?>
</ul>
			</div>
			<?php 
}
?>
			<?php 
if (is_manager() || !is_customer()) {
    ?>
			<li><a href="/manage/index.php">Manage <?php 
    echo $INI['system']['abbreviation'];
    ?>
</a></li>
			<?php 
}
示例#2
0
			</div>
			<?php 
if (count($hotcities) > 1) {
    ?>
			<script type="text/javascript" src="/static/js/jquery.colorbox-min.js"></script>
			<link rel="stylesheet" type="text/css" href="/static/css/colorbox.css" media="screen" />
			<script type="text/javascript">
				$(document).ready(function() {
					$("#city-change").colorbox({width:"50%", opacity: 0.3, inline:true, href:"#city-list"});
				});
			</script>
			<a id="city-change" href="#" class="change" title="切换城市">切换城市</a>
			<div style="display: none;">
				<div id="city-list" style="margin-top:5px;padding:10px 10px;">
					<ul style="float:left;padding-bottom:5px;"><?php 
    echo current_city($city['ename'], $hotcities);
    ?>
</ul>
					<div style="clear:both;border-top:1px dashed #666;padding-top:5px;padding-bottom:10px;padding-right:5px;font-size:12px;zoom:1;"><a href="/city.php" style="float:right;">其他城市?</a></div>
				</div>
			</div>
			<?php 
}
?>
		</div>
		<div id="header-subscribe-body" class="subscribe">
		<form action="/subscribe.php" method="post" id="header-subscribe-form">
			<label for="header-subscribe-email" class="text">想知道<?php 
echo $city['name'];
?>
明天的团购是什么吗?</label>
示例#3
0
      ul { list-style: none; overflow: hidden; margin: 0; padding: 0; font-size: 20px; }
      li { float: left; margin-right: 12px; }
      li:after { content: "\2022"; margin-left: 12px; }
      li:last-child:after { display: none; }
    </style>
  </head>
  <body>  
    <p>I&rsquo;m John Holdun. I design interactions for the web.</p>
    
    <p><?php 
echo current_status();
?>
</p>
    
    <p>I&rsquo;m currently in <?php 
echo current_city();
?>
.</p>
    
    <ul>
<?php 
foreach (links() as $link) {
    ?>
      <li><a href="<?php 
    echo $link->url;
    ?>
"><?php 
    echo $link->text;
    ?>
</a></li>
<?php