本文整理汇总了PHP中Admin::makeSort方法的典型用法代码示例。如果您正苦于以下问题:PHP Admin::makeSort方法的具体用法?PHP Admin::makeSort怎么用?PHP Admin::makeSort使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Admin
的用法示例。
在下文中一共展示了Admin::makeSort方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
<div class="span9">
<h1>Список сериалов в подборке </h1>
<table class="items table">
<thead>
<tr>
<th id="city-grid_c0">
<a class="sort-link" href="<?php
echo Admin::makeSort("id");
?>
">ID</a></th>
<th id="city-grid_c1"><a class="sort-link" href="<?php
echo Admin::makeSort("description");
?>
">Колекция</a></th>
<th id="city-grid_c1"><a class="sort-link" href="<?php
echo Admin::makeSort("description");
?>
">Сериал</a></th>
<th class="button-column" id="city-grid_c2"> </th></tr>
</thead>
<tbody>
<?php
foreach ($model as $conentent) {
?>
<?php
$collectionName = CollectionsModel::model()->where("`id`=" . $conentent->collection_id)->findRow();
?>
<?php
$serialName = MoviesModel::model()->where("`type`='2' and `id`=" . $conentent->serial_id)->findRow();
?>
示例2:
<div class="span9">
<h1>Управление подборками</h1>
<table class="items table">
<thead>
<tr>
<th id="city-grid_c0">
<a class="sort-link" href="<?php
echo Admin::makeSort("id");
?>
">ID</a></th>
<th id="city-grid_c1"><a class="sort-link" href="<?php
echo Admin::makeSort("name");
?>
">Название</a></th>
<th id="city-grid_c1"><a class="sort-link" href="<?php
echo Admin::makeSort("date");
?>
">Описание</a></th>
<th class="button-column" id="city-grid_c2"> </th></tr>
</thead>
<tbody>
<?php
foreach ($posts as $post) {
?>
<tr class="<?php
echo $post->id % 2 == 0 ? 'odd' : 'even';
?>
">
<td><?php
echo $post->id;
?>
示例3:
<div class="span9">
<h1>Управление абонементами</h1>
<table class="items table">
<thead>
<tr>
<th id="city-grid_c0">
<a class="sort-link" href="<?php
echo Admin::makeSort("id");
?>
">ID</a></th>
<th id="city-grid_c1"><a class="sort-link" href="<?php
echo Admin::makeSort("months");
?>
">Количество месяцев</a></th>
<th id="city-grid_c1"><a class="sort-link" href="<?php
echo Admin::makeSort("price");
?>
">Стоимость</a></th>
<th class="button-column" id="city-grid_c2"> </th></tr>
</thead>
<tbody>
<?php
foreach ($abonements as $abonement) {
?>
<tr class="<?php
echo $cat->id % 2 == 0 ? 'odd' : 'even';
?>
">
<td><?php
echo $abonement->id;
?>
示例4:
?>
">ID</a></th>
<th id="city-grid_c1" style="width:200px;"><a class="sort-link" href="<?php
echo Admin::makeSort("name");
?>
">Eng Name</a></th>
<th id="city-grid_c1" style="width:200px;"><a class="sort-link" href="<?php
echo Admin::makeSort("name");
?>
">Rus Name</a></th>
<th id="city-grid_c2"><a class="sort-link" href="<?php
echo Admin::makeSort("season_id");
?>
">Название/# сезона</a></th>
<th id="city-grid_c3"><a class="sort-link" href="<?php
echo Admin::makeSort("sort");
?>
"># серии</a></th>
<th class="button-column" id="city-grid_c4"> </th>
<th class="button-column" id="city-grid_c5"> </th>
</tr>
</thead>
<tbody>
<?php
foreach ($series as $serie) {
?>
<tr class="<?php
echo $serie->id % 2 == 0 ? 'odd' : 'even';
?>
">
<td class="id_serial"><?php