web/client_new.php
author Raphael Velt <raph.velt@gmail.com>
Tue, 06 Mar 2012 13:22:18 +0100
changeset 535 8276f3ff7a3f
parent 506 f7fd2458fc5c
permissions -rw-r--r--
Added new player in player_embed
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
     1
<?php
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
     2
    $embed = (isset($_REQUEST['embed']) && $_REQUEST['embed']);
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
     3
    $videoWidth = ( $embed ? 442 : 480 );
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
     4
    $videoHeight = ( $embed ? 250 : 320 );
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
     5
?>
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
     6
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
     7
   "http://www.w3.org/TR/html4/strict.dtd">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
     8
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
     9
<html lang="<?php echo($actual); ?>">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    10
  <head>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    11
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    12
    <title>Live Video and Annotation</title>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    13
    <meta http-equiv="X-UA-Compatible" content="IE=9" />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    14
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    15
    <!-- FONT -->
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    16
    <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    17
    <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    18
    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    19
    <!-- CSS -->
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    20
    <link rel="stylesheet" href="<?php echo(registry_url('fancybox','css'));?>" type="text/css" media="screen">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    21
    <link rel="stylesheet" href="<?php echo(registry_url('tweetcast','css'));?>" type="text/css" media="screen, projection"/>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    22
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    23
    <!-- JAVASCRIPT -->
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    24
    <script type="text/javascript" src="<?php echo(registry_url('jquery','js'))?>"></script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    25
    <script type="text/javascript" src="<?php echo(registry_url('jquery-mousewheel','js'))?>"></script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    26
    <script type="text/javascript" src="<?php echo(registry_url('jquery-scrollto','js'))?>"></script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    27
    <script type="text/javascript" src="<?php echo(registry_url('underscore','js'))?>"></script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    28
    <script type="text/javascript" src="<?php echo(registry_url('raphael','js'))?>"></script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    29
    <script type="text/javascript" src="<?php echo(registry_url('fancybox','js'))?>"></script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    30
    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    31
    <script type="text/javascript">
