File manager - Edit - /home/u608250662/domains/rdsolution.org.in/public_html/jevica/application/controllers/Pagecontent.php
Back
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); class Pagecontent extends CI_Controller { public function __construct() { parent::__construct(); $this->load->library('session'); } function staticseolisting() { $data['STATICSEOLIST']= $this->crud->fetchAllData("wdi_static_seo"); $this->load->view('admin/static-seo/list',$data); } function editstaticseo() { $args=func_get_args(); if(isset($_POST['submit'])) { $args=func_get_args(); $data['title'] = $this->input->post('seotitle'); $data['description'] = $this->input->post('seodesc'); $this->crud->update($args[0],$data,"wdi_static_seo"); $this->session->set_flashdata('message','<div class="alert alert-success">Record has been successfully updated.</div>'); redirect('pagecontent/staticseolisting'); } $data['EDITDATA']= $this->crud->selectdatabycolumnname("wdi_static_seo","id",$args[0]); $this->load->view('admin/static-seo/edit',$data); } function listing() { $data['CLIENTDATAA']= $this->pagecontents->selectallcontent(); $this->load->view('admin/pagecontent/list',$data); } function add() { if(isset($_POST['submit'])) { $page=$this->input->post('selectcourse'); if($page=="page"){ $page=$this->input->post('pageurl'); } else{ $page=$this->input->post('selectcourse'); } $data['url'] = $page; $data['heading'] = $this->input->post('heading'); $data['shortdesc'] = $this->input->post('shortdesc'); $data['longdesc'] = $this->input->post('longdesc'); // print_r($data); $this->db->insert("wdi_pcontent",$data); /*seo content */ $seo['url'] = $page; $seo['seotitle'] = $this->input->post('seotitle'); $seo['seodesc'] = $this->input->post('seodesc'); $seo['seokeyword'] = $this->input->post('seokeyword'); $seo['status'] = $this->input->post('status'); $this->service->insert("wdi_seo",$seo); /* seo content end */ $this->session->set_flashdata('message','<div class="alert alert-success">Record has been successfully saved.</div>'); redirect('pagecontent/listing'); } $data['CATGDATA']= $this->pagecontents->selectallcatg(); $this->load->view('admin/pagecontent/add',$data); } function edit() { $args=func_get_args(); if(isset($_POST['submit'])) { $args=func_get_args(); $data['url'] = $this->input->post('selectcourse'); $data['heading'] = $this->input->post('heading'); $data['shortdesc'] = $this->input->post('shortdesc'); $data['longdesc'] = $this->input->post('longdesc'); $this->crud->update($args[0],$data,"wdi_pcontent"); /*seo content */ $seoid=$this->input->post("seoid"); $seo['url'] = $this->input->post('url'); $seo['seotitle'] = $this->input->post('seotitle'); $seo['seodesc'] = $this->input->post('seodesc'); $seo['seokeyword'] = $this->input->post('seokeyword'); $seo['status'] = $this->input->post('status'); $this->service->update("wdi_seo",$seoid,$seo); /* seo content end */ $this->session->set_flashdata('message','<div class="alert alert-success">Record has been successfully updated.</div>'); redirect('pagecontent/listing'); } $data['EDITDATA']= $this->crud->selectdatabycolumnname("wdi_pcontent","id",$args[0]); $data['EDITSEODATA']= $this->service->selectseobyurl($data['EDITDATA'][0]->url); // print_r($data['EDITSEODATA']); $this->load->view('admin/pagecontent/edit',$data); } function delete() { $args=func_get_args(); print_r($args[0]); $this->crud->delete($args[0],'wdi_pcontent'); $this->session->set_flashdata('message','<div class="alert alert-success">Record has been successfully deleted.</div>'); redirect('pagecontent/listing'); } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.24 |
proxy
|
phpinfo
|
Settings