Subversion-Projekte lars-tiefland.medien

Revision

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

Revision 99 Revision 100
Zeile 18... Zeile 18...
18
				$sql="SELECT * FROM $prefix"."boxes WHERE a_id=$id";
18
				$sql="SELECT * FROM $prefix"."boxes WHERE a_id=$id";
19
				$res=$db->query($sql);
19
				$res=$db->query($sql);
20
				$row=$res->fetchRow();
20
				$row=$res->fetchRow();
21
				$this->id=$id;
21
				$this->id=$id;
22
				$this->name=stripslashes($row["a_name"]);
22
				$this->name=stripslashes($row["a_name"]);
23
				$this->sampler=$row["a_sampler"];
-
 
24
				$this->genre=$row["a_genre"];
23
				$this->genre=$row["a_genre"];
25
				$this->year=$row["a_year"];
24
				$this->year=$row["a_year"];
26
				$this->pic =stripslashes(($row["a_pic"])?$row["a_pic"]:"nopic.jpg");
25
				$this->pic =stripslashes(($row["a_pic"])?$row["a_pic"]:"nopic.jpg");
27
				$this->artist=$row["a_artist"];
26
				$this->artist=$row["a_artist"];
28
			}
27
			}
29
			else
28
			else
30
			{
29
			{
31
				$this->id=0;
30
				$this->id=0;
32
				$this->name="";
31
				$this->name="";
33
				$this->sampler=0;
-
 
34
				$this->genre=-1;
32
				$this->genre=-1;
35
				$this->pic="";
33
				$this->pic="";
36
				$this->year=0;
34
				$this->year=0;
37
				$this->artist=0;
35
				$this->artist=0;
38
			}
36
			}
Zeile 41... Zeile 39...
41
		function Album($id=0)
39
		function Album($id=0)
42
		{
40
		{
43
			$this->__construct($id);
41
			$this->__construct($id);
44
		}
42
		}
Zeile 45... Zeile 43...
45
 
43
 
46
		function update($a_name, $a_pic, $a_year, $a_sampler=0, $a_genre=0, $p_del=0, $a_artist=0)
44
		function update($a_name, $a_pic, $a_year, $a_genre=0, $p_del=0, $a_artist=0)
47
		{
45
		{
48
			$this->name=$a_name;
-
 
49
			$this->sampler=$a_sampler;
46
			$this->name=$a_name;
50
			$this->year=$a_year;
47
			$this->year=$a_year;
51
			$this->pic=$a_pic;
48
			$this->pic=$a_pic;
52
			$this->genre=$a_genre;
49
			$this->genre=$a_genre;
53
			$this->p_del=$p_del;
50
			$this->p_del=$p_del;