485
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
    32
        <?php if (isset($config['hashtag'])) echo "var tracking_keywords = ".json_encode(array($config['hashtag'])).";"; ?>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
    33
        <?php if (isset($config['suggested_keywords'])) echo "var suggested_keywords = ".json_encode($config['suggested_keywords']).";"; ?>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
    34
        <?php if (isset($config['js_config'])) echo $config['js_config']; ?>
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    35
    </script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    36
    <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    37
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    38
    <script type="text/javascript">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    39
    l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    40
    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    41
    function add_grammar(value) {
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    42
        var _st = $('#status'),
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    43
            _val = _st.val();
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    44
        _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change();
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    45
    }
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    46
    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    47
    $(document).ready(function() {
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    48
        
421
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
    49
/*        setTimeout(function() {
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    50
            $.scrollTo(70, 1000);
421
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
    51
        }, 2000); */
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    52
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    53
            //$("txt").hide();
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    54
            $(".loginbutton").click(function() {
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    55
                document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    56
            });
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    57
            $("#IDENTIFIER").click(function() {
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    58
                document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    59
            });
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    60
            
506
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    61
            function updateCounter() {
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    62
                var _v = $("#status").val();
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    63
                if (_v.length > 140) {
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    64
                    _v = _v.substr(0,140);
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    65
                    $("#status").val(_v);
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    66
                }
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    67
                $('#tweetCounter').html(140-_v.length);
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    68
                if(140-_v.length < 0) {
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    69
                    $('#tweetCounter').addClass("tweetCounterNegative");
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    70
                }
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    71
                else {
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    72
                    $('#tweetCounter').removeClass("tweetCounterNegative");
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    73
                }
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    74
                $(".tweetButton").each(function(_i, _e) {
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    75
                    if (_v.search($(_e).find('span.twbSyntax').text().replace(/(\W)/g, '\\$1')) > -1) {
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    76
                        $(_e).addClass('selected');
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    77
                    } else {
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    78
                        $(_e).removeClass('selected');
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    79
                    }
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    80
                });
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    81
            }
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    82
            
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    83
            // BUTTONS
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    84
            $(".tweetButton").click(function() {
506
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    85
                add_grammar($(this).find('span.twbSyntax').text());
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
    86
                updateCounter();
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    87
            })
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    88
            
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    89
            // SEND TWEETS
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    90
            $("#sendTweet").click(function(){
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    91
                var MyStatus = $('#status').val();
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    92
                $.post('tweet_ajax.php', {status:MyStatus}
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    93
                ,function(data) {
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    94
                
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    95
                    if(data=="true"){
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    96
                        $("#messageSuccess").show('fast');
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    97
                        $("#messageSuccess").delay(800).hide('slow');
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    98
                        $('#status').val("<?php echo($config['hashtag']); ?>");
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
    99
                        $('#status').change();
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   100
                    }else{
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   101
                        $("#error").text(data);
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   102
                        $("#messageFailed").show('fast');
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   103
                        $("#messageFailed").delay(800).hide('slow');
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   104
                    }
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   105
                    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   106
                });
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   107
                
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   108
            });
506
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   109
            
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   110
506
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   111
            $("#status").bind("change keyup paste blur focus",updateCounter);
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   112
            
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   113
            
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   114
            $("#Program").fancybox({
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   115
                'width'             : '75%',
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   116
                'height'            : '75%',
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   117
                'autoScale'         : false,
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   118
                'transitionIn'      : 'none',
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   119
                'transitionOut'     : 'none',
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   120
                'type'              : 'iframe'
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   121
            });
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   122
            
421
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   123
    $("#onglets a").click(function() {
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   124
        $("div.ifwrap").hide();
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   125
        $("#onglets li").removeClass("selected");
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   126
        $(this).parent().addClass("selected");
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   127
        var hr = $(this).attr("href");
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   128
        if (hr[0] == '#') {
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   129
            $(hr).show();
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   130
        } else {
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   131
            $("#iframeWrap").show();
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   132
            $("#graphFrame").attr("src", hr);
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   133
        }
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   134
        return false;
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   135
    });
c8db83b70def Added "sweet-tweet" & Knowtex iframes in client
Raphael Velt <raph.velt@gmail.com>
parents: 420
diff changeset
   136
            
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   137
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   138
        });
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   139
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   140
        //<!-- LIMIT TEXTAREA:
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   141
        // End -->
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   142
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   143
    </script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   144
    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   145
    <script type="text/javascript">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   146
    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   147
      var _gaq = _gaq || [];
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   148
      _gaq.push(['_setAccount', 'UA-23581291-1']);
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   149
      _gaq.push(['_trackPageview']);
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   150
      _gaq.push(['_setAllowAnchor', true]);
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   151
    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   152
      (function() {
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   153
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   154
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   155
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   156
      })();
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   157
    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   158
    </script>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   159
    
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   160
  </head>
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   161
  <body<?php if ($embed) { echo ' class="embed"'; } ?>>
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   162
    <div id="sendUsFeedBack"><a href="<?php echo($C_feedback_form_url); ?>" target="_blank"><img src="<?php echo(URL_ROOT); ?>images/sendusfeedback.png"></a></div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   163
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   164
        <div id="container">
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   165
            
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   166
            <div id="coldroite">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   167
                <ul id="onglets">
485
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   168
<?php if (isset($config['semantic_board']) and isset($config['knowtex_url'])) { ?>
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   169
                    <li class="selected">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   170
                        <a href="#vlWrap"><?php echo($translate->_('Video')); ?></a>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   171
                    </li>
485
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   172
<?php } ?>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   173
<?php if (isset($config['semantic_board']) and $config['semantic_board']) { ?>
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   174
                    <li>
470
1e091ac28dd9 semantic board corrections
Raphael Velt <raph.velt@gmail.com>
parents: 466
diff changeset
   175
                        <a href="semanticboard.php?small=1&theme=jour"><?php echo($translate->_('SemanticBoard')); ?></a>
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   176
                    </li>
485
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   177
<?php } ?>
470
1e091ac28dd9 semantic board corrections
Raphael Velt <raph.velt@gmail.com>
parents: 466
diff changeset
   178
