function output() { // main wrapper echo '<div class="gkNspPM gkNspPM-EventsList" data-cols="' . $this->parent->config['portal_mode_events_list_cols'] . '">'; if (trim($this->parent->config['nsp_pre_text'])) { echo $this->parent->config['nsp_pre_text']; } // render images for ($i = 0; $i < count($this->parent->content); $i++) { $title = $this->parent->content[$i]['title']; $text = $this->parent->content[$i]['text']; // parse event data $event_info = array("date" => '', "when" => '', "timestamp" => '', "counter_timestamp" => ''); $event_data = array(); $event_data_count = preg_match('@<div class="gkEvent">.*?</div>@mis', $text, $event_data); if ($event_data_count > 0) { $event_datetimes = array(); $event_datetimes_count = preg_match_all('@<time.*?datetime="(.*?)".*?>(.*?)</time>@', $event_data[0], $event_datetimes); if ($event_datetimes_count > 0) { $event_timestamp = strtotime($event_datetimes[1][0]); $event_timestamp_sql = strftime('%Y-%m-%d %H:%M:%S', $event_timestamp); $event_info['timestamp'] = date(DATE_W3C, $event_timestamp); $event_info['counter_timestamp'] = date(DATE_W3C, strtotime($event_datetimes[1][4])); $event_info['date'] = JHTML::date($event_timestamp_sql, 'D') . '<small>' . JHTML::date($event_timestamp_sql, 'M j') . '</small>'; $event_info['when'] = $event_datetimes[2][0] . ' @ ' . $event_datetimes[2][2]; } } // output the HTML code echo '<div>'; if ($event_info['date'] != '') { echo '<time datetime="' . $event_info['timestamp'] . '" data-start="' . $event_info['counter_timestamp'] . '">' . $event_info['date'] . '</time>'; } echo '<div>'; echo '<h3>'; echo '<a href="' . $this->get_link($i) . '" title="' . strip_tags($this->parent->content[$i]['title']) . '">'; echo $title; echo '</a>'; echo '</h3>'; if ($event_info['when'] != '') { echo '<span>'; echo JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_EVENTS_LIST_WHEN') . $event_info['when']; echo '<span class="gkEventsListProgress"></span>'; echo '</span>'; } echo '</div>'; echo '</div>'; } if (count($this->parent->content) == 0) { echo '<p style="text-align: center"><strong>' . JText::_('MOD_NEWS_PRO_GK5_PORTAL_MODE_EVENTS_LIST_NO_EVENTS') . '</strong></p>'; } if (trim($this->parent->config['nsp_post_text'])) { echo $this->parent->config['nsp_post_text']; } // closing main wrapper echo '</div>'; }
/** * Format round date * * @param Object $round round * * @return bool|string|void */ public static function formatRoundStartEnd($round) { if (!self::isValidDate($round->start_date)) { return false; } if (self::isValidDate($round->end_date)) { // Both dates are defined. $format_end = 'j F Y'; if (JHTML::date($round->start_date, 'Ym') === JHTML::date($round->end_date, 'Ym')) { // No need to display twice the month and year here $format_start = 'j'; } else { $format_start = 'j F Y'; } return JHTML::date($round->start_date, $format_start) . ' - ' . JHTML::date($round->end_date, $format_end); } else { return JHTML::date($round->start_date, 'j F Y'); } return; }
/** * return formated string for round start date - end date * * @param object round (must have variables start_date, end_date) * * @return string html */ function formatRoundStartEnd($round) { if ($round->start_date && $round->start_date != '0000-00-00 00:00:00') { if ($round->end_date && $round->end_date != '0000-00-00 00:00:00') { // both dates are defined. $format_end = 'j F Y'; if (JHTML::date($round->start_date, 'Ym') == JHTML::date($round->end_date, 'Ym')) { // no need to display twice the month and year here $format_start = 'j'; } else { $format_start = 'j F Y'; } return JHTML::date($round->start_date, $format_start) . ' - ' . JHTML::date($round->end_date, $format_end); } else { return JHTML::date($round->start_date, 'j F Y'); } } else { return ''; } }
public static function saveTransactionLog($log, $id, $append = true) { if (!$log || !$id) { return false; } $db = JFactory::getDBO(); $query = $db->getQuery(true); if (!is_array($log)) { $log = array($log); } foreach ($log as $i => $item) { $log[$i] = JHTML::date('now') . ' ' . $item; } $log = implode("\n", $log); if ($append) { $query->update($db->qn('#__rsmembership_transactions'))->set($db->qn('response_log') . ' = CONCAT(' . $db->qn('response_log') . ', ' . $db->q("\n" . $log) . ')')->where($db->qn('id') . ' = ' . $db->q($id)); } else { $query->update($db->qn('#__rsmembership_transactions'))->set($db->qn('response_log') . ' = ' . $db->q($log))->where($db->qn('id') . ' = ' . $db->q($id)); } $db->setQuery($query); return $db->execute(); }
} ?> <!-- Date --> <?php if ($this->config['show_match_date'] == 1) { if ($this->match->match_date > 0) { ?> <tr> <td colspan="3" > <span class="label"><?php echo JText::_('COM_JOOMLEAGUE_MATCHREPORT_DATE'); ?> </span> <span><?php echo JHTML::date($this->match->match_date, JText::_('COM_JOOMLEAGUE_MATCHREPORT_GAMES_DATE')); ?> </span> </td> </tr> <?php } } ?> <!-- Time --> <?php if ($this->config['show_match_time'] == 1) { if ($this->match->match_date > 0) { ?> <tr>
$class = $k == 0 ? 'sectiontableentry1' : 'sectiontableentry2'; $result_link = JoomleagueHelperRoute::getResultsRoute($game->project_id, $game->roundid); $report_link = JoomleagueHelperRoute::getMatchReportRoute($game->project_id, $game->id); $home = $this->gamesteams[$game->projectteam1_id]; $away = $this->gamesteams[$game->projectteam2_id]; ?> <tr class="<?php echo $class; ?> "> <td><?php echo JHTML::link($result_link, $game->roundcode); ?> </td> <td class="nowrap"><?php echo JHTML::date($date, JText::_('COM_JOOMLEAGUE_MATCHDAYDATE')); ?> </td> <td><?php echo substr($game->match_date, 11, 5); ?> </td> <td class="nowrap"><?php echo $home->name; ?> </td> <td class="nowrap">-</td> <td class="nowrap"><?php echo $away->name; ?> </td>
<?php defined('_JEXEC') or die('Restricted access'); ?> <table class="contentpaneopen"> <tr> <td class="contentheading"><?php $pageTitle = 'COM_JOOMLEAGUE_MATCHREPORT_TITLE'; if (isset($this->round->name)) { $matchDate = JoomleagueHelper::getTimestamp($this->match->match_date, 1); echo ' ' . JText::sprintf($pageTitle, $this->round->name, JHTML::date($matchDate, JText::_('COM_JOOMLEAGUE_MATCHREPORT_GAMES_DATE')), JoomleagueHelperHtml::showMatchTime($this->match, $this->config, $this->overallconfig, $this->project)); } else { echo ' ' . JText::sprintf($pageTitle, '', '', ''); } ?> </td> </tr> </table>
$i = 0; foreach ($this->rating_reviews as $review) { if ($i % 2 == 0) { $color = 'normal'; } else { $color = 'highlight'; } // Loop through all reviews if (!empty($this->rating_reviews)) { ?> <div class="<?php echo $color; ?> "> <span class="date"><?php echo JHTML::date($review->created_on, JText::_('DATE_FORMAT_LC')); ?> </span> <?php //echo $stars[ $review->review_rating ] //Attention the review rating is the rating of the review itself, rating for the product is the vote ! ?> <blockquote><?php echo $review->comment; ?> </blockquote> <span class="bold"><?php echo $review->customer; ?> </span> </div> <?php
protected function getInput() { $writeable = '<b><font color="green">' . JText::_('COM_BIDS_WRITABLE') . '</font></b>'; $unwriteable = '<b><font color="red">' . JText::_('COM_BIDS_UNWRITABLE') . '</font></b>'; $template_dir = $unwriteable; $image_dir = $unwriteable; $config_dir = $unwriteable; if (is_writable(AUCTION_TEMPLATE_CACHE)) { $template_dir = $writeable; } if (is_writable(JPATH_COMPONENT_SITE . DS . 'images')) { $image_dir = $writeable; } if (is_writable(JPATH_COMPONENT_SITE . DS . 'options.php')) { $config_dir = $writeable; } $cfg = JFactory::getConfig(); $error_reporting = $cfg->get('error_reporting'); $error_reporting_text = ""; if ($error_reporting & E_ERROR) { $error_reporting_text .= " E_ERROR,"; } if ($error_reporting & E_WARNING) { $error_reporting_text .= " E_WARNING,"; } if ($error_reporting & E_PARSE) { $error_reporting_text .= " E_PARSE,"; } if ($error_reporting & E_NOTICE) { $error_reporting_text .= " E_NOTICE,"; } if ($error_reporting & E_CORE_ERROR) { $error_reporting_text .= " E_CORE_ERROR,"; } if ($error_reporting & E_CORE_WARNING) { $error_reporting_text .= " E_CORE_WARNING,"; } if ($error_reporting & E_COMPILE_ERROR) { $error_reporting_text .= " E_COMPILE_ERROR,"; } if ($error_reporting & E_COMPILE_WARNING) { $error_reporting_text .= " E_COMPILE_WARNING,"; } if ($error_reporting & E_USER_ERROR) { $error_reporting_text .= " E_USER_ERROR,"; } if ($error_reporting & E_USER_WARNING) { $error_reporting_text .= " E_USER_WARNING,"; } if ($error_reporting & E_USER_NOTICE) { $error_reporting_text .= " E_USER_NOTICE,"; } if ($error_reporting & E_STRICT) { $error_reporting_text .= " E_STRICT,"; } if ($error_reporting & E_RECOVERABLE_ERROR) { $error_reporting_text .= " E_RECOVERABLE_ERROR,"; } // if($error_reporting & E_DEPRECATED) $error_reporting_text.=" E_DEPRECATED,"; // if($error_reporting & E_USER_DEPRECATED) $error_reporting_text.=" E_USER_DEPRECATED,"; if ($error_reporting & E_ALL) { $error_reporting_text .= " E_ALL"; } $local_time = JHTML::date('now', 'l, d F Y H:i'); $gmt_time = gmdate('l, d F Y H:i'); $html = "\r\n <table class='adminlist'>\r\n <tr>\r\n <td colspan='2'><h3>" . JText::_('COM_BIDS_FILE_PERMISSIONS') . "</h3></td>\r\n </tr>\r\n <tr>\r\n <td class='item'>\r\n " . JText::_('COM_BIDS_SMARTY_TEMPLATE_CACHE_DIRECTORY') . "\r\n </td>\r\n <td>\r\n {$template_dir}\r\n </td>\r\n </tr>\r\n <tr>\r\n <td class='item'>\r\n " . JText::_('COM_BIDS_IMAGE_UPLOADING_DIRECTORY') . "\r\n </td>\r\n <td>\r\n {$image_dir}\r\n </td>\r\n </tr>\r\n <tr>\r\n <td class='item'>\r\n " . JText::_('COM_BIDS_CONFIGURATION_FILE') . "\r\n </td>\r\n <td>\r\n {$config_dir}\r\n </td>\r\n </tr>\r\n <tr>\r\n <td colspan='2'><h3>" . JText::_("COM_BIDS_JOOMLA_SETTINGS") . "</h3></td>\r\n </tr>\r\n <tr>\r\n <td>\r\n " . JText::_('COM_BIDS_ERROR_REPORTING') . "\r\n </td>\r\n <td>\r\n {$error_reporting_text}\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>\r\n " . JText::_('COM_BIDS_SITE_LOCALE_TIME') . "\r\n </td>\r\n <td>\r\n {$local_time}\r\n </td>\r\n </tr>\r\n <tr>\r\n <td colspan='2'><h3>" . JText::_("COM_BIDS_PHP_SETTINGS") . "</h3></td>\r\n </tr>\r\n <tr>\r\n <td>\r\n " . JText::_('COM_BIDS_DISPLAY_ERRORS') . "\r\n </td>\r\n <td>\r\n " . (ini_get('display_errors') ? JText::_('COM_BIDS_ON') : JText::_('COM_BIDS_OFF')) . "\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>\r\n " . JText::_('COM_BIDS_FILE_UPLOADS') . "\r\n </td>\r\n <td>\r\n " . (ini_get('file_uploads') ? JText::_('COM_BIDS_ON') : JText::_('COM_BIDS_OFF')) . "\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>\r\n " . JText::_('COM_BIDS_MAX_UPLOAD_FILESIZE') . "\r\n </td>\r\n <td>\r\n " . ini_get('upload_max_filesize') . "\r\n </td>\r\n </tr>\r\n <tr>\r\n <td>\r\n " . JText::_('COM_BIDS_GMT_TIME') . "\r\n </td>\r\n <td>\r\n {$gmt_time}\r\n </td>\r\n </tr>\r\n </table>\r\n\r\n "; return $html; }
/** * Shows matchday title * * @param string $title * @param int $current_round * @param array $config * @param int $mode * @return string html */ function showMatchdaysTitle($title, $current_round, &$config, $mode = 0) { $projectid = JRequest::getInt('p', 0); $joomleague =& JTable::getInstance('Project', 'Table'); $joomleague->load($projectid); echo $title != '' ? $title . ' - ' : $title; if ($current_round > 0) { $thisround =& JTable::getInstance('Round', 'Table'); $thisround->load($current_round); if ($config['type_section_heading'] == 1 && $thisround->name != '') { if ($mode == 1) { $link = JoomleagueHelperRoute::getRankingRoute($projectid, $thisround->id); echo JHTML::link($link, $thisround->name); } else { echo $thisround->name; } } elseif ($thisround->id > 0) { echo ' - ' . $thisround->id . '. ' . JText::_('COM_JOOMLEAGUE_RESULTS_MATCHDAY') . ' '; } if ($config['show_rounds_dates'] == 1) { echo " ("; if (!strstr($thisround->round_date_first, "0000-00-00")) { echo JHTML::date($thisround->round_date_first, 'COM_JOOMLEAGUE_GLOBAL_CALENDAR_DATE'); } if ($thisround->round_date_last != $thisround->round_date_first && !strstr($thisround->round_date_last, "0000-00-00")) { echo " - " . JHTML::date($thisround->round_date_last, 'COM_JOOMLEAGUE_GLOBAL_CALENDAR_DATE'); } echo ")"; } } }
$k = 1 - $k; } ?> </tbody> </table> <?php echo JHTML::_('tabs.panel', JText::_('COM_JOOMLEAGUE_ADMIN_UPDATES_HISTORY'), 'panel' . $idxTab++); foreach ($this->versionhistory as $history) { ?> <fieldset> <legend> <strong> <?php //echo $history->date; echo JText::sprintf('COM_JOOMLEAGUE_ADMIN_UPDATES_VERSIONEN', $history->version, JHTML::date($history->date, JText::_('COM_JOOMLEAGUE_ADMIN_UPDATES_DAYDATE'))); ?> </strong> </legend> <?php //echo $history->text; echo JText::_($history->text); ?> </fieldset> <?php } echo JHTML::_('tabs.end'); ?> <input type="hidden" name="view" value="updates" />
/** * Show the field based on the eav type * @param EavAttribute $eav * @param unknown_type $value */ public static function showValue($eav, $value = null) { // Type of the field switch ($eav->eavattribute_type) { case "bool": if ($value) { echo JText::_('COM_TIENDA_YES'); } else { echo JText::_('COM_TIENDA_NO'); } break; case "datetime": $format = !empty($eav->eavattribute_format_date) ? $eav->eavattribute_format_date : 'Y-m-d H:i:s'; $datetime = date('Y-m-d H:i:s', strtotime($value)); return JHTML::date($datetime, $format); break; case "text": $dispatcher = JDispatcher::getInstance(); $item = new JObject(); $item->text =& $value; $item->params = array(); if (Tienda::getInstance()->get('eavtext_content_plugin', 1)) { if ($eav->editable_by == 1) { JPluginHelper::importPlugin('content'); $dispatcher->trigger('onPrepareContent', array(&$item, &$item->params, 0)); } } else { JPluginHelper::importPlugin('content'); $dispatcher->trigger('onPrepareContent', array(&$item, &$item->params, 0)); } return $value; case "decimal": if (Tienda::getInstance()->get('eavinteger_use_thousand_separator', 0)) { return self::number($value); } else { return self::number($value, array('thousands' => '')); } case "int": if (Tienda::getInstance()->get('eavinteger_use_thousand_separator', 0)) { return self::number($value, array('num_decimals' => 0)); } else { return self::number($value, array('thousands' => '', 'num_decimals' => 0)); } case "hidden": case "varchar": default: return $value; break; } return ''; }
</div> <?php } // deathday if ($this->row->deathday != "0000-00-00") { ?> <div> <span class="jl_roster_persondetails_label"> <?php echo JText::_("COM_JOOMLEAGUE_ROSTER_DEATHDAY"); ?> [ † ] </span> <span class="jl_roster_persondetails_data"> <?php echo JHTML::date($this->row->deathday, JText::_('COM_JOOMLEAGUE_GLOBAL_DAYDATE')); ?> </span> </div> <?php } } // if ($this->config['show_birthday'] > 0 AND $this->row->birthday !="0000-00-00") ends if ($this->config['show_country_flag']) { ?> <div> <span class="jl_roster_persondetails_label"> <?php echo JText::_("COM_JOOMLEAGUE_PERSON_NATIONALITY"); ?> </span><!-- /.jl_roster_persondetails_label -->
$maillink = $base_url . "&emailverify=1&userid=" . $my->id . "&catid="; if (count(@$_POST['cid'])) { $subscribeto .= $vmchosencat . "<br><br>"; foreach ($_POST['cid'] as $cat) { $maillink .= $cat . ","; $cattitle = vmn_getCatTitle($cat); $subscribeto .= $cattitle . "<br>"; } $maillink = rtrim($maillink, ","); $subscribeto = rtrim($subscribeto, "<br>"); } else { $subscribeto .= $vmnocats; } $maillink = vmn_sefRelToAbs($maillink); $search = array('[sitename]', '[livesite]', '[senddate]', '[sendtime]'); $replace = array($mainframe->getCfg('sitename'), JURI::root(), JHTML::date('now', JTEXT::_('DATE_FORMAT_LC')), JHTML::date('now', '%H:%M')); $subject = str_replace($search, $replace, stripslashes($vmsubject)); $subject = html_entity_decode($subject, ENT_QUOTES); $database->setQuery("SELECT mailformat FROM #__vemod_news_mailer_users WHERE id={$my->id}"); $usermailformat = $database->loadResult(); if ($mailformat == 1 || $mailformat == 2 && $usermailformat == 1) { $message = stripslashes($verifymailText); $subscribeto = str_replace("<br>", "\n", $subscribeto); $maillink = $vmlinktext . "\n" . $maillink; } else { $maillink = '<a href="' . $maillink . '" target="_blank">' . $vmlinktext . '</a>'; $message = stripslashes($verifymailHTML); } $search = array('[sitename]', '[livesite]', '[subject]', '[username]', '[subscribeto]', '[verifylink]'); $replace = array($mainframe->getCfg('sitename'), JURI::root(), stripslashes($vmsubject), $my->name, $subscribeto, $maillink); $message = str_replace($search, $replace, $message);
: <strong><?php echo JHTML::date($item->created, 'd-m-Y'); ?> </strong> | <?php echo JText::_('COM_JMS_FINISH_ON'); ?> : <strong> <?php if ($item->days_left <= 0) { echo '<span class="jms-red">' . JHTML::date($item->expired, 'd-m-Y') . '</span>'; } else { echo JHTML::date($item->expired, 'd-m-Y'); } ?> </strong> </span> </td> <td align="center"> <img src="<?php echo JURI::base(); ?> components/com_jms/assets/images/<?php echo $imgActive; ?> " />
foreach ($this->templates as $row) { echo "<option value=\"{$row->id}\">{$row->name}</option>\n"; } ?> </select> </td> </tr> <tr> <td style='background-color:#DDDDDD'><?php echo JText::_('TimeOffset of this project'); ?> </td> <td style='background-color:#DDDDDD'> <?php echo $this->lists['serveroffset'] . ' '; $output1 = "<input type='text' name='acttime' id='acttime' size='4' value=\"" . JHTML::date(time(), '%H:%M') . "\" style='font-weight: bold;' disabled='disabled' />"; echo sprintf(JText::_('JL_ADMIN_PROJECT_SERVER_ACTTIME'), $output1); ?> </td> </tr> <tr> <td style='background-color:#EEEEEE'><?php echo JText::_('JL_ADMIN_XML_IMPORT_PUBLISH'); ?> </td> <td style='background-color:#EEEEEE'> <input type='radio' name='publish' value="0" /><?php echo JText::_('JL_GLOBAL_NO'); ?> <input type='radio' name='publish' value="1" checked='checked' /><?php echo JText::_('JL_GLOBAL_YES');
function getDisplayTab($tab,$user,$ui) { $database = &JFactory::getDBO(); $my =& JFactory::getUser(); if($my->id!=$user->user_id){ return null; } $cfg = new BidConfig(); if($cfg->bid_opt_allow_user_settings==0) { return false; } $isSeller = $isBidder = true; if ($cfg->bid_opt_enable_acl) { $user_groups=JAccess::getGroupsByUser($user->id); $isBidder=count(array_intersect($user_groups,$cfg->bid_opt_acl_bidder))>0; $isSeller=count(array_intersect($user_groups,$cfg->bid_opt_acl_seller))>0; } if(!$isSeller) { return; } JHTML::_('behavior.tooltip'); $p = JTable::getInstance('bidusersettings'); $act = JRequest::getVar("com_act","","post"); if($act =="save_u_settings") { //load component's user model to manage saving user's settings jimport('joomla.application.component.model'); JModelLegacy::addIncludePath(JPATH_ROOT.DS.'components'.DS.'com_bids'.DS.'models'); $modelUser = JModelLegacy::getInstance('user','bidsModel'); $modelUser->saveDefaultAuctionSettings(JRequest::get()); } // setting processing $p->load($my->id); $settings = $p->settings; $lists = array(); $payment_options=''; if(isset($settings['payment_options'])){ $payment_options = $settings['payment_options']; } $fi = isset($settings['auction_type']) ? $settings['auction_type'] : null; $opts=null; $opts[] = JHTML::_('select.option','',Jtext::_('COM_BIDS_pick_type_of_auction')); $opts[] = JHTML::_('select.option',AUCTION_TYPE_PUBLIC,Jtext::_('COM_BIDS_public_label') ); if( $cfg->bid_opt_global_enable_private ) $opts[] = JHTML::_('select.option',AUCTION_TYPE_PRIVATE,Jtext::_('COM_BIDS_private_label') ); if( $cfg->bid_opt_enable_bin_only ) $opts[] = JHTML::_('select.option',AUCTION_TYPE_BIN_ONLY,Jtext::_('COM_BIDS_bin_only_label')); $lists['auction_type'] = JHTML::_('select.genericlist', $opts, 'auction_type', 'class="inputbox" alt="auction_type"', 'value', 'text',$fi); $fi = isset($settings['currency']) ? $settings['currency'] : null; $database->setQuery( "SELECT name as value, name as text FROM #__bid_currency" ); $lists['currency'] = JHTML::_('select.genericlist', $database->loadObjectList(), 'currency', 'class="inputbox" size="1"', 'value', 'text',$fi); if($cfg->bid_opt_enable_hour) { //convert end time to GMT try { $endTime = @$settings["end_hour"].':'.@$settings["end_minute"]; @list($settings["end_hour"],$settings["end_minute"]) = explode(':',JHTML::date($endTime,'H:i')); } catch(Exception $e) { if(JDEBUG) { JError::raiseWarning(1,$e->getMessage()); } } //end time is GMT, convert it to locale $settings['end_hour'] = '<input type="text" name="end_hour" class="inputbox" value="'.@$settings['end_hour'].'" style="width:20px;" />'; $settings['end_minute'] = '<input type="text" name="end_minute" class="inputbox" value="'.@$settings['end_minute'].'" style="width:20px;" />'; } $return = "<div>"; $return .="<table width='100%'>"; $return .='<form name="topForm'.$tab->tabid.'" action="index.php?option=com_comprofiler&task=userProfile" method="post">'; $return .="<input type='submit' name='save' value='Save settings' />"; $return .="<input type='hidden' name='option' value='com_comprofiler' />"; $return .="<input type='hidden' name='com_act' value='save_u_settings' />"; $return .="<input type='hidden' name='task' value='userProfile' />"; $return .="<input type='hidden' name='user' value='".$user->user_id."' />"; $return .="<input type='hidden' name='tab' value='".$tab->tabid."' />"; $return .="<input type='hidden' name='act' value='' />"; $return .= "<tr> <td>".Jtext::_('COM_BIDS_setting_currency')."</td> <td> ".@$lists["currency"]." </td> </tr>"; $return .= "<tr> <td>".Jtext::_('COM_BIDS_type_of_auction')."</td> <td> ".@$lists["auction_type"]." </td> </tr>"; if($cfg->bid_opt_enable_hour) { $return .= "<tr> <td>".Jtext::_('COM_BIDS_setting_end_time')."</td> <td> H: ".@$settings["end_hour"]." m: ".@$settings["end_minute"]." </td> </tr>"; } $return .= "<tr> <td>".Jtext::_('COM_BIDS_payment_info')."</td> <td> <input type=\"text\" name=\"payment_info\" value=\"".@$settings["payment_info"]."\" /> </td> </tr>"; $return .= "<tr> <td>".Jtext::_('COM_BIDS_shipment')."</td> <td> <input type=\"text\" name=\"shipment_info\" value=\"".@$settings["shipment_info"]."\" /> </td> </tr>"; $return .= "<tr> <td>".Jtext::_('COM_BIDS_shipment_price')."</td> <td> <input type=\"text\" name=\"shipment_price\" value=\"".@$settings["shipment_price"]."\" /> </td> </tr>"; if ($cfg->bid_opt_global_enable_reserve_price) { $return .= "<tr> <td>".Jtext::_('COM_BIDS_param_reserve_price_text').":</td> <td>". JHTML::_('select.booleanlist','show_reserve','',@$settings['show_reserve'],'com_bids_show','com_bids_hide'). "</td> </tr>"; } $return .= "<tr> <td>".Jtext::_('COM_BIDS_param_picture_text').JHTML::_('tooltip',Jtext::_('COM_BIDS_param_picture_help')).":</td> <td>". JHTML::_('select.booleanlist','picture','',@$settings["picture"],'com_bids_show','com_bids_hide'). "</td> </tr>"; $return .= "<tr> <td>".Jtext::_('COM_BIDS_param_add_picture_text').JHTML::_('tooltip',Jtext::_('COM_BIDS_param_add_picture_help')).":</td> <td>". JHTML::_('select.booleanlist','add_picture','',@$settings["add_picture"],'com_bids_show','com_bids_hide'). "</td> </tr>"; if (($cfg->bid_opt_global_enable_bin || $cfg->bid_opt_enable_bin_only)) { $return .= "<tr> <td>".Jtext::_('COM_BIDS_param_accept_bin_text').JHTML::_('tooltip',Jtext::_('COM_BIDS_param_accept_bin_help')).":</td> <td>". JHTML::_('select.booleanlist','auto_accept_bin','',@$settings["auto_accept_bin"]). "</td> </tr>"; } $return .= "<tr> <td>".Jtext::_('COM_BIDS_param_counts_text').JHTML::_('tooltip',Jtext::_('COM_BIDS_param_counts_help')).":</td> <td>". JHTML::_('select.booleanlist','bid_counts','',@$settings['bid_counts'],'com_bids_show','com_bids_hide'). "</td> </tr>"; $return .= "<tr> <td>".Jtext::_('COM_BIDS_param_max_price_text').JHTML::_('tooltip',Jtext::_('COM_BIDS_param_max_price_help')).":</td> <td>". JHTML::_('select.booleanlist','max_price','',@$settings['max_price'],'com_bids_show','com_bids_hide'). "</td> </tr>"; $return .= "</form>"; $return .= "</table>"; $return .= "</div>"; return $return; }
$birthdateStr = "(" . JoomleagueHelper::getAge($row->birthday, $row->deathday) . ")"; break; case 4: // show Only Year of birth $birthdateStr = JHTML::date($row->birthday, 'Y'); break; default: $birthdateStr = ""; break; } } else { $birthdateStr = "-"; } // deathday if ($row->deathday != "0000-00-00") { $birthdateStr .= ' [ † ' . JHTML::date($row->deathday, JText::_('COM_JOOMLEAGUE_GLOBAL_DAYDATE')) . ']'; } echo $birthdateStr; ?> </td><?php } elseif ($this->config['show_birthday'] > 0) { ?> <td width="10%" nowrap="nowrap" style="text-align: left;"> </td><?php } ?> <td width="30%"><?php $staff_position = ''; switch ($this->config['staff_position_format']) { case 2: // show member with text $staff_position = JText::sprintf('COM_JOOMLEAGUE_ROSTER_MEMBER_OF', JText::_($row->parentname));
$number = "{$num}. "; } // add description in tooltip if ($view_tooltip && $files[$i]->description != '') { $link_text = '<a href="' . $link . '">' . JHtml::tooltip(strip_tags(substr($files[$i]->description, 0, $view_tooltip_length)) . $short_char, JText::_('MOD_JDOWNLOADS_LATEST_DESCRIPTION_TITLE'), $files[$i]->file_title . ' ' . $version . $files[$i]->release, $files[$i]->file_title . ' ' . $version . $files[$i]->release) . '</a>'; } else { $link_text = '<a href="' . $link . '">' . $files[$i]->file_title . ' ' . $version . $files[$i]->release . '</a>'; } $html .= '<tr style="vertical-align:top;"><td style="text-align:' . $alignment . '">' . $number . $files_pic . $link_text . '</td>'; // add the creation date if ($view_date) { if ($files[$i]->date_added) { if ($view_date_same_line) { $html .= '<td style="text-align:' . $date_alignment . '"><small>' . JHTML::date($files[$i]->date_added, $date_format) . '</small></td>'; } else { $html .= '<tr style="vertical-align:top;"><td style="text-align:"' . $date_alignment . '"><small>' . JHTML::date($files[$i]->date_added, $date_format) . '</small></td>'; } } } $html .= '</tr>'; // add the first download screenshot when exists and activated in options if ($view_thumbnails) { if ($first_image) { $thumbnail = '<img class="img" src="' . $thumbfolder . $first_image . '" style="text-align:top;padding:5px;border:' . $border . ';" width="' . $view_thumbnails_size . '" height="' . $view_thumbnails_size . '" alt="' . $files[$i]->file_title . '" />'; } else { // use placeholder if ($view_thumbnails_dummy) { $thumbnail = '<img class="img" src="' . $thumbfolder . 'no_pic.gif" style="text-align:top;padding:5px;border:' . $border . ';" width="' . $view_thumbnails_size . '" height="' . $view_thumbnails_size . '" alt="" />'; } } if ($thumbnail) {
?> </td> </tr> <tr> <?php echo JoomleagueModelPredictionUsers::echoLabelTD('COM_JOOMLEAGUE_PRED_USERS_EDIT_LABEL_REGDATE', 'COM_JOOMLEAGUE_PRED_USERS_EDIT_LABEL_HELP_REGDATE'); ?> <td colspan='2'><?php $regDate = substr($this->predictionMember->pmRegisterDate, 0, 10); $regTime = substr($this->predictionMember->pmRegisterDate, 11, 8); if ($this->allowedAdmin) { echo JText::sprintf('%1$s - %2$s', JHTML::calendar(JoomleagueHelper::convertDate($regDate), 'registerDate', 'date', '%d-%m-%Y', 'size="10"'), '<input class="inputbox" type="text" name="registerTime" size="4" maxlength="5" value="' . $regTime . '" />'); } else { echo '<input type="hidden" name="registerDate" value="' . JoomleagueHelper::convertDate($regDate) . '" />'; echo '<input type="hidden" name="registerTime" value="' . $regTime . '" />'; echo $this->predictionMember->pmRegisterDate != '0000-00-00 00:00:00' ? JHTML::date($this->predictionMember->pmRegisterDate, JText::_('COM_JOOMLEAGUE_PRED_USERS_EDIT_LABEL_REGDATE_FORMAT')) : JText::_('COM_JOOMLEAGUE_PRED_USERS_UNKNOWN'); } ?> </td> </tr> <tr> <?php echo JoomleagueModelPredictionUsers::echoLabelTD('COM_JOOMLEAGUE_PRED_USERS_EDIT_LABEL_APPROVED', 'COM_JOOMLEAGUE_PRED_USERS_EDIT_LABEL_HELP_APPROVED'); ?> <td colspan='2'><?php echo $this->lists['approvedForGame']; ?> </td> </tr> <tr>
/* echo JoomleagueModelTeamPlan::showPlayground( $hometeam, $guestteam, $match, $this->config['show_playground_alert'], $this->config['show_playground'], $match->project_id); */ ?> <?php if ($this->config['show_date']) { ?> <td width="10%"><?php if (!strstr($match->match_date, "0000-00-00")) { echo JHTML::date($match->match_date, JText::_('COM_JOOMLEAGUE_GLOBAL_CALENDAR_DATE')); } else { echo " "; } ?> </td> <?php } ?> <?php if ($this->config['show_time']) { ?> <td width="10%"><?php echo JoomleagueHelperHtml::showMatchTime($match, $this->config, $this->overallconfig, $this->project); ?>
$color = 'highlight'; } /* Check if user already commented */ // if ($review->virtuemart_userid == $this->user->id ) { if ($review->created_by == $this->user->id && !$review->review_editable) { $review_editable = FALSE; } ?> <?php // Loop through all reviews if (!empty($this->rating_reviews) && $review->published) { $reviews_published++; ?> <div class="<?php echo $color ?>"> <span class="date"><?php echo JHTML::date ($review->created_on, JText::_ ('DATE_FORMAT_LC')); ?></span> <span class="vote"><?php echo $stars[(int)$review->review_rating] ?></span> <blockquote><?php echo $review->comment; ?></blockquote> <span class="bold"><?php echo $review->customer ?></span> </div> <?php } $i++; if ($i == $ratingsShow && !$showall) { /* Show all reviews ? */ if ($reviews_published >= $ratingsShow) { $attribute = array('class'=> 'details', 'title'=> JText::_ ('COM_VIRTUEMART_MORE_REVIEWS')); echo JHTML::link ($this->more_reviews, JText::_ ('COM_VIRTUEMART_MORE_REVIEWS'), $attribute); } break; }
function display($tpl = null) { // Get a reference of the page instance in joomla $document = JFactory::getDocument(); $model = $this->getModel(); $project =& $model->getProject(); $config = $model->getTemplateConfig($this->getName()); if (isset($project)) { $this->assignRef('project', $project); $this->assignRef('overallconfig', $model->getOverallConfig()); $this->assignRef('config', $this->overallconfig); $this->assignRef('teams', $model->getTeamsIndexedByPtid()); $this->assignRef('matches', $model->getMatches($config)); } // load a class that handles ical formats. require_once JLG_PATH_SITE . DS . 'helpers' . DS . 'iCalcreator.class.php'; // create a new calendar instance $v = new vcalendar(); foreach ($this->matches as $match) { $hometeam = $this->teams[$match->projectteam1_id]; $home = sprintf('%s', $hometeam->name); $guestteam = $this->teams[$match->projectteam2_id]; $guest = sprintf('%s', $guestteam->name); $summary = $project->name . ': ' . $home . ' - ' . $guest; // check if match gots a date, if not it will not be included // in ical if (!strstr($match->match_date, "0000-00-00")) { $syear = JHTML::date($match->match_date, "%Y"); $sday = JHTML::date($match->match_date, "%d"); $smonth = JHTML::date($match->match_date, "%m"); $shour = JHTML::date($match->match_date, "%H"); $smin = JHTML::date($match->match_date, "%M"); //$start = JHTML::date($match->match_date, "%Y-%m-%d %H:%M:%S" ); $start = strftime("%Y-%m-%d %H:%M:%S", strtotime($match->match_date)); $start_oldphpversion = array('year' => $syear, 'month' => $smonth, 'day' => $sday, 'hour' => $shour, 'min' => $smin, 'sec' => 0); $time_to_ellapse = $project->halftime * ($project->game_parts - 1) + $project->game_regular_time; $endtime = JoomleagueHelper::getTimestamp($match->match_date) + $time_to_ellapse * 60; $year = JHTML::date($endtime, "%Y"); $day = JHTML::date($endtime, "%d"); $month = JHTML::date($endtime, "%m"); $hour = JHTML::date($endtime, "%H"); $min = JHTML::date($endtime, "%M"); //$end = JHTML::date($endtime, "%Y-%m-%d %H:%M:%S" ); $end = strftime("%Y-%m-%d %H:%M:%S", $endtime); $end_oldphpversion = array('year' => $year, 'month' => $month, 'day' => $day, 'hour' => $hour, 'min' => $min, 'sec' => 0); // check if exist a playground in match or team or club if ($match->playground_id != "") { $stringlocation = $match->playground_address . ", " . $match->playground_zipcode . " " . $match->playground_city; $stringname = $match->playground_name; } else { if ($match->team_playground_id != "") { $stringlocation = $match->team_playground_address . ", " . $match->team_playground_zipcode . " " . $match->team_playground_city; $stringname = $match->team_playground_name; } elseif ($match->club_playground_id != "") { $stringlocation = $match->club_playground_address . ", " . $match->club_playground_zipcode . " " . $match->club_playground_city; $stringname = $match->club_playground_name; } } $location = $stringlocation; //if someone want to insert more in description here is the place $description = $stringname; // create an event and insert it in calendar $vevent = new vevent(); $vevent->setProperty("dtstart", $start, array("TZID" => $project->timezone)); $vevent->setProperty("dtend", $end, array("TZID" => $project->timezone)); $vevent->setProperty('LOCATION', $location); $vevent->setProperty('summary', $summary); $vevent->setProperty('description', $description); $v->setComponent($vevent); } } $v->returnCalendar(); // exit before display // parent::display( $tpl ); }
function vmn_doArchiveRow(&$evencount, $archiveitem, $archiveitemtext) { $displaytext = $archiveitemtext; if (!strlen($displaytext)) { $displaytext = $archiveitem->subject; } $senddate = JHTML::date($archiveitem->sent, JTEXT::_('DATE_FORMAT_LC')); $sendtime = JHTML::date($archiveitem->sent, '%H:%M:%S'); $logusers = explode("<br>", $archiveitem->users); $usercount = count($logusers); $sendformat = 'HTML'; if (strpos($archiveitem->message, '<pre>') === 0) { $sendformat = 'Text'; } $search = array('[subject]', '[senddate]', '[sendtime]', '[usercount]', '[mailformat]'); $replace = array($archiveitem->subject, $senddate, $sendtime, $usercount, $sendformat); $displaytext = str_replace($search, $replace, $displaytext); vmn_doCountingTableRow($evencount); ?> <td width="30" align="center"> <?php echo $evencount; ?> </td> <td width="30" align="center"> <a href="javascript:displayNewsletter(document.getElementById('archiveitem<?php echo $archiveitem->id; ?> ').innerHTML,'<?php echo addslashes($archiveitem->subject); ?> ','<?php echo addslashes(JTEXT::_('VMN_CLOSE')); ?> ');"><img src="components/com_vemod_news_mailer/view.gif" border="0" alt="<?php echo JTEXT::_('SHOW'); ?> "/></a> </td> <td> <a href="javascript:displayNewsletter(document.getElementById('archiveitem<?php echo $archiveitem->id; ?> ').innerHTML,'<?php echo addslashes($archiveitem->subject); ?> ','<?php echo addslashes(JTEXT::_('VMN_CLOSE')); ?> ');" title="<?php echo JTEXT::_('SHOW'); ?> "><?php echo $displaytext; ?> </a> <div id="archiveitem<?php echo $archiveitem->id; ?> " style="display:none;"><?php echo $archiveitem->message; ?> </div></td> </tr> <?php }
<td><?php echo $published; ?> </td> <td><a href="<?php echo $link; ?> "><?php echo $row->text; ?> </a></td> <td><a href="<?php echo $link; ?> "><?php echo JHTML::date($row->date); ?> </a> </td> <td><a href="<?php echo $link; ?> "><?php echo $row->ip; ?> </a> </td> <td><a href="<?php echo $link;
public static function date($date) { return JHTML::date($date); }
</td> </tr> <?php } if ($this->inprojectinfo->away > 0) { $away_date = ""; $away_end = ""; if (is_array($this->roundsdata)) { //suspension start if (array_key_exists($this->inprojectinfo->away_date, $this->roundsdata)) { $away_date = JHTML::date($this->roundsdata[$this->inprojectinfo->away_date]['date_first'], 'COM_JOOMLEAGUE_GLOBAL_MATCHDAYDATE'); $away_date .= " - " . $this->inprojectinfo->away_date . ". " . JText::_('COM_JOOMLEAGUE_GLOBAL_MATCHDAY_NAME'); } //suspension end if (array_key_exists($this->inprojectinfo->away_end, $this->roundsdata)) { $away_end = JHTML::date($this->roundsdata[$this->inprojectinfo->away_end]['date_last'], 'COM_JOOMLEAGUE_GLOBAL_MATCHDAYDATE'); $away_end .= " - " . $this->inprojectinfo->away_end . ". " . JText::_('COM_JOOMLEAGUE_GLOBAL_MATCHDAY_NAME'); } } if ($this->inprojectinfo->away_date == $this->inprojectinfo->away_end) { ?> <tr> <td class="label"> <?php $imageTitle = JText::_('COM_JOOMLEAGUE_PERSON_AWAY'); echo " " . JHTML::image('images/com_joomleague/database/events/' . $this->project->fs_sport_type_name . '/away.gif', $imageTitle, array('title' => $imageTitle)); echo JText::_('COM_JOOMLEAGUE_PERSON_AWAY'); ?> </td>
} if ($this->config['show_comments_count'] > 0) { ?> <th class="center"><?php echo JText::_('COM_JOOMLEAGUE_RESULTS_COMMENTS'); ?> </th> <?php } } else { ?> <th colspan="<?php echo $nbcols; ?> "><?php echo JHTML::date($date, JTExt::_('COM_JOOMLEAGUE_RESULTS_GAMES_DATE_DAY')); if ($this->config['show_matchday_dateheader']) { echo ' - ' . JText::sprintf('COM_JOOMLEAGUE_RESULTS_GAMEDAY_NB', $this->roundcode); } ?> </th> <?php } ?> </tr> <!-- DATE HEADER END--> <!-- GAMES --> <?php $k = 0; foreach ($games as $game) { $this->assignRef('game', $game);
?> </span> </div> </div> <?php } ?> <div class="item-addedon control-group"> <div class="control-label"> <?php echo JText::_('COM_APPS_EXTENSION_ADDEDON'); ?> </div> <div class="controls"> <?php echo JHTML::date($extension_data->core_created_time->value); ?> </div> </div> <div class="item-badge-container"> <?php if (in_array('com', $tags)) { ?> <span title="<?php echo JText::_('COM_APPS_COMPONENT'); ?> " class="badge jbadge badge-jcomponent"><?php echo JText::_('COM_APPS_COMPONENT'); ?> </span> <?php
function save_memberlist() { $mainframe =& JFactory::getApplication(); $option = 'com_joomleague'; $post = JRequest::get('post'); $cid = JRequest::getVar('cid', array(0), 'post', 'array'); $prediction_id = (int) $cid[0]; //echo '<br />save_memberlist post<pre>~' . print_r($post,true) . '~</pre><br />'; //$mainframe->enqueueMessage(JText::_('<br />save_memberlist post<pre>~' . print_r($post,true) . '~</pre><br />'),'Notice'); //$mainframe->enqueueMessage(JText::_('<br />prediction id<pre>~' . print_r($prediction_id,true) . '~</pre><br />'),'Notice'); foreach ($post['prediction_members'] as $key => $value) { //$mainframe->enqueueMessage(JText::_('<br />memberlist id<pre>~' . print_r($value,true) . '~</pre><br />'),'Notice'); //$table = 'predictionmember'; $table = 'predictionentry'; $rowproject =& JTable::getInstance($table, 'Table'); //$rowproject->load( $value ); $rowproject->prediction_id = $prediction_id; $rowproject->user_id = $value; $rowproject->registerDate = JHTML::date(time(), '%Y-%m-%d %H:%M:%S'); $rowproject->approved = 1; if (!$rowproject->store()) { //echo 'project -> '.$value. ' nicht gesichert <br>'; } else { //echo 'project -> '.$value. ' gesichert <br>'; } } }