PHP Classes

File: links.inc

Recommend this page to a friend!
  Classes of Vladimir Kudryavtsev   History links   links.inc   Download  
File: links.inc
Role: Auxiliary script
Content type: text/plain
Description: Test (for all pages)
Class: History links
Keep track and link to pages browsed by user
Author: By
Last change: * Little changes
Date: 18 years ago
Size: 3,794 bytes
 

Contents

Class file image Download
<div align=center>
<table>
<!-- <tr><td><hr size=1 noshade></td></tr> -->
<tr valign="top"><td>
<br>
<table style="border: 1px solid #3F3F3F; background-color: #EAEAEA;">
<tr valign="top"><td align="right" width="50%" nowrap><b>
<a href="<?php echo $h->get_history_backs();?>">&laquo; to start</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_history_back(3)){
   
?><a href="<?php echo $h->get_history_back(3);?>" title="step 3"><?php
}
?>&laquo;&laquo;&laquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_history_go(-2)){
   
?><a href="<?php echo $h->get_history_go(-2);?>" title="step 2"><?php
}
?>&laquo;&laquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_history_back()){
   
?><a href="<?php echo $h->get_history_back();?>" title="step 1"><?php
}
?>&laquo; TEST BACK URL</a></b></td>
<td width=1>&nbsp;|&nbsp;</td>
<td width="50%" nowrap><b><?php
if($h->is_history_next()){
   
?><a href="<?php echo $h->get_history_next();?>" title="step 1"><?php
}
?>TEST NEXT URL &raquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_history_go(2)){
   
?><a href="<?php echo $h->get_history_go(2);?>" title="step 2"><?php
}
?>&raquo;&raquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_history_next(3)){
   
?><a href="<?php echo $h->get_history_next(3);?>" title="step 3"><?php
}
?>&raquo;&raquo;&raquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?php echo $h->get_history_nexts();?>">to last &raquo;</a></b>
<p></td></tr>


<tr valign="top"><td align="right" nowrap><b>
<form action="" name=form_back>Step: <select name="back">
    <option value="1" SELECTED>1
    <option value="2">2
    <option value="3">3
    <option value="4">4
    <option value="5">5
    <option value="6">6
</select>
<a href="#" onclick="document.location.href='<?php echo $h->get_history_header();?>&<?php echo isset($arr['name_back_param'])?$arr['name_back_param']:'b'?>='+document.form_back.back.options[document.form_back.back.selectedIndex].value" title="variable step">&laquo; TEST BACK header URL</a></b>
</form></td>
<td>&nbsp;|&nbsp;</td>
<td nowrap><b>
<form action="" name=form_next>Step: <select name="next">
    <option value="1" SELECTED>1
    <option value="2">2
    <option value="3">3
    <option value="4">4
    <option value="5">5
    <option value="6">6
</select>
<a href="#" onclick="document.location.href='<?php echo $h->get_history_header();?>&<?php echo isset($arr['name_next_param'])?$arr['name_next_param']:'n'?>='+document.form_next.next.options[document.form_next.next.selectedIndex].value" title="variable step">TEST NEXT header URL &raquo;</a></b>
</form>
<p></td></tr>


<tr valign="top"><td align="right" nowrap><b>
<a href="<?php echo $h->get_always_backs();?>">&laquo; to start</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_always_back(3)){
   
?><a href="<?php echo $h->get_always_back(3);?>" title="step 3"><?php
}
?>&laquo;&laquo;&laquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_always_go(-2)){
   
?><a href="<?php echo $h->get_always_go(-2);?>" title="step 2"><?php
}
?>&laquo;&laquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_always_back()){
   
?><a href="<?php echo $h->get_always_back();?>" title="step 1"><?php
}
?>&laquo; TEST BACK(always)</a></b></td>
<td>&nbsp;|&nbsp;</td>
<td nowrap><b><?php
if($h->is_always_next()){
   
?><a href="<?php echo $h->get_always_next();?>" title="step 1"><?php
}
?>TEST NEXT(always) &raquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_always_go(2)){
   
?><a href="<?php echo $h->get_always_go(2);?>" title="step 2"><?php
}
?>&raquo;&raquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<?php
if($h->is_always_next(3)){
   
?><a href="<?php echo $h->get_always_next(3);?>" title="step 3"><?php
}
?>&raquo;&raquo;&raquo;</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="<?php echo $h->get_always_nexts();?>">to last &raquo;</a></b>
<p></td></tr>

</table>
</td></tr>

<?php
#test Array links
include("test.inc");
?>
</table>

</div>