You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
732 B
PHTML
30 lines
732 B
PHTML
5 years ago
|
<?php
|
||
|
|
||
|
if (!defined('BASEPATH'))
|
||
|
exit('No direct script access allowed');
|
||
|
|
||
|
class index extends CI_Controller {
|
||
|
function __construct() {
|
||
|
parent::__construct();
|
||
|
}
|
||
|
|
||
|
public function homepage(){
|
||
|
$this->load->view('bootstrap3/header');
|
||
|
$this->load->view('homepage');
|
||
|
$this->load->view('bootstrap3/footer');
|
||
|
}
|
||
|
|
||
|
public function search_error_urls(){
|
||
|
$sitecode = $this->input->get_post('sitecode');
|
||
|
$errorurl = $this->input->get_post('errorurl');
|
||
|
|
||
|
if(empty($sitecode) && empty($errorurl)){
|
||
|
echo '请选择站点或填写url';
|
||
|
}else{
|
||
|
//查询url
|
||
|
$this->load->model('infos_model');
|
||
|
$pages = $this->infos_model->get_errorurls_pages($sitecode,$errorurl);
|
||
|
print_r(json_encode($pages));
|
||
|
}
|
||
|
}
|
||
|
}
|