function sf_pagination_prev_next($currentPage, $lastPage, $delim = " | ", $containertag = "", $childtag = "")
 {
     if ($lastPage > 1) {
         $returnHtml = "";
         if ($containertag != "") {
             $returnHtml .= "<" . $containertag . ">";
         }
         $returnHtml = get_previous_link($currentPage, $lastPage, $childtag) . $delim . get_next_link($currentPage, $lastPage, $childtag);
         if ($containertag != "") {
             $returnHtml .= "</" . $containertag . ">";
         }
         echo $returnHtml;
     }
 }
示例#2
0
文件: ranklist.php 项目: CDFLS/CWOJ
                <ul class="pager">
                    <li>
                        <a class="pager-pre-link shortcut-hint" title="Alt+A" <?php 
if ($page_id > 1) {
    echo 'href="ranklist.php?' . htmlspecialchars(get_pre_link()) . '"';
}
?>
><i class="fa fa-fw fa-angle-left"></i> <?php 
echo _('Previous');
?>
</a>
                    </li>
                    <li>
                        <a class="pager-next-link shortcut-hint" title="Alt+D" <?php 
if ($page_id < $maxpage) {
    echo 'href="ranklist.php?' . htmlspecialchars(get_next_link()) . '"';
}
?>
><?php 
echo _('Next');
?>
 <i class="fa fa-fw fa-angle-right"></i></a>
                    </li>
                </ul>
            </div>  
            <?php 
require __DIR__ . '/inc/footer.php';
?>
        </div>
        
        <div class="modal fade" id="UserModal">
示例#3
0
文件: mail.php 项目: CDFLS/CWOJ
                        <li>
                            <a class="pager-pre-link shortcut-hint" title="Alt+A" <?php 
    if ($page_id > 1) {
        echo 'href="mail.php?' . htmlspecialchars(get_pre_link()) . '"';
    }
    ?>
>
                            <i class="fa fa-fw fa-angle-left"></i> <?php 
    echo _('Previous');
    ?>
</a>
                        </li>
                        <li>
                            <a class="pager-next-link shortcut-hint" title="Alt+D" <?php 
    if ($page_id < $maxpage) {
        echo 'href="mail.php?' . htmlspecialchars(get_next_link()) . '"';
    }
    ?>
>
                            <?php 
    echo _('Next');
    ?>
 <i class="fa fa-fw fa-angle-right"></i></a>
                        </li>
                    </ul>
                </div>
                
                <div class="modal fade" id="MailModal">
                    <div class="modal-dialog">
                        <div class="modal-content">
                            <div class="modal-header">
示例#4
0
文件: record.php 项目: CDFLS/CWOJ
                <ul class="pager">
                    <li>
                        <a class="pager-pre-link shortcut-hint" title="Alt+A" <?php 
if ($_SERVER['QUERY_STRING'] != htmlspecialchars(get_pre_link())) {
    echo 'href="record.php?' . htmlspecialchars(get_pre_link()) . '"';
}
?>
><i class="fa fa-angle-left"></i> <?php 
echo _('Previous');
?>
</a>
                    </li>
                    <li>
                        <a class="pager-next-link shortcut-hint" title="Alt+D" <?php 
if (!$rank_mode && $solution_id > 1020 || $rank_mode && intval($start_id / 20) < intval($maxpage / 20)) {
    echo 'href="record.php?' . htmlspecialchars(get_next_link()) . '"';
}
?>
><?php 
echo _('Next');
?>
 <i class="fa fa-angle-right"></i></a>
                    </li>
                </ul>
            </div>
            <?php 
require __DIR__ . '/inc/footer.php';
?>
        </div>
        
        <div class="modal fade" id="UserModal">
示例#5
0
        </div>
      </div>
      <div class="row-fluid">
        <ul class="pager">
          <li>
            <a class="pager-pre-link shortcut-hint" title="Alt+A"
               href="record.php?<?php 
echo htmlspecialchars(get_pre_link());
?>
" id="btn-pre"><i
                class="icon-angle-left"></i> Previous</a>
          </li>
          <li>
            <a class="pager-next-link shortcut-hint" title="Alt+D"
               href="record.php?<?php 
echo htmlspecialchars(get_next_link());
?>
" id="btn-next">Next <i
                class="icon-angle-right"></i></a>
          </li>
        </ul>
      </div>

      <div class="modal hide" id="UserModal">
        <div class="modal-header">
          <a class="close" data-dismiss="modal">×</a>
          <h4>User Infomation</h4>
        </div>
        <div class="modal-body" id="user_status" style="max-height:350px">
          <p>Information isn't available.</p>
        </div>