13 |
$section="new"; |
$section="new"; |
14 |
} |
} |
15 |
|
|
16 |
|
$sql_where="where visible is true"; |
17 |
|
|
18 |
if ($section == "investor") { |
if ($section == "investor") { |
19 |
$title="INVESTOR'S PAGE"; |
$title="INVESTOR'S PAGE"; |
20 |
$lpic="investor"; $lext=".jpg"; |
$lpic="investor"; $lext=".jpg"; |
21 |
$mpic="investors.gif"; |
$mpic="investors.gif"; |
22 |
$back_url="investor.php"; |
$back_url="investor.php"; |
23 |
|
$sql_where .= " and type='i'"; |
24 |
|
$title.=" : Investors News"; |
25 |
} elseif ($section == "about") { |
} elseif ($section == "about") { |
26 |
$title="ABOUT US"; |
$title="ABOUT US"; |
27 |
$lpic="about"; $lext=".gif"; |
$lpic="about"; $lext=".gif"; |
35 |
|
|
36 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) ); |
37 |
|
|
|
$sql_where="where visible is true"; |
|
38 |
|
|
39 |
function find_html_file($dir,$file) { |
function find_html_file($dir,$file) { |
40 |
$file="./$dir/$file"; |
$file="./$dir/$file"; |
56 |
|
|
57 |
if (isset($type)) { |
if (isset($type)) { |
58 |
if ($type == "n") { |
if ($type == "n") { |
59 |
$sql_where .= " and type='n'"; |
$sql_where .= " and (type='n' or type='i')"; |
60 |
$title.=" : News"; |
$title.=" : News"; |
61 |
} elseif ($type == "e") { |
} elseif ($type == "e") { |
62 |
$sql_where .= " and type='e'"; |
$sql_where .= " and type='e'"; |