Skip to content

Instantly share code, notes, and snippets.

#LOCAL("CurrencyID", #INPUT.Currency)
#LOCAL("LocalListPrice", #FUNCTION("LISTPRICE", #Object, #CurrencyID, #Shop.TaxModel))
#IF(#DEFINED(#LocalListPrice))
<p class="listing-price">#LocalListPrice[money] #IF(#PriceQuantity != 1)/ #PriceQuantity #OrderUnit.NameOrAlias#ENDIF#IF(#OrderUnit.Alias NE "piece" AND #PriceQuantity == 1)/ #OrderUnit.NameOrAlias#ENDIF &nbsp;&nbsp;#IF(#OriginalPrice > #ListPrice)<script type="text/javascript">var discountFinal=function(firstly,secondly){var totalfirst=secondly-firstly;var totalsecond=totalfirst/secondly;var totalthird=totalsecond*100;if(document.getElementById("discountCode").innerHTML===null){document.getElementById("spanishtwo").innerHTML.replace("%","")}else{document.getElementById("spanish").innerHTML=Math.floor(totalthird/5)*5}};discountFinal(#OriginalPrice,#ListPrice);</script><div id="discountCode" style="display:none;"><span id="spanish"></span><span id="spanishtwo">%</span
Hi,
In regards to our conversion on gtalk, im having some issues with a bad query leak on the show files. Im trying to use https://gist.github.com/2572312 this method before to combine some elements together with group_by. But there not even working for days which is working fine there.
The file above works perfectly well and thats what i would like to achieve, however, its not working on the show/, this is the code for show.
<h1>Listing shows</h1>
<ul>
<% @shows.each do |show| %>
<li><%= show.screening.film.title %> @ <%= show.screening.cinema.name %></li>
<h1 class="headersOne"><%= @cinema.name %></h1>
<b>Films currently shown:</b>
<ol class="noDots">
<% @cinema.screenings.each do |screening, film| %>
<li>
<div data-role="collapsible" data-theme="b" data-content-theme="d" >
<h3><%= screening.film.title %></h3>
<p style="min-height:2px;">
The Hunger Games @ Cineworld Aberdeen
Mon 26 Mar
The Hunger Games @ Cineworld Aberdeen
Mon 26 Mar
The Hunger Games @ Cineworld Aberdeen
Mon 26 Mar
The Hunger Games @ Cineworld Aberdeen
Mon 26 Mar
The Hunger Games @ Cineworld Aberdeen
Mon 26 Mar
undefined local variable or method `shows' for #<#<Class:0x007f8f62ca7828>:0x007f8f62ca3b10>
Extracted source (around line #10):
7:
8: <li><%= show.day %></li>
9:
10: <% shows.group_by(&:day).each do |day, shows| %>
11: <p><%= day %></p>
12: <ul style="width:320px;">
13: <% shows.each_with_index do |show, i| %>
<% shows.each do |show| %>
<li style="display: inline-block;">
<%= link_to show.showed_at, show %> |
</li>
<% end %>
<?php
$user = & JFactory::getUser();
if($user->get('guest')) {
document.write('<li class="mostread"><a href="/testing/index.php" class="mostread">Upload Photography</a></li>');
} else {
document.write('<li class="mostread"><a href="/cultural/index.php?" class="mostread">Welcome to Joomla!</a></li>');
}
?>
<?php
$user = & JFactory::getUser();
if($user->get('guest')) {
document.write('<li class="mostread"><a href="http://jagmit-k0914490.co.cc/cultural/gallery/upload.php" class="mostread">Upload Photography</a></li>');
} else {
document.write('<li class="mostread"><a href="/cultural/index.php?" class="mostread">Welcome to Joomla!</a></li>');
}
?>
class NotificationsMailer < ActionMailer::Base
default :from => "jagmitg@gmail.com"
default :to => "jagmitg@gmail.com"
def new_message(message)
@message = message
mail(:subject => "[YourWebsite.tld] #{message.subject}")
end
<?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php