Server : Apache System : Linux iZ2vcgyutqttsd1p850kl8Z 3.10.0-1160.92.1.el7.x86_64 #1 SMP Tue Jun 20 11:48:01 UTC 2023 x86_64 User : www ( 1000) PHP Version : 5.6.40 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/saimikebio.com/ecshopjcw/templates/ |
<!-- $Id: sms_pages.htm 14216 2008-03-10 02:27:21Z testyang $ --> <div id="turn-page"> {$lang.total_records} <span id="totalRecords">{$turn_page.total_records}</span> {$lang.total_pages} <span id="totalPages">{$turn_page.total_pages}</span> {$lang.page_current} <span id="pageCurrent">{$turn_page.page}</span> {$lang.page_size} <input type='text' size='3' name="page_size" id='pageSize' value="{$turn_page.page_size}" /> <span id="page-link"> <a href="javascript:gotoPageFirst()">{$lang.page_first}</a> {literal}<a href="javascript:gotoPagePrev()">{/literal}{$lang.page_prev}</a> {literal}<a href="javascript:gotoPageNext()">{/literal}{$lang.page_next}</a> {literal}<a href="javascript:gotoPageLast()">{/literal}{$lang.page_last}</a> <select id="gotoPage" onchange="gotoPage(this.value)"></select> <input type="hidden" value="{$turn_page.page}" name="page"> </span> </div> {insert_scripts files="../js/utils.js"} <script language="JavaScript"> <!-- var total_pages = {$turn_page.total_pages}; var page = {$turn_page.page}; var page_size = {$turn_page.page_size}; {literal} onload = function() { var lst = document.getElementById('gotoPage'); for (i = 1; i <= total_pages; i++) { var opt = new Option(i, i); lst.options.add(opt); if (i == page) { opt.selected = true; } } } document.getElementById("pageSize").onkeypress = function(e) { var evt = Utils.fixEvent(e); if (evt.keyCode == 13) { document.forms['listForm'].submit(); return false; }; } /** * 前往第一页 */ function gotoPageFirst() { document.forms['listForm'].elements['page'].value = 1; document.forms['listForm'].submit(); } /** * 跳转到下一页 */ function gotoPageNext() { if (page < total_pages) { document.forms['listForm'].elements['page'].value = page + 1; document.forms['listForm'].submit(); } } /** * 跳转到上一页 */ function gotoPagePrev() { if (page > 1) { document.forms['listForm'].elements['page'].value = page - 1; document.forms['listForm'].submit(); } } /** * 跳转到最后一页 */ function gotoPageLast() { if (page < total_pages) { document.forms['listForm'].elements['page'].value = total_pages; document.forms['listForm'].submit(); } } {/literal} //--> </script>