<?php if (isset($config['knowtex_url'])) { ?>
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   179
                    <li>
470
1e091ac28dd9 semantic board corrections
Raphael Velt <raph.velt@gmail.com>
parents: 466
diff changeset
   180
                        <a href="<?php echo $config['knowtex_url'] ?>"><?php echo($translate->_('SocialGraph')); ?></a>
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   181
                    </li>
470
1e091ac28dd9 semantic board corrections
Raphael Velt <raph.velt@gmail.com>
parents: 466
diff changeset
   182
<?php } ?>
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   183
                </ul>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   184
                <div class="ifwrap" id="vlWrap">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   185
                    <div id="videoLivePlayer">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   186
                    <?php if ($config['islive']):?>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   187
                        <object id="player" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" name="player" width="<?php echo $videoWidth; ?>" height="<?php echo $videoHeight; ?>">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   188
                            <param name="movie" value="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf" />
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   189
                            <param name="allowfullscreen" value="true" />
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   190
                            <param name="allowscriptaccess" value="always" />
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   191
                            <param name="wmode" value="transparent" />
477
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   192
                            <?php
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   193
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   194
function flv_param($name,$default) {
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   195
    global $config;
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   196
    return ( isset($config["flv_$name"]) ? ( $config["flv_$name"] ? "&$name=".$config["flv_$name"] : "" ) : "&$name=$default" );
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   197
}
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   198
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   199
$flashvars = "autostart=true&live=true".flv_param("provider", "rtmp").flv_param("streamer", "rtmp://media.iri.centrepompidou.fr/ddc_player/").flv_param("file", "livestream")."&image=$big_visual_url&controlbar=none&autostart=true";
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   200
                            ?>
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   201
                            <param name="flashvars" value="<?php echo $flashvars; ?>" />
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   202
                            <embed
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   203
                                type="application/x-shockwave-flash"
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   204
                                id="player2"
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   205
                                name="player2"
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   206
                                src="<?php echo(URL_ROOT); ?>res/mediaplayer/player.swf"
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   207
                                width="<?php echo $videoWidth; ?>"
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   208
                                height="<?php echo $videoHeight; ?>"
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   209
                                allowscriptaccess="always"
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   210
                                allowfullscreen="true"
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   211
                                wmode="transparent"
477
c236340517d1 Stream configuration options for BPI
Raphael Velt <raph.velt@gmail.com>
parents: 470
diff changeset
   212
                                flashvars="<?php echo $flashvars; ?>"
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   213
                            />
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   214
                        </object>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   215
                    <?php elseif(isset($config['islive_embed']) && count($config['islive_embed'])>0):?>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   216
                        <?php echo($config['islive_embed']); ?>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   217
                    <?php else: ?>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   218
                        <img src="<?php echo($big_visual_url); ?>" width="<?php echo $videoWidth; ?>"  height="<?php echo $videoHeight; ?>" />
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   219
                    <?php endif; ?>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   220
                    </div>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   221
                </div>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   222
                <div class="ifwrap hidden" id="iframeWrap">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   223
                    <iframe id="graphFrame"></iframe>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   224
                </div>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   225
                <div id="out_fleche">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   226
                <!--    <div id="in_fleche"></div> -->
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   227
                </div>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   228
                <ul id="accordeon">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   229
                    <li class="acctitre">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   230
                        <h3><?php echo($translate->_('config__title')); ?></h3>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   231
                    </li>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   232
                    <li class="acctexte">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   233
                        <p><?php echo($translate->_('config__description')); ?></p>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   234
                    </li>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   235
                    <li class="acctitre">
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   236
                        <h3><?php echo($translate->_('keywords')); ?></h3>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   237
                    </li>
