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


PHP Pager::getPageStr方法代码示例

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


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

示例1: htmlFilter

    $att['filename'] = htmlFilter($att['filename']);
    $att['uploadtime'] = getDateStr($att['uploadtime']);
    $attachements[$key] = $att;
}
$folderrow = $cache_folders[$folderid];
$folderrow['title'] = htmlFilter($folderrow['title']);
print <<<EOT
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>IMAGE</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="css/default.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../getfiles.php?t=js&v={$_SYS['VERSION']}&f=util|ajax|admin"></script>
<body style="background:#fff;">
<table width="100%"><tr><td width="140px"><a href="folder.php" target="_self" title="{$_AL['folder.returnfolder']}"><img src="images/btn_uplevel.gif" border="0" /></a> <img src="images/btn_close.gif" id="btnClose" onclick="window.parent.popwin.close()" border="0" style="cursor:pointer;" /> </td><td><div class="list_pager">{$pager->getPageStr()}</div></td></tr></table>
<form id="filesform" onsubmit="return false">
<!--#######################-->
<div class="condiv"><a href="folder.php">{$_AL['folder.all']}</a> -&gt; {$folderrow['title']} [<a href="javascript:showRenameFolder()">{$_AL['folder.rename']}</a>] &nbsp;&nbsp;&nbsp;| &nbsp;&nbsp;<input type="checkbox" onclick="selectAll('filesform',this.checked)" />{$_AL['all.selectall']} &nbsp;<a href="javascript:showDelFiles()">{$_AL['folder.delselfiles']}</a> &nbsp;<a href="javascript:showMoveFiles()">{$_AL['folder.moveselfiles']}</a>
\t<!--#######################-->
\t<div id="renamefolderdiv" style="display:none;">
\t\t<input type="hidden" name="folderid" value="{$folderid}" />
\t\t{$_AL['folder.inputnewname']}: <input type="text" value="{$folderrow['title']}" size="30" maxlength="50" id="newfoldername" name="newfoldername" class="text_css" /> <input type="button" value="  {$_AL['folder.confirm.modify']}  " onclick="renameFolder()" class="button_css" />
\t</div>
\t<!--#######################-->
\t<div id="movefilediv" style="display:none;">
\t\t{$_AL['folder.targetdir']}: <select name="targetfolder">{$cache_foldersoption}</select> <input type="button" value="  {$_AL['folder.move']}  " onclick="moveFiles()" class="button_css" />
\t</div>
\t<!--#######################-->
\t<div id="delfilediv" style="display:none;">
\t\t{$_AL['folder.del.warning']} <input type="button" value="  {$_AL['folder.confirm.del']}  " onclick="delFiles()" class="button_css" />
开发者ID:JackyMamba,项目名称:SimpleEOW,代码行数:31,代码来源:files.php

示例2: getDateStr

\t</table>

EOT;
        echo "<form id=\"articlesform\" onsubmit=\"return false;\">";
        echo "<table class=\"table_1\" width=\"100%\">";
        echo "<tr style=\"font-weight:bold;color:#333333;\"><td class=\"row_0\">" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[1]}px;\">{$_AL['all.select']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[2]}px;\">{$_AL['all.title']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[7]}px;\">{$_AL['all.hits']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[5]}px;\">{$_AL['all.posttime']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[8]}px;\">{$_AL['all.control']}</div>" . "";
        for ($i = 0; $i < count($rows); $i++) {
            $row = $rows[$i];
            $row['posttime'] = getDateStr($row['posttime']);
            $row['title'] = htmlFilter($row['title']);
            $row['username'] = htmlFilter($row['username']);
            $checkboxstr = "<input type=\"checkbox\" value=\"{$row['id']}\" name=\"aids[]\" class=\"checkbox_css\" />";
            echo "<tr><td class=\"row_0\" style=\"line-height:150%;\">" . "<div class='rowdiv_0' style='width:{$dwidth[1]}px;'>{$checkboxstr}</div>" . "<div class='rowdiv_0' style='width:{$dwidth[2]}px;'><a href=\"../view.php?id={$row['id']}\" target=\"_blank\">{$row['title']}</a>&nbsp;</div>" . "<div class='rowdiv_0' style='width:{$dwidth[7]}px;'><span class='time'>{$row['hits']}</span></div>" . "<div class='rowdiv_0' style='width:{$dwidth[5]}px;'><span class='time'>{$row['posttime']}</span></div>" . "<div class='rowdiv_0' style='width:{$dwidth[8]}px;'><a href=\"admin.php?inc=article&action=edit&id={$row['id']}\">{$_AL['all.edit']}</a></div>" . "";
        }
        echo "</table>";
        echo "<table width=100%><tr><td><input type=\"checkbox\" onclick=\"selectAll('articlesform',this.checked)\" class=\"checkbox_css\" /> {$_AL['all.selectall']} &nbsp;&nbsp;<input type=\"button\" class=\"button_css\" value=\"  {$_AL['all.delete']}  \" onclick=\"ajax_doarticles_yn()\" /></td><td><div class='pagestrdiv'>{$pager->getPageStr()}</div></td></tr></table>";
        echo "</form>";
        echo <<<EOT
