/[corp_html]/new.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 /new.php

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

revision 1.14 by dpavlin, Thu Apr 5 12:04:12 2001 UTC revision 1.15 by dpavlin, Mon Apr 9 13:30:14 2001 UTC
# Line 76  if (file_exists(find_html_file("news",$m Line 76  if (file_exists(find_html_file("news",$m
76                  }                  }
77                  $smarty->assign("days",$days);                  $smarty->assign("days",$days);
78                  $smarty->assign("last_days",array(14,30,160,240,365));                  $smarty->assign("last_days",array(14,30,160,240,365));
79                  $smarty->assign("last_desc",array("two week","one month","four months","six months","one year"));                  $smarty->assign("last_desc",array("two weeks","one month","four months","six months","one year"));
80          }          }
81    
82          $num_selected=0;          $num_selected=0;
# Line 93  if (file_exists(find_html_file("news",$m Line 93  if (file_exists(find_html_file("news",$m
93          }          }
94    
95          if ($num_selected == 10) {          if ($num_selected == 10) {
96                    $tmp="$PHP_SELF?start=".($start+10);
97                    if ($days) $tmp.="&days=$days";
98                  $smarty->assign(array(                  $smarty->assign(array(
99                          "multi_page_show" => 1,                          "multi_page_show" => 1,
100                          "multi_page_next" => "$PHP_SELF?start=".($start+10),                          "multi_page_next" => $tmp
101                  ));                  ));
102          }          }
103          if ($start && $start >= 10) {          if ($start && $start >= 10) {
104                    $tmp="$PHP_SELF?start=".($start-10);
105                    if ($days) $tmp.="&days=$days";
106                  $smarty->assign(array(                  $smarty->assign(array(
107                          "multi_page_show" => 1,                          "multi_page_show" => 1,
108                          "multi_page_prev" => "$PHP_SELF?start=".($start-10),                          "multi_page_prev" => $tmp
109                  ));                  ));
110          }          }
111    
# Line 124  if (file_exists(find_html_file("news",$m Line 128  if (file_exists(find_html_file("news",$m
128    
129          if (isset($days) && $num_selected == 0) {          if (isset($days) && $num_selected == 0) {
130                  $warning = "There are no news for last $days days.";                  $warning = "There are no news for last $days days.";
131          }          } elseif ($main == "" && $num_selected == 0) {
   
         if ($main == "" && $num_selected == 0) {  
132                  $warning = "This news item is no longer available";                  $warning = "This news item is no longer available";
133          }          }
134    

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.26