Skip to content

Instantly share code, notes, and snippets.

View tmking's full-sized avatar

Timothy M. King tmking

  • Bonterra
  • DC
  • 00:19 (UTC -04:00)
View GitHub Profile
%h1 The Brands We Offer!
%table{ :cellpadding => 0, :cellspacing => 0, :style => 'display: inline;' }
%tr
%td{ :align => 'center' }
- if @brand == 'yamaha' then
= image_tag "/images/brands/artists1.gif", :class => 'yamaha'
%td{ :align => 'center' }
= image_tag "/images/brands/logos/#{@brand}.png">
%br/
%h2= @taglines[@brand]
def locate
# @map = GMap.new("map_div")
# @map.control_init(:large_map => false, :map_type => true)
# @map.center_zoom_init([lat,lng],4)
@target_zip = params[:locate][:zip]
@store_list = Store.find(
:all, :origin => @target_zip,
:order => 'distance',
:conditions => 'distance < 70')
class PianofinderController < ApplicationController
def index
@questions = Question.find_questions
# render :text => @questions['answer']
# @answers = Question.find_answers
end
def results
show_artcase && render(:text => 'yes it is artcase')
<?
if($_SESSION[q8_answer] == "A" && $_SESSION[qANDa][9] == 41){
$qanda_result = "Decorator Vertical 3 price points\n";
$qanda_result .= "DAP Vertical 3 price points";
$result_location = "/find/decor_dap_vert_pianos.php?dap=1";
}else if($_SESSION[q8_answer] == "A" && $_SESSION[qANDa][9] == 42){
$qanda_result = "Decorator Vertical 3 price points\n";