web/client.php
changeset 406 86b62b98fea7
parent 357 3e93a0e83ad1
child 407 5ab44abc46df
equal deleted inserted replaced
405:6626b728b142 406:86b62b98fea7
    29 }
    29 }
    30 
    30 
    31 
    31 
    32 $big_visual_url = URL_ROOT."/$rep/images/big_visuel_rsln_mb.jpg";
    32 $big_visual_url = URL_ROOT."/$rep/images/big_visuel_rsln_mb.jpg";
    33 if($translate->_('config__client_visual') != 'config__client_visual' && $translate->_('config__client_visual') != null ) {
    33 if($translate->_('config__client_visual') != 'config__client_visual' && $translate->_('config__client_visual') != null ) {
    34 	$big_visual_url = URL_ROOT."$rep/".$translate->_('config__client_visual');
    34     $big_visual_url = URL_ROOT."$rep/".$translate->_('config__client_visual');
    35 }
    35 }
    36 
    36 
    37 $head_logo = URL_ROOT."$rep/images/head_logo.gif";
    37 $head_logo = URL_ROOT."$rep/images/head_logo.gif";
    38 if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) {
    38 if($translate->_('config__head_logo') != 'config__head_logo' && $translate->_('config__head_logo') != null ) {
    39 	$head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo');
    39     $head_logo = URL_ROOT."$rep/".$translate->_('config__head_logo');
    40 }
    40 }
    41 
    41 
    42 ?>
    42 ?>
    43 
    43 
    44 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    44 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
    46 
    46 
    47 <html lang="<?php echo($actual); ?>">
    47 <html lang="<?php echo($actual); ?>">
    48   <head>
    48   <head>
    49     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    49     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    50     <title>Live Video and Annotation</title>
    50     <title>Live Video and Annotation</title>
    51 	<meta http-equiv="X-UA-Compatible" content="IE=8" />
    51     <meta http-equiv="X-UA-Compatible" content="IE=8" />
    52 
    52 
    53     <!-- Framework CSS -->
    53     <!-- FONT -->
    54     <link rel="stylesheet" href="<?php echo(registry_url('blueprint-screen','css'));?>" type="text/css" media="screen, projection"/>
    54     <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
    55     <link rel="stylesheet" href="<?php echo(registry_url('blueprint-print','css'));?>" type="text/css" media="print"/>
    55     <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
    56     <!--[if lt IE 8]><link rel="stylesheet" href="<?php echo(registry_url('blueprint-ie','css'));?>" type="text/css" media="screen, projection"><![endif]-->
    56     
    57 	<link rel="stylesheet" href="<?php echo(registry_url('blueprint-plugins-fancy-type','css'));?>" type="text/css" media="screen, projection"/>
    57     <!-- CSS -->
    58 	<link rel="stylesheet" href="<?php echo(registry_url('custom','css'));?>" type="text/css" media="screen, projection"/>
    58     <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
    59 	<link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
    59     <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/>
    60 
    60 
    61 	<!-- JAVASCRIPT -->
    61     <!-- JAVASCRIPT -->
    62 	<script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
    62     <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
    63 	<script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
    63     <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script>
    64 	<script type="text/javascript" src="<?php echo(registry_url('jquery-tools','js'))?>"></script>
    64     <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
    65 	<script type="text/javascript" src="<?php echo(registry_url('tw-widget','js'))?>"></script>
    65     <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
    66 	
    66     <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
    67 	<!-- FONT -->
    67     
    68 	<link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
    68     <script type="text/javascript" src="<?php echo(registry_url('twcx-standalone','js'))?>"></script>
    69 	<link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
    69     <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
    70 	<link href='<?php echo(registry_url('Geo','font'))?>' rel='stylesheet' type='text/css'>
    70     <script type="text/javascript" src="config.js"></script>
    71 
    71 
    72 	<script type="text/javascript">
    72     <script type="text/javascript">
    73 	$(document).ready(function() {
    73     l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
    74 
    74     $(document).ready(function() {
    75 			doTimer();
    75         
    76 			//$("txt").hide();
    76         $("#accordeon li.acctitre").click(function() {
    77 			$(".loginbutton").click(function() {
    77             $("#accordeon li.acctexte").slideUp();
    78 				document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
    78             $(this).next().dequeue().slideDown();
    79 			});
    79         })
    80 			$("#IDENTIFIER").click(function() {
    80 
    81 				document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
    81             //$("txt").hide();
    82 			});
    82             $(".loginbutton").click(function() {
    83 			
    83                 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
    84 			$("#messageSuccess").hide();
    84             });
    85 			$("#messageFailed").hide();
    85             $("#IDENTIFIER").click(function() {
    86 
    86                 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
    87 
    87             });
    88 			function add_grammar(value) {
    88 
    89 				$('#status').val($('#status').val()+value+" ");
    89 
    90 				$('#status').change();
    90             function add_grammar(value) {
    91 			}
    91                 $('#status').val($('#status').val()+value+" ");
    92 			
    92                 $('#status').change();
    93 			// BUTTONS
    93             }
    94 			$("#positive").click(function(){
    94             
    95 				add_grammar("++");
    95             // BUTTONS
    96 			});
    96             $(".tweetButton").click(function() {
    97 			$("#negative").click(function(){
    97                 add_grammar($(this).text());
    98 				add_grammar("--");
    98             })
    99 			});
    99             
   100 			$("#reference").click(function(){
   100             // SEND TWEETS
   101 				add_grammar("==");
   101             $("#sendTweet").click(function(){
   102 			});
   102                 var MyStatus = $('#status').val();
   103 			$("#question").click(function(){
   103                 $.post('tweet_ajax.php', {status:MyStatus}
   104 				add_grammar("??");
   104                 ,function(data) {
   105 			});
   105                 
   106 			
   106                     if(data=="true"){
   107 			// SEND TWEETS
   107                         $("#messageSuccess").show('fast');
   108 			$("#sendTweet").click(function(){
   108                         $("#messageSuccess").delay(800).hide('slow');
   109 				var MyStatus = $('#status').val();
   109                         $('#status').val("<?php echo($config['hashtag']); ?>");
   110 				$.post('tweet_ajax.php', {status:MyStatus}
   110                         $('#status').change();
   111 				,function(data) {
   111                     }else{
   112 				
   112                         $("#error").text(data);
   113 					if(data=="true"){
   113                         $("#messageFailed").show('fast');
   114 						$("#messageSuccess").show('fast');
   114                         $("#messageFailed").delay(800).hide('slow');
   115 						$("#messageSuccess").delay(800).hide('slow');
   115                     }
   116 						$('#status').val("<?php echo($config['hashtag']); ?>");
   116                     
   117 						$('#status').change();
   117                 });
   118 					}else{
   118                 
   119 						$("#error").text(data);
   119             });
   120 						$("#messageFailed").show('fast');
   120 
   121 						$("#messageFailed").delay(800).hide('slow');
   121             $("#status").bind("change keyup paste blur focus",function() {
   122 					}
   122                 newval = 140-$("#status").val().length;
   123 					
   123                 $('#tweetCounter').val(newval);
   124 				});
   124                 if(newval < 0) {
   125 				
   125                     $('#tweetCounter').addClass("tweetCounterNegative");
   126 			});
   126                 }
   127 
   127                 else {
   128 			$("#status").bind("change keyup paste blur focus",function() {
   128                     $('#tweetCounter').removeClass("tweetCounterNegative");
   129 				newval = 140-$("#status").val().length;
   129                 }
   130 				$('#tweetCounter').val(newval);
   130             });
   131 				if(newval < 0) {
   131             
   132 					$('#tweetCounter').addClass("tweetCounterNegative");
   132             
   133 				}
   133             $("#Program").fancybox({
   134 				else {
   134                 'width'             : '75%',
   135 					$('#tweetCounter').removeClass("tweetCounterNegative");
   135                 'height'            : '75%',
   136 				}
   136                 'autoScale'         : false,
   137 			});
   137                 'transitionIn'      : 'none',
   138 			
   138                 'transitionOut'     : 'none',
   139 			$(".timeFrame").tooltip();
   139                 'type'              : 'iframe'
   140 			/*
   140             });
   141 			*   Lightbox button
   141             
   142 			*/
       
   143 			
       
   144 			$("#Program").fancybox({
       
   145 				'width'				: '75%',
       
   146 				'height'			: '75%',
       
   147 				'autoScale'			: false,
       
   148 				'transitionIn'		: 'none',
       
   149 				'transitionOut'		: 'none',
       
   150 				'type'				: 'iframe'
       
   151 			});
       
   152 			
       
   153 			$("#ACCES").click(function() {
       
   154 				$.fancybox.close();
       
   155 			});
       
   156 			
       
   157 			// Buttons
       
   158 			
       
   159 
   142 
   160         });
   143         });
   161 
   144 
   162 		//<!-- LIMIT TEXTAREA:
   145         //<!-- LIMIT TEXTAREA:
   163 		function imposemax(Object) {
   146         function imposemax(obj) {
   164             return (Object.value.length <= 140);
   147             obj.value = obj.value.substr(0,140);
   165 		};
   148         };
   166         // End -->
   149         // End -->
   167 		
   150 
   168 		//<!-- TIMER
   151     </script>
   169 	    var c=0;
   152     
   170         var t;
   153     <script type="text/javascript">
   171 		var timer_is_on=0;
   154     
   172 
   155       var _gaq = _gaq || [];
   173 		function timedCount()
   156       _gaq.push(['_setAccount', 'UA-23581291-1']);
   174 		{
   157       _gaq.push(['_trackPageview']);
   175 			document.getElementById('txt').value=c;
   158       _gaq.push(['_setAllowAnchor', true]);
   176 			c = c+1;
   159     
   177 			t = window.setTimeout("timedCount()",1000);
   160       (function() {
   178 			$(".twtr-ft").hide();
   161         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
   179 			$(".twtr-hd").hide();
   162         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
   180 			//twtr-tweet
   163         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
   181 			$(".twtr-tweet").each(colorTweetings);
   164       })();
   182 		
   165     
   183 		}
   166     </script>
   184 
   167     
   185 		function colorTweetings (){
       
   186 				var tweettemp = $(this).html();
       
   187 				if (tweettemp.search(/\x3F\x3F/)!=-1){
       
   188 					 $(this).css({'background-color': '#bfdbec','color':"#000"});
       
   189 				}
       
   190 				if (tweettemp.search(/\x2B\x2B/)!=-1){
       
   191 					 $(this).css({'background-color': '#c5e7cd','color':"#fff"});
       
   192 				}
       
   193 				if (tweettemp.search(/\x2D\x2D/)!=-1){
       
   194 					 $(this).css({'background-color': '#f6ced0','color':"#fff"});
       
   195 				}
       
   196 				if (tweettemp.search(/\x3D\x3D/)!=-1){
       
   197 					 $(this).css({'background-color': '#ecedc1','color':"#000"});
       
   198 				}
       
   199 		};
       
   200 			
       
   201 
       
   202 		
       
   203 		function doTimer()
       
   204 		{
       
   205 		if (!timer_is_on)
       
   206 		  {
       
   207 		  timer_is_on=1;
       
   208 		  timedCount();
       
   209 		  }
       
   210 		}
       
   211 
       
   212 		function stopCount()
       
   213 		{
       
   214 			clearTimeout(t);
       
   215 			timer_is_on=0;
       
   216 		}
       
   217 		//
       
   218 		//-->
       
   219 	</script>
       
   220 	
       
   221 	<script type="text/javascript">
       
   222 	
       
   223 	  var _gaq = _gaq || [];
       
   224 	  _gaq.push(['_setAccount', 'UA-23581291-1']);
       
   225 	  _gaq.push(['_trackPageview']);
       
   226 	  _gaq.push(['_setAllowAnchor', true]);
       
   227 	
       
   228 	  (function() {
       
   229 	    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       
   230 	    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
       
   231 	    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       
   232 	  })();
       
   233 	
       
   234 	</script>
       
   235 	
       
   236   </head>
   168   </head>
   237   <body>
   169   <body>
   238 	<div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
   170     <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
   239     <div class="container">
   171 
   240       <img src="<?php echo($head_logo); ?>" class="Producteur logo">
   172         <div id="container">
   241       <div id="minilogo" style="height:5px;top:5px;"></div>
   173             <div id="colgauche">
   242 	  <ul class="menu">
   174                 <div class="barre">
   243 	  <li class="menuUnderline"><a href="<?php echo(URL_ROOT); ?>" class="menuLink">
   175                     <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
   244 	  	<?php print $translate->_("Accueil"); ?> </a></li>
   176                     <ul class="menu">
   245 	  <li class="menuUnderline" ><a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
   177                         <li>
   246 	  	<?php print $translate->_("Programme"); ?></a></li>
   178                             <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
   247 	  <li ><a href="../about.php" class="menuLink" >
   179                                 <?php print $translate->_("Accueil"); ?>
   248 	  	<?php print $translate->_("A propos"); ?></a></li>
   180                             </a>
   249 
   181                         </li>
   250 	  </ul>
   182                         <li>
   251 	  
   183                             <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
   252 	  	  <ul class="menu" >
   184                                 <?php print $translate->_("Programme"); ?>
   253 	  <li class="menuUnderline"><a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" >
   185                             </a>
   254 	       <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
   186                         </li>
   255 	        <?php print $translate->_("Japonais"); ?></a></li>
   187                         <li>
   256 	  <li class="menuUnderline"><a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink">
   188                             <a href="../about.php" class="menuLink" >
   257 	       <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
   189                                 <?php print $translate->_("A propos"); ?>
   258 	       <?php print $translate->_("Français"); ?></a></li>
   190                             </a>
   259 	  <li ><a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink">
   191                         </li>
   260 	       <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
   192                     </ul>
   261 	       <?php print $translate->_("Anglais"); ?></a></li>
   193                     <ul class="menu">
   262 	  </ul>
   194                         <li>
   263 
   195                             <a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" >
   264 	  
   196                                 <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
   265 	  <div class="videoLive">
   197                                 <?php print $translate->_("Japonais"); ?>
   266 	  <?php if ($config['islive']):?>
   198                             </a></li>
   267 	  <div class="videoLivePlayer">
   199                         <li>
   268 			<object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="500" height="375">
   200                             <a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink">
   269 				<param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
   201                                 <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
   270 				<param name="allowfullscreen" value="true" />
   202                                 <?php print $translate->_("Français"); ?>
   271 				<param name="allowscriptaccess" value="always" />
   203                             </a>
   272 				<param name="wmode" value="transparent" />
   204                         </li>
   273 				<param name="flashvars" value="autostart=true&live=true&image=<?php echo($big_visual_url); ?>&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&controlbar=none&autostart=true" />
   205                         <li>
   274 				<embed
   206                             <a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink">
   275 					type="application/x-shockwave-flash"
   207                                 <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
   276 					id="player2"
   208                                 <?php print $translate->_("Anglais"); ?>
   277 					name="player2"
   209                             </a>
   278 					src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
   210                         </li>
   279 					width="500"
   211                     </ul>
   280 					height="375"
   212                 </div>
   281 					allowscriptaccess="always"
   213                 <div id="twwWrap">
   282 					allowfullscreen="true"
   214                     <div id="tweetWriter">
   283 					wmode="transparent"
   215                         <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3>
   284 					flashvars="autostart=true&live=true&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&image=<?php echo($big_visual_url); ?>&controlbar=none&autostart=true"
   216                         <form  action="tweet.php" method="post" id="statusform" >
   285 					
   217                             <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
   286 				/>
   218                                 echo("<div class='loginbutton'><a href='".URL_ROOT."$rep/client.php?CONNECT=true' class='loginlink'>".$translate->_("Vous n'êtes pas connecté.")."</a></div>");
   287 			</object>
   219                             } else {
   288 			
   220                                 echo("<textarea name='status' id='status' rows='3' cols='50' onkeypress='imposemax(this);'>$config[hashtag]</textarea>");
   289 		</div>
   221                             }
   290 		<?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?>
   222                             ?>
   291 		<div class="videoLivePlayer">
   223                             <div id="messageSuccess" style="background-color:lightgreen; display: none;">
   292 		    <?php echo($config['islive_embed']); ?>
   224                                 <?php print $translate->_("Envoyé"); ?><br/><br/>
   293 		</div>
   225                             </div>
   294 	  	<?php else: ?>
   226                             <div id="messageFailed" style="background-color:red; display: none;">
   295 		<div class="videoLivePlayer">
   227                                 <?php print $translate->_("Erreur1"); ?><div id="error">&nbsp;</div><br/><br/>
   296 			<img src="<?php echo($big_visual_url); ?>" width="500"  height="375" />
   228                             </div>
   297 		</div>
   229                             <a href="#"  id="sendTweet" >
   298 		<?php endif; ?>
   230                                 <span><?php print $translate->_("Envoyer"); ?></span>
   299 		
   231                             </a>
   300 	  </div>
   232                             <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?>
   301 
   233                             <input id="tweetCounter" value="<?php echo(140-strlen($config['hashtag']));?>" disabled="disabled" size="3"/>
   302 	<div class="videoLiveProgram">
   234                             <?php endif;?>
   303 		
   235                             <a id="positive" title="<?php echo $translate->_('Agree'); ?>" class="tweetButton">++</a>
   304 		<div class="arrowContainer">
   236                             <a id="negative" title="<?php echo $translate->_('Disagree'); ?>" class="tweetButton">--</a>
   305 			<div class="arrow"> </div>
   237                             <a id="reference" title="<?php echo $translate->_('Reference'); ?>" class="tweetButton">==</a>
   306 		</div>
   238                             <a id="question" title="<?php echo $translate->_('Question'); ?>" class="tweetButton"> ??</a>
   307 		<div class="videoLiveProgramTitle">
   239                             
   308 			<b><?php echo($translate->_('config__title')); ?></b></div>
   240                             <div style="clear: both;"></div>
   309 		<div class="videoLiveProgramDescription">
   241                         </form>
   310 			<br><?php echo($translate->_('config__description')); ?></div>
   242                     </div>
   311 		
   243                 </div>
   312 		
   244                 <div id="tweetviz">
   313 	</div>
   245                     <div class="barre">
   314 	  
   246                         <form id="recherche">
   315 	  <div class="tweetWriter">
   247                             <input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" />
   316 		<h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3>
   248                             <input id="inp_submit" type="submit" />
   317 		<form  action="tweet.php" method="post" id="statusform" >
   249                             <input id="inp_reset" type="reset" />
   318 		<?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
   250                             <div id="time_controls">
   319 				echo("<div class='loginbutton' ><a href='".URL_ROOT."$rep/client.php?CONNECT=true' class='loginlink'>
   251                                 <div id="time_legende"></div>
   320 				".$translate->_("Vous n'êtes pas connecté.")."</a></div>");
   252                                 <div id="time_scale"></div>
   321 			  }else{
   253                                 <a href="#" id="time_zoomout"></a>
   322 				echo("<textarea name='status' id='status' rows='3' cols='50' onkeypress='return imposemax(this);'>$config[hashtag]</textarea>");
   254                                 <a href="#" id="time_zoomin"></a>
   323 			  }
   255                             </div>
   324 		?>
   256                             <div id="recherche_annot">
   325 
   257                                 <?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br />
   326 
   258                             </div>
   327 				<div id="messageSuccess" style="background-color:lightgreen;">
   259                         </form>
   328 					<?php print $translate->_("Envoyé"); ?><br><br>
   260                     </div>
   329 				</div>
   261                     <ul id="tweetlist"></ul>
   330 				
   262                     <div id="timeline"></div>
   331 				<div id="messageFailed" style="background-color:red;">
   263                     <div id="scrollcont">
   332 					<?php print $translate->_("Erreur1"); ?><div id="error">&nbsp;</div><br/><br>
   264                         <div id="scrollin"></div>
   333 				</div>
   265                     </div>
   334 
   266                 </div>
   335 			  
   267             </div>
   336 			
   268             <div id="coldroite">
   337 			<a class="button_w" href="#"  id="sendTweet" style="float:right;margin-right:15px;margin-left:35px;width:70px;" >
   269                 <div id="vlWrap">
   338 				<span><?php print $translate->_("Envoyer"); ?></span>
   270                     <div id="videoLivePlayer">
   339 			</a>
   271                     <?php if ($config['islive']):?>
   340 			<!--<button name="s" type="button" id="sendTweet"
   272                         <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="480" height="320">
   341 					style="float:right;margin-right:15px;margin-left:35px;width:70px;"  >Envoyer</button>-->
   273                             <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
   342 			<?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?>
   274                             <param name="allowfullscreen" value="true" />
   343 			<input id="tweetCounter" value="<?php echo(140-strlen($config['hashtag']));?>" disabled="disabled" size="3"/>
   275                             <param name="allowscriptaccess" value="always" />
   344 			<?php endif;?>
   276                             <param name="wmode" value="transparent" />
   345 			<a
   277                             <param name="flashvars" value="autostart=true&live=true&image=<?php echo($big_visual_url); ?>&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&controlbar=none&autostart=true" />
   346 					
   278                             <embed
   347 					id="positive"
   279                                 type="application/x-shockwave-flash"
   348 					title="accord"
   280                                 id="player2"
   349 					class="tweetButton">++</a>
   281                                 name="player2"
   350 			<a
   282                                 src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
   351 					
   283                                 width="480"
   352 					id="negative"
   284                                 height="320"
   353 					title="désaccord"
   285                                 allowscriptaccess="always"
   354 					class="tweetButton">--</a>
   286                                 allowfullscreen="true"
   355 			<a
   287                                 wmode="transparent"
   356 					
   288                                 flashvars="autostart=true&live=true&provider=rtmp&streamer=rtmp://media.iri.centrepompidou.fr/ddc_player/&file=livestream&image=<?php echo($big_visual_url); ?>&controlbar=none&autostart=true"
   357 					id="reference"
   289                             />
   358 					title="reference"
   290                         </object>
   359 					class="tweetButton">==</a>
   291                     <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?>
   360 			<a
   292                         <?php echo($config['islive_embed']); ?>
   361 					
   293                     <?php else: ?>
   362 					id="question"
   294                         <img src="<?php echo($big_visual_url); ?>" width="480"  height="320" />
   363 					title="question"
   295                     <?php endif; ?>
   364 					class="tweetButton"> ??</a>
   296                     </div>
   365 		</form>
   297                 </div>
   366 	  </div>
   298                 <div id="out_fleche">
   367 	  
   299                 <!--    <div id="in_fleche"></div> -->
   368 	  <div class="tweetReader">
   300                 </div>
   369 			<script>
   301                 <ul id="accordeon">
   370 				new TWTR.Widget({
   302                     <li class="acctitre">
   371 				  version: 2,
   303                         <h3><?php echo($translate->_('config__title')); ?></h3>
   372 				  type: 'search',
   304                     </li>
   373 				  search: '<?php echo($config['hashtag']); ?>',
   305                     <li class="acctexte">
   374 				  interval: 3000,
   306                         <p><?php echo($translate->_('config__description')); ?></p>
   375 				  title: '',
   307                     </li>
   376 				  subject: '',
   308                     <li class="acctitre">
   377 				  width: 377,
   309                         <h3><?php echo $translate->_('Tagcloud'); ?></h3>
   378 				  height: 450,
   310                     </li>
   379 				  theme: {
   311                     <li class="acctexte hidden" id="motscles"></li>
   380 					shell: {
   312                 </ul>
   381 					  background: '#ffffff',
   313             </div>
   382 					  color: '#ffffff'
   314             <div class="footer">
   383 					},
   315                 <hr />
   384 					tweets: {
   316          <?php
   385 					  background: '#ffffff',
   317                 echo($translate->_('config__partenaires'));
   386 					  color: '#444444',
   318                 
   387 					  links: '#1985b5'
   319                 if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
   388 					}
   320                     echo("| <a href='clear.php' class='footerLink'>".$translate->_("D&eacute;connexion")."</a>");
   389 				  },
   321                 }
   390 				  features: {
   322          ?>
   391 					scrollbar: true,
   323             </div>
   392 					loop: false,
   324         </div>
   393 					live: true,
   325         <div id="hovertweet">
   394 					hashtags: true,
   326             <div id="hovercontent"></div>
   395 					timestamp: true,
   327             <div id="hoverarrow"></div>
   396 					avatars: true,
   328         </div>
   397 					toptweets: true,
       
   398 					behavior: 'all'
       
   399 				  }
       
   400 				}).render().start();
       
   401 			</script>
       
   402 	  </div>
       
   403 
       
   404       <div class="footer">
       
   405 		<hr>
       
   406 		 <?php
       
   407 				echo($translate->_('config__partenaires'));
       
   408 				
       
   409 				if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
       
   410 					echo("| 	<a href='clear.php'  class='footerLink'>".$translate->_("D&eacute;connexion")."</a>");
       
   411 				}
       
   412 		 ?>
       
   413 		  <input type="hidden" id="txt"/>
       
   414 		  
       
   415 	  </div>
       
   416 	
       
   417 
       
   418     </div>
       
   419 	
       
   420   </body>
   329   </body>
   421 </html>
   330 </html>