485
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   238
                    <li class="fl">
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   239
                        <ul class="fl">
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   240
                            <li class="acctexte">
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   241
                                <div class="accsubtitle">
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   242
                                    <div class="aroundsubtitle">
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   243
                                        <h4><?php echo($translate->_('suggested')); ?></h4>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   244
                                    </div>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   245
                                </div>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   246
                                <div class="tagcloud" id="suggkw"></div>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   247
                            </li>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   248
                            <li class="acctexte">
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   249
                                <div class="accsubtitle">
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   250
                                    <div class="aroundsubtitle">
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   251
                                        <h4><?php echo($translate->_('contextual')); ?></h4>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   252
                                    </div>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   253
                                </div>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   254
                                <div class="tagcloud" id="motscles"></div>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   255
                            </li>
38ac6cb87be7 Live polemic tweet corrections
Raphael Velt <raph.velt@gmail.com>
parents: 477
diff changeset
   256
                        </ul>
424
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   257
                    </li>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   258
                </ul>
e67c4b18a16b Added Embeddable Version
Raphael Velt <raph.velt@gmail.com>
parents: 421
diff changeset
   259
            </div>
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   260
            <div id="colgauche">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   261
                <div class="barre">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   262
                    <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   263
                    <div id="minilogo"></div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   264
                    <ul class="menu">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   265
                        <li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   266
                            <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   267
                                <?php print $translate->_("Accueil"); ?>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   268
                            </a>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   269
                        </li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   270
                        <li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   271
                            <a href="<?php echo($translate->_('config__link')); ?>" class="menuLink" target="_blank" id='Program'>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   272
                                <?php print $translate->_("Programme"); ?>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   273
                            </a>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   274
                        </li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   275
                        <li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   276
                            <a href="../about.php" class="menuLink" >
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   277
                                <?php print $translate->_("A propos"); ?>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   278
                            </a>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   279
                        </li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   280
                    </ul>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   281
                    <ul class="menu">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   282
                        <li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   283
                            <a href="<?php URL_ROOT ?>client.php?lang=ja_JP" class="menuLink" >
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   284
                                <img src='<?php echo(URL_ROOT); ?>images/flag_jp.gif'<?php if($actual!="ja_JP"){echo("style='opacity: .5;'"); } ?> />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   285
                                <?php print $translate->_("Japonais"); ?>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   286
                            </a></li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   287
                        <li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   288
                            <a href="<?php URL_ROOT ?>client.php?lang=fr" class="menuLink">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   289
                                <img src='<?php echo(URL_ROOT); ?>images/flag_fr.gif' <?php if($actual!="fr"){echo("style='opacity: .5;'"); } ?> />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   290
                                <?php print $translate->_("Français"); ?>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   291
                            </a>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   292
                        </li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   293
                        <li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   294
                            <a href="<?php URL_ROOT ?>client.php?lang=en" class="menuLink">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   295
                                <img src='<?php echo(URL_ROOT); ?>images/flag_en.gif' <?php if($actual!="en"){echo("style='opacity: .5;'"); } ?> />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   296
                                <?php print $translate->_("Anglais"); ?>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   297
                            </a>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   298
                        </li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   299
                    </ul>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   300
                </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   301
                <div id="twwWrap">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   302
                    <div id="tweetWriter">
506
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   303
                            <?php if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])): ?>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   304
                            <div id="tweetCounter"><?php echo(140-strlen($config['hashtag']));?></div>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   305
                            <?php endif;?>
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   306
                        <h3 class="tweetWriterTitle"><?php print $translate->_("ClientTitle1 :"); ?></h3>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   307
                        <form  action="tweet.php" method="post" id="statusform" >
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   308
                            <?php if (!isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   309
                                echo("<div class='loginbutton'><a href='".URL_ROOT."$rep/client.php?CONNECT=true' class='loginlink'>".$translate->_("Vous n'êtes pas connecté.")."</a></div>");
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   310
                            } else {
506
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   311
                                echo("<textarea name='status' id='status' rows='3' cols='50'>$config[hashtag]</textarea>");
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   312
                            }
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   313
                            ?>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   314
                            <div id="messageSuccess" style="background-color:lightgreen; display: none;">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   315
                                <?php print $translate->_("Envoyé"); ?><br/><br/>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   316
                            </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   317
                            <div id="messageFailed" style="background-color:red; display: none;">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   318
                                <?php print $translate->_("Erreur1"); ?><div id="error">&nbsp;</div><br/><br/>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   319
                            </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   320
                            <a href="#"  id="sendTweet" >
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   321
                                <span><?php print $translate->_("Envoyer"); ?></span>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   322
                            </a>
