예제 #1
0
 function renderEmphasis(&$review)
 {
     $Pro_Item = modEmphasisNewsHelper::GetItemId($review);
     $link = JRoute::_("index.php?option=com_u_re&controller=projects&Itemid=" . $Pro_Item . "&task=view&id=" . $review->id);
     if (file_exists('images/project/' . $review->id . '/preview.jpg')) {
         $review->image = "images/project/" . $review->id . "/preview.jpg";
     } else {
         $review->image = "images/noimage.jpg";
     }
     require JModuleHelper::getLayoutPath('mod_jea_newsfp', '_emphasis');
 }
예제 #2
0
<?php

defined('_JEXEC') or die('Restricted access');
// Added style sheet
//$doc = & JFactory::getDocument();
//$css    = JURI::base().'modules/mod_emphasisnews/css/styles.css';
//$doc->addStyleSheet($css);
require dirname(__FILE__) . DS . 'helper.php';
//
$list = modEmphasisNewsHelper::getEmphasisNews($params);
require JModuleHelper::getLayoutPath('mod_jea_newsfp', 'default');
예제 #3
0
    //	print_r(modEmphasisNewsHelper::renderEmphasis($list[0]));
    //	echo "</pre>";
    //	// end debug
    ?>
	    <td  class='emphasis' width='67%' valign="top" rowspan=" <?php 
    echo $numrecord;
    ?>
"><?php 
    modEmphasisNewsHelper::renderEmphasis($list[0]);
    ?>
</td>
        <td  class="dot">
        </td>
		<td valign='top'>
			<!-- cac emphasis khac -->
			<?php 
    for ($i = 1; $i < $numrecord; $i++) {
        echo "<table>";
        //echo "<tr> <td valign='top' class='item'><img  style='padding-right:3px' src='" . $list[i]->image . "'>";
        modEmphasisNewsHelper::renderEmphasisNews($list[$i]);
        echo "</table>";
        //echo" </td></tr>";
    }
    echo "</td>";
}
?>
</tr>
</table>
</td>
	</tr>
</table>