jimi
16 years ago
committed by
jimi
5 changed files with 240 additions and 0 deletions
-
23app/helpers/layout_helper.rb
-
22app/views/layouts/application.html.erb
-
81public/stylesheets/application.css
-
60tmp/db_info.txt
-
54tmp/meyer_reset.css
@ -0,0 +1,23 @@ |
|||
# These helper methods can be called in your template to set variables to be used in the layout |
|||
# This module should be included in all views globally, |
|||
# to do so you may need to add this line to your ApplicationController |
|||
# helper :layout |
|||
module LayoutHelper |
|||
def title(page_title, show_title = true) |
|||
@content_for_title = page_title.to_s |
|||
@show_title = show_title |
|||
end |
|||
|
|||
def show_title? |
|||
@show_title |
|||
end |
|||
|
|||
def stylesheet(*args) |
|||
content_for(:head) { stylesheet_link_tag(*args.map(&:to_s)) } |
|||
end |
|||
|
|||
def javascript(*args) |
|||
args = args.map { |arg| arg == :defaults ? arg : arg.to_s } |
|||
content_for(:head) { javascript_include_tag(*args) } |
|||
end |
|||
end |
@ -0,0 +1,22 @@ |
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
|||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|||
<html> |
|||
<head> |
|||
<title><%= h(yield(:title) || "Untitled") %></title> |
|||
<%= stylesheet_link_tag 'application' %> |
|||
<%= yield(:head) %> |
|||
</head> |
|||
<body> |
|||
<div id="container"> |
|||
<%- flash.each do |name, msg| -%> |
|||
<%= content_tag :div, msg, :id => "flash_#{name}" %> |
|||
<%- end -%> |
|||
|
|||
<%- if show_title? -%> |
|||
<h1><%=h yield(:title) %></h1> |
|||
<%- end -%> |
|||
|
|||
<%= yield %> |
|||
</div> |
|||
</body> |
|||
</html> |
@ -0,0 +1,81 @@ |
|||
body { |
|||
background-color: #4B7399; |
|||
font-family: Verdana, Helvetica, Arial; |
|||
font-size: 14px; |
|||
} |
|||
|
|||
a img { |
|||
border: none; |
|||
} |
|||
|
|||
a { |
|||
color: #0000FF; |
|||
} |
|||
|
|||
.clear { |
|||
clear: both; |
|||
height: 0; |
|||
overflow: hidden; |
|||
} |
|||
|
|||
#container { |
|||
width: 75%; |
|||
margin: 0 auto; |
|||
background-color: #FFF; |
|||
padding: 20px 40px; |
|||
border: solid 1px black; |
|||
margin-top: 20px; |
|||
} |
|||
|
|||
#flash_notice, #flash_error { |
|||
padding: 5px 8px; |
|||
margin: 10px 0; |
|||
} |
|||
|
|||
#flash_notice { |
|||
background-color: #CFC; |
|||
border: solid 1px #6C6; |
|||
} |
|||
|
|||
#flash_error { |
|||
background-color: #FCC; |
|||
border: solid 1px #C66; |
|||
} |
|||
|
|||
.fieldWithErrors { |
|||
display: inline; |
|||
} |
|||
|
|||
#errorExplanation { |
|||
width: 400px; |
|||
border: 2px solid #CF0000; |
|||
padding: 0px; |
|||
padding-bottom: 12px; |
|||
margin-bottom: 20px; |
|||
background-color: #f0f0f0; |
|||
} |
|||
|
|||
#errorExplanation h2 { |
|||
text-align: left; |
|||
font-weight: bold; |
|||
padding: 5px 5px 5px 15px; |
|||
font-size: 12px; |
|||
margin: 0; |
|||
background-color: #c00; |
|||
color: #fff; |
|||
} |
|||
|
|||
#errorExplanation p { |
|||
color: #333; |
|||
margin-bottom: 0; |
|||
padding: 8px; |
|||
} |
|||
|
|||
#errorExplanation ul { |
|||
margin: 2px 24px; |
|||
} |
|||
|
|||
#errorExplanation ul li { |
|||
font-size: 12px; |
|||
list-style: disc; |
|||
} |
@ -0,0 +1,60 @@ |
|||
=== | === |
|||
=== Tripinfo | === Drivers |
|||
=== | === |
|||
File version : 3 | File version : 3 |
|||
Last update : 01/03/2005 | Last update : 12/22/1997 |
|||
Number of recs: 8512 | Number of recs: 40 |
|||
Header length : 1634 | Header length : 706 |
|||
Record length : 416 | Record length : 197 |
|||
--- | --- |
|||
Field Name Type Length Decimal Pos | Field Name Type Length Decimal Pos |
|||
Period C 3 0 | Driver id C 3 0 |
|||
Dvr id C 3 0 | L name C 20 0 |
|||
Dvr name C 25 0 | F name C 15 0 |
|||
Dvr name f C 15 0 | Rate N 4 2 |
|||
Trip id C 7 0 | Ss nbr C 11 0 |
|||
Tractor n C 5 0 | Dob D 8 0 |
|||
Trailer n C 6 0 | D lic nbr C 20 0 |
|||
Hub out N 6 0 | Dl state C 2 0 |
|||
Hub in N 6 0 | Dl exp D 8 0 |
|||
Start date D 8 0 | Phy exp D 8 0 |
|||
End date D 8 0 | Hire date D 8 0 |
|||
Trip orig C 25 0 | Status C 1 0 |
|||
Shipper C 25 0 | Depend C 1 0 |
|||
Dest C 25 0 | Street C 25 0 |
|||
Load orig C 25 0 | City C 20 0 |
|||
Loading N 6 2 | State C 2 0 |
|||
Unloading N 6 2 | Zip C 5 0 |
|||
Permits N 6 2 | Phone C 14 0 |
|||
Tolls N 6 2 | Com chk no C 10 0 |
|||
Scales N 6 2 | Truck C 5 0 |
|||
Tk repair N 8 2 | Trailer C 6 0 |
|||
Tk f gal N 8 3 | |
|||
Tk f cost N 8 2 |
|||
Tk o gal N 2 0 |
|||
Tk o cost N 6 2 |
|||
Rf f gal N 7 3 |
|||
Rf f cost N 6 2 |
|||
Rf o gal N 2 0 |
|||
Rf o cost N 6 2 |
|||
S pick up N 6 2 |
|||
Wash N 6 2 |
|||
Layover N 6 2 |
|||
Pallets N 6 2 |
|||
Misc N 8 2 |
|||
Tl repair N 8 2 |
|||
Tk service N 6 2 |
|||
Tl service N 6 2 |
|||
Rf service N 6 2 |
|||
Comchecks N 8 2 |
|||
Trip hub N 5 0 |
|||
Load miles N 5 0 |
|||
Tk mileage N 5 2 |
|||
Reimbur N 7 2 |
|||
Other pay N 7 2 |
|||
To don N 7 2 |
|||
Trip cost N 8 2 |
|||
Federal N 7 2 |
|||
Rate N 4 2 |
|||
Ss nbr C 11 0 |
|||
Hire date D 8 0 |
@ -0,0 +1,54 @@ |
|||
/* http://meyerweb.com/eric/tools/css/reset/ */ |
|||
/* v1.0 | 20080212 */ |
|||
|
|||
html, body, div, span, applet, object, |
|||
iframe, h1, h2, h3, h4, h5, h6, p, |
|||
blockquote, pre, a, abbr, acronym, |
|||
address, big, cite, code, del, dfn, em, |
|||
font, img, ins, kbd, q, s, samp, small, |
|||
strike, strong, sub, sup, tt, var, b, u, |
|||
i, center, dl, dt, dd, ol, ul, li, |
|||
fieldset, form, label, legend, table, |
|||
caption, tbody, tfoot, thead, tr, th, |
|||
td { |
|||
margin: 0; |
|||
padding: 0; |
|||
border: 0; |
|||
outline: 0; |
|||
font-size: 100%; |
|||
vertical-align: baseline; |
|||
background: transparent; |
|||
} |
|||
body { |
|||
line-height: 1; |
|||
} |
|||
ol, ul { |
|||
list-style: none; |
|||
} |
|||
blockquote, q { |
|||
quotes: none; |
|||
} |
|||
blockquote:before, blockquote:after, |
|||
q:before, q:after { |
|||
content: ''; |
|||
content: none; |
|||
} |
|||
|
|||
/* remember to define focus styles! */ |
|||
:focus { |
|||
outline: 0; |
|||
} |
|||
|
|||
/* remember to highlight inserts somehow! */ |
|||
ins { |
|||
text-decoration: none; |
|||
} |
|||
del { |
|||
text-decoration: line-through; |
|||
} |
|||
|
|||
/* tables still need 'cellspacing="0"' in the markup */ |
|||
table { |
|||
border-collapse: collapse; |
|||
border-spacing: 0; |
|||
} |
Reference in new issue