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 comment
  5.  * @author Simon Georget <simon@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. if (isset($_GET['id'])) $id $_GET['id'];
  23. if (isset($_POST['id'])) $id $_POST['id'];
  24.  
  25.  
  26. $comm new comment();
  27. $options array('status' => array('P''D''E')'given_id' => $id);
  28. $data $comm->get($options$sql_object);
  29. if ($data == || count($data!= 1exit;
  30.  
  31. // we get the current item title for displaying
  32. $options array('module' => $data[0]['comment_module']'module_id' => $data[0]['comment_module_id']);
  33. $r $comm->getCommentItem($options$sql_object);
  34. if ($data == || count($data!= 1exit;
  35. $data[0]['item_title']=$r[0]['item_title'];
  36.  
  37. $html_comments getMarkup($datatrue);
  38.  
  39. echo getAjaxFunction()// for ajax call
  40.  
  41. ?>
  42. <div id="chemin">
  43. <ul>
  44.     <li><a href="index.php" class="chemin_home"> <?php echo _t('way','home')?>
  45.     </a></li>
  46.     <li><a href="<?php echo $rub_link?>" id="chemin_<?php echo $rub?>"
  47.         class="chemin_rub"> <?php echo _t('menu','comment')?> </a></li>
  48.     <li><span><?php echo formatNavTitle(_t('comment','det'))?></span>
  49.     </li>
  50. </ul>
  51. </div>
  52. <!--end barre haute -->
  53. <?php
  54. include_once(THEME_ADMIN_PATH."quickicons.php");
  55.  
  56. ?>
  57. <div class="contentcontainer"><?php
  58. include_once(override($dir.'/menurub.php'THEME_ADMIN_PATH));
  59. ?>
  60. <div id="content">
  61. <?php
  62.   echo "<h2>";
  63.   echo formatTitleh2(_t('comment','det'));
  64.   echo "</h2>\n";
  65.  
  66.   echo '<div id="comments">';
  67.   if(!empty($html_comments)) echo $html_comments;
  68.   else echo "<div class=\"info\">"._t('comment','noresult')."</div>";
  69.   echo '</div>';
  70. ?></div>
  71. <?php include_once(override($dir.'/help.php'THEME_ADMIN_PATH))?>
  72. </div>

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