Line 28 | Line 28 |
---|
{ var page = prompt(jump_page, on_page);
|
{ var page = prompt(jump_page, on_page);
|
if (page !== null && !isNaN(page) && page > 0)
| if (page !== null && !isNaN(page) && page == Math.floor(page) && page > 0) { if (base_url.indexOf('?') == -1) { document.location.href = base_url + '?start=' + ((page - 1) * per_page); } else
|
{ document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
|
{ document.location.href = base_url.replace(/&/g, '&') + '&start=' + ((page - 1) * per_page);
|
| }
|
} }
| } }
|
Line 185 | Line 192 |
---|
<a id="toggle-handle" accesskey="m" title="{L_MENU_TOGGLE}" onclick="switch_menu(); return false;" href="#"></a></div> <!-- ENDIF --> <div id="menu">
|
<a id="toggle-handle" accesskey="m" title="{L_MENU_TOGGLE}" onclick="switch_menu(); return false;" href="#"></a></div> <!-- ENDIF --> <div id="menu">
|
<p>{L_LOGGED_IN_AS}<br /><strong>{USERNAME}</strong> [ <a href="{U_LOGOUT}">{L_LOGOUT}</a> ][ <a href="{U_ADM_LOGOUT}">{L_ADM_LOGOUT}</a> ]</p>
| <p>{L_LOGGED_IN_AS}<br /><strong>{USERNAME}</strong> [ <a href="{U_LOGOUT}">{L_LOGOUT}</a> ][ <a href="{U_ADM_LOGOUT}">{L_ADM_LOGOUT}</a> ] </p>
|
<ul>
|
<ul>
|
| <!-- DEFINE $LI_USED = 0 -->
|
<!-- BEGIN l_block1 --> <!-- IF l_block1.S_SELECTED --> <!-- BEGIN l_block2 --> <!-- IF .l_block1.l_block2.l_block3 --> <li class="header">{l_block1.l_block2.L_TITLE}</li>
|
<!-- BEGIN l_block1 --> <!-- IF l_block1.S_SELECTED --> <!-- BEGIN l_block2 --> <!-- IF .l_block1.l_block2.l_block3 --> <li class="header">{l_block1.l_block2.L_TITLE}</li>
|
| <!-- DEFINE $LI_USED = 1 -->
|
<!-- ENDIF --> <!-- BEGIN l_block3 --> <li<!-- IF l_block1.l_block2.l_block3.S_SELECTED --> id="activemenu"<!-- ENDIF -->><a href="{l_block1.l_block2.l_block3.U_TITLE}"><span>{l_block1.l_block2.l_block3.L_TITLE}</span></a></li>
|
<!-- ENDIF --> <!-- BEGIN l_block3 --> <li<!-- IF l_block1.l_block2.l_block3.S_SELECTED --> id="activemenu"<!-- ENDIF -->><a href="{l_block1.l_block2.l_block3.U_TITLE}"><span>{l_block1.l_block2.l_block3.L_TITLE}</span></a></li>
|
| <!-- DEFINE $LI_USED = 1 -->
|
<!-- END l_block3 --> <!-- END l_block2 --> <!-- ENDIF --> <!-- END l_block1 -->
|
<!-- END l_block3 --> <!-- END l_block2 --> <!-- ENDIF --> <!-- END l_block1 -->
|
| <!-- IF not $LI_USED --> <li></li> <!-- ENDIF -->
|
</ul> </div>
| </ul> </div>
|