some fixes to the new styles, although style03 is still failing.

moved the EMS templates to their own files.
This commit is contained in:
Matthew Wilson 2006-04-16 02:35:02 +00:00
parent b6f0e9e75c
commit 1ebd266030
8 changed files with 158 additions and 493 deletions

View file

@ -2,6 +2,7 @@
#title:Style 01
#menuTitle:Style 01
#url:style_01
#namespace:style
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>

View file

@ -2,6 +2,7 @@
#title:Style 01 Nav
#menuTitle:Style 01 Nav
#url:style01_nav
#namespace:Navigation
<tmpl_if displayTitle>
<h2><tmpl_var title></h2>
</tmpl_if>

View file

@ -1,4 +1,3 @@
#stevestyle00000000css2
#title:css02.css
#menuTitle:css02.css
#url:css02.css

View file

@ -2,6 +2,7 @@
#title:Style 02
#menuTitle:Style 02
#url:style_02
#namespace:style
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>

View file

@ -1,3 +1,8 @@
#stevecoolmenu000000001
#title:Newer Coolmenu
#menuTitle:Newer Coolmenu
#url:newer-coolmenu
#namespace:Navigation
<tmpl_if displayTitle>
<h2><tmpl_var title></h2>
</tmpl_if>

View file

@ -1,125 +1,137 @@
#stevestyle00000000css3
#title:css03.css
#menuTitle:css03.css
#url:css03.css
<style type="text/css">
body, html {
margin:0px;
background-color:#3c3c3c;
}
/* HEADER STYLES */
#header {
background: url('^FileUrl(style3/header_bg.jpg);') repeat-x;
height:129px;
width:100%;
position:relative;
margin:0px;
z-index:0;
}
#header #titles {
color:white;
font-family:arial;
position:relative;
width:100%;
height:100%;
background:url(^FileUrl(style3/header_right.jpg);) right no-repeat;
}
#header #titles h1 {
text-transform:uppercase;
margin:0px;
margin-bottom:2px;
font-weight:normal;
font-size:26pt;
display:block;
top:20px;
left:20px;
position:relative;
line-height:72px;
display:inline;
}
#header #titles h2 {
color:#E5E5E5;
margin-top:0px;
left:30px;
font-size:12pt;
position:relative;
display:inline;
}
/* END HEADER STYLES */
/* MAIN STYLES */
#main {
background: #fff url(^FileUrl(style3/main_bg.jpg);) repeat-y;
width:95%;
height:500px;
position:relative;
left:0px;
top:0px;
-moz-box-sizing:border-box;
box-sizing:border-box;
z-index:0;
padding-top:55px;
}
#main #mainBody {
margin-left:30px;
-moz-box-sizing:border-box;
z-index:2;
position:relative;
background-color: transparent;
font-family:arial;
font-size:9pt;
padding-bottom:50px;
}
/*#main > #mainBody h2 { margin-top:0px; }*/
* html #mainBody { height:1%; }
#main #mainBody a {
color:#EE963E;
font-weight:bold;
letter-spacing:1px;
font-size:8pt;
}
#main #topCorner {
width:100%;
height:214px;
position:absolute;
top:0px;
left:0px;
background: url('^FileUrl(style3/main_top.jpg);') no-repeat;
z-index:1;
}
#main #bottomCorner {
width:100%;
height:211px;
position:absolute;
bottom:0px;
right:0px;
background: url('^FileUrl(style3/main_bottom.jpg);') no-repeat right;
z-index:1;
}
body > #main {
height:auto;
min-height:500px;
}
/* END MAIN STYLES */
#footer {
width:95%;
height:68px;
background:orange url('^FileUrl(style3/footer_bg.jpg);') repeat-x;
}
#footer img {
float:right;
<style type="text/css">
body, html {
margin:0px;
background-color:#3c3c3c;
}
#login { position:absolute; font-size:8pt; top:50%; right:150px; color:white; } #login a { color:white; }
.loginBox {
font-size:8pt; margin:0px; display:inline;
}
.loginBox input {
font-size:8pt;
}
/* HEADER STYLES */
#header {
background: url('^FileUrl(style3/header_bg.jpg);') repeat-x;
height:129px;
width:100%;
position:relative;
margin:0px;
z-index:0;
}
#header #titles {
color:white;
font-family:arial;
position:relative;
width:100%;
height:100%;
background:url(^FileUrl(style3/header_right.jpg);) right no-repeat;
}
#header #titles h1 {
text-transform:uppercase;
margin:0px;
margin-bottom:2px;
font-weight:normal;
font-size:26pt;
display:block;
top:20px;
left:20px;
position:relative;
line-height:72px;
display:inline;
}
#header #titles h2 {
color:#E5E5E5;
margin-top:0px;
left:30px;
font-size:12pt;
position:relative;
display:inline;
}
/* END HEADER STYLES */
/* MAIN STYLES */
#main {
background: #fff url(^FileUrl(style3/main_bg.jpg);) repeat-y;
width:95%;
height:500px;
position:relative;
left:0px;
top:0px;
-moz-box-sizing:border-box;
box-sizing:border-box;
z-index:0;
padding-top:55px;
}
#main #mainBody {
margin-left:30px;
-moz-box-sizing:border-box;
z-index:2;
position:relative;
background-color: transparent;
font-family:arial;
font-size:9pt;
padding-bottom:50px;
}
/*#main > #mainBody h2 { margin-top:0px; }*/
* html #mainBody { height:1%; }
#main #mainBody a {
color:#EE963E;
font-weight:bold;
letter-spacing:1px;
font-size:8pt;
}
#main #topCorner {
width:100%;
height:214px;
position:absolute;
top:0px;
left:0px;
background: url('^FileUrl(style3/main_top.jpg);') no-repeat;
z-index:1;
}
#main #bottomCorner {
width:100%;
height:211px;
position:absolute;
bottom:0px;
right:0px;
background: url('^FileUrl(style3/main_bottom.jpg);') no-repeat right;
z-index:1;
}
body > #main {
height:auto;
min-height:500px;
}
/* END MAIN STYLES */
#footer {
width:95%;
height:68px;
background:orange url('^FileUrl(style3/footer_bg.jpg);') repeat-x;
}
#footer img {
float:right;
}
#login {
position:absolute;
font-size:8pt;
top:50%;
right:150px;
color:white;
}
#login a {
color:white;
}
.loginBox {
font-size:8pt;
margin:0px;
display:inline;
}
.loginBox input {
font-size:8pt;
}
</style>

