Uwe: CGI Gästebuch integrieren ohne Frames, brauche Hilfe !???

Beitrag lesen

Hier das originale Script im anderen sind schon Änderungen von mir die nicht gingen.

############ Links erzeugen ####################################
 $start_entry = ($page_to_show - 1) * $max_pp;
 if($total){
  @entries_to_show = splice(@entries, $start_entry, $max_pp);
 }
 else{
  @entries_to_show = ();
 }
 $next_page = $page_to_show + 1;
 $previous_page = $page_to_show - 1;

#### Total entries: 100 on 10 pages viewing page: 1 ############
 print qq~
 <script language="JavaScript">
  function view_page(){
   var num = document.page.select.options[document.page.select.selectedIndex].value;
   location.href = num;
  }
  function view_page_bottom(){
   var num = document.page.select_bottom.options[document.page.select_bottom.selectedIndex].value;
   location.href = num;
  }
  function sign(){
   location.href="$ENV{'SCRIPT_NAME'}?action=sign&lang=$FORM{'lang'}";
  }
  function previous_page(){
   var pre = $page_to_show;
   if(pre < 2){
    alert("$JS_First_Page");
   }
   else{
    location.href="$ENV{'SCRIPT_NAME'}?page_to_show=$previous_page&lang=$FORM{'lang'}";
   }
  }
  function next_page(){
   var nexx = $page_to_show;
   if(nexx > $num_of_pages || nexx == $num_of_pages){
    alert("$JS_Last_Page");
   }
   else{
    location.href="$ENV{'SCRIPT_NAME'}?page_to_show=$next_page&lang=$FORM{'lang'}";
   }
  }
 </script>
 ~;

print qq~
 <table border="0" width="$Big_Table_Width" bgcolor="$Big_Table_BgColor" cellpadding="$Table_Padding" cellspacing="$Table_Spacing" align="center"><tr>
 <td valign="top" background="$Table_Background" bgcolor="$Big_Table_BgColor">
  <table width="100%" bgcolor="white" cellspacing="0" cellpadding="5">
         <tr>
         ~;