当前位置: 首页>>代码示例>>PHP>>正文


PHP Admin::makeSort方法代码示例

本文整理汇总了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">&nbsp;</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();
    ?>
    
开发者ID:bionicle12,项目名称:testsite,代码行数:30,代码来源:page.php

示例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">&nbsp;</th></tr>
</thead>
<tbody>
<?php 
foreach ($posts as $post) {
    ?>
   <tr class="<?php 
    echo $post->id % 2 == 0 ? 'odd' : 'even';
    ?>
">
   <td><?php 
    echo $post->id;
    ?>
开发者ID:bionicle12,项目名称:testsite,代码行数:31,代码来源:view.php

示例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">&nbsp;</th></tr>
</thead>
<tbody>
<?php 
foreach ($abonements as $abonement) {
    ?>
   <tr class="<?php 
    echo $cat->id % 2 == 0 ? 'odd' : 'even';
    ?>
">
   <td><?php 
    echo $abonement->id;
    ?>
开发者ID:bionicle12,项目名称:testsite,代码行数:31,代码来源:list.php

示例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">&nbsp;</th>
<th class="button-column" id="city-grid_c5">&nbsp;</th>
</tr>
</thead>
<tbody>
<?php 
foreach ($series as $serie) {
    ?>
   <tr class="<?php 
    echo $serie->id % 2 == 0 ? 'odd' : 'even';
    ?>
">
   <td class="id_serial"><?php 
开发者ID:bionicle12,项目名称:testsite,代码行数:31,代码来源:series_list.php


注:本文中的Admin::makeSort方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。