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
cmd: 

Direktori : /home/pfhr/public_html/admin/classes/Controller/
Upload File :
Current File : /home/pfhr/public_html/admin/classes/Controller/CInbox.php

<?php
class Controller_CInbox
{	
	function showInbox()
	{
		include_once('classes/Controller/CHeader.php');
		include_once('classes/Controller/CFooter.php');
		include_once('classes/Lib/HandleErrors.php');
		include_once('classes/Model/MInbox.php');
		include_once('classes/Display/DInbox.php');
		include_once('classes/Lib/Paging.php');		
		include_once('classes/Model/MHeader.php');
		$output['header']=Controller_CHeader::showHeader();
		$output['inbox']=Model_MInbox::showInbox();
		Bin_Template::createTemplate('inbox.html',$output);
		
		$output['footer']=Controller_CFooter::showFooter();
		unset($_SESSION['no_records']);
		
		unset($_SESSION['message']);
		unset($_SESSION['error_message']);
	}
	
	function showMails()
	{
		include_once('classes/Controller/CHeader.php');
		include_once('classes/Controller/CFooter.php');
		include_once('classes/Lib/HandleErrors.php');
		include_once('classes/Model/MInbox.php');
		include_once('classes/Display/DInbox.php');
		include_once('classes/Lib/Paging.php');		
		include_once('classes/Model/MHeader.php');
		$output['header']=Controller_CHeader::showHeader();
		$values=Model_MInbox::showMails();
		$output['name']=$values['contactus_name'];
		$output['from']=$values['contactus_email'];
		$output['phone']=$values['contactus_phone'];
		$output['date']=$values['contactus_date'];
		$output['subject']=$values['contactus_subject'];
		$output['message']=$values['contactus_message'];
		Bin_Template::createTemplate('inbox_email.html',$output);
		
		$output['footer']=Controller_CFooter::showFooter();
		unset($_SESSION['no_records']);
		
		unset($_SESSION['message']);
		unset($_SESSION['error_message']);
	}
	
	function showSent()
	{
		include_once('classes/Controller/CHeader.php');
		include_once('classes/Controller/CFooter.php');
		include_once('classes/Lib/HandleErrors.php');
		include_once('classes/Model/MInbox.php');
		include_once('classes/Display/DInbox.php');
		include_once('classes/Lib/Paging.php');		
		include_once('classes/Model/MHeader.php');
		$output['header']=Controller_CHeader::showHeader();
		$output['inbox']=Model_MInbox::showSent();
		Bin_Template::createTemplate('inbox_sent.html',$output);
		
		$output['footer']=Controller_CFooter::showFooter();
		unset($_SESSION['no_records']);
		
		unset($_SESSION['message']);
		unset($_SESSION['error_message']);
	}
	
	function showTrash()
	{
		include_once('classes/Controller/CHeader.php');
		include_once('classes/Controller/CFooter.php');
		include_once('classes/Lib/HandleErrors.php');
		include_once('classes/Model/MInbox.php');
		include_once('classes/Display/DInbox.php');
		include_once('classes/Lib/Paging.php');		
		include_once('classes/Model/MHeader.php');
		$output['header']=Controller_CHeader::showHeader();
		$output['inbox']=Model_MInbox::showTrash();
		Bin_Template::createTemplate('inbox_Trash.html',$output);
		
		$output['footer']=Controller_CFooter::showFooter();
		unset($_SESSION['no_records']);
		
		unset($_SESSION['message']);
		unset($_SESSION['error_message']);
	}
	

	
	function showCompose()
	{
		include_once('classes/Controller/CHeader.php');
		include_once('classes/Controller/CFooter.php');
		include_once('classes/Lib/HandleErrors.php');
		include_once('classes/Model/MInbox.php');
		include_once('classes/Display/DInbox.php');
		include_once('classes/Lib/Paging.php');		
		include_once('classes/Model/MHeader.php');
		$output['header']=Controller_CHeader::showHeader();
		

		
		Bin_Template::createTemplate('inbox_compose.html',$output);
		$output['footer']=Controller_CFooter::showFooter();
		unset($_SESSION['no_records']);
		unset($_SESSION['message']);
		unset($_SESSION['error_message']);
		unset($_SESSION['contactsuc']);
	}
	
	
	function SendMail()
	{
		include_once('classes/Controller/CHeader.php');
		include_once('classes/Controller/CFooter.php');
		include_once('classes/Model/MInbox.php');
		include_once('classes/Display/DInbox.php');
		Model_MInbox::SendMail();
	}
		
	function process()
	{		
		include_once('classes/Model/MInbox.php');		
		Model_MInbox::process();		
	}
	
	
	function showWebMail()
	{
		include_once('classes/Controller/CHeader.php');
		include_once('classes/Controller/CFooter.php');
		Bin_Template::createTemplate('webmail.html',$output);
	}

}
?>