Added updated controller
这个提交包含在:
父节点
8ac7a8e3d6
当前提交
b419e804bb
共有 1 个文件被更改,包括 33 次插入 和 0 次删除
|
|
@ -88,6 +88,39 @@ class Labels extends CI_Controller {
|
|||
|
||||
}
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Function: createpaper
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Shows the form used to create a paper type.
|
||||
|
|
||||
*/
|
||||
public function createpaper() {
|
||||
|
||||
$data['page_title'] = "Create Paper Type";
|
||||
|
||||
$this->load->library('form_validation');
|
||||
|
||||
$this->form_validation->set_rules('paper_name', 'Paper Name', 'required');
|
||||
|
||||
if ($this->form_validation->run() == FALSE)
|
||||
{
|
||||
$this->load->view('interface_assets/header', $data);
|
||||
$this->load->view('labels/createpaper');
|
||||
$this->load->view('interface_assets/footer');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->load->model('labels_model');
|
||||
$this->labels_model->addPaper();
|
||||
|
||||
redirect('labels');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
public function printids() {
|
||||
$ids = xss_clean(json_decode($this->input->post('id')));
|
||||
$offset = xss_clean($this->input->post('startat'));
|
||||
|
|
|
|||
正在加载…
在新工单中引用