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><a href="index.php" class="chemin_home"> <?php echo _t('way','home'); ?>
  43.     </a></li>
  44.     <li><a href="<?php echo $rub_link; ?>" id="chemin_<?php echo $rub; ?>"
  45.         class="chemin_rub"> <?php echo _t('menu','newsletter'); ?> </a></li>
  46.     <li><span><?php echo formatNavTitle(_t('newsletter','det') . " : " . $display_title); ?></span>
  47.     </li>
  48. </ul>
  49. </div>
  50. <!--end barre haute -->
  51. <?php
  52. include_once(THEME_ADMIN_PATH."quickicons.php");
  53.  
  54. ?>
  55. <div class="contentcontainer"><?php
  56. include_once($dir . "/menurub.php");
  57.  
  58. ?>
  59. <div id="content"><?php
  60. echo "<h2>";
  61. echo formatTitleh2($display_title);
  62. echo "</h2>\n";
  63. if($newsletter_status!='P') {
  64.   echo "\t<a href=\"" . $link_sup . $id . "\" class=\"ico_sup2\" title=\"" . _t('newsletter','sup') . "\"></a>\n";
  65.   echo "\t<a href=\"" . $link_mod . $id . "\" class=\"ico_mod2\" title=\"" . _t('newsletter','mod') . "\"></a>\n";
  66. }
  67. echo "<dl class=\"dl3\">\n";
  68. echo "<dt>" . _t('newsletter','title') . "</dt>\n";
  69. echo "<dd>" . $display_title . "</dd>\n";
  70. echo "<dt>" . _t('newsletter','body') . " :</dt>\n";
  71. echo "<dd>" . $display_body . "</dd>\n";
  72. echo "<dt>" . _t('newsletter','author') . " :</dt>\n";
  73. echo '<dd><a href="?rub=user&amp;todo=det&amp;id='.$newsletter_owner.'">' . $display_user . '</a></dd>'.END_LINE;
  74. echo "<dt>" . _t('statut','published_on') . "</dt>\n";
  75. echo "<dd>" . $display_published_date . "</dd>\n";
  76. echo "<dt>" . _t('divers','date_crea') . "</dt>\n";
  77. echo "<dd>" . $display_date_crea . "</dd>\n";
  78. echo "<dt>" . _t('divers','last_modify') . "</dt>\n";
  79. echo "<dd>" . $display_last_modify . "</dd>\n";
  80. echo "<dt>" . _t('divers','statut') . "</dt>\n";
  81. echo "<dd>" . $display_statut . "</dd>\n";
  82. echo "</dl>\n";
  83. ?></div>
  84. <?php include_once($dir . "/help.php");
  85. ?></div>

Documentation generated on Fri, 01 Apr 2011 09:30:01 +0200 by phpDocumentor 1.4.1