/[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.13 by dpavlin, Thu Apr 5 11:54:08 2001 UTC revision 1.16 by dpavlin, Mon Jun 18 07:46:33 2001 UTC
# Line 37  if ($section == "investor") { Line 37  if ($section == "investor") {
37    
38  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) );  $smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) );
39    
40    include("find_html_file.inc");
 function find_html_file($dir,$file) {  
         $file="./$dir/$file";  
         if (is_file("$file") && file_exists("$file")) { return "$file"; }  
         if (is_file("$file.htm") && file_exists("$file.htm")) { return "$file.htm"; }  
         if (is_file("$file.html") && file_exists("$file.html")) { return "$file.html"; }  
         return 0;  
 }  
41    
42  if (file_exists(find_html_file("news",$more))) {  if (file_exists(find_html_file("news",$more))) {
43    
# Line 83  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 100  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 125  if (file_exists(find_html_file("news",$m Line 122  if (file_exists(find_html_file("news",$m
122                          $title.=" : Investors News : ".$data[0][title_lc];                          $title.=" : Investors News : ".$data[0][title_lc];
123                  } elseif ($data[0][type] == "a") {                  } elseif ($data[0][type] == "a") {
124                          $title.=" : Annual Report : ".$data[0][title_lc];                          $title.=" : Annual Report : ".$data[0][title_lc];
125                    } elseif ($data[0][type] == "p") {
126                            $title.=" : Presentations : ".$data[0][title_lc];
127                  }                  }
128          }          }
129    
130    
131          if (isset($days) && $num_selected == 0) {          if (isset($days) && $num_selected == 0) {
132                  $warning = "There are no news for last $days days.";                  $warning = "There are no news for last $days days.";
133          }          } elseif ($main == "" && $num_selected == 0) {
   
         if ($main == "" && $num_selected == 0) {  
134                  $warning = "This news item is no longer available";                  $warning = "This news item is no longer available";
135          }          }
136    

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.26