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


PHP pagination::setProperty方法代码示例

本文整理汇总了PHP中pagination::setProperty方法的典型用法代码示例。如果您正苦于以下问题:PHP pagination::setProperty方法的具体用法?PHP pagination::setProperty怎么用?PHP pagination::setProperty使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在pagination的用法示例。


在下文中一共展示了pagination::setProperty方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1:

    }
    $s->setProperty('result', $search_result);
    $s->setProperty('_searching_class', $class);
    $s->setProperty('_search_order_by', filter_input(INPUT_GET, 'search_order_by'));
    $s->setProperty('_search_asc_desc', filter_input(INPUT_GET, 'search_asc_desc'));
    $s->setProperty('_per_page', $per_page);
    $s->setProperty('primary_column_s', $primary_column);
    $s->setProperty('column_array_s', $column_array);
    if (property_exists(${$class}, 'option_lists')) {
        $s->option_lists = ${$class}->option_lists;
    }
    $s->setProperty('_initial_search_array', ${$class}->initial_search);
    // $search_result_statement = $search->search_result();
    /* Start of Search */
    $hidden_field_stmt = $s->hidden_fields();
    if (!empty($pagination)) {
        $pagination->setProperty('_path', 'multi_select');
        $pagination_statement = $pagination->show_pagination();
    }
    // echo '<div id="json_search_result">';
    if (!empty(${$class}) && property_exists(${$class}, 'multi_select_template_path')) {
        if (empty($readonly)) {
            $s->setProperty('_form_post_link', 'multi_select');
            $search_form = $s->search_form(${$class});
        }
        require_once '../../' . $class::$multi_select_template_path;
    } else {
        require_once "../template/json_multi_select_template.inc";
    }
    echo '</div>';
}
开发者ID:prawee,项目名称:inoERP,代码行数:31,代码来源:json_multi_select.php

示例2: content

       <div id='mod-structure'> </div>
       <div id='mod-header_top_container'> </div>
      </div>

      <?php 
//      pa($_SESSION['user_profile']);
//      pa(get_declared_classes());
$content = new content();
$subject_no_of_char = 50;
$summary_no_of_char = 300;
$fp_contnts = $content->frontPage_contents(200, 500);
$pageno = !empty($_GET['pageno']) ? $_GET['pageno'] : 1;
$per_page = !empty($_GET['per_page']) ? $_GET['per_page'] : 6;
$total_count = count($fp_contnts);
$pagination = new pagination($pageno, $per_page, $total_count);
$pagination->setProperty('_path', 'index.php?');
$position = ($pageno - 1) * $per_page;
$fp_contnts_ai = new ArrayIterator($fp_contnts);
if ($position > 0) {
    $fp_contnts_ai->seek($position);
}
$cont_count = 1;
while ($fp_contnts_ai->valid()) {
    $contnent = $fp_contnts_ai->current();
    if ($cont_count == 1 || $cont_count == 4) {
        $count_class_val = ' first ';
    } else {
        if ($cont_count == 2 || $cont_count == 5) {
            $count_class_val = ' last ';
        } else {
            $count_class_val = '';
开发者ID:moxymokaya,项目名称:inoERP,代码行数:31,代码来源:home_page_template_modal.php

示例3: rtrim

                         }
                         $sql .= $value_oby . ' ' . $search_asc_desc[$key_oby] . ' ,';
                         $all_download_sql .= $value_oby . ' ' . $search_asc_desc[$key_oby] . ' ,';
                     }
                     $sql = rtrim($sql, ',');
                     $all_download_sql = rtrim($all_download_sql, ',');
                 } else {
                     $sql .= ' ORDER BY ' . $search_order_by . ' ' . $search_asc_desc;
                     $all_download_sql .= ' ORDER BY ' . $search_order_by . ' ' . $search_asc_desc;
                 }
             }
             $total_count = $class::count_all_by_sql($count_sql);
             $total_count_all = $class::count_all_by_sql($count_sql_all_records);
             if (!empty($per_page)) {
                 $pagination = new pagination($pageno, $per_page, $total_count);
                 $pagination->setProperty('_path', 'select');
                 $pagination_statement = $pagination->show_pagination();
                 $sql .= " LIMIT {$per_page} ";
                 $sql .= " OFFSET {$pagination->offset()}";
             }
             //  echo "<br><br><br> sql is $sql";
             $search_result = $class::find_by_sql($sql);
             //  pa($search_result);
         }
     }
 }
 if (method_exists($class, 'search_add_extra_fields')) {
     $class::search_add_extra_fields($search_result);
 }
 if (property_exists($class, 'search')) {
     foreach (${$class}->search as $searchParaKey => $searchParaValue) {
开发者ID:rusli-nasir,项目名称:inoERP,代码行数:31,代码来源:json_select.php

示例4: count

?>
    </div>
   </div>
  </div>

  <div class="col-md-8 right">
   <?php 
//      pa($_SESSION['user_profile']);
//      pa(get_declared_classes());
$all_products = ec_product::find_by_category_id($category_detials->category_id, $_GET);
$no_of_char = '60';
$pageno = !empty($_GET['pageno']) ? $_GET['pageno'] : 1;
$per_page = !empty($_GET['per_page']) ? $_GET['per_page'] : 12;
$total_count = count($all_products);
$pagination = new pagination($pageno, $per_page, $total_count);
$pagination->setProperty('_path', 'product.php?');
$position = ($pageno - 1) * $per_page;
if (!empty($all_products)) {
    $all_products_ai = new ArrayIterator($all_products);
    if ($position > 0) {
        $all_products_ai->seek($position);
    }
    $cont_count = 1;
    while ($all_products_ai->valid()) {
        $this_product = $all_products_ai->current();
        if ($cont_count == 1 || $cont_count == 4) {
            $count_class_val = ' first ';
        } else {
            if ($cont_count == 2 || $cont_count == 5) {
                $count_class_val = ' last ';
            } else {
开发者ID:moxymokaya,项目名称:inoERP,代码行数:31,代码来源:produt_section_template.php


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