/[inncomm]/index.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 /index.php

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

revision 1.5 by dpavlin, Thu Dec 21 15:05:43 2000 UTC revision 1.6 by dpavlin, Thu Jan 4 14:56:48 2001 UTC
# Line 17  $tpl->define( Line 17  $tpl->define(
17                  startnew => "startnew.html",                  startnew => "startnew.html",
18                  ttable => "topics-table.html",                  ttable => "topics-table.html",
19                  theader => "topics-header.html",                  theader => "topics-header.html",
20                    tlheader => "topics-list-header.html",
21                  trow => "topics-row.html",                  trow => "topics-row.html",
22                    tlrow => "topics-list-row.html",
23                  reply => "reply.html",                  reply => "reply.html",
24                  checkboxes => "checkboxes.html"                  checkboxes => "checkboxes.html"
25          )          )
# Line 178  while ($row=$sth->fetchrow_hash()) { Line 180  while ($row=$sth->fetchrow_hash()) {
180                  COMMENTS => "<a href=\"$PHP_SELF?what=show&t=$row[topic_id]\">comments&gt;&gt;</a>",                  COMMENTS => "<a href=\"$PHP_SELF?what=show&t=$row[topic_id]\">comments&gt;&gt;</a>",
181                  PHP_SELF => $PHP_SELF                  PHP_SELF => $PHP_SELF
182          ));          ));
         $tpl->parse(ROWS,".theader");  
183    
184          if (isset($t) && $t==$row[topic_id]) {          if (isset($t) && $t==$row[topic_id]) {
185                    $tpl->parse(ROWS,".theader");
186                  $sth2 = $dbh->prepare("                  $sth2 = $dbh->prepare("
187                          select poruke.id as id,sadrzaj as topic,level,thread_id,reply_id,full_name,poruke.datum as datum,poruke.analitical as poruka_analitical                          select poruke.id as id,sadrzaj as topic,level,thread_id,reply_id,full_name,poruke.datum as datum,poruke.analitical as poruka_analitical
188                          from poruke,osobe                          from poruke,osobe
# Line 231  while ($row=$sth->fetchrow_hash()) { Line 233  while ($row=$sth->fetchrow_hash()) {
233                                          DATE => $row2[datum],                                          DATE => $row2[datum],
234                                          SADRZAJ => $topic                                          SADRZAJ => $topic
235                                  ));                                  ));
 #                       $tpl->parse(ROWS,".theader");  
236                          $tpl->parse(ROWS,".trow");                          $tpl->parse(ROWS,".trow");
237                  }                  }
238          } else {          } else {
239                  // non-unroll topics                  // non-unroll topics (list)
240                  $tpl->assign( array(                  $tpl->assign( array(
241                                  SADRZAJ => $row[sadrzaj],                                  SADRZAJ => $row[sadrzaj],
242                                  COMMENTS => "<a href=\"$PHP_SELF?what=show&t=$row[topic_id]\">comments&gt;&gt;</a>"                                  COMMENTS => "<a href=\"$PHP_SELF?what=show&t=$row[topic_id]\">comments&gt;&gt;</a>"
243                          ));                          ));
244  #               $tpl->parse(ROWS,".theader");                  $tpl->parse(ROWS,".tlheader");
245                  $tpl->parse(ROWS,".trow");                  $tpl->parse(ROWS,".tlrow");
246          }          }
247    
248  }  }

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

  ViewVC Help
Powered by ViewVC 1.1.26