system: Linux mars.sprixweb.com 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64
<?php
class Model_MHeader
{
function showHeader()
{
//$_SESSION['userid']=2;
$logo ="select * from sitesettings_table where sitesettings_id=3";
$obj=new Bin_Query();
$obj->executeQuery($logo);
$output=$obj->records[0]['sitesettings_value'];
return $output;
}
function showContactUs()
{
$logo ="select * from sitesettings_table where sitesettings_id=4";
$obj=new Bin_Query();
$obj->executeQuery($logo);
$output=$obj->records[0]['sitesettings_value'];
return $output;
}
function showCheckoutcount()
{
$select="select count(*) as checkoutcount from cart_table where cart_memberid='".$_SESSION['userid']."'";
$obj=new Bin_Query();
$obj->executeQuery($select);
return $obj->records[0]['checkoutcount'];
}
function showTitle()
{
$title ="select * from sitesettings_table where sitesettings_id=7";
$key ="select * from sitesettings_table where sitesettings_id=8";
$desc ="select * from sitesettings_table where sitesettings_id=9";
$obj=new Bin_Query();
$obj->executeQuery($title);
$obj1=new Bin_Query();
$obj1->executeQuery($key);
$obj2=new Bin_Query();
$obj2->executeQuery($desc);
$output['title']=$obj->records[0]['sitesettings_value'];
$output['key']=$obj1->records[0]['sitesettings_value'];
$output['desc']=$obj2->records[0]['sitesettings_value'];
return $output;
}
function showHeaderSettings()
{
$output=array();
$query = new Bin_Query();
$sql_site = "SELECT * FROM headersettings_table order by id";
$query->executeQuery($sql_site);
return $query->records;
}
}
?>