\t</div>
\t<div id="t2"></div>
\t<div id="t3"></div>
\t<div class="div_clear" style="height:30px;"></div>
<script>
var smallNowTab;
var pt = new Tabs();
pt.classpre="smalltab_";
pt.container = "smalltab_container";
pt.createTab("t1","{$_AL['article.title']}","",true,"n");
pt.init = function(){
\tsmallNowTab = pt.nowTab;
};
开发者ID:rust1989,项目名称:edit,代码行数:31,代码来源:article.php

示例3: getDateStr

        echo "<tr style=\"font-weight:bold;color:#333333;\"><td class=\"row_0\">" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[6]}px;\">{$_AL['vote.order']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[2]}px;\">{$_AL['vote.subject']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[3]}px;\">{$_AL['vote.allowvotetime']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[4]}px;\">{$_AL['vote.totalnum']}</div>" . "<div class=\"rowdiv_0\" style=\"width:{$dwidth[5]}px;\">{$_AL['all.control']}</div>" . "";
        for ($i = 0; $i < count($rows); $i++) {
            $tabindex = $i;
            $row = $rows[$i];
            $row['starttime'] = getDateStr($row['starttime']);
            $row['stoptime'] = getDateStr($row['stoptime']);
            $row['title'] = htmlFilter($row['title']);
            $checkboxstr = "<input type=\"checkbox\" value=\"{$row['id']}\" name=\"ids[]\" class=\"checkbox_css\" />";
            echo "<tr><td class=\"row_0\" style=\"line-height:150%;\">" . "<div class='rowdiv_0' style='width:{$dwidth[6]}px;'><input type=\"text\" size=\"2\" value=\"{$row[ordernum]}\" name=\"ordernum[{$row['id']}]\" tabIndex=\"{$tabindex}\" class=\"text_css\" /></div>" . "<div class='rowdiv_0' style='width:{$dwidth[2]}px;'><a href=\"../vote.php?id={$row['id']}\" target=\"_blank\">{$row['title']}</a>&nbsp;</div>" . "<div class='rowdiv_0' style='width:{$dwidth[3]}px;'><span class='time'>{$row['starttime']}</span> ~ <span class='time'>{$row['stoptime']}</span> </div>" . "<div class='rowdiv_0' style='width:{$dwidth[4]}px;'><span class='time'>{$row['votednum']}</span></div>" . "<div class='rowdiv_0' style='width:{$dwidth[5]}px;'><a href=\"admin.php?inc=vote&action=edit&id={$row['id']}\">{$_AL['all.edit']}</a>&nbsp;&nbsp;&nbsp;<a href=\"javascript:ajax_delvote_yn({$row['id']})\">{$_AL['all.delete']}</a>&nbsp;</div>" . "";
        }
        echo "</table>";
        echo <<<EOT
\t<table class="table_1" width="100%">
\t\t<tr><td class="td_6"><a class="td_5_1a" href="admin.php?inc=vote&action=add"><img src="images/ico_add.gif" border="0" /> {$_AL['vote.add']}</a></td></tr>
\t</table>
\t<table width=100%><tr><td><input type="button" class="button_css" value="  {$_AL['all.submit']}  " onclick="ajax_dovotes()" /></td><td><div class='pagestrdiv'>{$pager->getPageStr()}</div></td></tr></table>
EOT;
        echo "</form>";
        echo <<<EOT

\t</div>
\t<div id="t2"></div>
\t<div id="t3"></div>
\t<div class="div_clear" style="height:30px;"></div>
<script>
var smallNowTab;
var pt = new Tabs();
pt.classpre="smalltab_";
pt.container = "smalltab_container";
pt.createTab("t1","{$_AL['vote.list']}","",true,"n");
pt.init = function(){
开发者ID:rust1989,项目名称:edit,代码行数:31,代码来源:vote.php


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