示例#1
0
if (isset($_SESSION['id'])) {
    $name = $_SESSION['name'];
    ?>
			<ul class="nav navbar-nav navbar-right">
				<li class="dropdown">
				<a href="#" class="dropdown-toggle" data-toggle="dropdown"><?php 
    echo $name;
    ?>
<b class="caret"></b></a>
					<ul class="dropdown-menu">
						<li><a href="?cype=main&amp;page=members&amp;name=<?php 
    echo $_SESSION['pname'];
    ?>
">Profile</a></li>
						<li><a href="?cype=ucp&page=mail&s=3"><?php 
    mailStats(3);
    ?>
 Unread Mail</a></li>
						<li><a href="?cype=ucp&amp;page=charfix">Character Fix</a></li>
						<li class="divider"></li>
						<li><a href="?cype=misc&amp;script=logout">Log Out</a></li>
					</ul>
				</li>
			</ul>
		<?php 
}
?>
	</div>
</nav>
<body>
    <div class="container">
示例#2
0
    ?>
</a><span class="divider"></span></li>
			<li><a href="?base=ucp&amp;page=mail&amp;s=2">Read: <?php 
    mailStats(2);
    ?>
</a><span class="divider"></span></li>
			<li><a href="?base=ucp&amp;page=mail&amp;s=3">Unread: <?php 
    mailStats(3);
    ?>
</a><span class="divider"></span></li>
			<li><a href="?base=ucp&amp;page=mail&amp;s=4">Sent: <?php 
    mailStats(4);
    ?>
</a><span class="divider"></span></li>
			<li><a href="?base=ucp&amp;page=mail&amp;s=5">Drafts: <?php 
    mailStats(5);
    ?>
</a><span class="divider"></span></li>				
		</ul>
		<h3 class="text-left">Send Mail</h3><hr/>
				<form method="post" action="?base=ucp&amp;page=mail&amp;send">
				<div class="form-group">
					<label for="inputRecipient">Recipient</label>
					<input type="text" value="<?php 
    if (isset($_GET['uc'])) {
        echo $_GET['uc'];
    }
    ?>
"name="recipent" placeholder="Recipient" class="form-control" id="inputRecipient" required/>
				</div>
				<div class="form-group">