Source for file display.php
Documentation is available at display.php 
 * @author linea21 <info@linea21.com>  
 * @license http://opensource.org/licenses/gpl-3.0.html  
include_once('../user/'. SQL. '.inc.php');  
    $content = '<div id="home_publication">'. END_LINE;  
    $content.= '<h2>'. _t('public','last_news_h1'). '</h2>'. END_LINE;  
    $link_publi=  array('rub'=>  $GLOBALS['links'][LANGUAGE]['publication']['linkvalue']);  
    for($i= 0; $i< count($data); $i++ ) {  
        $publi_id= $data[$i]['publi_id'];  
        $publi_title= formatText($data[$i]['publi_title'],'2HTML');  
        $publi_resume= formatText($data[$i]['publi_resume'],'2HTML');  
        $link_this=  array('rub'=>  $GLOBALS['links'][LANGUAGE]['publication']['linkvalue'], 'id'=> $publi_id, 'name'=>  $data[$i]['publi_title']);  
        $content.= '<h3>'. $publi_title. '</h3>';  
        $content.= '<a href="'. HrefMaker($link_this). '" title="'. formatText($GLOBALS['links'][LANGUAGE]['publication']['desc']. ' : '. $publi_title, '2ATT'). '">';  
        $content.= '</div><br />';  
    //$content.='<a href="'.HrefMaker($link_publi).'" title="'.$GLOBALS['links'][LANGUAGE]['publication']['desc'].'">';  
    //$content.='accéder à la liste des dossiers';  
    $content = '<div id="home_edito">'. END_LINE;  
    $content.= '<h2>Bienvenue</h2>'. END_LINE;  
    $content.= _t('public','edito');  
    $link_gdt=  array('rub'=>  $GLOBALS['links'][LANGUAGE]['workgroup']['linkvalue']);  
    $content = '<div id="home_top"><div id="home_gdt">'. END_LINE;  
    $content.= '<h2>'. _t('public','workgroup_h1'). '</h2>'. END_LINE;  
    $content.= '<a href="'. HrefMaker($link_gdt). '" title="'. formatText($GLOBALS['links'][LANGUAGE]['workgroup']['desc'], '2ATT'). '">';  
    $content.= _t('public','workgroup_edito');  
    $link_idd=  array('rub'=>  $GLOBALS['links'][LANGUAGE]['dashboard']['linkvalue']);  
    $content = '<div id="home_idd">'. END_LINE;  
    $content.= '<h2>'. _t('public','dashboard_h1'). '</h2>'. END_LINE;  
    $content.= '<a href="'. HrefMaker($link_idd). '" title="'. formatText($GLOBALS['links'][LANGUAGE]['dashboard']['desc'], '2ATT'). '">';  
    $content.= _t('public','dashboard_edito');  
    $content.= '</div></div>';  
 * @return void ( echo string )  
  //$content .= '<a href="#contenu" class="semnone" title="'._t('header','goto_contents').'" accesskey="2">'._t('header','goto_contents').'</a>'.END_LINE;  
  $content .=  '    <li><a href="'. HrefMaker(array('rub' =>  $GLOBALS['links'][LANGUAGE]['home']['linkvalue'])). '" accesskey="1" title="'. $GLOBALS['links'][LANGUAGE]['home']['desc']. '">'. $GLOBALS['links'][LANGUAGE]['home']['title']. '</a></li>'. END_LINE;  
  while (list ($key, $value) =  each ($GLOBALS['menuitems'])) {  
    (ActiveItemAlias($GLOBALS['activeitem']) ==  $value) ?  $classe =  ' class="actif"' :  $classe =  '' ;  
    $current_link =  array('rub' =>  $GLOBALS['links'][LANGUAGE][$value]['linkvalue']);  
    $content .=  '<li id="menu_'. $value. '">';  
    $content .=  '<a href="' .  HrefMaker($current_link) .  '" title="' .  $GLOBALS['links'][LANGUAGE][$value]['desc'] .  '" accesskey="' .  $GLOBALS['links'][LANGUAGE][$value]['accesskey'] .  '" id="amenu_'. $value. '"'. $classe. '>' .  $GLOBALS['links'][LANGUAGE][$value]['title'] .  '</a>';  
 * Renvoie les liens de creation de compte ou de déconnexion  
 * suivant le statut de l'utilisateur  
  $link_account =  array('rub' =>  $GLOBALS['links'][LANGUAGE]['user-prefs']['linkvalue']);  
  $content  =  '<div><h3>'. _t('header','myaccount'). '</h3>';  
  $content .=  '<ul id="account">' .  END_LINE;  
  $content .=  '<li><a href="' .  HrefMaker($link_account) .  '" accesskey="u" title="'. _t('header','myaccount_title'). '">' .  _t('header','myaccount') .  '</a></li>';  
  $link_create =  array('rub' =>  $GLOBALS['links'][LANGUAGE]['user-registration']['linkvalue']);  
  $link_logout =  array('rub' =>  $GLOBALS['links'][LANGUAGE]['logout']['linkvalue']);  
  if (isset ($_COOKIE['linea21']['whois'])) $content .=  '<li><a href="' .  HrefMaker($link_logout) .  '" accesskey="l" title="'. _t('header','deconnexion_title'). '">' .  _t('header','deconnexion') .  '</a></li>';  
  else $content .=  '<li><a href="' .  HrefMaker($link_create) .  '" accesskey="c" title="'. _t('divers','user_inscription_title'). '">' .  _t('divers','user_inscription') .  '</a></li>';  
 * Formulaire d'authentification pour login ou inscription  
 * @return void (echo string)  
function AuthForm($todo =  'LOGON', $back =  1 )  
  if($back===  1) $back= $_SERVER['HTTP_REFERER'];  
    $input_hidden =  $GLOBALS['links'][LANGUAGE]['user-prefs']['linkvalue'];  
    $input_hidden =  $GLOBALS['links'][LANGUAGE]['user-registration']['linkvalue'];  
  $form =  '<form action="index.php" method="post">' .  END_LINE;  
  $form .=  '<div id="' .  $div_id .  '">' .  END_LINE;  
  $form .=  '<label for="login" class="labelised">' .  _t('divers','login') .  ' : </label>' .  END_LINE;  
  $form .=  '<input type="text" maxlength="20" class="shorttextfield" name="login" id="login" />' .  END_LINE;  
    $form .=  '<label for="password" class="labelised">' .  _t('divers','password') .  ' : </label>' .  END_LINE;  
    $form .=  '<input type="password" maxlength="20" class="shorttextfield" name="password" id="password" />' .  END_LINE;  
    $form .=  '<label for="email" class="labelised">' .  _t('divers','email') .  ' : </label>' .  END_LINE;  
    $form .=  '<input type="text" maxlength="100" class="shorttextfield" name="email" id="email" />' .  END_LINE;  
  $form .=  '<input type="hidden" name="rub" id="rub" value="' .  $input_hidden .  '" />' .  END_LINE;  
  $form .=  '<input type="hidden" name="referer" id="referer" value="' .  $back .  '" />' .  END_LINE;  
  $form .=  '<input type="submit"  value="'. _t('btn','valid'). '" alt="'. _t('btn','valid'). '" title="'. _t('btn','valid'). '" size="15" name="valid" id="valid" />'. END_LINE;  
 
 
        
       |