ob_start();
session_start();
if(!$PHP_SELF){
if($HTTP_POST_VARS) {extract($HTTP_POST_VARS, EXTR_PREFIX_SAME, "post_");}
if($HTTP_GET_VARS) {extract($HTTP_GET_VARS, EXTR_PREFIX_SAME, "get_");}
if($HTTP_COOKIE_VARS) {extract($HTTP_COOKIE_VARS, EXTR_PREFIX_SAME,"cookie_");}
if($HTTP_ENV_VARS) {extract($HTTP_ENV_VARS, EXTR_PREFIX_SAME, "env_");}
}
if($PHP_SELF == ""){ $PHP_SELF = $HTTP_SERVER_VARS[PHP_SELF]; }
include_once("include/dbconnect.php");
include_once("function/fnc_application.php");
include_once("function/fnc_datetime.php");
?>
Application
$sSql = "SELECT cat_id, cat_name, cat_img";
$sSql .=" FROM apps_cats WHERE cat_id2=0 ORDER by cat_id";
$result = openDb($sSql);
$recCount = mysql_affected_rows();
if ($result){
$arrData = array();
while ($rows = mysql_fetch_array($result)) {$arrData[] = $rows;}
}else{
return false;
die();
}
?>
for($i=0; $i<$recCount; $i++){ ?>
if($arrData[$i][0]==2){?>
} ?>
} ?>
include("hmenu.php");?>
Application
if(empty($cat_id)){?>
$sSql = "SELECT cat_id, cat_name, cat_img";
$sSql .=" FROM apps_cats ORDER by cat_id";
$result = openDb($sSql);
$recCount = mysql_affected_rows();
if ($result){
$arrData = array();
while ($rows = mysql_fetch_array($result)) {$arrData[] = $rows;}
}else{
return false;
die();
}
for($i=0; $i<3; $i++){
if($arrData[$i][2]){
$path_img = $arrData[$i][2];
}else{
$path_img = "p.png";
}
?>
|
} ?>
if($cat_id==2 && $sub==""){
$sSql = "SELECT cat_id, cat_name, cat_img";
$sSql .=" FROM apps_cats ORDER by cat_id";
$result = openDb($sSql);
$recCount = mysql_affected_rows();
if ($result){
$arrData = array();
while ($rows = mysql_fetch_array($result)) {$arrData[] = $rows;}
}else{
return false;
die();
}
if($arrData[3][2]){
$pic_ac = "product-img/".$arrData[3][2];
}else{
$pic_ac = "p.png";
}
if($arrData[4][2]){
$pic_dc = "product-img/".$arrData[4][2];
}else{
$pic_dc = "p.png";
}
?>
} ?>
if($cat_id){
if($sub==""){
$sSql = "SELECT id, cat_id, sub, title, img";
$sSql .=" FROM apps WHERE cat_id=$cat_id and sub='' and locked=0 ORDER BY cat_id ASC";
}else{
$sSql = "SELECT id, cat_id, sub, title, img";
$sSql .=" FROM apps WHERE cat_id=$cat_id and sub='$sub' and locked=0 ORDER BY cat_id ASC";
}
$result = openDb($sSql);
$recCount = mysql_affected_rows();
if ($result){
$arrData = array();
while ($rows = mysql_fetch_array($result)) {$arrData[] = $rows;}
}else{
return false;
die();
}
echo "";
$col=0;
for($i=0; $i<$recCount; $i++){
$col=$col+1;
if($col>3){
echo " ";
$col=1;
}
if($arrData[$i][4]){
$path_img = $arrData[$i][4];
}else{
$path_img = "p.png";
}
$app_id=$arrData[$i][0];
$sSql2 = "SELECT id, app_id";
$sSql2 .=" FROM sub_apps WHERE app_id=$app_id and locked=0";
$result2 = openDb($sSql2);
$recCount2 = mysql_affected_rows();
if ($result2){
$arrData2 = array();
while ($rows2 = mysql_fetch_array($result2)) {$arrData2[] = $rows2;}
}else{
return false;
die();
}
echo " | ";
}else{
echo " ".$arrData[$i][3]." |
| ";
}
}
echo "
";
?>
}
?>
include("fancy.html");?>
include("footer2.php");?>