21 |
if (! isset($type)) { |
if (! isset($type)) { |
22 |
$sql_where .= " and type='i'"; |
$sql_where .= " and type='i'"; |
23 |
} |
} |
|
$title.=" : Investors News"; |
|
24 |
} else { |
} else { |
|
$title="What's New"; |
|
|
$lpic="new"; $lext=".jpg"; |
|
|
$mpic="new.gif"; |
|
25 |
$back_url="index.php"; |
$back_url="index.php"; |
26 |
$sql_where.=" and (type='a' or type='c' or type='e' or type='f' or type='i' or type='n' or type='p' or type='r')"; // don't show company profile |
$sql_where.=" and (type='a' or type='c' or type='e' or type='f' or type='i' or type='n' or type='p' or type='r')"; // don't show company profile |
27 |
} |
} |
44 |
if (isset($type)) { |
if (isset($type)) { |
45 |
if ($type == "n") { |
if ($type == "n") { |
46 |
$sql_where .= " and (type='n' or type='i')"; |
$sql_where .= " and (type='n' or type='i')"; |
47 |
} elseif ($type == "e" || $type == "c") { |
} elseif ($type == "e") { |
48 |
$sql_where .= " and type='".$type."'"; |
$sql_where .= " and (type='e' or type='f')"; |
49 |
|
} elseif ($type == "f") { |
50 |
|
$sql_where .= " and type='f'"; |
51 |
|
} elseif ($type == "c") { |
52 |
|
$sql_where .= " and type='c'"; |
53 |
} |
} |
|
$title.=" : ".$news_type[$type]; |
|
54 |
} |
} |
55 |
|
|
56 |
if (! isset($show) && !isset($start)) { |
if (! isset($show) && !isset($start)) { |
131 |
$smarty->assign( array(back_url=>$back_url, MAIN=>$main, |
$smarty->assign( array(back_url=>$back_url, MAIN=>$main, |
132 |
Section_title=>$title ) ); |
Section_title=>$title ) ); |
133 |
|
|
|
include("inc/newsletter.php"); |
|
|
|
|
134 |
$smarty->display("index.tpl"); |
$smarty->display("index.tpl"); |
135 |
?> |
?> |