* set company field required.

This commit is contained in:
wangyidong
2017-01-05 11:12:43 +08:00
parent 5600702eb3
commit 1d6d3e8cb1
8 changed files with 79 additions and 4 deletions
+21
View File
@@ -276,6 +276,27 @@ class admin extends control
$this->display();
}
/**
* Set ztCompany.
*
* @access public
* @return void
*/
public function ztCompany()
{
if($_POST)
{
$response = $this->admin->setCompanyByAPI();
$response = json_decode($response);
if($response->result == 'fail') die(js::alert($response->message));
die(js::locate($this->createLink('mail', 'ztCloud'), 'parent'));
}
$this->view->title = $this->lang->admin->ztCompany;
$this->view->position[] = $this->lang->admin->ztCompany;
$this->display();
}
/**
* Ajax send code.
*