Ejemplo n.º 1
0
	$new_valeur = $diapo=='on'?'off':'on';	
	CTableConfiguration::update_element('DIAPORAMA', $new_valeur);
	$a = 0;
	break;
	
case 7: // Activer, désactiver le diaporama	
	$id = $_GET['id'];
	CTableConfiguration::update_element('DEFAULT_IMAGE_ID', $id);
	$a = 0;
	break;
}

/*------------------------------------------------------
		A FAIRE DANS TOUS LES CAS
--------------------------------------------------------*/
$r_image = CTableImage::select("*", 1, $order);
?>
<!-- InstanceEndEditable -->
<div id="mainwrap">
  <div id="header"><?php include("../nav/header.php"); ?></div>
  <div id="top"><?php include("../nav/menu_h.php"); ?></div>
  <div id="filet">
    <div id="zonetitre">
      <div id="signe"></div>
      <div id="titre"><!-- InstanceBeginEditable name="titre" -->Diaporama<!-- InstanceEndEditable --></div>
    </div>
  </div>
  <div id="contentarea">
    <div id="left"><?php include("../nav/menu_g.php"); ?></div>
    <div id="center">
      <div id="page"><!-- InstanceBeginEditable name="page" --><?php echo CHtml::get_toolbar(array('add'=>1, 'cancel'=>1)) ?><!-- InstanceEndEditable --></div>
Ejemplo n.º 2
0
	$a = 0;
	
	break;
case 8 : // Modifier etat diaporama
	if(!empty($_GET['id'])) $id = $_GET['id'];
	$pag = new CTableImage(array('id'=>$id));
	$pag ->reverse_cmtr();
	break;
}
/*------------------------------------------------------
		A FAIRE DANS TOUS LES CAS
--------------------------------------------------------*/
if(!isset($_SESSION['idgal'])) {
	$_SESSION['idgal'] = 0;
}
$r_image = CTableImage::select('*', "idgal = ".$_SESSION['idgal'], $order);

?>
<!-- InstanceEndEditable -->
<div id="mainwrap">
  <div id="header"><?php include("../nav/header.php"); ?></div>
  <div id="top"><?php include("../nav/menu_h.php"); ?></div>
  <div id="filet">
    <div id="zonetitre">
      <div id="signe"></div>
      <div id="titre"><!-- InstanceBeginEditable name="titre" -->Fichiers images galeries<!-- InstanceEndEditable --></div>
    </div>
  </div>
  <div id="contentarea">
    <div id="left"><?php include("../nav/menu_g.php"); ?></div>
    <div id="center">