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


PHP Paging::Inst方法代码示例

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


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

示例1: if

        <div class="subject">
          <?php echo $v['check']?$v['check']:''?>
          <?php echo $v['category']?'<span class="category">'.$v['category'].'</span>':''; //분류출력?>
          <?php if($v['subject']['href']){?><a href="<?php echo $v['subject']['href']?>"><?php }?>
          <?php echo $v['subject']['text']?>
          <?php if($v['subject']['href']){?></a><?php }?>
        </div>
        <div class="datetime">
          <?php echo $v['datetime']?>
        </div>
      </li>
    <?php }?>
    <li class="last_line"></li>
  </ul>
</div>

<!-- 페이징 -->
<?php echo Paging::Inst(
	)->rows($rows*$cols
	)->tot($this->Sql('list_cnt')
	)->html(
)?>

<!-- 검색 및 버튼 -->
<div id="search_line">
  <div class="buttons"><?php include $this->path_view('buttons.php')?></div>
  <?php echo Search::Inst()->Html()?>
</div>


开发者ID:nclco,项目名称:magicboard3,代码行数:28,代码来源:list.php

示例2: intval

<?php

if (!defined("__MAGIC__")) {
    exit;
}
$tbn = $this->TBN();
$rows = $this->Config('rows');
$page = Paging::Inst()->CurrentPage();
$sql = "\n\tSELECT *\n\tFROM {$tbn}\n\tWHERE mb_passwd=''\n";
$sql .= Search::Inst()->Sql(array('A.wr_subject', 'A.wr_content'));
$sql .= "\n\tORDER BY mb_datetime desc\n";
$limit = '0,' . $rows;
if ($page != '') {
    $limit = (intval($page) - 1) * intval($rows) . ',' . intval($rows);
}
$sql .= "\n\tLIMIT {$limit}\n";
$sql_result = DB::Get()->sql_query_list($sql);
开发者ID:nclco,项目名称:magicboard3,代码行数:17,代码来源:sql.list.php

示例3: array

<?php

if (!defined("__MAGIC__")) {
    exit;
}
/*
 * 링크 정의법
 * ---------
 * $link['링크명']['include']['포함할 쿼리명'] = '쿼리값'; // 포함할 값
 * $link['링크명']['exclude'][] = '현재주소에서 제거할 쿼리명'; // 제거할 값
 * $link['링크명']['path'] = '현재주소와 다른 경로값 : 공백이면 현재주소 경로';
 *
 * 함수 추가 파라메터
 * delete, update등에서 키값을 활용할때 사용함
 * --------------------------------------
 * $att[1], $att[2], $att[3] 
 *
 */
$link = array();
$link['cancel']['exclude'][] = $this->Config('key');
$link['cancel']['exclude'][] = Paging::Inst()->Config('key');
开发者ID:nclco,项目名称:magicboard3,代码行数:21,代码来源:link.php

示例4: if

        <?php echo $vv['content']?>
        <?php }?>
        <?php echo $vv['cmt']?>
        <?php if(is_array($vv['icons'])) foreach($vv['icons'] as $img) {?>
        <img src="<?php echo $img['src']?>" alt="<?php echo $img['alt']?>"/>
        <?php }?>
      </td>
    <?php }?>
    </tr>
  <?php }?>
  </tbody>
</table><!-- #write_list -->
</div><!-- #write_list_bg -->

<!-- 페이징 -->
<?php echo Paging::Inst(
	)->rows($this->Config('rows')
	)->tot($this->Sql('list_cnt')
	)->html(
)?>

<!-- 검색 및 버튼 -->
<div id="search_line">
  <div class="buttons"><?php include $this->path_view('buttons.php')?></div>
  <?php echo Search::Inst()->Html()?>
</div>

<script>
// 긴문자열 자르기
// 짧은 문자열은 자르지 않는다
$(function(){
  var subject_length = 350;
开发者ID:nclco,项目名称:magicboard3,代码行数:32,代码来源:list.php

示例5: include

?>

<div data-role="navbar" data-iconpos="top">
<ul><?php echo Paging::Inst('mbasic'
	)->rows($this->Config('rows')
	)->tot($this->Sql('list_cnt')
	)->html(
)?>
<?php include($this->path_view('buttons.php'))?></ul>
</div>

<ul data-role="listview" data-divider-theme="b" data-inset="true">
<li data-role="list-divider" role="heading"><?php echo $config->bo_subject?></li>
<?php foreach($list as $v) { ?>
<li data-theme="c">
<a href="<?php echo $v['wr_subject']['href']?>" data-transition="slide"><?php echo $v['wr_subject']['text']?></a>
</li>
<?php }?>
<?php if(sizeof($list)==0) {?><li><a href="#">게시글이 없습니다.</a></li><?php }?>
</ul>

<div data-role="navbar" data-iconpos="top">
<ul><?php echo Paging::Inst('mbasic'
	)->rows($this->Config('rows')
	)->tot($this->Sql('list_cnt')
	)->html(
)?>
<?php include($this->path_view('buttons.php'))?></ul>
</div>

开发者ID:nclco,项目名称:magicboard3,代码行数:29,代码来源:list.php

示例6: confirm

    echo Layout::Inst('admin')->path_img('btn_table_admin_modify_icon.gif');
    ?>
" alt="수정"/></a>
    <a href="<?php 
    echo $this->Link('unregist', $v['mb_no']);
    ?>
" onclick="return confirm('회원을 탈퇴 시키겠습니까?\n한번 탈퇴한 회원은 복구 할수 없습니다.\n신중히 생각해주세요.')"><img src="<?php 
    echo Layout::Inst('admin')->path_img('btn_table_admin_delete_icon.gif');
    ?>
" alt="탈퇴"/></a>
	</div></td>
</tr>
<?php 
}
?>
 
</tbody>
</table>
</form>

<!-- 검색 -->
<?php 
echo Search::Inst()->Html();
?>

<div class="center">
<?php 
echo Paging::Inst()->rows($this->Config('rows'))->tot($this->Sql('list_cnt'))->html();
?>
</div>
开发者ID:nclco,项目名称:magicboard3,代码行数:30,代码来源:list.php


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