echo $model->StaticsPrefix;
?>
css/ugsphp.css" />
	<link rel="stylesheet" href="<?php 
echo $model->StaticsPrefix;
?>
css/ugsEditorPlus.typeahead.css" />
</head>
<body class="songListPage">
	<section class="contentWrap">
		<?php 
if ($model->SiteUser->IsAuthenticated) {
    ?>
			<aside style="float:right;">
				<em style="font-size:.8em; padding-right:1.5em; color:#BCB59C;"><?php 
    echo SayHello() . ', ' . $model->SiteUser->DisplayName;
    ?>
!
					(<a href="<?php 
    echo $model->LogoutUri;
    ?>
">Logout</a>)
				</em>
				<?php 
    if ($model->IsNewAllowed) {
        ?>
					<input type="button" id="openNewDlgBtn" class="baseBtn blueBtn" value="New Song" title="Start editing a new song" />
					<?php 
    }
    ?>
			</aside>
Beispiel #2
0
<?php

function SayHello()
{
    echo "<h1>hello</h1>";
}
SayHello();
SayHello();
SayHello();
?>

<?php 
function SayHell($name)
{
    echo "<h1>hello, {$name}!</h1>";
}
SayHell('John');
$n = 'Mike';
SayHell($n);
SayHell(1);
?>

<?php 
function _SayHel($name, $h)
{
    echo "<h{$h}>hello, {$name}!</h{$h}>";
}
_SayHel('John', 1);
$n = 'Mike';
_SayHel($n, 2);
_SayHel(4, 3);