/[clipping]/clipping-list.php
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /clipping-list.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.2 by dpavlin, Sat Nov 3 11:06:36 2001 UTC revision 1.3 by dpavlin, Wed Nov 7 15:24:13 2001 UTC
# Line 21  fclose ($fd); Line 21  fclose ($fd);
21    
22  // generate html  // generate html
23  print "<html><head><title>Press clipping - last $nr_lines items</title></head>  print "<html><head><title>Press clipping - last $nr_lines items</title></head>
24  </body><table>\n";  <body><table>\n";
25  $a->next;       // move to next (oldest one)  $a->prev();     // move to next (oldest one)
26    $html=array(); $old_dir="";
27  for ($i=0; $i<$nr_lines; $i++) {  for ($i=0; $i<$nr_lines; $i++) {
28          $url=$a->fetch();          $url=$a->fetch_rev();
29          print "<tr".$b->bgcolor()."><td><a href=\"http://store.pliva.hr/$url\">$url</a></td></tr>\n";          $file=basename($url);
30            if (dirname($url) != $old_dir) {
31                    print "<tr".$b->bgcolor()."><td>".implode("</td><td>",$html)."</td></tr>\n";
32                    $old_dir=dirname($url);
33                    $html=array();
34            }
35            $html[]="<a href=\"http://store.pliva.hr/$url\">$file</a>";
36  }  }
37  print "</table></body></html>\n";  print "</table></body></html>\n";
38    

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.26