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 |
|
if (! isset($type)) { |
24 |
|
$sql_where .= " and type='i'"; |
25 |
|
} |
26 |
|
$title.=" : Investors News"; |
27 |
|
} elseif ($section == "about") { |
28 |
|
$title="ABOUT US"; |
29 |
|
$lpic="about"; $lext=".gif"; |
30 |
|
$mpic="about.gif"; |
31 |
} else { |
} else { |
32 |
$title="What's New"; |
$title="What's New"; |
33 |
$lpic="new"; $lext=".jpg"; |
$lpic="new"; $lext=".jpg"; |
37 |
|
|
38 |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) ); |
$smarty->assign( array ( lpic=>$lpic, lext=>$lext, mpic=>$mpic, ) ); |
39 |
|
|
|
$sql_where="where visible is true"; |
|
40 |
|
|
41 |
function find_html_file($dir,$file) { |
function find_html_file($dir,$file) { |
42 |
$file="./$dir/$file"; |
$file="./$dir/$file"; |
58 |
|
|
59 |
if (isset($type)) { |
if (isset($type)) { |
60 |
if ($type == "n") { |
if ($type == "n") { |
61 |
$sql_where .= " and type='n'"; |
$sql_where .= " and (type='n' or type='i')"; |
62 |
$title.=" : News"; |
$title.=" : News"; |
63 |
} elseif ($type == "e") { |
} elseif ($type == "e") { |
64 |
$sql_where .= " and type='e'"; |
$sql_where .= " and type='e'"; |
65 |
$title.=" : Events"; |
$title.=" : Events"; |
66 |
|
} elseif ($type == "c") { |
67 |
|
$sql_where .= " and type='c'"; |
68 |
|
$title.=" : Community"; |
69 |
} |
} |
70 |
} |
} |
71 |
|
|
111 |
$title.=" : Community : ".$data[0][title_lc]; |
$title.=" : Community : ".$data[0][title_lc]; |
112 |
} elseif ($data[0][type] == "r") { |
} elseif ($data[0][type] == "r") { |
113 |
$title.=" : Result : ".$data[0][title_lc]; |
$title.=" : Result : ".$data[0][title_lc]; |
114 |
|
} elseif ($data[0][type] == "i") { |
115 |
|
$title.=" : Investors News : ".$data[0][title_lc]; |
116 |
} |
} |
117 |
} |
} |
118 |
|
|