more work on Admin. added FamFamFam icon set

This commit is contained in:
Doug Bell 2010-04-06 15:45:42 -05:00
parent 5e77a948ad
commit 64f7bd9365
1004 changed files with 129 additions and 10 deletions

View file

@ -84,3 +84,5 @@ TinyMCE..............................MoxieCode
Yahoo User Interface (YUI)...........Yahoo!
http://www.yahoo.com
FamFamFam Silk Icon set..............FamFamFam
http://famfamfam.com/lab/icons/silk/

View file

@ -167,14 +167,28 @@ sub www_view {
# Add vars for current version tag
if ( my $tag = WebGUI::VersionTag->getWorking( $session, "nocreate" ) ) {
$var->{tagName} = $tag->get("name");
$var->{publishUrl} = ""; #TODO
$var->{leaveUrl} = ""; #TODO
$var->{tagName} = $tag->get("name");
$var->{tagEditUrl} = $tag->getEditUrl;
$var->{tagPublishUrl} = ""; #TODO
$var->{tagLeaveUrl} = ""; #TODO
}
$var->{viewUrl} = $url->page;
$style->setScript($url->extras('yui/build/yahoo-dom-event/yahoo-dom-event.js'), {type=>'text/javascript'});
$style->setScript($url->extras('yui/build/utilities/utilities.js'), {type=>'text/javascript'});
$style->setScript($url->extras('accordion/accordion.js'), {type=>'text/javascript'});
$style->setScript($url->extras('admin/admin.js'), {type=>'text/javascript'});
$style->setScript($url->extras('yui/build/element/element-min.js'), {type=>"text/javascript"});
$style->setScript($url->extras('yui/build/tabview/tabview-min.js'), {type=>"text/javascript"});
$style->setScript($url->extras('yui/build/container/container_core-min.js'), {type=>"text/javascript"});
$style->setScript($url->extras('yui/build/menu/menu-min.js'), {type=>"text/javascript"});
$style->setScript($url->extras('yui/build/button/button-min.js'), {type=>"text/javascript"});
$style->setLink( $url->extras('yui/build/button/assets/skins/sam/button.css'), {type=>"text/css",rel=>"stylesheet"});
$style->setLink( $url->extras('yui/build/menu/assets/skins/sam/menu.css'), {type=>"text/css",rel=>"stylesheet"});
$style->setLink( $url->extras('yui/build/tabview/assets/skins/sam/tabview.css'), {type=>"text/css",rel=>"stylesheet"});
$style->setLink($url->extras('macro/AdminBar/slidePanel.css'), {type=>'text/css', rel=>'stylesheet'});
$style->setLink( $url->extras('admin/admin.css'), { type=>'text/css', rel=>'stylesheet'} );
# Use the template in our __DATA__ block
my $tdata = do { local $/ = undef; <WebGUI::Admin::DATA> };
@ -189,8 +203,6 @@ sub www_view {
1;
__DATA__
<div id="wrapper" class="yui-skin-sam">
<dl class="accordion-menu">
<dt class="a-m-t">^International("admin console","AdminConsole");</dt>
<dd class="a-m-d"><div class="bd">
@ -203,11 +215,41 @@ __DATA__
</div></dd>
</dl>
<p>This is where cool stuff goes</p>
<div id="wrapper" class="yui-skin-sam">
<div id="versionTag" <TMPL_UNLESS tagName>style="display: none"</TMPL_UNLESS> >
<div style="float: right">Publish | Leave</div>
<a href="<tmpl_var tagEditUrl>" id="tagEditLink" target="view">
<img src="^Extras(icon/tag_blue.png);" class="icon"/>
<tmpl_var tagName>
</a>
</div>
<div id="user">
<div style="float: right">Back to Site | Log Out</div>
<a href="<tmpl_var userEditUrl>" target="view">
<img src="^Extras(icon/user.png);" class="icon" />
<tmpl_var userName>
</a>
</div>
<div id="tabs" class="yui-navset">
<ul class="yui-nav">
<li class="selected"><a href="#tab1"><em>View</em></a></li>
<li><a href="#tab2"><em>Tree</em></a></li>
</ul>
<div id="locationBar"></div>
<div class="yui-content">
<div id="viewTab"><iframe src="<tmpl_var viewUrl>" name="view" style="width: 100%; height: 80%"></iframe></div>
<div id="treeTab"><p>Tab Two Content</p></div>
</div>
</div>
<!-- Put this in style where belongs -->
<script type="text/javascript">
YAHOO.util.Event.onDOMReady(function () { document.body.style.marginLeft = "160px"; });
</script>
</div>
<script type="text/javascript">
YAHOO.util.Event.onDOMReady( function() {
var myTabs = new YAHOO.widget.TabView("tabs");
var bar = new WebGUI.Admin.LocationBar("locationBar");
} );
</script>

View file

@ -0,0 +1,50 @@
#wrapper {
margin-left: 160px; /* move out of the adminbar's way */
}
#versionTag {
float: left;
width: 57%;
padding: 2px 1%;
border: 1px solid #339;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
line-height: 16px;
}
#user {
float: right;
width: 38%;
padding: 2px 1%;
border: 1px solid #339;
border-radius: 5px;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
line-height: 16px;
}
#locationBar {
height: 2em;
}
#tabs {
clear: both;
}
#wrapper .yui-content {
margin: 0; padding: 0;
}
#viewTab * {
margin: 0; padding: 0;
}
img.icon {
vertical-align: baseline;
}
a:link {
text-decoration: none;
}

