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 newsletter
  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['id'])) $id = $_GET['id'];
  19. if (isset($_POST['id'])) $id = $_POST['id'];
  20.  
  21. $req_det = SQL_getoneCompleteNewsLetter($id);
  22. $result = $sql_object->DBSelect($req_det);
  23. if ($result == 0 || count($result) != 1) exit;
  24.  
  25. $display_title = formatText($result[0]['newsletter_title'], '2HTML');
  26. $display_body = linkin_content(formatText($result[0]['newsletter_body'], '2HTML'));
  27. $display_user = formatText($result[0]['user_login'], '2HTML');
  28. $display_date_crea = $result[0]['newsletter_date_crea_display'];
  29. $display_last_modify = $result[0]['newsletter_last_modify_display'];
  30. $display_statut = display_statut($result[0]['newsletter_statut']);
  31. $newsletter_status = $result[0]['newsletter_statut'];
  32. $newsletter_owner= $result[0]['newsletter_posted_by'];
  33.  
  34. if ($result[0]['newsletter_published_date_display'] == '01-01-0001') $display_published_date = _t('statut','draft');
  35. else $display_published_date = $result[0]['newsletter_published_date_display'];
  36.  
  37. $link_sup = $rub_link . "&amp;todo=sup&amp;id=";
  38. $link_mod = $rub_link . "&amp;todo=mod&amp;id=";
  39. ?>
  40. <div id="chemin">
  41.     <ul>
  42.         <li>
  43.             <a href="index.php" class="chemin_home">
  44.             <?php echo _t('way','home'); ?>
  45.             </a>
  46.         </li>
  47.         <li>
  48.              <a href="<?php echo $rub_link; ?>" id="chemin_<? echo $rub; ?>" class="chemin_rub">
  49.             <?php echo _t('menu','newsletter'); ?>
  50.             </a>
  51.         </li>
  52.         <li>
  53.             <span><?php echo formatNavTitle(_t('newsletter','det') . " : " . $display_title); ?></span>
  54.         </li>
  55.     </ul>
  56. </div>
  57.   <!--end barre haute -->
  58. <?php
  59. include_once(THEME_ADMIN_PATH."quickicons.php");
  60.  
  61. ?>
  62. <div class="contentcontainer">
  63. <?php
  64. include_once($dir . "/menurub.php");
  65.  
  66. ?>
  67. <div id="content">
  68.         <?php
  69. echo "<h2>";
  70. echo formatTitleh2($display_title);
  71. echo "</h2>\n";
  72. if($newsletter_status!='P') {
  73.     echo "\t<a href=\"" . $link_sup . $id . "\" class=\"ico_sup2\" title=\"" . _t('newsletter','sup') . "\"></a>\n";
  74.     echo "\t<a href=\"" . $link_mod . $id . "\" class=\"ico_mod2\" title=\"" . _t('newsletter','mod') . "\"></a>\n";
  75. }
  76. echo "<dl class=\"dl3\">\n";
  77. echo "<dt>" . _t('newsletter','title') . "</dt>\n";
  78. echo "<dd>" . $display_title . "</dd>\n";
  79. echo "<dt>" . _t('newsletter','body') . " :</dt>\n";
  80. echo "<dd>" . $display_body . "</dd>\n";
  81. echo "<dt>" . _t('newsletter','author') . " :</dt>\n";
  82. echo '<dd><a href="?rub=user&amp;todo=det&amp;id='.$newsletter_owner.'">' . $display_user . '</a></dd>'.END_LINE;
  83. echo "<dt>" . _t('statut','published_on') . "</dt>\n";
  84. echo "<dd>" . $display_published_date . "</dd>\n";
  85. echo "<dt>" . _t('divers','date_crea') . "</dt>\n";
  86. echo "<dd>" . $display_date_crea . "</dd>\n";
  87. echo "<dt>" . _t('divers','last_modify') . "</dt>\n";
  88. echo "<dd>" . $display_last_modify . "</dd>\n";
  89. echo "<dt>" . _t('divers','statut') . "</dt>\n";
  90. echo "<dd>" . $display_statut . "</dd>\n";
  91. echo "</dl>\n";
  92. ?>
  93.  
  94. </div>
  95. <?php include_once($dir . "/help.php");
  96. ?>
  97. </div>

Documentation generated on Fri, 16 Oct 2009 09:31:11 +0200 by phpDocumentor 1.4.1