Subversion-Projekte lars-tiefland.ci

Revision

Revision 769 | Revision 783 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 769 Revision 779
Zeile 3... Zeile 3...
3
/**
3
/**
4
 *
4
 *
5
 * @package WebanOS CI
5
 * @package WebanOS CI
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
6
 * @author Lars Tiefland <ltiefland@gmail.com> 
7
 * @copyright 2016
7
 * @copyright 2016
8
 * @version $Rev: 769 $
8
 * @version $Rev: 779 $
9
 */
9
 */
Zeile 10... Zeile 10...
10
 
10
 
11
class Login extends CI_Controller
11
class Login extends CI_Controller
12
{
12
{
13
	public function index()
13
	public function index()
14
	{
14
	{
15
		$data["formstart"] = form_open("/login/execute/");
15
		$data["formstart"] = form_open("/login/execute/", array("class" => "login", ));
16
		$data["formend"] = "</form>";
16
		$data["formend"] = "</form>";
17
		$this->smarty->view('login.tpl', $data);
17
		$this->smarty->view('login.tpl', $data);
Zeile 18... Zeile 18...
18
	}
18
	}
19
 
19
 
20
	function execute()
20
	function execute()
21
	{
21
	{
22
		if ($this->form_validation->run() === false)
22
		if ($this->form_validation->run() === false)
23
		{
23
		{
24
			$data["errors"] = validation_errors();
24
			$data["errors"] = validation_errors();
25
			$data["formstart"] = form_open("/login/execute/");
25
			$data["formstart"] = form_open("/login/execute/", array("class" => "login", ));
26
			$data["formend"] = "</form>";
26
			$data["formend"] = "</form>";
27
			$this->smarty->view('login.tpl', $data);
27
			$this->smarty->view('login.tpl', $data);
28
		}
28
		}