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.       $todo_mail 'confirm_entry';
  34.       $link HrefMaker(array('rub' => $GLOBALS['links'][U_L]['directory-detail']['linkvalue']'id' => $yp_id));
  35.       $full_link SITE_ROOT_URL'public/'.$link;
  36.       
  37.     include_once(override('../yellowpages/mail_actions.php'));
  38.     include_once(override('../mail/template.php'));
  39.   }
  40.   echo $result_update;
  41.   if($result_updateheader("Location: ".$link_confirm);
  42.   else  system_error();
  43. }
  44.  
  45. if(!isset($_GET['id']&& !isset($_POST['id'])) {
  46.   $id="1";
  47. else {
  48.   if(isset($_POST['id']))    $id=$_POST['id'];
  49.   if(isset($_GET['id']))    $id=$_GET['id'];
  50. }
  51.  
  52. $req_detSQL_getdetyp($id);
  53. $result=$sql_object->DBSelect($req_det);
  54. $link_det=$rub_link."&amp;todo=det&amp;id=";
  55. $link_det_theme="index.php?rub=theme&amp;todo=det&amp;id=";
  56. $link_sup=$rub_link."&amp;todo=sup&amp;id=";
  57. $link_mod=$rub_link."&amp;todo=mod&amp;id=";
  58. $navtitle=_t('yp','det')." : ".$result[0]['yellowp_name'];
  59. $display_title=formatTitleh2($result[0]['yellowp_name']);
  60. ?>
  61. <div id="chemin">
  62.   <ul>
  63.       <li><a href="index.php" class="chemin_home"><?php echo _t('way','home'?></a></li>
  64.       <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>" class="chemin_rub"><?php echo _t('menu','yellowpages')?></a></li>
  65.       <li><span><?php echo formatnavTitle($navtitle)?></span></li>
  66.   </ul>
  67. </div>
  68. <!--end barre haute -->
  69. <?php
  70. include_once(THEME_ADMIN_PATH."quickicons.php");
  71. ?>
  72. <div class="contentcontainer"><?php
  73. include_once(override($dir.'/menurub.php'THEME_ADMIN_PATH));
  74. ?>
  75. <div id="content">
  76. <?php
  77. $link_det_state=$rub_link."&todo=det&state=".$result[0]['yellowp_statut']."&amp;id=";
  78. if ($result[0]['yellowp_statut']=='D'{  ?>
  79. <div class="mod_link">
  80.     <a href="<?php echo $link_det_state.$id ;?>"><?php echo _t('yp','confirmation');?></a>
  81. </div>
  82. <br class="brendstep" />
  83. <?php ?>
  84. <h2><?php  echo $display_title?></h2>
  85. <?php echo "<a href=\"".$link_sup.$id."\" title=\""._t('yp','sup')."\" class=\"ico_sup2\">"?><i class="icon-trash"></i><span><?php echo _t('yp','sup')?></span></a>
  86. <?php echo "<a href=\"".$link_mod.$id."\" title=\""._t('yp','mod')."\" class=\"ico_mod2\">"?><i class="icon-pencil"></i><span><?php echo _t('yp','mod')?></span></a>
  87.  
  88. <dl class="dl2">
  89.     <dt><?php echo mb_ucfirst(_t('yp','theme'))?> :</dt>
  90.     <dd><?php
  91.     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>";
  92.     else echo _t('yp','notheme')."</dd>";
  93.     ?>
  94.     <dt><?php echo mb_ucfirst(_t('yp','name2'))?> :</dt>
  95.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_name'])'2HTML')?></dd>
  96.     <dt><?php echo mb_ucfirst(_t('yp','activity'))?> :</dt>
  97.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_activity'])'2HTML')?></dd>
  98.     <dt><?php echo mb_ucfirst(_t('yp','street'))?> :</dt>
  99.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_street'])'2HTML');?></dd>
  100.     <dt><?php echo mb_ucfirst(_t('yp','postal_code'))?> :</dt>
  101.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_postal_code'])'2HTML');?></dd>
  102.     <dt><?php echo mb_ucfirst(_t('yp','city'))?> :</dt>
  103.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_city'])'2HTML');?></dd>
  104.     <dt><?php echo mb_ucfirst(_t('yp','phone'))?> :</dt>
  105.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_phone'])'2HTML');?></dd>
  106.     <dt><?php echo mb_ucfirst(_t('yp','fax'));?> :</dt>
  107.     <dd><?php echo formatText(empty_nc($result[0]['yellowp_fax'])'2HTML');?></dd>
  108.     <dt><?php echo mb_ucfirst(_t('yp','email'))?> :</dt>
  109.     <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>
  110.     <dt><?php echo mb_ucfirst(_t('yp','website'))?> :</dt>
  111.     <dd><?php
  112.     if ($result[0]['yellowp_website']<>"")
  113.     echo "<a href=\"".$result[0]['yellowp_website']."\" title=\"".formatText($result[0]['yellowp_website']'2HTML')."\">".formatText($result[0]['yellowp_website']'2HTML')."</a></dd>";
  114.     else    echo formatText(empty_nc($result[0]['yellowp_website'])'2HTML')."</dd>";
  115.  
  116.     ?>
  117.     <dt><?php echo mb_ucfirst(_t('divers','date_crea'))?> :</dt>
  118.     <dd><?php echo $result[0]['yellowp_date_crea'];?></dd>
  119.     <dt><?php echo mb_ucfirst(_t('divers','statut'))?> :</dt>
  120.     <dd><?php if ($result[0]['yellowp_statut']=='D'{
  121.       echo mb_ucfirst(_t('yp','draft'));
  122.     }
  123.     else echo display_statut($result[0]['yellowp_statut']);?></dd>
  124.  
  125. </dl>
  126. <?php echo generateMap('map'$result16?>
  127. </div>
  128. <?php include_once(override($dir.'/help.php'THEME_ADMIN_PATH))?>
  129. </div>

Documentation generated on Thu, 20 Mar 2014 16:47:20 +0100 by phpDocumentor 1.4.1