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',
groupIdView=>'7',
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>|,
templateId=>'PBtmpl0000000000000002'
@ -88,13 +88,13 @@ sub addNewContent {
groupIdEdit=>'4',
description=>q|
<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>
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>
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>
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',
groupIdView=>'7',
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'
});
$yns->addChild({
@ -335,12 +335,13 @@ sub addNewStyles {
$folder->addChild(\%properties, "7.0-style".sprintf("%013d",$assetCounter));
} elsif ($file =~ m/\.snippet$/) {
open(FILE,"<7fixup/".$style."/".$file);
my $head = 0;
my $head = 1;
my %properties = (className=>"WebGUI::Asset::Snippet");
while (my $line = <FILE>) {
if ($line =~ m/^\#(.*):(.*)$/) {
if ($head && $line =~ m/^\#(\w+):(.*)$/) {
$properties{$1} = $2;
} else {
$head = 0;
$properties{snippet} .= $line;
}
}

View file

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

View file

@ -3,50 +3,50 @@
#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 xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>^Page(title);</title>
<tmpl_var head.tags>
<link href="/style1/css01.css" rel="stylesheet" type="text/css" />
</head>
<body>
^AdminBar();
<div id="main">
<div id="mainHeader">
<div id="title">
^H(^c(););
</div>
<div id="copyright">
&copy; ^D(%y); ^c;
</div>
</div>
<div id="mainContent">
<div class="mainNav_1">
^AssetProxy(roottab_level0);
</div>
<div style="clear:both;"></div>
<div class="mainNav_2">
^AssetProxy(roottab_level1);
</div>
<div id="crumbTrail">
^AssetProxy(crumbtrail);
</div>
<div style="clear:both;">&#160;</div>
<div id="mainText">
<tmpl_var body.content>
</div>
<div style="clear:both;">&#160;</div>
</div>
<div id="gui">
^L("","","PBtmpl0000000000000044");
<div style="clear:both;padding-right:12px;">^AdminToggle;</div>
^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>
</div>
</div>
</body>
<!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">
<head>
<title>^Page(title);</title>
<tmpl_var head.tags>
<link href="/style1/css01.css" rel="stylesheet" type="text/css" />
</head>
<body>
^AdminBar();
<div id="main">
<div id="mainHeader">
<div id="title">
^H(^c(););
</div>
<div id="copyright">
&copy; ^D(%y); ^c;
</div>
</div>
<div id="mainContent">
<div class="mainNav_1">
^AssetProxy(roottab_level0);
</div>
<div style="clear:both;"></div>
<div class="mainNav_2">
^AssetProxy(roottab_level1);
</div>
<div id="crumbTrail">
^AssetProxy(crumbtrail);
</div>
<div style="clear:both;">&#160;</div>
<div id="mainText">
<tmpl_var body.content>
</div>
<div style="clear:both;">&#160;</div>
</div>
<div id="gui">
^L("","","PBtmpl0000000000000044");
<div style="clear:both;padding-right:12px;">^AdminToggle;</div>
^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>
</div>
</div>
</body>
</html>

View file

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