Source for file det.php
Documentation is available at det.php 
 * @package linea21.modules  
 * @subpackage yellowpages  
 * @author linea21 <info@linea21.com>  
 * @license http://opensource.org/licenses/gpl-3.0.html  
//////////// Check Inclusion de pages ////////////   
include_once("../lib/lib_common.php");  
if(isset ($_GET['state'])) {  
    if(isset ($_POST['id']))    $yp_id= $_POST['id'];  
    if(isset ($_GET['id']))    $yp_id= $_GET['id'];  
    $result_update= $yp_object->StateYellowPages($yp_id, 'P', $sql_object);  
    $link_confirm= "confirm.php?rub=". $rub. "&todo=mod&id=". $yp_id;  
    if (MAIL_YELLOWPAGES== 1) {  
    include_once('../yellowpages/mail_actions.php');  
    include_once('../mail/template.php');  
    if($result_update) header("Location: ". $link_confirm);  
    if(!isset ($_GET['id']) &&  !isset ($_POST['id'])) {  
    if(isset ($_POST['id']))    $id= $_POST['id'];  
    if(isset ($_GET['id']))    $id= $_GET['id'];  
include_once("../lib/lib_common.php");   
$result= $sql_object->DBSelect($req_det);  
$link_det= $rub_link. "&todo=det&id=";   
$link_det_theme= "index.php?rub=theme&todo=det&id=";   
$link_sup= $rub_link. "&todo=sup&id=";  
$link_mod= $rub_link. "&todo=mod&id=";  
$navtitle= _t('yp','det'). " : ". $result[0]['yellowp_name'];  
            <a href="index.php" class="chemin_home"> <? echo  _t('way','home') ?></a>  
               <a href=" <?php echo  $rub_link; ?>" id="chemin_ <? echo  $rub; ?>" class="chemin_rub"> <? echo  _t('menu','yellowpages')?></a>  
            <span> <? echo  formatnavTitle($navtitle); ?></span>  
include_once(THEME_ADMIN_PATH. "quickicons.php");  
<div class="contentcontainer">  
include_once($dir. "/menurub.php");  
        $link_det_state= $rub_link. "&todo=det&state=". $result[0]['yellowp_statut']. "&id=";   
        if ($result[0]['yellowp_statut']== 'D') {  ?>  
    <a href=" <? echo  $link_det_state. $id ;?>"> <?echo  _t('yp','confirmation');?></a>  
    </div><br class="brendstep" />  
        <h2> <?  echo  $display_title; ?></h2>      
         <? echo  "<a href=\"". $link_sup. $id. "\" title=\"". _t('yp','sup'). "\" class=\"ico_sup2\">"; ?></a>   
        <? echo  "<a href=\"". $link_mod. $id. "\" title=\"". _t('yp','mod'). "\" class=\"ico_mod2\">"; ?></a>   
        <dt> <? echo  _t('yp','theme'); ?> : </dt>  
        if ($result[0]['yellowp_theme']<>- 1) echo  "<a href=\"". $link_det_theme. $result[0]['yellowp_theme']. "\" title=\"". formatText($result[0]['theme_name'], '2HTML'). "\">". formatText($result[0]['theme_name'], '2HTML'). "</a></dd>";   
        else echo  _t('yp','notheme'). "</dd>";   
        <dt> <? echo  _t('yp','name2'); ?> :</dt>  
        <dt> <? echo  _t('yp','activity') ; ?>: </dt>  
        <dt> <? echo  _t('yp','street') ;?> : </dt>  
        <dt> <? echo  _t('yp','postal_code'); ?> : </dt>  
        <dt> <? echo  _t('yp','city'); ?> : </dt>  
        <dt> <? echo  _t('yp','phone'); ?> : </dt>  
        <dt> <? echo  _t('yp','fax') ;?> : </dt>  
        <dt> <? echo  _t('yp','email'); ?> : </dt>  
        <dd> <? echo  "<a href=\"mailto:". $result[0]['yellowp_email']. "\" title=\"" . formatText($result[0]['yellowp_email'], '2HTML'). "\">" . formatText($result[0]['yellowp_email'], '2HTML'). "</a>";?></dd>  
        <dt> <? echo  _t('yp','website') ;?> : </dt>  
        if ($result[0]['yellowp_website']<> "")  
           echo  "<a href=\"". $result[0]['yellowp_website']. "\" title=\"". formatText($result[0]['yellowp_website'], '2HTML'). "\">". formatText($result[0]['yellowp_website'], '2HTML'). "</a></dd>"; 
        <dt> <? echo  _t('divers','date_crea'); ?> :</dt>  
        <dd> <? echo  $result[0]['yellowp_date_crea'];?></dd>  
        <dt> <? echo  _t('divers','statut'); ?>  :</dt>  
        <dd> <? if ($result[0]['yellowp_statut']== 'D') { 
<?php include_once($dir. "/help.php"); ?>  
 
 
        
       |