Server IP : 128.199.20.84 / Your IP : 172.71.255.62 Web Server : Apache/2.4.41 (Ubuntu) System : Linux competent-maruti 5.4.0-128-generic #144-Ubuntu SMP Tue Sep 20 11:00:04 UTC 2022 x86_64 User : www-data ( 33) PHP Version : 8.0.20 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF Directory (0775) : /var/www/html/file_upload/../application/controllers/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php defined('BASEPATH') OR exit('No direct script access allowed'); class Home_controller extends CI_Controller { public function __construct() { parent::__construct(); $this->load->helper('url'); $this->load->database(); $this->load->library('pagination'); } public function index() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; // $data['sliders'] = $this->db->order_by("sort", "asc")->get_where('tp_slider', array('status'=>1))->result_array(); $data['testi'] = $this->db->order_by("id", "desc")->get_where('tp_testi', array('status'=>1))->result_array(); $data['products'] = $this->db->order_by("id", "desc")->limit(8)->get_where('tp_products', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('index'); $this->load->view('footer'); } public function product_details($phase1='',$phase2='') { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $data['products'] = $this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); $data['category'] = str_replace('-', ' ', strtoupper($phase1)); $data['id'] = $phase2; $data['categoryamount'] = $this->db->order_by("id", "desc")->get_where('tp_category', array('id'=>$phase2))->result_array(); $data['colorimage'] = $this->db->order_by("id", "asc")->get_where('tp_color', array('category_id'=>$phase2))->result_array(); $this->load->view('header',$data); $this->load->view('product-details'); $this->load->view('footer'); } public function thankyou() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('thank-you-header',$data); $this->load->view('thankyou'); $this->load->view('footer'); } public function privacypolicy() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('privacy-policy'); $this->load->view('footer'); } public function testi() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $data['testi'] = $this->db->order_by("id", "asc")->get_where('tp_testi', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('testimonials'); $this->load->view('footer'); } public function bookservice() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('book-service'); $this->load->view('footer'); } public function bookatestdrive() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('book-a-test-drive'); $this->load->view('footer'); } public function skodasupercare() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('skoda-supercare'); $this->load->view('footer'); } public function skodaextendedwarranty() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('skoda-extended-warranty'); $this->load->view('footer'); } public function skodacleverlease() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('skoda-clever-lease'); $this->load->view('footer'); } public function newcarinsurance() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('new-car-insurance'); $this->load->view('footer'); } public function about() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('about-us'); $this->load->view('footer'); } public function vision() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('vision'); $this->load->view('footer'); } public function showroom() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('showroom'); $this->load->view('footer'); } public function workshop() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('workshop'); $this->load->view('footer'); } public function gallery() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('gallery'); $this->load->view('footer'); } public function accessories() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('accessories'); $this->load->view('footer'); } public function finance() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('finance'); $this->load->view('footer'); } public function insurance() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('insurance'); $this->load->view('footer'); } public function awards() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('awards'); $this->load->view('footer'); } public function subscribe(){ $data = array( 'email' => $this->input->post('email') ); //insert data into database table. $this->db->insert('tp_subscribe',$data); $this->session->set_flashdata('success', 'Subscribe Successfully.'); redirect("thankyou"); } public function enquiry(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Car Enquiry'; $name = $this->input->post('firstname'); $lastname = $this->input->post('lastname'); $model = $this->input->post('model'); $phone = $this->input->post('phone'); $message = 'Name : '.$name.' '.$lastname.' <br> Model : '.$model.' <br> Phone : '.$phone; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'email' => $this->input->post('email'), 'firstname' => $this->input->post('firstname'), 'lastname' => $this->input->post('lastname'), 'phone' => $this->input->post('phone'), 'model' => $this->input->post('model') ); //insert data into database table. $this->db->insert('tp_enquiry',$data); $this->session->set_flashdata('success', 'Enquiry Successfully.'); redirect("thankyou"); } public function savebookaservice(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Enquiry'; $name = $this->input->post('firstname'); $model = $this->input->post('model'); $phone = $this->input->post('phone'); $message = 'Name : '.$name.' <br> Model : '.$model.' <br> Phone : '.$phone; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'email' => $this->input->post('email'), 'firstname' => $this->input->post('firstname'), 'model' => $this->input->post('model'), 'phone' => $this->input->post('phone') ); //insert data into database table. $this->db->insert('tp_book_a_service',$data); $this->session->set_flashdata('success', 'Enquiry Successfully.'); redirect("thankyou"); } public function savecontact(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Contact Us Enquiry'; $name = $this->input->post('firstname'); $phone = $this->input->post('phone'); $outlet = $this->input->post('outlet'); $model = $this->input->post('model'); $comment = $this->input->post('comment'); $message = 'Name : '.$name.'<br> Phone : '.$phone.' <br> Outlet : ' .$outlet.'<br> Model : '.$model.'<br> Comment : '.$comment; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'outlet' => $this->input->post('outlet'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'model' => $this->input->post('model'), 'comment' => $this->input->post('comment') ); //insert data into database table. $this->db->insert('tp_contact',$data); $this->session->set_flashdata('success', 'Enquiry Successfully.'); redirect("thankyou"); } public function savecomplaints(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Contact Us Complaints'; $name = $this->input->post('firstname'); $phone = $this->input->post('phone'); $outlet = $this->input->post('outlet'); $model = $this->input->post('model'); $comment = $this->input->post('comment'); $message = 'Name : '.$name.'<br> Phone : '.$phone.' <br> Outlet : ' .$outlet.'<br> Model : '.$model.'<br> Comment : '.$comment; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'outlet' => $this->input->post('outlet'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'model' => $this->input->post('model'), 'comment' => $this->input->post('comment') ); //insert data into database table. $this->db->insert('tp_complaints',$data); $this->session->set_flashdata('success', 'Complaints Successfully.'); redirect("thankyou"); } public function saveservicebooking(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Book A Service Appointment'; $name = $this->input->post('firstname'); $model = $this->input->post('model'); $phone = $this->input->post('phone'); $state = $this->input->post('state'); $pickup = $this->input->post('pickup'); $servic_type = $this->input->post('servic_type'); $city = $this->input->post('city'); $date = $this->input->post('date'); $registration_number = $this->input->post('registration_number'); $outlet = $this->input->post('outlet'); $comment = $this->input->post('comment'); $message = 'Name : '.$name.' <br> Model : '.$model.'<br> Phone : '.$phone.' <br> State : ' .$state.'<br> City : '.$city.'<br> Pickup: '.$pickup.'<br> Servic Type : '.$servic_type.'<br> Date : '.$date.'<br> Registration Number : '.$registration_number.'<br> Outlet : '.$outlet.'<br> Comment : '.$comment; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'state' => $this->input->post('state'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'model' => $this->input->post('model'), 'pickup' => $this->input->post('pickup'), 'servic_type' => $this->input->post('servic_type'), 'city' => $this->input->post('city'), 'date' => $this->input->post('date'), 'registration_number' => $this->input->post('registration_number'), 'outlet' => $this->input->post('outlet'), 'comment' => $this->input->post('comment') ); //insert data into database table. $this->db->insert('tp_bookingservice',$data); $this->session->set_flashdata('success', 'Booking Service Successfully.'); redirect("thankyou"); } public function savetestdrivebooking(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Book A Test Drive'; $name = $this->input->post('firstname'); $phone = $this->input->post('phone'); $outlet = $this->input->post('outlet'); $model = $this->input->post('model'); $comment = $this->input->post('comment'); $message = 'Name : '.$name.'<br> Phone : '.$phone.' <br> Outlet : ' .$outlet.'<br> Model : '.$model.'<br> Comment : '.$comment; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'model' => $this->input->post('model'), 'outlet' => $this->input->post('outlet'), 'comment' => $this->input->post('comment') ); //insert data into database table. $this->db->insert('tp_bookingtestdrive',$data); $this->session->set_flashdata('success', 'Test Drive Booking Successfully.'); redirect("thankyou"); } public function savebookingservice(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Contact Us Service Booking'; $name = $this->input->post('firstname'); $phone = $this->input->post('phone'); $pickup = $this->input->post('pickup'); $model = $this->input->post('model'); $address = $this->input->post('address'); $servic_type = $this->input->post('servic_type'); $message = 'Name : '.$name.'<br> Phone : '.$phone.' <br> Pickup : ' .$pickup.'<br> Model : '.$model.'<br> Address : '.$address. '<br> Servic Type : '.$servic_type; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'address' => $this->input->post('address'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'model' => $this->input->post('model'), 'pickup' => $this->input->post('pickup'), 'servic_type' => $this->input->post('servic_type'), ); //insert data into database table. $this->db->insert('tp_servicebooking',$data); $this->session->set_flashdata('success', 'Booking Service Successfully.'); redirect("thankyou"); } public function savefeedback(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Contact Us Feedback'; $name = $this->input->post('firstname'); $phone = $this->input->post('phone'); $outlet = $this->input->post('outlet'); $rating = $this->input->post('rating'); $comment = $this->input->post('comment'); $message = 'Name : '.$name.'<br> Phone : '.$phone.' <br> Outlet : ' .$outlet.'<br> Rating : '.$rating.'<br> Comment : '.$comment; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'outlet' => $this->input->post('outlet'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'comment' => $this->input->post('comment'), 'rating' => $this->input->post('rating') ); //insert data into database table. $this->db->insert('tp_feedback',$data); $this->session->set_flashdata('success', 'Feedback Successfully.'); redirect("thankyou"); } public function saveinsurance(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Insurance Renewal'; $name = $this->input->post('firstname'); $model = $this->input->post('model'); $phone = $this->input->post('phone'); $registration_number = $this->input->post('registration_number'); $registration_year = $this->input->post('registration_year'); $policy_number = $this->input->post('policy_number'); $insurance_company = $this->input->post('insurance_company'); $insurance_expiry_date = $this->input->post('insurance_expiry_date'); $claim = $this->input->post('claim'); $message = 'Name : '.$name.' <br> Model : '.$model.'<br> Phone : '.$phone.' <br> Registration Number : '.$registration_number.'<br> Registration Year : '.$registration_year.'<br> Policy Number : '.$policy_number.'<br> Insurance Company : '.$insurance_company.'<br> Insurance Expiry Date : '.$insurance_expiry_date.'<br> Claim : '.$claim; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'model' => $this->input->post('model'), 'registration_number' => $this->input->post('registration_number'), 'registration_year' => $this->input->post('registration_year'), 'vehicle_rc_file' => $this->input->post('vehicle_rc_file'), 'vehicle_insurance_file' => $this->input->post('vehicle_insurance_file'), 'policy_number' => $this->input->post('policy_number'), 'insurance_company' => $this->input->post('insurance_company'), 'insurance_expiry_date' => $this->input->post('insurance_expiry_date'), 'claim' => $this->input->post('claim') ); //insert data into database table. $this->db->insert('tp_insurance',$data); $this->session->set_flashdata('success', 'Insurance Successfully.'); redirect("thankyou"); } public function savefinance(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Finance'; $name = $this->input->post('firstname'); $model = $this->input->post('model'); $phone = $this->input->post('phone'); $outlet = $this->input->post('outlet'); $comment = $this->input->post('comment'); $purchase_time = $this->input->post('purchase_time'); $loan_amount = $this->input->post('loan_amount'); $loan_duration = $this->input->post('loan_duration'); $message = 'Name : '.$name.' <br> Model : '.$model.'<br> Phone : '.$phone.' <br> Outlet : '.$outlet.'<br> Purchase Time : '.$purchase_time.'<br> Loan Amount : '.$loan_amount.'<br> Loan Duration : '.$loan_duration.'<br> Comment : '.$comment; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'outlet' => $this->input->post('outlet'), 'model' => $this->input->post('model'), 'comment' => $this->input->post('comment'), 'purchase_time' => $this->input->post('purchase_time'), 'loan_amount' => $this->input->post('loan_amount'), 'loan_duration' => $this->input->post('loan_duration') ); //insert data into database table. $this->db->insert('tp_finance',$data); $this->session->set_flashdata('success', 'Finance Successfully.'); redirect("thankyou"); } public function savesupercare(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Supercare Program'; $name = $this->input->post('firstname'); $phone = $this->input->post('phone'); $state = $this->input->post('state'); $city = $this->input->post('city'); $message = 'Name : '.$name.'<br> Phone : '.$phone.' <br> State : ' .$state.'<br> City : '.$city; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'outlet' => $this->input->post('outlet'), 'state' => $this->input->post('state'), 'city' => $this->input->post('city') ); //insert data into database table. $this->db->insert('tp_supercare',$data); $this->session->set_flashdata('success', 'Supercare Successfully.'); redirect("thankyou"); } public function savecleverlease(){ $data = array( 'lease' => $this->input->post('lease'), 'outlet' => $this->input->post('outlet'), 'variant' => $this->input->post('variant'), 'tenure' => $this->input->post('tenure'), 'mileage_per_year' => $this->input->post('mileage_per_year'), 'city' => $this->input->post('city'), 'emischeme' => $this->input->post('emischeme'), 'registrationtype' => $this->input->post('registrationtype'), 'profession' => $this->input->post('profession'), 'exchange' => $this->input->post('exchange'), 'currentlyown' => $this->input->post('currentlyown') ); //insert data into database table. $this->db->insert('tp_clever_lease',$data); $this->session->set_flashdata('success', 'Clever Lease Successfully.'); redirect("thankyou"); } public function get_blog($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Download Forms"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function count_all_blog(){ $this->db->select('*'); $this->db->from('tp_blog'); $query = $this->db->count_all_results(); return $query; } public function blog() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 6; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['blogs'] = $this->get_blog($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('blog'); $this->load->view('footer'); } public function blog_detail($phase1='',$phase2='') { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('id'=>$phase2))->result_array(); $data['category'] = str_replace('-', ' ', strtoupper($phase1)); $data['id'] = $phase2; //$this->load->view('blog_header',$data); $this->load->view('blog_detail',$data); $this->load->view('footer'); } public function outlets() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('outlets'); $this->load->view('footer'); } public function financial() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['finan'] = $this->get_finan($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('financial_results'); $this->load->view('footer'); } public function newspaperpublications() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['newspaper'] = $this->get_newspaper($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('newspaper_publications'); $this->load->view('footer'); } public function secretarialcertificates() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['secretarial'] = $this->get_secretarial($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('secretarial_certificates'); $this->load->view('footer'); } public function get_finan($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Financial Results"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function get_newspaper($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Newspaper Publications"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function get_secretarial($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Secretarial Certificates"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function annualreport() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['annualrept'] = $this->get_annualrept($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('annual_reports'); $this->load->view('footer'); } public function get_annualrept($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Annual Reports"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function annualreturn() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['annualretu'] = $this->get_annualretu($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('annual_return'); $this->load->view('footer'); } public function get_annualretu($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Annual Return"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function noticeboard() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['noticebm'] = $this->get_noticebm($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('notice_of_board_meeting'); $this->load->view('footer'); } public function get_noticebm($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Notice of Board Meeting"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function policies() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['policy'] = $this->get_policy($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('policies'); $this->load->view('footer'); } public function get_policy($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Policies"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function shareholding() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['sharev'] = $this->get_sharev($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('share_holding_pattern'); $this->load->view('footer'); } public function get_sharev($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Share Holding Pattern"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function iepf() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['iepfv'] = $this->get_iepfv($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('iepf'); $this->load->view('footer'); } public function get_iepfv($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"IEPF"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function noticepb() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['noticepbv'] = $this->get_noticepbv($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('notice_for_postal_ballot'); $this->load->view('footer'); } public function get_noticepbv($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Notice for Postal Ballot"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function amg() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['amgv'] = $this->get_amgv($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('amg_notice'); $this->load->view('footer'); } public function get_amgv($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"AGM Notice"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function noticereg() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['noticeurv'] = $this->get_noticeurv($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('notice_us_reg_30'); $this->load->view('footer'); } public function get_noticeurv($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Notice U/S Reg 30"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function relatedparty() { $data['metatitle']='Container Seals & Industries'; $data['metakeyword']='Container Seals & Industries'; $data['metadescription']='Container Seals & Industries'; $config['base_url'] = base_url().'Home_controller/blog'; $config['total_rows'] = $this->count_all_blog(); $config['per_page'] = 100; $config['uri_segment'] = 3; //config for bootstrap pagination class integration $config['full_tag_open'] = '<ul class="pagination">'; $config['full_tag_close'] = '</ul>'; $config['first_link'] = 'First'; $config['last_link'] = 'Last'; $config['first_tag_open'] = '<li>'; $config['first_tag_close'] = '</li>'; $config['prev_link'] = '«'; $config['prev_tag_open'] = '<li class="prev">'; $config['prev_tag_close'] = '</li>'; $config['next_link'] = '»'; $config['next_tag_open'] = '<li>'; $config['next_tag_close'] = '</li>'; $config['last_tag_open'] = '<li>'; $config['last_tag_close'] = '</li>'; $config['cur_tag_open'] = '<li class="active"><a href="#">'; $config['cur_tag_close'] = '</a></li>'; $config['num_tag_open'] = '<li>'; $config['num_tag_close'] = '</li>'; $page = ($this->uri->segment(3)) ? $this->uri->segment(3) : 0; $this->pagination->initialize($config); $data['pagination'] = $this->pagination->create_links(); $data['relatedptv'] = $this->get_relatedptv($config["per_page"], $page); // $data['blogs'] = $this->db->order_by("id", "desc")->get_where('tp_blog', array('status'=>1))->result_array(); $this->load->view('header',$data); $this->load->view('related_party_transaction'); $this->load->view('footer'); } public function get_relatedptv($limit, $start){ $this->db->select('*'); $this->db->from('tp_blog'); $this->db->where('page',"Related Party Transaction"); $this->db->order_by("id", "desc"); $this->db->limit($limit, $start); $query = $this->db->get(); return $query->result_array(); //$this->db->order_by("id", "desc")->get_where('tp_products', array('category_id'=>$phase2))->result_array(); } public function code() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('code_of_ethics'); $this->load->view('footer'); } public function investirsarea() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('investors_area'); $this->load->view('footer'); } // All New Controllers - Kishore // // Contact Us // public function contact() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('contact-us'); $this->load->view('footer'); } public function savecontactus(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Contact Us'; $firstname = $this->input->post('firstname'); $lastname = $this->input->post('lastname'); $phone = $this->input->post('phone'); $email = $this->input->post('email'); $subject1 = $this->input->post('subject'); $comment = $this->input->post('comment'); $message = 'FirstName : '.$firstname.'<br> LastName : '.$lastname.'<br> Phone : '.$phone.'<br> Email : '.$email.' <br> Subject : '.$subject1.'<br> Comment : '.$comment; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); $data = array( 'firstname' => $this->input->post('firstname'), 'lastname' => $this->input->post('lastname'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'subject' => $this->input->post('subject'), 'comment' => $this->input->post('comment') ); //insert data into database table. $this->db->insert('tp_contactus',$data); $this->session->set_flashdata('success', 'Test Drive Booking Successfully.'); redirect("thankyou-contact-us"); } public function thankyoucontactus() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('thankyou-contact-us'); $this->load->view('footer'); } // Career // public function career() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('career'); $this->load->view('footer'); } public function savecareer(){ $this->load->config('email'); $this->load->library('email'); $from = '[email protected]'; $to = $this->input->post('email'); $subject = 'Career'; $firstname = $this->input->post('firstname'); $lastname = $this->input->post('lastname'); $phone = $this->input->post('phone'); $email = $this->input->post('email'); $department = $this->input->post('department'); $comment = $this->input->post('comment'); $message = 'Name : '.$firstname.'<br> Phone : '.$phone.'<br> Email : '.$email.'<br> Department : '.$department.'<br> Location : '.$lastname.'<br> Comment : '.$comment; $this->email->set_newline("\r\n"); $this->email->from($to); $this->email->to($from); $this->email->subject($subject); $this->email->message($message); $this->email->send(); /* FILE UPLOAD CODE */ $target_dir = "file_upload/resume/"; $target_file = $target_dir . basename($_FILES["resume"]["name"]); $imageFileType = strtolower(pathinfo($target_file, PATHINFO_EXTENSION)); move_uploaded_file($_FILES["resume"]["tmp_name"], $target_file); /* FILE UPLOAD CODE */ $data = array( 'firstname' => $this->input->post('firstname'), 'lastname' => $this->input->post('lastname'), 'phone' => $this->input->post('phone'), 'email' => $this->input->post('email'), 'department' => $this->input->post('department'), 'resume' => $target_file, 'comment' => $this->input->post('comment') ); //insert data into database table. $this->db->insert('tp_career',$data); $this->session->set_flashdata('success', 'Test Drive Booking Successfully.'); redirect("thankyou-career"); } public function thankyoucareer() { $data['metatitle']=''; $data['metakeyword']=''; $data['metadescription']=''; $this->load->view('header',$data); $this->load->view('thankyou-career'); $this->load->view('footer'); } }