web/client.php
changeset 413 972af2c4af80
parent 408 4141c5821c98
child 415 593250f3a286
equal deleted inserted replaced
411:0471e6eb8a1b 413:972af2c4af80
    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=9" />
    52 
    52 
    53     <!-- FONT -->
    53     <!-- FONT -->
    54     <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
    54     <link href='<?php echo(registry_url('PT-Sans_Narrow','font'))?>' rel='stylesheet' type='text/css'>
    55     <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
    55     <link href='<?php echo(registry_url('PT-Sans','font'))?>' rel='stylesheet' type='text/css'>
    56     
    56     
    69     <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
    69     <script type="text/javascript" src="<?php echo(registry_url('twcx-main','js'))?>"></script>
    70     <script type="text/javascript" src="config.js"></script>
    70     <script type="text/javascript" src="config.js"></script>
    71 
    71 
    72     <script type="text/javascript">
    72     <script type="text/javascript">
    73     l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
    73     l10n = { "rechercher" : "<?php echo $translate->_('Rechercher'); ?>" }
       
    74     
       
    75     function add_grammar(value) {
       
    76         var _st = $('#status'),
       
    77             _val = _st.val();
       
    78         _st.val( _val + ( _val[_val.length - 1] == " " ? "" : " " ) + value ).change();
       
    79     }
       
    80     
    74     $(document).ready(function() {
    81     $(document).ready(function() {
    75         
    82         
    76         $("#accordeon li.acctitre").click(function() {
    83         $("#accordeon li.acctitre").click(function() {
    77             $("#accordeon li.acctexte").slideUp();
    84             $("#accordeon li.acctexte").slideToggle();
    78             $(this).next().dequeue().slideDown();
       
    79         })
    85         })
    80 
    86 
    81             //$("txt").hide();
    87             //$("txt").hide();
    82             $(".loginbutton").click(function() {
    88             $(".loginbutton").click(function() {
    83                 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
    89                 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
    84             });
    90             });
    85             $("#IDENTIFIER").click(function() {
    91             $("#IDENTIFIER").click(function() {
    86                 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
    92                 document.location.href="<?php echo(URL_ROOT.$rep); ?>/client.php?CONNECT=true";
    87             });
    93             });
    88 
       
    89 
       
    90             function add_grammar(value) {
       
    91                 $('#status').val($('#status').val()+value+" ");
       
    92                 $('#status').change();
       
    93             }
       
    94             
    94             
    95             // BUTTONS
    95             // BUTTONS
    96             $(".tweetButton").click(function() {
    96             $(".tweetButton").click(function() {
    97                 add_grammar($(this).text());
    97                 add_grammar($(this).text());
    98             })
    98             })
   171 
   171 
   172         <div id="container">
   172         <div id="container">
   173             <div id="colgauche">
   173             <div id="colgauche">
   174                 <div class="barre">
   174                 <div class="barre">
   175                     <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
   175                     <img id="headlogo" src="<?php echo($head_logo); ?>" width="171" height="63" />
       
   176                     <div id="minilogo"></div>
   176                     <ul class="menu">
   177                     <ul class="menu">
   177                         <li>
   178                         <li>
   178                             <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
   179                             <a href="<?php echo(URL_ROOT); ?>" class="menuLink">
   179                                 <?php print $translate->_("Accueil"); ?>
   180                                 <?php print $translate->_("Accueil"); ?>
   180                             </a>
   181                             </a>
   304                     </li>
   305                     </li>
   305                     <li class="acctexte">
   306                     <li class="acctexte">
   306                         <p><?php echo($translate->_('config__description')); ?></p>
   307                         <p><?php echo($translate->_('config__description')); ?></p>
   307                     </li>
   308                     </li>
   308                     <li class="acctitre">
   309                     <li class="acctitre">
   309                         <h3><?php echo $translate->_('Tagcloud'); ?></h3>
   310                         <h3><?php echo($translate->_('keywords')); ?></h3>
   310                     </li>
   311                     </li>
   311                     <li class="acctexte hidden" id="motscles"></li>
   312                     <li class="acctexte hidden">
       
   313                         <div class="accsubtitle">
       
   314                             <div class="aroundsubtitle">
       
   315                                 <h4><?php echo($translate->_('suggested')); ?></h4>
       
   316                             </div>
       
   317                         </div>
       
   318                         <div class="tagcloud" id="suggkw"></div>
       
   319                     </li>
       
   320                     <li class="acctexte hidden">
       
   321                         <div class="accsubtitle">
       
   322                             <div class="aroundsubtitle">
       
   323                                 <h4><?php echo($translate->_('contextual')); ?></h4>
       
   324                             </div>
       
   325                         </div>
       
   326                         <div class="tagcloud" id="motscles"></div>
       
   327                     </li>
   312                 </ul>
   328                 </ul>
   313             </div>
   329             </div>
   314             <div class="footer">
   330             <div class="footer">
   315                 <hr />
   331                 <hr />
   316          <?php
   332          <?php
   324         </div>
   340         </div>
   325         <div id="hovertweet">
   341         <div id="hovertweet">
   326             <div id="hovercontent"></div>
   342             <div id="hovercontent"></div>
   327             <div id="hoverarrow"></div>
   343             <div id="hoverarrow"></div>
   328         </div>
   344         </div>
       
   345         <ul id="hoverkw">
       
   346             <li><a id="hkwsearch" href="#"><?php echo $translate->_('Rechercher'); ?></a></li>
       
   347             <li><a id="hkwtweet" href="#"><?php echo $translate->_('addToTweet'); ?></a></li>
       
   348         </ul>
   329   </body>
   349   </body>
   330 </html>
   350 </html>