Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for doc/soft-doc-sys/slides/slide.php between version 1.1 and 1.2

version 1.1, 2002/12/16 18:00:07 version 1.2, 2002/12/17 22:29:54
Line 1 
Line 1 
 <?php  <?php
   
 require_once dirname(__FILE__).'/data.php';  // $Platon: $
   
 $slide = intval($_GET['slide']);  function slide_print_list($content)
 if ($slide < 0 || $slide >= count($data)) {  
         $slide = 0;  
 }  
   
 $title   =& $data[$slide]['title'];  
 $content =& $data[$slide]['content'];  
   
 function do_list($content)  
 {  {
         echo '<ul>'."\n";          echo '<ul class=slide-content>'."\n";
         for ($i = 0; $i < count($content); $i++) {          for ($i = 0; $i < count($content); $i++) {
                 if (is_array($content[$i])) {                  if (is_array($content[$i])) {
                         echo '<li>';                          echo '<li class=slide-content>';
                         for ($j = 0; $j < count($content[$i]); $j++) {                          for ($j = 0; $j < count($content[$i]); $j++) {
                                 if (is_array($content[$i][$j])) {                                  if (is_array($content[$i][$j])) {
                                         do_list($content[$i][$j]);                                          slide_print_list($content[$i][$j]);
                                 } else {                                  } else {
                                         echo  $content[$i][$j];                                          echo  $content[$i][$j];
                                 }                                  }
                         }                          }
                         echo '</li>';                          echo '</li>';
                 } else {                  } else {
                         echo '<li>'.$content[$i].'</li>';                          echo '<li class=slide-content>'.$content[$i].'</li>';
                 }                  }
                 echo "\n";                  echo "\n";
         }          }
         echo '</ul>'."\n";          echo '</ul>'."\n";
 }  }
   
   function slide_main()
   {
   
           require_once dirname(__FILE__).'/data.php';
   
           $slide = intval($_GET['slide']);
           if ($slide < 0 || $slide >= count($data)) {
                   $slide = 0;
           }
   
           $title   =& $data[$slide]['title'];
           $content =& $data[$slide]['content'];
   
 ?>  ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">  <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <html>  <html>
   
 <head>  <head>
         <title>Software documentation systems<?php echo isset($title) ? ": $title" : ''; ?></title>  <title>Software documentation systems<?php echo isset($title) ? ": $title" : ''; ?></title>
         <meta http-equiv="Content-Language" content="en">  <meta http-equiv="Content-Language" content="en">
         <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
         <meta name="Robots" content="all,follow">  <meta name="Robots" content="all,follow">
         <link type="text/css" href="slide.css" rel="stylesheet">  <link type="text/css" href="slide.css" rel="stylesheet">
 </head>  </head>
 <body>  <body>
   
 <table class=header><tr><td class=header align=center>  <table class=slide-header><tr><th class=slide-header style="text-align:center;">
 <a class=header href="http://www.platon.sk/projects/soft-doc-sys/">Software documentation systems</a></td></tr></table>  <a class=slide-header href="http://www.platon.sk/projects/soft-doc-sys/">Software documentation systems</a></th></tr></table>
 <p class=content></p>  <p class=slide-content></p>
 <?php  <?php
   
 if (isset($title)) {          if (isset($title)) {
         echo("<h1>$title</t1>");                  echo("<h1 class=slide-content>$title</h1>");
 }          }
   
 if (is_array($content)) {          if (is_array($content)) {
         do_list($content);                  slide_print_list($content);
 } else {          } else {
         echo $content;                  echo '<p class=slide-content>'.$content.'</p>';
 }          }
   
 ?>  ?>
 <p class=content></p>  <p class=slide-content></p>
 <table class=footer><tr>  <table class=slide-footer><tr>
 <td class=footer align="left"><a class=footer href="http://www.platon.sk/">Platon SDG, http://platon.sk/</a></td>  <th class=slide-footer style="text-align:left;" nowrap=nowrap>
 <td class=footer align="right" nowrap=nowrap><?php  <a class=slide-footer href="http://www.platon.sk/">Platon SDG, http://platon.sk/</a></th>
   <th class=slide-footer style="text-align:right;" nowrap=nowrap>
   <?php
   
 if ($slide > 0) {          if ($slide > 0) {
         printf('<a class=footer href="?slide=%d">&lt;&lt;</a>&nbsp; ', $slide - 1);                  printf('<a class=slide-footer href="?slide=%d">&lt;&lt;</a>&nbsp; ', $slide - 1);
 }          }
 if ($slide < count($data) - 1) {          if ($slide < count($data) - 1) {
         printf(' &nbsp;<a class=footer href="?slide=%d">&gt;&gt;</a>', $slide + 1);                  printf(' &nbsp;<a class=slide-footer href="?slide=%d">&gt;&gt;</a>', $slide + 1);
 }          }
   
 ?>  ?>
   </th>
 </td>  
 </tr></table>  </tr></table>
   
   
 </body>  </body>
 </html>  </html>
   
   <?php
   
   } // slide_main()
   
   slide_main();
   
   ?>
   

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

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top