我没有很多使用php的经验,这也是我第一次使用codeigniter。我正在与一家网络营销公司合作。事实上,我的老板让我解决了一些我们的pms错误。在收到代码后,我发现它是用codeigniter编写的,所以我阅读了一些文档并遵循了一些教程,最后大致了解了它的功能。 我必须修复显示异常:搜索字段。问题是当我点击文本字段时,它似乎被禁用了。只有当我点击“研究”这个词时,光标才会出现,而且该字段将允许我写一些东西进行搜索。 如果问题看起来不那么重要,我很抱歉。 如果有人想要帮助,我需要知道这个bug是否与css或js有关。我认为一个css bug(我必须做出更大或更小的东西)这是对的吗?有人可以帮忙吗?
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
class Clients extends CI_Controller{
public function __construct(){
parent::__construct();
$this->load->model('client');
$this->load->model('note');
$this->load->model('devi');
$this->load->model('projet');
$this->load->helper("url");
$this->load->library("session");
$this->lang->load('main');
$this->lang->load('clients');
}
public function index(){
$data["page"] = "clients";
$data["extraJS"]=$this->lang->getLangJS();
$data["type"] = $this->session->userdata("userType");
$data["name"] = $this->session->userdata("prenom")." ".$this->session->userdata("nom");
$this->load->helper("language");
$this->load->view("header",$data);
$this->load->view("clients/list");
$this->load->view("footer");
}
public function clientsJson() {
echo $this->client->getDataTablesResponse();
}
public function changeStatut(){
$id = $this->uri->segment(4);
$statut = $this->uri->segment(5);
$this->client->changeStatut($id,$statut);
}
public function changeRemarque(){
$id = $this->uri->segment(4);
$this->client->changeRemarque($id);
}
public function addNote(){
$id = $this->uri->segment(4);
echo $this->note->addNote($id,'1');
}
public function delNote(){
$id = $this->uri->segment(4);
$this->note->delNote($id);
}
public function getParamFacture($id){
$data["etat"] = $this->facture->getEtat();
echo json_encode($data);
}
public function verifprojet(){
$id = $this->uri->segment(4);
$result = $this->projet->verifclient($id) ;
echo $result;
}
public function supp($id){
echo $this->client->supp($id);
}
}
视图/客户端/ list.php的
<input type="hidden" value="" id="id_client"/>
<div class="clients_page">
<div class="all_filtre">
<div class="filtre">
<ul class="list_selector">
<li class="stFilterClt" value=""><label><input type="radio" value=""
class="stFilterClt" name="filterEtat"/><label><?php echo
lang("clients_all")?></label></label></li>
<li class="stFilterClt" value="1"><label><input type="radio" value="1"
class="stFilterClt" name="filterEtat"/><label><?php echo
lang("clients_ongoing")?></label></label></li>
<li class="stFilterClt" value="2"><label><input type="radio" value="2"
class="stFilterClt" name="filterEtat"/><label><?php echo
lang("clients_stand")?></label></label></li>
<li class="stFilterClt" value="3"><label><input type="radio" value="3"
class="stFilterClt" name="filterEtat"/><label><?php echo
lang("clients_lost")?></label></label></li>
</div>
</div>
<table id="clients">
<thead>
<tr>
<th width="350px;"><?php echo lang("clients_client")?></th>
<th><?php echo lang("clients_contact")?></th>
<th width="120px;" style=" text-align:center"><?php echo
lang("clients_project")?></th>
<th><?php echo lang("clients_state")?></th>
<th></th>
</tr>
</thead>
</table>
</div>