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_objectnew 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 (ALERT_DIRECTORY==1{
  26.     include_once(themePath('../yellowpages/mail_actions.php'));
  27.     include_once('../mail/template.php');
  28.   }
  29.   echo $result_update;
  30.   if($result_updateheader("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.  
  41. $req_detSQL_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=_t('yp','det')." : ".$result[0]['yellowp_name'];
  48. $display_title=formatTitleh2($result[0]['yellowp_name']);
  49. ?>
  50. <div id="chemin">
  51.   <ul>
  52.       <li><a href="index.php" class="chemin_home"><?php echo _t('way','home'?></a></li>
  53.       <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>" class="chemin_rub"><?php echo _t('menu','yellowpages')?></a></li>
  54.       <li><span><?php echo formatnavTitle($navtitle)?></span></li>
  55.   </ul>
  56. </div>
  57. <!--end barre haute -->
  58. <?php
  59. include_once(THEME_ADMIN_PATH."quickicons.php");
  60. ?>
  61. <div class="contentcontainer"><?php
  62. include_once($dir."/menurub.php");
  63. ?>
  64. <div id="content">
  65. <?php
  66. $link_det_state=$rub_link."&todo=det&state=".$result[0]['yellowp_statut']."&amp;id=";
  67. if ($result[0]['yellowp_statut']=='D'{  ?>
  68. <div class="mod_link">
  69.     <a href="<?php echo $link_det_state.$id ;?>"><?echo _t('yp','confirmation');?></a>
  70. </div>
  71. <br class="brendstep" />
  72. <?php ?>
  73. <h2><?php  echo $display_title?></h2>
  74. <?php echo "<a href=\"".$link_sup.$id."\" title=\""._t('yp','sup')."\" class=\"ico_sup2\">"?></a>
  75. <?php echo "<a href=\"".$link_mod.$id."\" title=\""._t('yp','mod')."\" class=\"ico_mod2\">"?></a>
  76.  
  77. <dl class="dl2">
  78.     <dt><?php echo _t('yp','theme')?> :</dt>
  79.     <dd><?php
  80.     if ($result[0]['yellowp_theme']<>-1echo "<a href=\"".$link_det_theme.$result[0]['yellowp_theme']."\" title=\"".formatText($result[0]['theme_name']'2HTML')."\">".formatText($result[0]['theme_name']'2HTML')."</a></dd>";
  81.     else echo _t('yp','notheme')."</dd>";
  82.     ?>
  83.     <dt><?php echo _t('yp','name2')?> :</dt>
  84.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_name'])'2HTML')?></dd>
  85.     <dt><?php echo _t('yp','activity'?>:</dt>
  86.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_activity'])'2HTML')?></dd>
  87.     <dt><?php echo _t('yp','street';?> :</dt>
  88.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_street'])'2HTML');?></dd>
  89.     <dt><?php echo _t('yp','postal_code')?> :</dt>
  90.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_postal_code'])'2HTML');?></dd>
  91.     <dt><?php echo _t('yp','city')?> :</dt>
  92.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_city'])'2HTML');?></dd>
  93.     <dt><?php echo _t('yp','phone')?> :</dt>
  94.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_phone'])'2HTML');?></dd>
  95.     <dt><?php echo _t('yp','fax';?> :</dt>
  96.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_fax'])'2HTML');?></dd>
  97.     <dt><?php echo _t('yp','email')?> :</dt>
  98.     <dd><?php echo "<a href=\"mailto:".$result[0]['yellowp_email']."\" title=\"" .formatText($result[0]['yellowp_email']'2HTML')."\">" .formatText($result[0]['yellowp_email']'2HTML')."</a>";?></dd>
  99.     <dt><?php echo _t('yp','website';?> :</dt>
  100.     <dd><?php
  101.     if ($result[0]['yellowp_website']<>"")
  102.     echo "<a href=\"".$result[0]['yellowp_website']."\" title=\"".formatText($result[0]['yellowp_website']'2HTML')."\">".formatText($result[0]['yellowp_website']'2HTML')."</a></dd>";
  103.     else    echo formatText(empty_nc($result[0]['yellowp_website'])'2HTML')."</dd>";
  104.  
  105.     ?>
  106.     <dt><?php echo _t('divers','date_crea')?> :</dt>
  107.     <dd><?php echo $result[0]['yellowp_date_crea'];?></dd>
  108.     <dt><?php echo _t('divers','statut')?> :</dt>
  109.     <dd><?php if ($result[0]['yellowp_statut']=='D'{
  110.       echo _t('yp','draft');
  111.     }
  112.     else echo display_statut($result[0]['yellowp_statut']);?></dd>
  113.  
  114. </dl>
  115. </div>
  116.     <?php include_once($dir."/help.php")?></div>

Documentation generated on Thu, 03 May 2012 15:03:44 +0200 by phpDocumentor 1.4.1