fixed some more bugs

This commit is contained in:
JT Smith 2006-04-27 04:32:36 +00:00
parent a0e4b48c94
commit cb29744bce
4 changed files with 277 additions and 276 deletions

View file

@ -39,7 +39,7 @@ sub addNewContent {
ownerUserId=>'3', ownerUserId=>'3',
groupIdView=>'7', groupIdView=>'7',
groupIdEdit=>'4', groupIdEdit=>'4',
description=>q|<p>The <a href="http://www.webgui.org">WebGUI Content Engine</a> is a powerful and easy to use system for managing web sites, and building web applications. It provides thousands of features out of the box, and lots of plug-in points so you can extend it to match your needs. It's easy enough for the average business user, but powerful enough for any large enterprise.</p> description=>q|<p>The <a href="http://www.webgui.org">WebGUI Content Engine&reg;</a> is a powerful and easy to use system for managing web sites, and building web applications. It provides thousands of features out of the box, and lots of plug-in points so you can extend it to match your needs. It's easy enough for the average business user, but powerful enough for any large enterprise.</p>
<p>There are thousands of <a href="http://www.jeffmillerphotography.com">small</a> and <a href="http://www.brunswicknt.com">large</a> businesses, <a href="http://phila.k12.pa.us">schools</a>, <a href="http://www.csumathsuccess.org">universities</a>, <a href="http://beijing.usembassy.gov/">governments</a>, <a href="http://www.gama.org">associations</a>, <a href="http://www.monashwushu.com">clubs</a>, <a href="http://www.sunsetpres.org">churches</a>, <a href="http://www.k3b.org">projects</a>, and <a href="http://www.comparehangouts.com">communities</a> using WebGUI all over the world today. A brief list of some of them can be found <a href="http://www.plainblack.com/webgui/campaigns/sightings">here</a>. Your site should be on that list.</p>|, <p>There are thousands of <a href="http://www.jeffmillerphotography.com">small</a> and <a href="http://www.brunswicknt.com">large</a> businesses, <a href="http://phila.k12.pa.us">schools</a>, <a href="http://www.csumathsuccess.org">universities</a>, <a href="http://beijing.usembassy.gov/">governments</a>, <a href="http://www.gama.org">associations</a>, <a href="http://www.monashwushu.com">clubs</a>, <a href="http://www.sunsetpres.org">churches</a>, <a href="http://www.k3b.org">projects</a>, and <a href="http://www.comparehangouts.com">communities</a> using WebGUI all over the world today. A brief list of some of them can be found <a href="http://www.plainblack.com/webgui/campaigns/sightings">here</a>. Your site should be on that list.</p>|,
templateId=>'PBtmpl0000000000000002' templateId=>'PBtmpl0000000000000002'
@ -88,13 +88,13 @@ sub addNewContent {
groupIdEdit=>'4', groupIdEdit=>'4',
description=>q| description=>q|
<p> <p>
If you're reading this message that means you've successfully installed and configured WebGUI. Great job! If you're reading this message that means you've successfully installed and configured the WebGUI Content Engine&reg;. Great job!
</p> </p>
<p> <p>
Now you should <a href="^/;?op=auth">log in</a> and <a href="^LoginToggle(linkonly);">go into admin mode</a>. The default username is "admin" and the default password is "123qwe", but you probably customized both of those when you visited this site for the very first time. Now you should <a href="^/;?op=auth">log in</a> and <a href="^LoginToggle(linkonly);">go into admin mode</a>. The default username is "admin" and the default password is "123qwe", but you probably customized both of those when you visited this site for the very first time.
</p> </p>
<p> <p>
Now that you're logged in, we recommend <a href="^/;?op=listUsers">creating a secondary account</a> for yourself with admin privileges just in case you forget the login information for your primary admin account. Don't worry if you lock yourself out, you can always contact <a href="http://www.plainblack.com">Plain Black</a> support to get instructions to get back in. Now that you're logged in, we recommend <a href="^/;?op=listUsers">creating a secondary account</a> for yourself with admin privileges just in case you forget the login information for your primary admin account. Don't worry if you lock yourself out, you can always contact <a href="http://www.plainblack.com">Plain Black&reg;</a> support to get instructions to get back in.
</p> </p>
<p> <p>
No doubt after you enabled admin mode you saw a menu along the left side of the screen, that's called the Admin Bar. Use that to add content and access administrative functions. To get started with managing content, watch the short instructional video below. No doubt after you enabled admin mode you saw a menu along the left side of the screen, that's called the Admin Bar. Use that to add content and access administrative functions. To get started with managing content, watch the short instructional video below.
@ -123,7 +123,7 @@ Enjoy your new WebGUI site!
ownerUserId=>'3', ownerUserId=>'3',
groupIdView=>'7', groupIdView=>'7',
groupIdEdit=>'4', groupIdEdit=>'4',
description=>q|<p>Plain Black created WebGUI and is here to answer your questions and provide you with services to make sure your WebGUI implementation is entirely successful. We bend over backwards to make sure you're a success. <a href="http://www.plainblack.com/contact_us">Contact us</a> today to see how we can help you.</p>|, description=>q|<p>Plain Black&reg; created the WebGUI Content Engine&reg; and is here to answer your questions and provide you with services to make sure your WebGUI implementation is entirely successful. We bend over backwards to make sure you're a success. <a href="http://www.plainblack.com/contact_us">Contact us</a> today to see how we can help you.</p>|,
templateId=>'PBtmpl0000000000000002' templateId=>'PBtmpl0000000000000002'
}); });
$yns->addChild({ $yns->addChild({
@ -335,12 +335,13 @@ sub addNewStyles {
$folder->addChild(\%properties, "7.0-style".sprintf("%013d",$assetCounter)); $folder->addChild(\%properties, "7.0-style".sprintf("%013d",$assetCounter));
} elsif ($file =~ m/\.snippet$/) { } elsif ($file =~ m/\.snippet$/) {
open(FILE,"<7fixup/".$style."/".$file); open(FILE,"<7fixup/".$style."/".$file);
my $head = 0; my $head = 1;
my %properties = (className=>"WebGUI::Asset::Snippet"); my %properties = (className=>"WebGUI::Asset::Snippet");
while (my $line = <FILE>) { while (my $line = <FILE>) {
if ($line =~ m/^\#(.*):(.*)$/) { if ($head && $line =~ m/^\#(\w+):(.*)$/) {
$properties{$1} = $2; $properties{$1} = $2;
} else { } else {
$head = 0;
$properties{snippet} .= $line; $properties{snippet} .= $line;
} }
} }

View file

@ -3,226 +3,226 @@
#url:style1/css01.css #url:style1/css01.css
#processAsTemplate:1 #processAsTemplate:1
#mimeType:text/css #mimeType:text/css
body, html body, html
{ {
text-align:center; text-align:center;
margin:0px; margin:0px;
height:100%; height:100%;
background-color:#494949; background-color:#494949;
} }
#main #main
{ {
width:800px; width:800px;
background: url('^FileUrl(style1/main_bg.jpg);') repeat-y; background: url('^FileUrl(style1/main_bg.jpg);') repeat-y;
height:100%; height:100%;
margin-left:auto; margin-left:auto;
margin-right:auto; margin-right:auto;
margin-top:0px; margin-top:0px;
margin-bottom:0px; margin-bottom:0px;
position:relative; position:relative;
} }
body > #main body > #main
{ {
height:auto; height:auto;
min-height:100%; min-height:100%;
} }
#main #mainHeader #main #mainHeader
{ {
width:800px; width:800px;
height:133px; height:133px;
background: url('^FileUrl(style1/header.jpg);') top left no-repeat; background: url('^FileUrl(style1/header.jpg);') top left no-repeat;
margin-bottom:0px; margin-bottom:0px;
position:relative; position:relative;
} }
#main #mainHeader #title #main #mainHeader #title
{ {
position:absolute; position:absolute;
top:23px; top:23px;
left:145px; left:145px;
font-size:32pt; font-size:32pt;
font-family:arial; font-family:arial;
color:white; color:white;
font-weight:bold; font-weight:bold;
} }
#main #mainHeader #title a { #main #mainHeader #title a {
color:white; color:white;
text-decoration:none; text-decoration:none;
} }
#main #mainContent #main #mainContent
{ {
background: url('^FileUrl(style1/orange_left01.jpg);') left top no-repeat; background: url('^FileUrl(style1/orange_left01.jpg);') left top no-repeat;
width:100%; width:100%;
height:100%; height:100%;
margin-top:0px; margin-top:0px;
text-align:left; text-align:left;
border:solid red 0px; border:solid red 0px;
} }
#main > #mainContent #main > #mainContent
{ {
margin-top:0px; margin-top:0px;
min-height:500px; min-height:500px;
} }
#main > #mainContent > p { #main > #mainContent > p {
margin-top:0px; margin-top:0px;
} }
#main #mainContent #mainText a:link { #main #mainContent #mainText a:link {
color:#FF7F23; color:#FF7F23;
} }
#main #mainContent #mainText a:visited { #main #mainContent #mainText a:visited {
color:#D25900; color:#D25900;
} }
/* LEVEL 1 AND 2 NAVIGATION */ /* LEVEL 1 AND 2 NAVIGATION */
#main .mainNav_1, #main .mainNav_2 { #main .mainNav_1, #main .mainNav_2 {
border-bottom:dashed #DADADA 1px; border-bottom:dashed #DADADA 1px;
width:621px; width:621px;
height:25px; height:25px;
text-align:left; text-align:left;
position:relative; position:relative;
margin-left:137px; margin-left:137px;
clear:both; clear:both;
} }
#main .mainNav_1 a:link, #main .mainNav_1 a:visited, #main .mainNav_2 a:link, #main .mainNav_2 a:visited { #main .mainNav_1 a:link, #main .mainNav_1 a:visited, #main .mainNav_2 a:link, #main .mainNav_2 a:visited {
color:white; color:white;
text-decoration:none; text-decoration:none;
top:5px; top:5px;
position:relative; position:relative;
-moz-box-sizing:border-box; -moz-box-sizing:border-box;
} }
#main .mainNav_1 a:hover,#main .mainNav_2 a:hover { #main .mainNav_1 a:hover,#main .mainNav_2 a:hover {
color:black; color:black;
} }
#main .mainNav_1 div .left, #main .mainNav_2 div .left { #main .mainNav_1 div .left, #main .mainNav_2 div .left {
width:12px; width:12px;
height:25px; height:25px;
display:block; display:block;
float:left; float:left;
background: url('^FileUrl(style1/nav1_off_left.jpg);') no-repeat top left; background: url('^FileUrl(style1/nav1_off_left.jpg);') no-repeat top left;
} }
#main .mainNav_2 div .left { #main .mainNav_2 div .left {
background: url('^FileUrl(style1/nav2_off_left.jpg);') no-repeat top left; background: url('^FileUrl(style1/nav2_off_left.jpg);') no-repeat top left;
} }
#main .mainNav_1 div .center, #main .mainNav_2 div .center { #main .mainNav_1 div .center, #main .mainNav_2 div .center {
height:25px; height:25px;
display:block; display:block;
float:left; float:left;
background: url('^FileUrl(style1/nav1_off_center.jpg);') repeat-x top left; background: url('^FileUrl(style1/nav1_off_center.jpg);') repeat-x top left;
color:white; color:white;
font-family:arial, verdana; font-family:arial, verdana;
font-size:8pt; font-size:8pt;
} }
#main .mainNav_2 div .center { #main .mainNav_2 div .center {
background: url('^FileUrl(style1/nav2_off_center.jpg);') repeat-x top left; background: url('^FileUrl(style1/nav2_off_center.jpg);') repeat-x top left;
} }
#main .mainNav_1 div .right, #main .mainNav_2 div .right { #main .mainNav_1 div .right, #main .mainNav_2 div .right {
width:10px; width:10px;
height:25px; height:25px;
display:block; display:block;
float:left; float:left;
background: url('^FileUrl(style1/nav1_off_right.jpg);') no-repeat top left; background: url('^FileUrl(style1/nav1_off_right.jpg);') no-repeat top left;
} }
#main .mainNav_2 div .right { #main .mainNav_2 div .right {
background: url('^FileUrl(style1/nav2_off_right.jpg);') no-repeat top left; background: url('^FileUrl(style1/nav2_off_right.jpg);') no-repeat top left;
} }
#main .mainNav_1 div.navOn .left { #main .mainNav_1 div.navOn .left {
background: url('^FileUrl(style1/nav1_on_left.jpg);') no-repeat top left; background: url('^FileUrl(style1/nav1_on_left.jpg);') no-repeat top left;
} }
#main .mainNav_1 div.navOn .center { #main .mainNav_1 div.navOn .center {
background: url('^FileUrl(style1/nav1_center_on.jpg);') repeat-x top left; background: url('^FileUrl(style1/nav1_center_on.jpg);') repeat-x top left;
} }
#main .mainNav_1 div.navOn .right { #main .mainNav_1 div.navOn .right {
background: url('^FileUrl(style1/nav1_on_right.jpg);') no-repeat top left; background: url('^FileUrl(style1/nav1_on_right.jpg);') no-repeat top left;
} }
#main .mainNav_2 div.navOn .left { #main .mainNav_2 div.navOn .left {
background: url('^FileUrl(style1/nav2_on_left.jpg);') no-repeat top left; background: url('^FileUrl(style1/nav2_on_left.jpg);') no-repeat top left;
} }
#main .mainNav_2 div.navOn .center { #main .mainNav_2 div.navOn .center {
background: url('^FileUrl(style1/nav2_center_on.jpg);') repeat-x top left; background: url('^FileUrl(style1/nav2_center_on.jpg);') repeat-x top left;
} }
#main .mainNav_2 div.navOn .right { #main .mainNav_2 div.navOn .right {
background: url('^FileUrl(style1/nav2_on_right.jpg);') no-repeat top left; background: url('^FileUrl(style1/nav2_on_right.jpg);') no-repeat top left;
} }
#main .mainNav_1 div.navOn a:link, #main .mainNav_1 div.navOn a:visited, #main .mainNav_2 div.navOn a:link, #main .mainNav_2 div.navOn a:visited { #main .mainNav_1 div.navOn a:link, #main .mainNav_1 div.navOn a:visited, #main .mainNav_2 div.navOn a:link, #main .mainNav_2 div.navOn a:visited {
color:black; color:black;
} }
/* ENDOF LEVEL 1 AND 2 NAVIGATION */ /* ENDOF LEVEL 1 AND 2 NAVIGATION */
#main #crumbTrail { #main #crumbTrail {
margin-left:177px; margin-left:177px;
margin-bottom:0px; margin-bottom:0px;
color:gray; color:gray;
font-size:8pt; font-size:8pt;
font-weight:bold; font-weight:bold;
} }
#main #crumbTrail a.crumbTrail:visited, #main #crumbTrail a.crumbTrail:link { #main #crumbTrail a.crumbTrail:visited, #main #crumbTrail a.crumbTrail:link {
color:silver; color:silver;
font-size:8pt; font-size:8pt;
font-family:arial; font-family:arial;
text-decoration:none; text-decoration:none;
font-weight:normal; font-weight:normal;
} }
#main #crumbTrail a.crumbTrail:hover { #main #crumbTrail a.crumbTrail:hover {
color:gray; color:gray;
} }
#main #mainText #main #mainText
{ {
padding-left:150px; padding-left:150px;
font-family:verdana; font-family:verdana;
font-size:9pt; font-size:9pt;
width:600px; width:600px;
margin-top:0px; margin-top:0px;
} }
#main #gui #main #gui
{ {
bottom:0px; bottom:0px;
left:0px; left:0px;
position:absolute; position:absolute;
width:135px; width:135px;
font-size:8pt; font-size:8pt;
color:black; color:black;
font-family:arial; font-family:arial;
text-align:right; text-align:right;
} }
#main #gui .loginBox { #main #gui .loginBox {
padding-right:12px; padding-right:12px;
-moz-box-sizing:border-box; -moz-box-sizing:border-box;
width:100px; width:100px;
float:right; float:right;
margin-bottom:10px; margin-bottom:10px;
} }
#main #gui .loginBox .loginBoxField { #main #gui .loginBox .loginBoxField {
width:75px; width:75px;
} }
#main #gui .loginBox .loginBoxButton { #main #gui .loginBox .loginBoxButton {
background-color:#D65501; background-color:#D65501;
color:white; color:white;
border:solid white 2px; border:solid white 2px;
margin-top:4px; margin-top:4px;
font-variant:small-caps; font-variant:small-caps;
} }
#main #gui a #main #gui a
{ {
color:white; color:white;
} }
#copyright { #copyright {
color:#fff; color:#fff;
position:absolute; position:absolute;
top:110px; top:110px;
right:40px; right:40px;
font-family:verdana; font-family:verdana;
font-size:8pt; font-size:8pt;
font-weight:bold; font-weight:bold;
background-color:#2D2D2D; background-color:#2D2D2D;
opacity:0.4; opacity:0.4;
-moz-opacity:0.4; -moz-opacity:0.4;
-khtml-opacity:0.4; -khtml-opacity:0.4;
padding:2px; padding:2px;
} }
* html #copyright { * html #copyright {
background: transparent; background: transparent;
} }

