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 (MAIL_YELLOWPAGES==1{
  26.     include_once('../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. include_once("../lib/lib_common.php")
  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>
  53.             <a href="index.php" class="chemin_home"><? echo _t('way','home'?></a>
  54.         </li>
  55.         <li>
  56.                <a href="<?php echo $rub_link?>" id="chemin_<? echo $rub?>" class="chemin_rub"><? echo _t('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(THEME_ADMIN_PATH."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 _t('yp','confirmation');?></a>
  78.     </div><br class="brendstep" />
  79.         <?php ?>
  80.         <h2><?  echo $display_title?></h2>    
  81.          <? echo "<a href=\"".$link_sup.$id."\" title=\""._t('yp','sup')."\" class=\"ico_sup2\">"?></a>
  82.         <? echo "<a href=\"".$link_mod.$id."\" title=\""._t('yp','mod')."\" class=\"ico_mod2\">"?></a>
  83.         
  84.         <dl class="dl2">
  85.         <dt><? echo _t('yp','theme')?> : </dt>
  86.         <dd><? 
  87.         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>"
  88.         else echo _t('yp','notheme')."</dd>"
  89.         ?>
  90.         <dt><? echo _t('yp','name2')?> :</dt>
  91.         <dd><? echo formatText(empty_nc($result[0]['yellowp_name'])'2HTML')?></dd>
  92.         <dt><? echo _t('yp','activity'?>: </dt>
  93.         <dd><? echo formatText(empty_nc($result[0]['yellowp_activity'])'2HTML')?></dd>
  94.         <dt><? echo _t('yp','street';?> : </dt>
  95.         <dd><? echo formatText(empty_nc($result[0]['yellowp_street'])'2HTML');?></dd>
  96.         <dt><? echo _t('yp','postal_code')?> : </dt>
  97.         <dd><? echo formatText(empty_nc($result[0]['yellowp_postal_code'])'2HTML');?></dd>
  98.         <dt><? echo _t('yp','city')?> : </dt>
  99.         <dd><? echo formatText(empty_nc($result[0]['yellowp_city'])'2HTML');?></dd>
  100.         <dt><? echo _t('yp','phone')?> : </dt>
  101.         <dd><? echo formatText(empty_nc($result[0]['yellowp_phone'])'2HTML');?></dd>
  102.         <dt><? echo _t('yp','fax';?> : </dt>
  103.         <dd><? echo formatText(empty_nc($result[0]['yellowp_fax'])'2HTML');?></dd>
  104.         <dt><? echo _t('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 _t('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 _t('divers','date_crea')?> :</dt>
  114.         <dd><? echo $result[0]['yellowp_date_crea'];?></dd>
  115.         <dt><? echo _t('divers','statut')?>  :</dt>
  116.         <dd><? if ($result[0]['yellowp_statut']=='D'{
  117.                    echo _t('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 Fri, 16 Oct 2009 09:31:30 +0200 by phpDocumentor 1.4.1