View file

@ -1,3 +1,8 @@
#stevestyle000000000003
#title:Style 03
#menuTitle:Style 03
#url:style_03
#namespace:style
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

View file

@ -246,7 +246,7 @@ sub updateCs {
}, "csworkflow000000000001");
my $activity = $workflow->addActivity("WebGUI::Workflow::Activity::GetCsMail","csactivity000000000001");
$activity->set("title","Get the mail");
print "\t\tDeleteing old ratings due to new rating system.\n";
print "\t\tDeleting old ratings due to new rating system.\n";
$session->db->write("delete from Post_rating");
$session->db->write("update Post set rating=0");
}
@ -565,9 +565,9 @@ sub updateTemplates {
my $importNode = WebGUI::Asset->getImportNode($session);
my $folder = $importNode->addChild({
className=>"WebGUI::Asset::Wobject::Folder",
title => "6.9.0 New Templates",
menuTitle => "6.9.0 New Templates",
url=> "6_9_0_new_templates",
title => "7.0.0 New Templates",
menuTitle => "7.0.0 New Templates",
url=> "7_0_0_new_templates",
groupIdView=>"12"
});
foreach my $file (@files) {
@ -610,366 +610,6 @@ sub updateTemplates {
#-------------------------------------------------
sub addEMS {
print "\tAdding Event Management System Templates.\n" unless ($quiet);
## Display Template ##
my $template = <<EOT1;
<a name="id<tmpl_var assetId>" id="id<tmpl_var assetId>"></a>
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p><br /><br />
</tmpl_if>
<tmpl_if canManageEvents>
<a href='<tmpl_var manageEvents.url>'><tmpl_var manageEvents.label></a><br />
</tmpl_if>
<a href='<tmpl_var managePurchases.url>'><tmpl_var managePurchases.label></a><br />
<a href="<tmpl_var checkout.url>"><tmpl_var checkout.label></a><br />
<style type="text/css">
.datacardtitle {
background: #3D5690;
color: white;
font-family: verdana;
font-weight: bold;
font-size:13px;
}
.leftnav{
padding: 1px 1px 1px 1px;
background: white;
color: black;
font-family: verdana;
font-weight: bold;
font-size:11px;
border: 2px #3D5690 ridge;
}
.leftnavon{
padding: 1px 1px 1px 1px;
background: yellow;
color: black;
font-family: verdana;
font-weight: bold;
font-size:11px;
border: 2px #3D5690 ridge;
}
.calendartitle {
background: #3D5690;
color: white;
font-family: verdana;
font-weight: bold;
font-size:11px;
}
.filter-select {
font-family: verdana;
font-size: 10px;
font-weight: normal;
color: black;
width: 105px;
}
.compare-select {
font-family: verdana;
font-size: 10px;
font-weight: normal;
color: black;
width: 76px;
}
.filter-text {
font-family: verdana;
font-size: 10px;
font-weight: normal;
color: black;
width: 114px;
}
.smLink {
font-family: verdana;
font-size: 10px;
font-weight: normal;
color: blue;
}
#extendedSearchLayer {display: inline;}
</style>
<script type="text/javascript" src="<tmpl_var ems.wobject.dir>/script/dynamicForms.js"></script>
<script type="text/javascript">
<tmpl_var search.filters.options>
var advanced = 0;
var filterCount = 0;
function setSelectValue(selObj,newValue) {
for (var i=0; i<selObj.options.length; i++) {
selObj.options[i].selected = (selObj.options[i].value==newValue)?true:false;
}
}
function toggleAdvanced() {
var ids = ["cParams","cResults","cSearch"];
var toggle = "";
for (var i = 0; i < ids.length; i++) {
if(advanced == 1) {
toggle = "none";
}
document.getElementById(ids[i]).style.display=toggle;
}
advanced = (advanced == 1)?0:1;
return false;
}
function toggleTitle(obj) {
if (obj.checked) {
document.getElementById('cs_search_title_td').style.display='inline';
} else {
document.getElementById('cs_search_title_td').style.display='none';
}
}
function openWin (url, name, param) {
var newwin = window.open(url, name, param);
newwin.focus();
}
function buildFilterList() {
return "Custom Filter";
}
function stripDelim(value,delim) {
value = value.replace(/delim/g,"");
return value;
}
function unset(array, valueToUnset){
var output=new Array(0);
for(var i in array){
if(i==valueToUnset){continue;}
output[i]=array[i];
}
return output;
}
</script>
<div id="basicSearch"<tmpl_if isAdvSearch> style="display:none"</tmpl_if>>
<tmpl_var basicSearch.formHeader>
<div style="cursor:pointer" onclick="document.getElementById('basicSearch').style.display='none';document.getElementById('advSearch').style.display='block';" ><a href="#">Switch To Advanced Search</a></div>
<table width="100%" border="0" padding="8"><tr><td>Search Keywords:</td><td><input name="searchKeywords" /></td></tr></table>
<tmpl_var search.formSubmit>
<tmpl_var search.formFooter>
</div>
<div id="advSearch"<tmpl_unless isAdvSearch> style="display:none"</tmpl_unless>>
<tmpl_var advSearch.formHeader>
<div style="cursor:pointer" onclick="document.getElementById('basicSearch').style.display='block';document.getElementById('advSearch').style.display='none';" ><a href="#">Switch To Basic Search</a></div>
<table width="100%" border="0" padding="8">
<tbody id="filterbody">
<tr><td></td></tr>
</tbody>
</table>
<a href="#" onclick="addField();">Add another Filter Field</a>
<tmpl_var search.formSubmit>
<tmpl_var search.formFooter>
<script type="text/javascript">
// load autoSearch fields
for (var word in filterList) {
if (filterList[word]["autoSearch"]) {
var compa = addField();
setSelectValue(compa,word);
changeToType(word,filterCount);
}
}
</script>
</div>
<table width="100%" border="0" padding="8">
<tr><th><tmpl_var name.label></th>
<th><tmpl_var starts.label></th>
<th><tmpl_var ends.label></th>
<th><tmpl_var seats.label></th>
<th><tmpl_var price.label></th>
<th><tmpl_var requirement.label></th>
<th><tmpl_var addToCart.label></th></tr>
<tmpl_loop events_loop>
<tr><td><tmpl_var title>
</td><td><tmpl_var startDate.human>
</td><td><tmpl_var endDate.human>
</td><td><tmpl_var seatsRemaining>
</td><td><tmpl_var price>
</td><td><tmpl_var requirement>
</td><td><tmpl_unless eventIsFull><a href="<tmpl_var purchase.url>"><tmpl_var purchase.label></a><tmpl_else><tmpl_var purchase.label><br /></tmpl_unless>
</td></tr>
</tmpl_loop>
</table>
<tmpl_var paginateBar>
EOT1
## Event Template ##
my $template2 = <<EOT2;
<h1><tmpl_var title></h1><br>
<tmpl_var description>&nbsp;<tmpl_var price><br>
<tmpl_unless eventIsFull>
<a href="<tmpl_var purchase.url>"><tmpl_var purchase.label></a>
<tmpl_else>
<tmpl_var purchase.label><br />
</tmpl_unless>
max attendees:<tmpl_var maximumAttendees><br />
seats remaining:<tmpl_var seatsRemaining><br />
number registered:<tmpl_var numberRegistered><br />
event full?:<tmpl_var eventIsFull<br />
EOT2
## Checkout Template ##
my $template3 = <<EOT3;
<tmpl_var form.header>
<table width='100%'>
<tr><td><tmpl_var message></td></tr>
<tmpl_if chooseSubevents>
<tmpl_loop subevents_loop>
<tr>
<td><tmpl_var form.checkBox></td>
<td><tmpl_var title></td>
<td><tmpl_var description></td>
<td><tmpl_var price></td>
</tr>
</tmpl_loop>
</tmpl_if>
<tmpl_if resolveConflicts>
<tmpl_loop conflict_loop>
<tr>
<td><tmpl_var form.deleteControl></td>
<td><tmpl_var title></td>
<td><tmpl_var description></td>
<td><tmpl_var price></td>
</tr>
</tmpl_loop>
</tmpl_if>
<tr><td><tmpl_var form.submit></td></tr>
</table>
<tmpl_var form.footer>
<tmpl_if registration>
<tmpl_var form.header>
<tmpl_var form.message>
<tmpl_var form.chooserJS>
<table>
<tr><td><tmpl_var form.chooser.label></td><td><tmpl_var form.chooser></td></tr>
<tr><td><tmpl_var form.firstName.label></td><td><tmpl_var form.firstName></td></tr>
<tr><td><tmpl_var form.lastName.label></td><td><tmpl_var form.lastName></td></tr>
<tr><td><tmpl_var form.address.label></td><td><tmpl_var form.address></td></tr>
<tr><td><tmpl_var form.city.label></td><td><tmpl_var form.city></td></tr>
<tr><td><tmpl_var form.state.label></td><td><tmpl_var form.state></td></tr>
<tr><td><tmpl_var form.zipcode.label></td><td><tmpl_var form.zipcode></td></tr>
<tr><td><tmpl_var form.country.label></td><td><tmpl_var form.country></td></tr>
<tr><td><tmpl_var form.phoneNumber.label></td><td><tmpl_var form.phoneNumber></td></tr>
<tr><td><tmpl_var form.email.label></td><td><tmpl_var form.email></td></tr>
<tr><td rowspan='2' align='center'><tmpl_var form.submit></td></tr>
</table>
<tmpl_var form.footer>
</tmpl_if>
EOT3
## Manage Purchases ##
my $template4 = <<EOT4;
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p><br /><br />
</tmpl_if>
<h1><tmpl_var managePurchasesTitle></h1>
<table width='100%'>
<tr><td><tmpl_var purchaseId.label></td><td><tmpl_var datePurchasedHuman.label></td></tr>
<tmpl_if purchasesLoop>
<tmpl_loop purchasesLoop>
<tr><td><a href="<tmpl_var purchaseUrl>"><tmpl_var purchaseId></td><td><tmpl_var datePurchasedHuman></td></tr>
</tmpl_loop>
<tmpl_else>
<tr><td><tmpl_var noPurchasesMessage></td></tr>
</tmpl_if>
</table>
EOT4
## View Purchase ##
my $template5 = <<EOT5;
<tmpl_if session.var.adminOn>
<p><tmpl_var controls></p><br /><br />
</tmpl_if>
<h1><tmpl_var viewPurchaseTitle></h1>
<tmpl_if canReturn><a href="<tmpl_var returnPurchaseUrl>"><tmpl_var returnPurchaseLabel></a></tmpl_if>
<table width="100%">
<tr><td><tmpl_var badgeNameLabel></td><td><tmpl_var eventTitle.label></td><td><tmpl_var eventDates.label></td><tmpl_if canReturn><td><tmpl_var returnButton.label></td></tmpl_if></tr></tr><td>
<tmpl_var registration.firstName> <tmpl_var registrationLastName>
</td>
<tmpl_loop registrationLoop>
<tr><td><tmpl_var registration.title></td><td><tmpl_var registration.startDateHuman> - <tmpl_var registration.endDateHuman></td><tmpl_if canReturn><td><a href="<tmpl_var registration.returnUrl>"><tmpl_var registration.returnLabel></a></td></tmpl_if></tr>
</tmpl_loop>
<tmpl_if registration.canAddEvents><tr colspan="<tmpl_if canReturn>3<tmpl_else>2</tmpl_if>"><td><a href="<tmpl_var registration.addEventsUrl>"><tmpl_var addEventsLabel></a></td></tr></tmpl_if>
</table>
EOT5
## End Templates
my $in = WebGUI::Asset->getImportNode($session);
$in->addChild({
className=>'WebGUI::Asset::Template',
template=>$template,
title=>'Default Event Management System',
menuTitle=>'Default Event Management System',
url=>'default-ems-template',
namespace=>'EventManagementSystem',
}, "EventManagerTmpl000001"
);
$in->addChild({
className=>'WebGUI::Asset::Template',
template=>$template2,
title=>'Default Event Management System Product',
menuTitle=>'Default Event Management System Product',
url=>'default-ems-product-template',
namespace=>'EventManagementSystem_product',
}, "EventManagerTmpl000002"
);
$in->addChild({
className=>'WebGUI::Asset::Template',
title=>'Default Event Management System Checkout',
menuTitle=>'Default Event Management System Checkout',
url=>'default-ems-checkout-template',
template=>$template3,
namespace=>'EventManagementSystem_checkout',
}, "EventManagerTmpl000003"
);
$in->addChild({
className=>'WebGUI::Asset::Template',
title=>'Default Event Management System Manage Purchases',
menuTitle=>'Default Event Management System Manage Purchases',
url=>'default-ems-manage-purchases-template',
template=>$template4,
namespace=>'EventManagementSystem_managePurchas',
}, "EventManagerTmpl000004"
);
$in->addChild({
className=>'WebGUI::Asset::Template',
title=>'Default Event Management System View Purchase',
menuTitle=>'Default Event Management System View Purchase',
url=>'default-ems-manage-view-purchase',
template=>$template5,
namespace=>'EventManagementSystem_viewPurchase',
}, "EventManagerTmpl000005"
);
print "\t Creating Event Management System tables.\n" unless ($quiet);
my $sql1 = <<SQL1;
@ -1008,6 +648,7 @@ create table EventManagementSystem_registrations (
productId varchar(22) binary,
purchaseId varchar(22) binary,
badgeId varchar(22) binary,
returned tinyint default 0,
primary key(registrationId))
SQL3
@ -1086,15 +727,15 @@ primary key(badgeId)
)
SQL9
$session->db->write($sql1);
$session->db->write($sql2);
$session->db->write($sql3);
$session->db->write($sql4);
$session->db->write($sql5);
$session->db->write($sql6);
$session->db->write($sql7);
$session->db->write($sql8);
$session->db->write($sql9);
$session->db->write($sql1);
$session->db->write($sql2);
$session->db->write($sql3);
$session->db->write($sql4);
$session->db->write($sql5);
$session->db->write($sql6);
$session->db->write($sql7);
$session->db->write($sql8);
$session->db->write($sql9);
}
#-------------------------------------------------