View file

@ -3,50 +3,50 @@
#menuTitle:Style 01 #menuTitle:Style 01
#url:style_01 #url:style_01
#namespace:style #namespace:style
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"> <html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>^Page(title);</title> <title>^Page(title);</title>
<tmpl_var head.tags> <tmpl_var head.tags>
<link href="/style1/css01.css" rel="stylesheet" type="text/css" /> <link href="/style1/css01.css" rel="stylesheet" type="text/css" />
</head> </head>
<body> <body>
^AdminBar(); ^AdminBar();
<div id="main"> <div id="main">
<div id="mainHeader"> <div id="mainHeader">
<div id="title"> <div id="title">
^H(^c();); ^H(^c(););
</div> </div>
<div id="copyright"> <div id="copyright">
&copy; ^D(%y); ^c; &copy; ^D(%y); ^c;
</div> </div>
</div> </div>
<div id="mainContent"> <div id="mainContent">
<div class="mainNav_1"> <div class="mainNav_1">
^AssetProxy(roottab_level0); ^AssetProxy(roottab_level0);
</div> </div>
<div style="clear:both;"></div> <div style="clear:both;"></div>
<div class="mainNav_2"> <div class="mainNav_2">
^AssetProxy(roottab_level1); ^AssetProxy(roottab_level1);
</div> </div>
<div id="crumbTrail"> <div id="crumbTrail">
^AssetProxy(crumbtrail); ^AssetProxy(crumbtrail);
</div> </div>
<div style="clear:both;">&#160;</div> <div style="clear:both;">&#160;</div>
<div id="mainText"> <div id="mainText">
<tmpl_var body.content> <tmpl_var body.content>
</div> </div>
<div style="clear:both;">&#160;</div> <div style="clear:both;">&#160;</div>
</div> </div>
<div id="gui"> <div id="gui">
^L("","","PBtmpl0000000000000044"); ^L("","","PBtmpl0000000000000044");
<div style="clear:both;padding-right:12px;">^AdminToggle;</div> <div style="clear:both;padding-right:12px;">^AdminToggle;</div>
^AssetProxy(style1/gui_bottom.jpg);<br /> ^AssetProxy(style1/gui_bottom.jpg);<br />
<a href="http://www.plainblack.com/webgui"><img src="^FileUrl(style1/webgui_btn.jpg);" style="border:none;" alt="WebGUI Button" /></a> <a href="http://www.plainblack.com/webgui"><img src="^FileUrl(style1/webgui_btn.jpg);" style="border:none;" alt="WebGUI Button" /></a>
</div> </div>
</div> </div>
</body> </body>
</html> </html>

View file

@ -528,7 +528,7 @@ sub www_view {
my $self = shift; my $self = shift;
my $mimeType = $self->getValue('mimeType') || 'text/html'; my $mimeType = $self->getValue('mimeType') || 'text/html';
if ($mimeType eq 'text/html') { if ($mimeType eq 'text/html') {
return $self->SUPER->www_view(); return $self->SUPER::www_view();
} }
else { else {
$self->prepareView(); $self->prepareView();