<?php

defined('_JEXEC') or die('Restricted access');
// Added style sheet
$doc =& JFactory::getDocument();
$css = JURI::base() . 'modules/mod_jea_projectnews/css/styles.css';
$doc->addStyleSheet($css);
//include css.
require dirname(__FILE__) . DS . 'helper.php';
//
$lists = modProjectGroupHelper::getProjectGroup($params);
require JModuleHelper::getLayoutPath('mod_jea_projectnews', 'default');
示例#2
0
        //				if($list==null)
        //					continue;
        modProjectGroupHelper::renderGroupProject($list[0]);
        // ten nhom du an
        echo "<table border='0'>";
        $i = 0;
        foreach ($list as $project) {
            echo "<tr><td>";
            if ($i == 0) {
                modProjectGroupHelper::renderProjectNew($project);
                $i = 1;
            } else {
                modProjectGroupHelper::renderProject($project);
            }
            echo "</tr></td>";
        }
        echo "<tr><td class='link_show_all'><a href='" . modProjectGroupHelper::getProjectGroupLink($list[0]) . "' > >>Xem tất cả </a></td></tr>";
        echo "</table>";
        echo " </td>";
        echo "</tr>";
        //			  	if($k==2)
        //			  	{
        //			  		echo " </tr>";
        //			  		$k=0;
        //			  	}
    }
    //			if($k==1)echo " </tr>";
}
?>
</table>
示例#3
0
 function renderGroupProject(&$project_group)
 {
     //$link_project_group= JRoute::_("index.php?option=com_jea&controller=projects&projectGroup=" .$project_group->project_group_id);
     $link_project_group = modProjectGroupHelper::getProjectGroupLink($project_group);
     require JModuleHelper::getLayoutPath('mod_jea_projectnews', '_projectGroup');
 }
示例#4
0
<?php 
defined('_JEXEC') or die('Restricted access');
$path_image = modProjectGroupHelper::getImageProject($project->project_id);
?>
 <div><a href="<?php 
echo $link_project;
?>
"><?php 
echo $project->project_name;
?>
 </a> </div>
<div class='mod_projectnew_project'>
<a href="<?php 
echo $link_project;
?>
"><img src="<?php 
echo $path_image;
?>
"/></a>
<p><?php 
echo $project->short_desc;
?>
</p>
</div>