[ Index ] |
|
Code source de e107 0.7.8 |
1 <?php 2 3 if (!defined('e107_INIT')) { exit; } 4 require_once(e_HANDLER."comment_class.php"); 5 $cobj = new comment; 6 7 $LIST_CAPTION = $arr[0]; 8 $LIST_DISPLAYSTYLE = ($arr[2] ? "" : "none"); 9 10 $bullet = $this -> getBullet($arr[6], $mode); 11 12 $qry = ''; 13 if($mode == "new_page" || $mode == "new_menu" ){ 14 $lvisit = $this -> getlvisit(); 15 $qry = "comment_datestamp>".$lvisit; 16 } 17 18 $data = $cobj->getCommentData(intval($arr[7]), '0', $qry); 19 20 foreach($data as $row){ 21 $rowheading = $this -> parse_heading($row['comment_title'], $mode); 22 if($row['comment_url']){ 23 $HEADING = "<a href='".$row['comment_url']."' title='".$row['comment_title']."'>".$tp -> toHTML($rowheading, TRUE)."</a>"; 24 }else{ 25 $HEADING = $tp -> toHTML($rowheading, TRUE); 26 } 27 $CATEGORY = ''; 28 if($arr[4]){ 29 if($row['comment_category_url']){ 30 $CATEGORY = "<a href='".$row['comment_category_url']."'>".$row['comment_category_heading']."</a>"; 31 }else{ 32 $CATEGORY = $row['comment_category_heading']; 33 } 34 } 35 $AUTHOR = ($arr[3] ? $row['comment_author'] : ''); 36 $DATE = ($arr[5] ? $this -> getListDate($row['comment_datestamp'], $mode) : ""); 37 $ICON = $bullet; 38 $INFO = ''; 39 40 $LIST_DATA[$mode][] = array( $ICON, $HEADING, $AUTHOR, $CATEGORY, $DATE, $INFO ); 41 } 42 43 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Apr 1 01:23:32 2007 | par Balluche grâce à PHPXref 0.7 |