506
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   323
                            <a id="positive" title="++ | <?php echo $translate->_('Agree'); ?>" class="tweetButton twbGreen">
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   324
                                <span class="twbSyntax">++</span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   325
                                <span class="twbSeparator">|</span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   326
                                <span class="twbLabel"><?php echo $translate->_('Agree'); ?></span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   327
                            </a>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   328
                            <a id="negative" title="-- | <?php echo $translate->_('Disagree'); ?>" class="tweetButton twbRed">
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   329
                                <span class="twbSyntax">--</span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   330
                                <span class="twbSeparator">|</span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   331
                                <span class="twbLabel"><?php echo $translate->_('Disagree'); ?></span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   332
                            </a>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   333
                            <a id="reference" title="== | <?php echo $translate->_('Reference'); ?>" class="tweetButton twbYellow">
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   334
                                <span class="twbSyntax">==</span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   335
                                <span class="twbSeparator">|</span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   336
                                <span class="twbLabel"><?php echo $translate->_('Reference'); ?></span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   337
                            </a>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   338
                            <a id="question" title="?? | <?php echo $translate->_('Question'); ?>" class="tweetButton twbBlue">
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   339
                                <span class="twbSyntax">??</span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   340
                                <span class="twbSeparator">|</span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   341
                                <span class="twbLabel"><?php echo $translate->_('Question'); ?></span>
f7fd2458fc5c Added museo 14.02.12 and several corrections
Raphael Velt <raph.velt@gmail.com>
parents: 485
diff changeset
   342
                            </a>
420
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   343
                            
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   344
                            <div style="clear: both;"></div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   345
                        </form>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   346
                    </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   347
                </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   348
                <div id="tweetviz">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   349
                    <div class="barre">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   350
                        <form id="recherche">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   351
                            <input autocomplete="off" class="greyed" id="inp_q" value="<?php echo $translate->_('Rechercher'); ?>" />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   352
                            <input id="inp_submit" type="submit" />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   353
                            <input id="inp_reset" type="reset" />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   354
                            <div id="time_controls">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   355
                                <div id="time_legende"></div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   356
                                <div id="time_scale"></div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   357
                                <a href="#" id="time_zoomout"></a>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   358
                                <a href="#" id="time_zoomin"></a>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   359
                            </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   360
                            <div id="recherche_annot">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   361
                                <?php echo $translate->_('SearchByPolemic'); ?> : <span id="rech_list_annot"></span><br />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   362
                            </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   363
                        </form>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   364
                    </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   365
                    <ul id="tweetlist"></ul>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   366
                    <div id="timeline"></div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   367
                    <div id="scrollcont">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   368
                        <div id="scrollin"></div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   369
                    </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   370
                </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   371
            </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   372
            <div class="footer">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   373
                <hr />
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   374
         <?php
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   375
                echo($translate->_('config__partenaires'));
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   376
                
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   377
                if (isset($_SESSION['TWITTER_ACCESS_TOKEN'])){
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   378
                    echo("| <a href='clear.php' class='footerLink'>".$translate->_("D&eacute;connexion")."</a>");
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   379
                }
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   380
         ?>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   381
            </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   382
        </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   383
        <div id="hovertweet">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   384
            <div id="hovercontent"></div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   385
            <div id="hoverarrow"></div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   386
        </div>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   387
        <ul id="hoverkw">
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   388
            <li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   389
            <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   390
        </ul>
eb7c2cff1816 Modifs pour ENMI
Raphael Velt <raph.velt@gmail.com>
parents: 415
diff changeset
   391
  </body>
406
86b62b98fea7 Polemic Tweet client now uses rv's live system
Raphael Velt <raph.velt@gmail.com>
parents: 357
diff changeset
   392
</html>