1 2 3 4 5 6 7 8 9 10 11 12 13
| public function GetTemplateVar($ContId,$TplId){
$tab = $this->GetDb()->select("SELECT template_name,css_id FROM ".$this->__get('db_prefix')."_templates WHERE template_id =".$TplId);
$this->__set('css_id', $tab->css_id);
$tab = parent::GetDb()->select("SELECT content_id,content_name,last_modified_by,create_date,modified_date FROM ".parent::__get('db_prefix')."_content WHERE content_id =".$ContId);
$this->smarty->content_id = $tab->content_id;
$this->smarty->title = $tab->content_name;
$tab = parent::GetDb()->select("SELECT type,text_name,content,create_date,modified_date FROM ".parent::__get('db_prefix')."_content_text WHERE content_id = ".$ContId." and text_name like 'content_en'");
$this->smarty->content=$tab->content;
$tab=parent::GetDb()->select("SELECT css_text,media_type FROM ".$this->__get('db_prefix')."_css WHERE css_id = ".$this->__get('css_id'));
$this->smarty->css_text = $tab->css_text;
$this->smarty->css_media_type = $tab->media_type;
$this->GetTemplate($TplId);
} |
Partager