web/index.php
changeset 229 74c9ddc3640b
parent 207 621fa6caec0c
child 233 10d6fd6ce9ab
equal deleted inserted replaced
228:1bcc79e78fa1 229:74c9ddc3640b
     3 ini_set('display_errors', '1');
     3 ini_set('display_errors', '1');
     4 /**
     4 /**
     5  * include some common code (like we did in the 90s)
     5  * include some common code (like we did in the 90s)
     6  * People still do this? ;)
     6  * People still do this? ;)
     7  */
     7  */
     8 include_once './common.php';
     8 
       
     9 include_once dirname(__FILE__).'/config.php';
       
    10 include_once dirname(__FILE__).'/'.$C_default_rep.'/config.php';
       
    11 include_once dirname(__FILE__).'/common.php';
     9 
    12 
    10 /**
    13 /**
    11  * Do we already have a valid Access Token or need to go get one?
    14  * Do we already have a valid Access Token or need to go get one?
    12  */
    15  */
    13 if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) {
    16 if (!isset($_SESSION['TWITTER_ACCESS_TOKEN']) && isset($_GET['CONNECT']) ) {
    44 	<link rel="stylesheet" href="res/css/tabs-slideshow.css" type="text/css" media="screen, projection">
    47 	<link rel="stylesheet" href="res/css/tabs-slideshow.css" type="text/css" media="screen, projection">
    45 	<link rel="stylesheet" type="text/css" href="res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css" media="screen">
    48 	<link rel="stylesheet" type="text/css" href="res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.css" media="screen">
    46 	<link rel="stylesheet" type="text/css" href="res/niceforms/niceforms-custom.css" media="screen" >
    49 	<link rel="stylesheet" type="text/css" href="res/niceforms/niceforms-custom.css" media="screen" >
    47 
    50 
    48 	<!-- JAVASCRIPT --> 
    51 	<!-- JAVASCRIPT --> 
    49 	<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
    52 	<script type="text/javascript" src="<?php echo(registry_url('jquery','js'));?>"></script>
    50 	<!--<script type="text/javascript" src="res/jquery.tools/jquery.tools.min.js"></script>-->
    53 	<script type="text/javascript" src="<?php echo(registry_url('jquery-tools','js'));?>"></script>
    51 	<script src="http://cdn.jquerytools.org/1.2.5/all/jquery.tools.min.js"></script>
    54 	<script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'));?>"></script>
    52 	<script type="text/javascript" src="res/jquery.fancybox/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
    55 	<script type="text/javascript" src="<?php echo(registry_url('fancybox','js'));?>"></script>
    53 	<script type="text/javascript" src="res/jquery.fancybox/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
    56 	<script type="text/javascript" src="<?php echo(registry_url('niceforms','js'));?>"></script>
    54 	<script type="text/javascript" src="res/niceforms/niceforms.js"></script>
    57 	<script type="text/javascript" src="<?php echo(registry_url('tw-widget','js'));?>"></script>
    55 	<script src="http://widgets.twimg.com/j/2/widget.js"></script>
       
    56 	
    58 	
    57 	<!-- FONT -->
    59 	<!-- FONT -->
    58 	<link href='http://fonts.googleapis.com/css?family=PT+Sans+Narrow&subset=latin' rel='stylesheet' type='text/css'>
    60 	<link href='<?php echo(registry_url('PT-Sans_Narrow','font'));?>' rel='stylesheet' type='text/css'>
    59 	<link href='http://fonts.googleapis.com/css?family=PT+Sans&subset=latin' rel='stylesheet' type='text/css'>
    61 	<link href='<?php echo(registry_url('PT-Sans','font'));?>' rel='stylesheet' type='text/css'>
    60 	<link href='http://fonts.googleapis.com/css?family=Geo&subset=latin' rel='stylesheet' type='text/css'>
    62 	<link href='<?php echo(registry_url('Geo','font'));?>' rel='stylesheet' type='text/css'>
    61 
    63 
    62 	<script type="text/javascript">	
    64 	<script type="text/javascript">	
    63 	$(document).ready(function() {
    65 	$(document).ready(function() {
    64 		$(".loginbutton").click(function() {
    66 		$(".loginbutton").click(function() {
    65 			document.location.href="<?php URL_ROOT ?>?CONNECT=true";
    67 			document.location.href="<?php echo(URL_ROOT.$C_default_rep); ?>/client.php?CONNECT=true";
    66 		});
    68 		});
    67 		$("#IDENTIFIER").click(function() {
    69 		$("#IDENTIFIER").click(function() {
    68 			document.location.href="<?php URL_ROOT ?>?CONNECT=true";
    70 			document.location.href="<?php echo(URL_ROOT.$C_default_rep); ?>/client.php?CONNECT=true";
    69 		});
    71 		});
    70 		$("#ACCES").click(function() {
    72 		$("#ACCES").click(function() {
    71 			document.location.href="client.php";
    73 			document.location.href="<?php echo(URL_ROOT.$C_default_rep); ?>/client.php";
    72 		});
    74 		});
    73 		$(".archivesVideoBox").mouseover(function() {
    75 		$(".archivesVideoBox").mouseover(function() {
    74 			//$(this).animate({'backgroundColor'});
    76 			//$(this).animate({'backgroundColor'});
    75 			//$(this).css({'backgroundColor':'#d6d6d6'});
    77 			//$(this).css({'backgroundColor':'#d6d6d6'});
    76 			$(this).css({'backgroundColor':'#fff'});
    78 			$(this).css({'backgroundColor':'#fff'});
    87 			interval: 4000,
    89 			interval: 4000,
    88 			clickable:false
    90 			clickable:false
    89 		}).slideshow();		
    91 		}).slideshow();		
    90 		
    92 		
    91 		$(".slidetabs").data("slideshow").play();
    93 		$(".slidetabs").data("slideshow").play();
       
    94 
       
    95 		$(".scrollable").scrollable();
    92 	});
    96 	});
    93 
    97 
    94 
    98 
    95 
    99 
    96 		
   100 		
   111   </head>
   115   </head>
   112   <body>
   116   <body>
   113     <div class="container">
   117     <div class="container">
   114       <img src="images/ENMI_2010_logo.gif" class="logo">
   118       <img src="images/ENMI_2010_logo.gif" class="logo">
   115 	  <ul class="menu"> 
   119 	  <ul class="menu"> 
   116 	  <li class="menuUnderline"><a href="<?php URL_ROOT ?>?CONNECT=true" class="menuLink">
   120 	  <li class="menuUnderline"><a href="<?php echo(URL_ROOT.$C_default_rep); ?>/client.php?CONNECT=true" class="menuLink">
   117 	  	<?php print $translate->_("S&apos;identifier"); ?></a></li>
   121 	  	<?php print $translate->_("S&apos;identifier"); ?></a></li>
   118 	  <li class="menuUnderline"><a href="about.php" class="menuLink">
   122 	  <li class="menuUnderline"><a href="about.php" class="menuLink">
   119 	  	<?php print $translate->_("A propos"); ?></a></li>
   123 	  	<?php print $translate->_("A propos"); ?></a></li>
   120 	  <li ><a href="mailto:contact@iri.centrepompidou.fr" class="menuLink" >
   124 	  <li ><a href="mailto:contact@iri.centrepompidou.fr" class="menuLink" >
   121 	  	<?php print $translate->_("Contact"); ?></a></li>
   125 	  	<?php print $translate->_("Contact"); ?></a></li>
   122 	  </ul>
   126 	  </ul>
       
   127 	  <ul class="menu"> 
       
   128 		  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>archives.php" class="menuLink">
       
   129 		  	<?php print $translate->_("Archives"); ?></a></li>
       
   130 	  </ul>
   123 	  
   131 	  
   124 	  <ul class="menu lang" > 
   132 	  <ul class="menu lang" > 
   125 	  <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=ja_JP" class="menuLink" >
   133 	  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>index.php?lang=ja_JP" class="menuLink" >
   126 	       <img src='images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
   134 	       <img src='images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
   127 	        <?php print $translate->_("Japonais"); ?></a></li>
   135 	        <?php print $translate->_("Japonais"); ?></a></li>
   128 	  <li class="menuUnderline"><a href="<?php URL_ROOT ?>?lang=fr" class="menuLink">
   136 	  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>index.php?lang=fr" class="menuLink">
   129 	       <img src='images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
   137 	       <img src='images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
   130 	       <?php print $translate->_("Français"); ?></a></li>
   138 	       <?php print $translate->_("Français"); ?></a></li>
   131 	  <li ><a href="<?php URL_ROOT ?>?lang=en" class="menuLink">
   139 	  <li ><a href="<?php echo(URL_ROOT); ?>index.php?lang=en" class="menuLink">
   132 	       <img src='images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
   140 	       <img src='images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
   133 	       <?php print $translate->_("Anglais"); ?></a></li>
   141 	       <?php print $translate->_("Anglais"); ?></a></li>
   134 	  </ul>
   142 	  </ul>
   135 
   143 
   136 	  <div class="introBox">
   144 	  <div class="introBox">
   175 				<p style="width:400px;padding-right:400px;" class="slideText">
   183 				<p style="width:400px;padding-right:400px;" class="slideText">
   176 				<?php print $translate->_("3. TextSlide"); ?>
   184 				<?php print $translate->_("3. TextSlide"); ?>
   177 				</p>
   185 				</p>
   178 				</div>
   186 				</div>
   179 				<!-- fourth slide -->
   187 				<!-- fourth slide -->
   180 				<div class="slides" style="background-image:url('<?php echo($C_REP); ?>/images/slide4.jpg');">
   188 				<div class="slides" style="background-image:url('<?php echo("$C_default_rep/$config[slide_background]"); ?>');">
   181 				<p class="slideTitle" ><?php print $translate->_("4. TitreSlide"); ?></p>
   189 				<p class="slideTitle" ><?php print $translate->_("4. TitreSlide"); ?></p>
   182 				<br/><br/><br/>
   190 				<br/><br/><br/>
   183 				<p style="width:400px;padding-right:400px;" class="slideText">
   191 				<p style="width:400px;padding-right:400px;" class="slideText">
   184 				<?php print $translate->_("$C_abstract"); ?>
   192 				<?php print($translate->_($config['abstract'])); ?>
   185 				 </p>
   193 				 </p>
   186 
   194 
   187 				 <a class="button_b" href="client.php"><span> <?php print $translate->_("4. Button"); ?></span> </a>
   195 				 <a class="button_b" href="<?php echo(URL_ROOT.$C_default_rep); ?>/client.php"><span> <?php print $translate->_("4. Button"); ?></span> </a>
   188 				 
   196 				 
   189 				</div>
   197 				</div>
   190 			</div>
   198 			</div>
   191 
   199 
   192 			<!-- the tabs -->
   200 			<!-- the tabs -->
   205 		  
   213 		  
   206 	  </div>
   214 	  </div>
   207 	  <!-- --> 
   215 	  <!-- --> 
   208 	  <div class="archivesBox">
   216 	  <div class="archivesBox">
   209 	  <div class="archivesBoxHeader"></div>
   217 	  <div class="archivesBoxHeader"></div>
   210 		<div class="archivesBoxContainer">
   218 
       
   219 		<div class="archivesBoxContainer scrollable">
   211 			<!-- -->
   220 			<!-- -->
   212 			<h3 class="archivesTitle"><?php print $translate->_("Archive Title :"); ?></h3>
   221 			<div class="archivesTitleActionsContainer">
       
   222 				<div class="archivesTitleContainer"><h3 class="archivesTitle"><?php print $translate->_("Archive Title :"); ?></h3></div>
       
   223 				<div class="archivesActionsContainer" id="actions">
       
   224 		   			<a class="prev browse left disabled"></a>
       
   225 		   			<a class="next browse right"></a>
       
   226 				</div>
       
   227 			</div>
       
   228 			
   213 			<!-- -->
   229 			<!-- -->
   214 			<div id="AVB3" class="archivesVideoBox">
   230 			<div class="items">
   215 				<a href="rsln/polemicaltimeline.php">
   231 			    <?php
   216 					<img src="images/tail_clay.jpg" width="270" height="150"/>
   232 			    $arch_list = array_reverse($archives_list);
   217 				</a>
   233 			   	display_archives_list($arch_list, "archive_box_3 item", URL_ROOT, dirname(__FILE__)."/");
   218 				<div class="AVBtitle">Clay Shirky le net, le surplus cognitif</div>
   234 			    ?>
   219 				<div class="AVBtext">
   235 		    </div>
   220 					par <a href="http://www.rslnmag.fr/" target="_blank">RSLN</a> à Microsoft France
       
   221 					<br/>le lundi 31 janvier 2011·| 08:30 - 10:30
       
   222 				</div>
       
   223 			</div>
       
   224 			<!-- -->
       
   225 			<div id="AVB2" class="archivesVideoBox">
       
   226 				<a href="rsln-opendata/polemicaltimeline.php">
       
   227 					<img src="images/tail_opendata.jpg" width="270" height="150"/>
       
   228 				</a>
       
   229 				<div class="AVBtitle">OPENDATA</div>
       
   230 				<div class="AVBtext">
       
   231 					par <a href="http://www.rslnmag.fr/" target="_blank">RSLN</a> à Microsoft France
       
   232 					<br/>le jeudi 17 mars 2011 | 14:30 - 17:15
       
   233 				</div>
       
   234 			</div>
       
   235 			<!-- -->
       
   236 			<div id="AVB4" class="archivesVideoBox">
       
   237 				<a href="rsln-mercedes-bunz/polemicaltimeline.php">
       
   238 					<img src="images/tail_mercedes_bunz.jpg" width="270" height="150"/>
       
   239 				</a>
       
   240 				<div class="AVBtitle">Mercedes Bunz</div>
       
   241 				<div class="AVBtext">
       
   242 					par <a href="http://www.rslnmag.fr/" target="_blank">RSLN</a> à Microsoft France
       
   243 					<br/>le jeudi 7 avril 2011 | 19:30 - 21:00
       
   244 				</div>
       
   245 			</div>
       
   246 			
       
   247 		</div>
   236 		</div>
   248 		<div class="archivesBoxClear"></div>
   237 		<div class="archivesBoxClear"></div>
   249 		<div class="archivesBoxFooter"></div>
   238 		<div class="archivesBoxFooter"></div>
   250 	  </div>
   239 	  </div>
   251 	 
   240