web/client_new.php
changeset 420 eb7c2cff1816
parent 415 593250f3a286
child 421 c8db83b70def
equal deleted inserted replaced
419:ad151a86046f 420:eb7c2cff1816
       
     1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
       
     2    "http://www.w3.org/TR/html4/strict.dtd">
       
     3 
       
     4 <html lang="<?php echo($actual); ?>">
       
     5   <head>
       
     6     <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
       
     7     <title>Live Video and Annotation</title>
       
     8     <meta http-equiv="X-UA-Compatible" content="IE=9" />
       
     9 
       
    10     <!-- FONT -->
       
    11     <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
       
    12     <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
       
    13     
       
    14     <!-- CSS -->
       
    15     <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
       
    16     <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/>
       
    17 
       
    18     <!-- JAVASCRIPT -->
       
    19     <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
       
    20     <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script>
       
    21     <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script>
       
    22     <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
       
    23     <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
       
    24     <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
       
    25     
       
    26     <script type="text/javascript">
       
    27         <?php echo $config['js_config']; ?>
       
    28     </script>
       
    29     <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
       
    30 
       
    31     <script type="text/javascript">
       
    32     l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
       
    33     
       
    34     function add_grammar(value) {
       
    35         var _st = $('#status'),
       
    36             _val = _st.val();
       
    37         _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change();
       
    38     }
       
    39     
       
    40     $(document).ready(function() {
       
    41         
       
    42         setTimeout(function() {
       
    43             $.scrollTo(70, 1000);
       
    44         }, 2000);
       
    45         
       
    46         $("#accordeon h3").click(function() {
       
    47             console.log("click");
       
    48             $("li.acctexte").slideToggle();
       
    49             return false;
       
    50         })
       
    51 
       
    52             //$("txt").hide();
       
    53             $(".loginbutton").click(function() {
       
    54                 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
       
    55             });
       
    56             $("#IDENTIFIER").click(function() {
       
    57                 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
       
    58             });
       
    59             
       
    60             // BUTTONS
       
    61             $(".tweetButton").click(function() {
       
    62                 add_grammar($(this).text());
       
    63             })
       
    64             
       
    65             // SEND TWEETS
       
    66             $("#sendTweet").click(function(){
       
    67                 var MyStatus = $('#status').val();
       
    68                 $.post('tweet_ajax.php', {status:MyStatus}
       
    69                 ,function(data) {
       
    70                 
       
    71                     if(data=="true"){
       
    72                         $("#messageSuccess").show('fast');
       
    73                         $("#messageSuccess").delay(800).hide('slow');
       
    74                         $('#status').val("<?php echo($config['hashtag']); ?>");
       
    75                         $('#status').change();
       
    76                     }else{
       
    77                         $("#error").text(data);
       
    78                         $("#messageFailed").show('fast');
       
    79                         $("#messageFailed").delay(800).hide('slow');
       
    80                     }
       
    81                     
       
    82                 });
       
    83                 
       
    84             });
       
    85 
       
    86             $("#status").bind("change keyup paste blur focus",function() {
       
    87                 newval = 140-$("#status").val().length;
       
    88                 $('#tweetCounter').val(newval);
       
    89                 if(newval < 0) {
       
    90                     $('#tweetCounter').addClass("tweetCounterNegative");
       
    91                 }
       
    92                 else {
       
    93                     $('#tweetCounter').removeClass("tweetCounterNegative");
       
    94                 }
       
    95             });
       
    96             
       
    97             
       
    98             $("#Program").fancybox({
       
    99                 'width'             : '75%',
       
   100                 'height'            : '75%',
       
   101                 'autoScale'         : false,
       
   102                 'transitionIn'      : 'none',
       
   103                 'transitionOut'     : 'none',
       
   104                 'type'              : 'iframe'
       
   105             });
       
   106             
       
   107 
       
   108         });
       
   109 
       
   110         //<!-- LIMIT TEXTAREA:
       
   111         function imposemax(obj) {
       
   112             obj.value = obj.value.substr(0,140);
       
   113         };
       
   114         // End -->
       
   115 
       
   116     </script>
       
   117     
       
   118     <script type="text/javascript">
       
   119     
       
   120       var _gaq = _gaq || [];
       
   121       _gaq.push(['_setAccount', 'UA-23581291-1']);
       
   122       _gaq.push(['_trackPageview']);
       
   123       _gaq.push(['_setAllowAnchor', true]);
       
   124     
       
   125       (function() {
       
   126         var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
       
   127         ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
       
   128         var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
       
   129       })();
       
   130     
       
   131     </script>
       
   132     
       
   133   </head>
       
   134   <body>
       
   135     <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
       
   136 
       
   137         <div id="container">
       
   138             <div id="colgauche">
       
   139                 <div class="barre">
       
   140                     <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
       
   141                     <div id="minilogo"></div>
       
   142                     <ul class="menu">
       
   143                         <li>
       
   144                             <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
       
   145                                 <?php print $translate->_("Accueil"); ?>
       
   146                             </a>
       
   147                         </li>
       
   148                         <li>
       
   149                             <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
       
   150                                 <?php print $translate->_("Programme"); ?>
       
   151                             </a>
       
   152                         </li>
       
   153                         <li>
       
   154                             <a href="../about.php" class="menuLink" >
       
   155                                 <?php print $translate->_("A propos"); ?>
       
   156                             </a>
       
   157                         </li>
       
   158                     </ul>
       
   159                     <ul class="menu">
       
   160                         <li>
       
   161                             <a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" >
       
   162                                 <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
       
   163                                 <?php print $translate->_("Japonais"); ?>
       
   164                             </a></li>
       
   165                         <li>
       
   166                             <a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink">
       
   167                                 <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
       
   168                                 <?php print $translate->_("Français"); ?>
       
   169                             </a>
       
   170                         </li>
       
   171                         <li>
       
   172                             <a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink">
       
   173                                 <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
       
   174                                 <?php print $translate->_("Anglais"); ?>
       
   175                             </a>
       
   176                         </li>
       
   177                     </ul>
       
   178                 </div>
       
   179                 <div id="twwWrap">
       
   180                     <div id="tweetWriter">
       
   181                         <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3>
       
   182                         <form  action="tweet.php" method="post" id="statusform" >
       
   183                             <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
       
   184                                 echo("<div class='loginbutton'><a href='".URL_ROOT."$rep/client.php?CONNECT=true' class='loginlink'>".$translate->_("Vous n'êtes pas connecté.")."</a></div>");
       
   185                             } else {
       
   186                                 echo("<textarea name='status' id='status' rows='3' cols='50' onkeypress='imposemax(this);'>$config[hashtag]</textarea>");
       
   187                             }
       
   188                             ?>
       
   189                             <div id="messageSuccess" style="background-color:lightgreen; display: none;">
       
   190                                 <?php print $translate->_("Envoyé"); ?><br/><br/>
       
   191                             </div>
       
   192                             <div id="messageFailed" style="background-color:red; display: none;">
       
   193                                 <?php print $translate->_("Erreur1"); ?><div id="error">&nbsp;</div><br/><br/>
       
   194                             </div>
       
   195                             <a href="#"  id="sendTweet" >
       
   196                                 <span><?php print $translate->_("Envoyer"); ?></span>
       
   197                             </a>
       
   198                             <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?>
       
   199                             <input id="tweetCounter" value="<?php echo(140-strlen($config['hashtag']));?>" disabled="disabled" size="3"/>
       
   200                             <?php endif;?>
       
   201                             <a id="positive" title="<?php echo $translate->_('Agree'); ?>" class="tweetButton">++</a>
       
   202                             <a id="negative" title="<?php echo $translate->_('Disagree'); ?>" class="tweetButton">--</a>
       
   203                             <a id="reference" title="<?php echo $translate->_('Reference'); ?>" class="tweetButton">==</a>
       
   204                             <a id="question" title="<?php echo $translate->_('Question'); ?>" class="tweetButton"> ??</a>
       
   205                             
       
   206                             <div style="clear: both;"></div>
       
   207                         </form>
       
   208                     </div>
       
   209                 </div>
       
   210                 <div id="tweetviz">
       
   211                     <div class="barre">
       
   212                         <form id="recherche">
       
   213                             <input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" />
       
   214                             <input id="inp_submit" type="submit" />
       
   215                             <input id="inp_reset" type="reset" />
       
   216                             <div id="time_controls">
       
   217                                 <div id="time_legende"></div>
       
   218                                 <div id="time_scale"></div>
       
   219                                 <a href="#" id="time_zoomout"></a>
       
   220                                 <a href="#" id="time_zoomin"></a>
       
   221                             </div>
       
   222                             <div id="recherche_annot">
       
   223                                 <?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br />
       
   224                             </div>
       
   225                         </form>
       
   226                     </div>
       
   227                     <ul id="tweetlist"></ul>
       
   228                     <div id="timeline"></div>
       
   229                     <div id="scrollcont">
       
   230                         <div id="scrollin"></div>
       
   231                     </div>
       
   232                 </div>
       
   233             </div>
       
   234             <ul id="onglets">
       
   235                 <li class="selected">Vidéo</li>
       
   236                 <li>Tweet Wall</li>
       
   237                 <li>Graphe des contributeurs</li>
       
   238             </ul>
       
   239             <div id="coldroite">
       
   240                 <div id="vlWrap">
       
   241                     <div id="videoLivePlayer">
       
   242                     <?php if ($config['islive']):?>
       
   243                         <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="480" height="320">
       
   244                             <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
       
   245                             <param name="allowfullscreen" value="true" />
       
   246                             <param name="allowscriptaccess" value="always" />
       
   247                             <param name="wmode" value="transparent" />
       
   248                             <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" />
       
   249                             <embed
       
   250                                 type="application/x-shockwave-flash"
       
   251                                 id="player2"
       
   252                                 name="player2"
       
   253                                 src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
       
   254                                 width="480"
       
   255                                 height="320"
       
   256                                 allowscriptaccess="always"
       
   257                                 allowfullscreen="true"
       
   258                                 wmode="transparent"
       
   259                                 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"
       
   260                             />
       
   261                         </object>
       
   262                     <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?>
       
   263                         <?php echo($config['islive_embed']); ?>
       
   264                     <?php else: ?>
       
   265                         <img src="<?php echo($big_visual_url); ?>" width="480"  height="320" />
       
   266                     <?php endif; ?>
       
   267                     </div>
       
   268                 </div>
       
   269                 <div id="out_fleche">
       
   270                 <!--    <div id="in_fleche"></div> -->
       
   271                 </div>
       
   272                 <ul id="accordeon">
       
   273                     <li class="acctitre">
       
   274                         <h3><?php echo($translate->_('config__title')); ?></h3>
       
   275                     </li>
       
   276                     <li class="acctexte">
       
   277                         <p><?php echo($translate->_('config__description')); ?></p>
       
   278                     </li>
       
   279                     <li class="acctitre">
       
   280                         <h3><?php echo($translate->_('keywords')); ?></h3>
       
   281                     </li>
       
   282                     <li class="acctexte hidden">
       
   283                         <div class="accsubtitle">
       
   284                             <div class="aroundsubtitle">
       
   285                                 <h4><?php echo($translate->_('suggested')); ?></h4>
       
   286                             </div>
       
   287                         </div>
       
   288                         <div class="tagcloud" id="suggkw"></div>
       
   289                     </li>
       
   290                     <li class="acctexte hidden">
       
   291                         <div class="accsubtitle">
       
   292                             <div class="aroundsubtitle">
       
   293                                 <h4><?php echo($translate->_('contextual')); ?></h4>
       
   294                             </div>
       
   295                         </div>
       
   296                         <div class="tagcloud" id="motscles"></div>
       
   297                     </li>
       
   298                 </ul>
       
   299             </div>
       
   300             <div class="footer">
       
   301                 <hr />
       
   302          <?php
       
   303                 echo($translate->_('config__partenaires'));
       
   304                 
       
   305                 if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
       
   306                     echo("| <a href='clear.php' class='footerLink'>".$translate->_("D&eacute;connexion")."</a>");
       
   307                 }
       
   308          ?>
       
   309             </div>
       
   310         </div>
       
   311         <div id="hovertweet">
       
   312             <div id="hovercontent"></div>
       
   313             <div id="hoverarrow"></div>
       
   314         </div>
       
   315         <ul id="hoverkw">
       
   316             <li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li>
       
   317             <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li>
       
   318         </ul>
       
   319   </body>
       
   320 </html>