Subversion Repositories Applications.gtt

Rev

Rev 140 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 140 Rev 155
Line 284... Line 284...
284
	}
284
	}
285
	public function setTdtMardi( $tdt )
285
	public function setTdtMardi( $tdt )
286
	{
286
	{
287
		$this->tdt_mardi = $tdt;
287
		$this->tdt_mardi = $tdt;
288
	}
288
	}
289
	
289
 
290
	// Tdt Mercredi
290
	// Tdt Mercredi
291
	public function getTdtMercredi()
291
	public function getTdtMercredi()
292
	{
292
	{
293
		return $this->tdt_mercredi;
293
		return $this->tdt_mercredi;
294
	}
294
	}
295
	public function setTdtMercredi( $tdt )
295
	public function setTdtMercredi( $tdt )
296
	{
296
	{
297
		$this->tdt_mercredi = $tdt;
297
		$this->tdt_mercredi = $tdt;
298
	}
298
	}
299
	
299
 
300
	// Tdt Jeudi
300
	// Tdt Jeudi
301
	public function getTdtJeudi()
301
	public function getTdtJeudi()
302
	{
302
	{
303
		return $this->tdt_jeudi;
303
		return $this->tdt_jeudi;
304
	}
304
	}
Line 314... Line 314...
314
	}
314
	}
315
	public function setTdtVendredi( $tdt )
315
	public function setTdtVendredi( $tdt )
316
	{
316
	{
317
		$this->tdt_vendredi = $tdt;
317
		$this->tdt_vendredi = $tdt;
318
	}
318
	}
319
	
319
 
320
	// Tdt Samedi
320
	// Tdt Samedi
321
	public function getTdtSamedi()
321
	public function getTdtSamedi()
322
	{
322
	{
323
		return $this->tdt_samedi;
323
		return $this->tdt_samedi;
324
	}
324
	}
Line 335... Line 335...
335
	public function setTdtDimanche( $tdt )
335
	public function setTdtDimanche( $tdt )
336
	{
336
	{
337
		$this->tdt_dimanche = $tdt;
337
		$this->tdt_dimanche = $tdt;
338
	}
338
	}
Line -... Line 339...
-
 
339
 
-
 
340
	// Tdt Par Numéro du jour
-
 
341
	public function getTdtParNumJour($num)
-
 
342
	{
-
 
343
		$tdt = 0;
-
 
344
		if ($num == 1) {
-
 
345
			$tdt = $this->getTdtLundi();
-
 
346
		} else if ($num == 2) {
-
 
347
			$tdt = $this->getTdtMardi();
-
 
348
		} else if ($num == 3) {
-
 
349
			$tdt = $this->getTdtMercredi();
-
 
350
		} else if ($num == 4) {
-
 
351
			$tdt = $this->getTdtJeudi();
-
 
352
		} else if ($num == 5) {
-
 
353
			$tdt = $this->getTdtVendredi();
-
 
354
		} else if ($num == 6) {
-
 
355
			$tdt = $this->getTdtSamedi();
-
 
356
		} else if ($num == 7) {
-
 
357
			$tdt = $this->getTdtDimanche();
-
 
358
		}
-
 
359
 
-
 
360
		return $tdt;
-
 
361
	}
339
 
362
 
340
	// Mark Admin
363
	// Mark Admin
341
	public function getMarkAdmin()
364
	public function getMarkAdmin()
342
	{
365
	{
343
		return $this->mark_admin;
366
		return $this->mark_admin;
Line 409... Line 432...
409
			case Utilisateur::GU_ADMIN:
432
			case Utilisateur::GU_ADMIN:
410
				$requete = 	'SELECT * '.
433
				$requete = 	'SELECT * '.
411
							'FROM gestion_utilisateur '.
434
							'FROM gestion_utilisateur '.
412
							'WHERE gu_mark_admin = 1 ';
435
							'WHERE gu_mark_admin = 1 ';
413
				break;
436
				break;
414
			
437
 
415
			default :
438
			default :
416
				$message = 'Commande '.$cmd.'inconnue!';
439
				$message = 'Commande '.$cmd.'inconnue!';
417
				$e = GestionnaireErreur::formaterMessageErreur(__FILE__, __LINE__, $message);
440
				$e = GestionnaireErreur::formaterMessageErreur(__FILE__, __LINE__, $message);
418
    			trigger_error($e, E_USER_ERROR);
441
    			trigger_error($e, E_USER_ERROR);
419
		}
442
		}