Subversion-Projekte lars-tiefland.ci

Revision

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

Revision 933 Revision 936
Zeile 35... Zeile 35...
35
		$this->smarty->view('scheduler.tpl');
35
		$this->smarty->view('scheduler.tpl');
36
	}
36
	}
Zeile 37... Zeile 37...
37
 
37
 
38
	public function edit($id = null)
38
	public function edit($id = null)
-
 
39
	{
-
 
40
		if ($this->input->post('mode'))
-
 
41
		{
-
 
42
			$this->save();
39
	{
43
		}
40
		if ($id)
44
		if ($id)
41
		{
45
		{
42
			$task = $this->get_task($id);
46
			$task = $this->get_task($id);
43
		}
47
		}
Zeile 126... Zeile 130...
126
	}
130
	}
Zeile 127... Zeile 131...
127
 
131
 
128
	public function save()
132
	public function save()
129
	{
133
	{
130
		$intervall = $this->create_intervall();
134
		$intervall = $this->create_intervall();
-
 
135
		if (!column_exists("schnittstellen", "aktiv", $GLOBALS["webs"]["datenbank"], $this->
131
		if (!column_exists("schnittstellen", "aktiv", $GLOBALS["webs"]["datenbank"], $this->db))
136
			db))
132
		{
137
		{
133
			$sql = "
138
			$sql = "
134
                ALTER TABLE
139
                ALTER TABLE
135
                    schnittstellen
140
                    schnittstellen
136
                ADD
141
                ADD
137
                    aktiv BOOL NOT NULL DEFAULT '1' AFTER user
142
                    aktiv BOOL NOT NULL DEFAULT '1' AFTER user
138
            ";
143
            ";
139
			$this->db->query($sql);
144
			$this->db->query($sql);
140
		}
145
		}
-
 
146
		if (column_exists("schnittstellen", "email", $GLOBALS["webs"]["datenbank"], $this->
141
		if (column_exists("schnittstellen", "email", $GLOBALS["webs"]["datenbank"], $this->db))
147
			db))
142
		{
148
		{
143
			$extra = "email='".$this->input->post('email')."',";
149
			$extra = "email='".$this->input->post('email')."',";
144
		}
150
		}
145
		if ($this->input->post('id'))
151
		if ($this->input->post('id'))