linea21-modules
[ class tree: linea21-modules ] [ index: linea21-modules ] [ all elements ]

Source for file det.php

Documentation is available at det.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage yellowpages
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //////////// Check Inclusion de pages //////////// 
  12. if (!function_exists('AuthenthificationProcess')){ 
  13. include_once("../lib/lib_common.php");
  14. ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18. if(isset($_GET['state'])) {
  19.     $state=$_GET['state'];
  20.     if(isset($_POST['id']))    $yp_id=$_POST['id'];
  21.     if(isset($_GET['id']))    $yp_id=$_GET['id'];
  22.     $yp_object= new yellowpages;
  23.     $result_update=$yp_object->StateYellowPages($yp_id, 'P', $sql_object);
  24.     $link_confirm="confirm.php?rub=".$rub."&todo=mod&id=".$yp_id;
  25.     if (MAIL_YELLOWPAGES==1) {
  26.     include_once('../yellowpages/mail_actions.php');
  27.     include_once('../mail/template.php');
  28.     }
  29.     echo $result_update;
  30.     if($result_update) header("Location: ".$link_confirm);
  31.     else  system_error();
  32. }
  33.  
  34.     if(!isset($_GET['id']) && !isset($_POST['id'])) {
  35.     $id="1";
  36. } else {
  37.     if(isset($_POST['id']))    $id=$_POST['id'];
  38.     if(isset($_GET['id']))    $id=$_GET['id'];
  39. }
  40. include_once("../lib/lib_common.php"); 
  41. $req_det= SQL_getdetyp($id);
  42. $result=$sql_object->DBSelect($req_det);
  43. $link_det=$rub_link."&amp;todo=det&amp;id="; 
  44. $link_det_theme="index.php?rub=theme&amp;todo=det&amp;id="; 
  45. $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  46. $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  47. $navtitle=$GLOBALS['lang']['yp']['det']." : ".$result[0]['yellowp_name'];
  48. $display_title=formatTitleh2($result[0]['yellowp_name']);
  49. ?>
  50. <div id="chemin">
  51.     <ul>
  52.         <li>
  53.             <a href="index.php"><? echo $GLOBALS['lang']['way']['home'] ?></a>
  54.         </li>
  55.         <li>
  56.             <a href="<?php echo $rub_link; ?>"><? echo $GLOBALS['lang']['menu']['yellowpages']?></a>
  57.         </li>
  58.         <li>
  59.             <span><? echo formatnavTitle($navtitle); ?></span>
  60.         </li>
  61.     </ul>
  62. </div>
  63.   <!--end barre haute -->
  64. <?php
  65. include_once("quickicons.php");
  66. ?>
  67. <div class="contentcontainer">
  68. <?php
  69. include_once($dir."/menurub.php");
  70. ?>
  71. <div id="content">
  72.         
  73.         <? 
  74.         $link_det_state=$rub_link."&todo=det&state=".$result[0]['yellowp_statut']."&amp;id="; 
  75.         if ($result[0]['yellowp_statut']=='D') {  ?>
  76.     <div class="mod_link">
  77.     <a href="<? echo $link_det_state.$id ;?>"><?echo $GLOBALS['lang']['yp']['confirmation'];?></a>
  78.     </div><br class="brendstep" />
  79.         <?php } ?>
  80.         <h2><?  echo $display_title; ?></h2>    
  81.          <? echo "<a href=\"".$link_sup.$id."\" title=\"".$GLOBALS['lang']['yp']['sup']."\" class=\"ico_sup2\">"; ?></a>
  82.         <? echo "<a href=\"".$link_mod.$id."\" title=\"".$GLOBALS['lang']['yp']['mod']."\" class=\"ico_mod2\">"; ?></a>
  83.         
  84.         <dl class="dl2">
  85.         <dt><? echo $GLOBALS['lang']['yp']['theme']; ?> : </dt>
  86.         <dd><? 
  87.         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>"; 
  88.         else echo $GLOBALS['lang']['yp']['notheme']."</dd>"; 
  89.         ?>
  90.         <dt><? echo $GLOBALS['lang']['yp']['name2']; ?> :</dt>
  91.         <dd><? echo formatText(empty_nc($result[0]['yellowp_name']), '2HTML'); ?></dd>
  92.         <dt><? echo $GLOBALS['lang']['yp']['activity'] ; ?>: </dt>
  93.         <dd><? echo formatText(empty_nc($result[0]['yellowp_activity']), '2HTML'); ?></dd>
  94.         <dt><? echo $GLOBALS['lang']['yp']['street'] ;?> : </dt>
  95.         <dd><? echo formatText(empty_nc($result[0]['yellowp_street']), '2HTML');?></dd>
  96.         <dt><? echo $GLOBALS['lang']['yp']['postal_code']; ?> : </dt>
  97.         <dd><? echo formatText(empty_nc($result[0]['yellowp_postal_code']), '2HTML');?></dd>
  98.         <dt><? echo $GLOBALS['lang']['yp']['city']; ?> : </dt>
  99.         <dd><? echo formatText(empty_nc($result[0]['yellowp_city']), '2HTML');?></dd>
  100.         <dt><? echo $GLOBALS['lang']['yp']['phone']; ?> : </dt>
  101.         <dd><? echo formatText(empty_nc($result[0]['yellowp_phone']), '2HTML');?></dd>
  102.         <dt><? echo $GLOBALS['lang']['yp']['fax'] ;?> : </dt>
  103.         <dd><? echo formatText(empty_nc($result[0]['yellowp_fax']), '2HTML');?></dd>
  104.         <dt><? echo $GLOBALS['lang']['yp']['email']; ?> : </dt>
  105.         <dd><? echo "<a href=\"mailto:".$result[0]['yellowp_email']."\" title=\"" .formatText($result[0]['yellowp_email'], '2HTML')."\">" .formatText($result[0]['yellowp_email'], '2HTML')."</a>";?></dd>
  106.         <dt><? echo $GLOBALS['lang']['yp']['website'] ;?> : </dt>
  107.         <dd><? 
  108.         if ($result[0]['yellowp_website']<>"")
  109.            echo "<a href=\"".$result[0]['yellowp_website']."\" title=\"".formatText($result[0]['yellowp_website'], '2HTML')."\">".formatText($result[0]['yellowp_website'], '2HTML')."</a></dd>";
  110.         else    echo formatText(empty_nc($result[0]['yellowp_website']), '2HTML')."</dd>";
  111.         
  112. ?>
  113.         <dt><? echo $GLOBALS['lang']['divers']['date_crea']; ?> :</dt>
  114.         <dd><? echo $result[0]['yellowp_date_crea'];?></dd>
  115.         <dt><? echo $GLOBALS['lang']['divers']['statut']; ?>  :</dt>
  116.         <dd><? if ($result[0]['yellowp_statut']=='D') {
  117.                    echo $GLOBALS['lang']['yp']['draft'];
  118.                }
  119.                else echo display_statut($result[0]['yellowp_statut']);?></dd>
  120. </dl>
  121. </div>
  122. <?php include_once($dir."/help.php"); ?>
  123. </div>

Documentation generated on Sat, 08 Nov 2008 14:51:48 +0100 by phpDocumentor 1.4.1