Exemplo n.º 1
0
 function fetchElement($name, $value, &$node, $control_name)
 {
     // Must load admin language files
     $lang = JFactory::getLanguage();
     $lang->load("com_jevents", JPATH_ADMINISTRATOR);
     $help = $node->attributes('help');
     // RSH 10/5/10 Added this for J!1.6 - $help is now an JXMLElement
     if (!is_null($help) && version_compare(JVERSION, '1.6.0', ">=")) {
         if (is_object($help)) {
             $help = $help->data();
         }
         $help = isset($help) && strlen($help) <= 0 ? null : $help;
     }
     if (!is_null($help)) {
         $parts = explode(",", $value);
         $helps = explode(",", $help);
         foreach ($parts as $key => $valuepart) {
             $help = $helps[$key];
             list($helpfile, $varname, $part) = explode("::", $help);
             JEVHelper::loadOverlib();
             $lang = JFactory::getLanguage();
             $langtag = $lang->getTag();
             if (file_exists(JPATH_COMPONENT_ADMINISTRATOR . '/help/' . $langtag . '/' . $helpfile)) {
                 $jeventHelpPopup = JPATH_COMPONENT_ADMINISTRATOR . '/help/' . $langtag . '/' . $helpfile;
             } else {
                 $jeventHelpPopup = JPATH_COMPONENT_ADMINISTRATOR . '/help/en-GB/' . $helpfile;
             }
             include $jeventHelpPopup;
             $help = $this->help(${$varname}, $part);
             $parts[$key] = JText::_($valuepart) . $help;
         }
         $value = implode(", ", $parts);
     }
     return "<strong style='color:#993300'>" . JText::_($value) . "</strong>";
 }
<?php

defined('_JEXEC') or die('Restricted access');
$cfg =& JEVConfig::getInstance();
if ($cfg->get("tooltiptype", 'overlib') == 'overlib') {
    JEVHelper::loadOverlib();
}
$view = $this->getViewName();
echo $this->loadTemplate('cell');
$eventCellClass = "EventCalendarCell_" . $view;
echo "<div id='cal_title'>" . $this->data['fieldsetText'] . "</div>\n";
?>
        <table width="100%" align="center" border="0" cellspacing="1" cellpadding="0" class="cal_table">
            <tr valign="top">
            	<td width='2%' class="cal_td_daysnames"/>
                <?php 
foreach ($this->data["daynames"] as $dayname) {
    ?>
                    <td width="14%" align="center" class="cal_td_daysnames">
                        <?php 
    echo $dayname;
    ?>
                    </td>
                    <?php 
}
?>
            </tr>
            <?php 
$datacount = count($this->data["dates"]);
$dn = 0;
for ($w = 0; $w < 6 && $dn < $datacount; $w++) {