25
www/extras/admin/admin.js Normal file
View file

@ -0,0 +1,25 @@
if ( typeof WebGUI == "undefined" ) {
WebGUI = {};
}
WebGUI.Admin = {};
WebGUI.Admin.LocationBar = (function(){
// Public stuff
return function (id) {
this.id = id;
var self = this;
// Private members
var _element = document.getElementById( self.id );
function _init () {
_element.appendChild( document.createTextNode( "Location Bar" ) );
}
_init();
};
})();

BIN
www/extras/icon/accept.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

BIN
www/extras/icon/add.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
www/extras/icon/anchor.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 523 B

BIN
www/extras/icon/application.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 464 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 619 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 524 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 610 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 533 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 592 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 605 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 634 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 670 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 656 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 487 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 585 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 478 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 547 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 581 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 510 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 520 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 432 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 493 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 473 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 465 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 426 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 507 B

BIN
www/extras/icon/arrow_branch.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 582 B

BIN
www/extras/icon/arrow_divide.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 677 B

BIN
www/extras/icon/arrow_down.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 379 B

BIN
www/extras/icon/arrow_in.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 600 B

BIN
www/extras/icon/arrow_inout.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 551 B

BIN
www/extras/icon/arrow_join.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 626 B

BIN
www/extras/icon/arrow_left.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 345 B

BIN
www/extras/icon/arrow_merge.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 484 B

BIN
www/extras/icon/arrow_out.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 594 B

BIN
www/extras/icon/arrow_redo.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 625 B

BIN
www/extras/icon/arrow_refresh.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 685 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 506 B

BIN
www/extras/icon/arrow_right.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 608 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 602 B

BIN
www/extras/icon/arrow_switch.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 516 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 489 B

BIN
www/extras/icon/arrow_undo.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 631 B

BIN
www/extras/icon/arrow_up.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 372 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 760 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

BIN
www/extras/icon/attach.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 391 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 853 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 754 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 849 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 781 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

BIN
www/extras/icon/basket.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

BIN
www/extras/icon/basket_add.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

BIN
www/extras/icon/basket_delete.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 773 B

BIN
www/extras/icon/basket_edit.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 811 B

BIN
www/extras/icon/basket_error.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 794 B

BIN
www/extras/icon/basket_go.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

BIN
www/extras/icon/basket_put.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
www/extras/icon/basket_remove.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 738 B

BIN
www/extras/icon/bell.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 789 B

BIN
www/extras/icon/bell_add.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 816 B

BIN
www/extras/icon/bell_delete.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 824 B

BIN
www/extras/icon/bell_error.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 813 B

BIN
www/extras/icon/bell_go.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

BIN
www/extras/icon/bell_link.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 850 B

BIN
www/extras/icon/bin.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

BIN
www/extras/icon/bin_closed.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 363 B

BIN
www/extras/icon/bin_empty.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 475 B

BIN
www/extras/icon/bomb.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 793 B

BIN
www/extras/icon/book.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 593 B

BIN
www/extras/icon/book_add.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 770 B

BIN
www/extras/icon/book_delete.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 719 B

Some files were not shown because too many files have changed in this diff Show more