本文整理汇总了PHP中Schema::GetParam方法的典型用法代码示例。如果您正苦于以下问题:PHP Schema::GetParam方法的具体用法?PHP Schema::GetParam怎么用?PHP Schema::GetParam使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Schema
的用法示例。
在下文中一共展示了Schema::GetParam方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: count
opacity: 0.85;
}*/
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Project name</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<?php
$topbar = Schema::GetParam('topbar');
foreach ($topbar as $top) {
$subactions = $top['subactions'];
$num_subactions = count($subactions);
$class_down = $caret = '';
if ($num_subactions > 0) {
$class_down = 'class="dropdown-toggle" data-toggle="dropdown" ';
$caret = '<span class="caret"></span>';
}
echo '<li>';
echo '<a href="' . $top['url'] . '" ' . $class_down . ' role="button"><span class="glyphicon ' . $top['icon'] . '"></span> <span class="liname">' . $top['name'] . ' ' . $caret . '</span></a>';
if ($num_subactions > 0) {
echo '<ul class="dropdown-menu" role="menu">';
foreach ($subactions as $sub) {
echo '<li><a href="' . $sub['url'] . '"><span class="glyphicon ' . $sub['icon'] . '"></span> ' . $sub['name'] . '</a></li>';
}
示例2: foreach
</span></a>
</li>
<?php
}
?>
<li><a href="#a" class="glyphicon glyphicon-eye-open LinkCloseOpen"><!-- --></a></li>
</ul>
</div>
<div class="col-md-offset-1 col-md-11 main">
<!-- <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main"> -->
<h1 class="page-header"><?php
echo Schema::GetParam('title_pag');
?>
</h1>
<?php
$return = Schema::GetParam('return');
if ($return) {
?>
<div class="row">
<div class="col-xs-6 text-left">
<ol class="breadcrumb">
<?php
foreach ($return as $line_r) {
echo '<li><a href="#">' . $line_r . '</a></li>';
}
?>
<!-- <li><a href="#">Home</a></li>
<li><a href="#">Library</a></li>
<li class="active">Data</li> -->
</ol>
</div>