<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
 * Viettel Class
 * 
 * @author dzungnv02
 *
 */

class Viettel extends MX_Controller 
{
	
	public function __construct() 
	{
		parent::__construct();
	}

	public function index() 
	{
		$this->load->view ( 'main');
	}
	
	public function mo() 
	{
		$aryParams = array();
		$aryParamsName = array(	'username',
								'password',
								'requestID',
								'userID',
								'receiverID',
								'serviceID',
								'commandCode',
								'info',
								'receiveTime');
		
		foreach ($aryParams as $key => $value) {
			$aryParams[$value] =  $this->input->post($value,TRUE);
		}
		
		$this->load->model('Sms_model', 'objSMS');
		
		$separator = '|';
		$errCode = 1;
		$messageType = 0;
		$message = $this->objSMS->getSMSByServiceId();;
		
		header('Content-type:text/html');
		echo $errCode,$separator,$messageType,$separator,$message;
	}
	
	public function mt() 
	{
		
	}
}

/* End of file viettel.php */
/* Location: ./application/modules/service/controllers/viettel.php */