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 (!class_exists('auth')){
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18. //////////// Check Droits utilisateur ////////////
  19. if (!$l21auth->isSuperAdmin()) ReloadIndex('admin');
  20. ////////////
  21.  
  22. include_once(override('../yellowpages/display.php'THEME_ADMIN_PATH))
  23.  
  24.  
  25. if(isset($_GET['state'])) {
  26.   $state=$_GET['state'];
  27.   if(isset($_POST['id']))    $yp_id=$_POST['id'];
  28.   if(isset($_GET['id']))    $yp_id=$_GET['id'];
  29.   $yp_objectnew yellowpages;
  30.   $result_update=$yp_object->StateYellowPages($yp_id'P'$sql_object);
  31.   $link_confirm="confirm.php?rub=".$rub."&todo=mod&id=".$yp_id;
  32.   if (ALERT_DIRECTORY==1{
  33.     include_once(override('../yellowpages/mail_actions.php'));
  34.     include_once('../mail/template.php');
  35.   }
  36.   echo $result_update;
  37.   if($result_updateheader("Location: ".$link_confirm);
  38.   else  system_error();
  39. }
  40.  
  41. if(!isset($_GET['id']&& !isset($_POST['id'])) {
  42.   $id="1";
  43. else {
  44.   if(isset($_POST['id']))    $id=$_POST['id'];
  45.   if(isset($_GET['id']))    $id=$_GET['id'];
  46. }
  47.  
  48. $req_detSQL_getdetyp($id);
  49. $result=$sql_object->DBSelect($req_det);
  50. $link_det=$rub_link."&amp;todo=det&amp;id=";
  51. $link_det_theme="index.php?rub=theme&amp;todo=det&amp;id=";
  52. $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  53. $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  54. $navtitle=_t('yp','det')." : ".$result[0]['yellowp_name'];
  55. $display_title=formatTitleh2($result[0]['yellowp_name']);
  56. ?>
  57. <div id="chemin">
  58.   <ul>
  59.       <li><a href="index.php" class="chemin_home"><?php echo _t('way','home'?></a></li>
  60.       <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>" class="chemin_rub"><?php echo _t('menu','yellowpages')?></a></li>
  61.       <li><span><?php echo formatnavTitle($navtitle)?></span></li>
  62.   </ul>
  63. </div>
  64. <!--end barre haute -->
  65. <?php
  66. include_once(THEME_ADMIN_PATH."quickicons.php");
  67. ?>
  68. <div class="contentcontainer"><?php
  69. include_once(override($dir.'/menurub.php'THEME_ADMIN_PATH));
  70. ?>
  71. <div id="content">
  72. <?php
  73. $link_det_state=$rub_link."&todo=det&state=".$result[0]['yellowp_statut']."&amp;id=";
  74. if ($result[0]['yellowp_statut']=='D'{  ?>
  75. <div class="mod_link">
  76.     <a href="<?php echo $link_det_state.$id ;?>"><?php echo _t('yp','confirmation');?></a>
  77. </div>
  78. <br class="brendstep" />
  79. <?php ?>
  80. <h2><?php  echo $display_title?></h2>
  81. <?php echo "<a href=\"".$link_sup.$id."\" title=\""._t('yp','sup')."\" class=\"ico_sup2\">"?></a>
  82. <?php echo "<a href=\"".$link_mod.$id."\" title=\""._t('yp','mod')."\" class=\"ico_mod2\">"?></a>
  83.  
  84. <dl class="dl2">
  85.     <dt><?php echo mb_ucfirst(_t('yp','theme'))?> :</dt>
  86.     <dd><?php
  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><?php echo mb_ucfirst(_t('yp','name2'))?> :</dt>
  91.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_name'])'2HTML')?></dd>
  92.     <dt><?php echo mb_ucfirst(_t('yp','activity'))?> :</dt>
  93.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_activity'])'2HTML')?></dd>
  94.     <dt><?php echo mb_ucfirst(_t('yp','street'))?> :</dt>
  95.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_street'])'2HTML');?></dd>
  96.     <dt><?php echo mb_ucfirst(_t('yp','postal_code'))?> :</dt>
  97.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_postal_code'])'2HTML');?></dd>
  98.     <dt><?php echo mb_ucfirst(_t('yp','city'))?> :</dt>
  99.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_city'])'2HTML');?></dd>
  100.     <dt><?php echo mb_ucfirst(_t('yp','phone'))?> :</dt>
  101.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_phone'])'2HTML');?></dd>
  102.     <dt><?php echo mb_ucfirst(_t('yp','fax'));?> :</dt>
  103.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_fax'])'2HTML');?></dd>
  104.     <dt><?php echo mb_ucfirst(_t('yp','email'))?> :</dt>
  105.     <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>
  106.     <dt><?php echo mb_ucfirst(_t('yp','website'))?> :</dt>
  107.     <dd><?php
  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><?php echo mb_ucfirst(_t('divers','date_crea'))?> :</dt>
  114.     <dd><?php echo $result[0]['yellowp_date_crea'];?></dd>
  115.     <dt><?php echo mb_ucfirst(_t('divers','statut'))?> :</dt>
  116.     <dd><?php if ($result[0]['yellowp_statut']=='D'{
  117.       echo mb_ucfirst(_t('yp','draft'));
  118.     }
  119.     else echo display_statut($result[0]['yellowp_statut']);?></dd>
  120.  
  121. </dl>
  122. <?php echo generateMap('map'$result16?>
  123. </div>
  124. <?php include_once(override($dir.'/help.php'THEME_ADMIN_PATH))?>
  125. </div>

Documentation generated on Mon, 08 Apr 2013 18:13:45 +0200 by phpDocumentor 1.4.1