more work on Admin. added FamFamFam icon set
|
|
@ -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/
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
50
www/extras/admin/admin.css
Normal 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
|
|
@ -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
|
After Width: | Height: | Size: 781 B |
BIN
www/extras/icon/add.png
Executable file
|
After Width: | Height: | Size: 733 B |
BIN
www/extras/icon/anchor.png
Executable file
|
After Width: | Height: | Size: 523 B |
BIN
www/extras/icon/application.png
Executable file
|
After Width: | Height: | Size: 464 B |
BIN
www/extras/icon/application_add.png
Executable file
|
After Width: | Height: | Size: 619 B |
BIN
www/extras/icon/application_cascade.png
Executable file
|
After Width: | Height: | Size: 524 B |
BIN
www/extras/icon/application_delete.png
Executable file
|
After Width: | Height: | Size: 610 B |
BIN
www/extras/icon/application_double.png
Executable file
|
After Width: | Height: | Size: 533 B |
BIN
www/extras/icon/application_edit.png
Executable file
|
After Width: | Height: | Size: 703 B |
BIN
www/extras/icon/application_error.png
Executable file
|
After Width: | Height: | Size: 656 B |
BIN
www/extras/icon/application_form.png
Executable file
|
After Width: | Height: | Size: 467 B |
BIN
www/extras/icon/application_form_add.png
Executable file
|
After Width: | Height: | Size: 592 B |
BIN
www/extras/icon/application_form_delete.png
Executable file
|
After Width: | Height: | Size: 605 B |
BIN
www/extras/icon/application_form_edit.png
Executable file
|
After Width: | Height: | Size: 714 B |
BIN
www/extras/icon/application_form_magnify.png
Executable file
|
After Width: | Height: | Size: 612 B |
BIN
www/extras/icon/application_get.png
Executable file
|
After Width: | Height: | Size: 581 B |
BIN
www/extras/icon/application_go.png
Executable file
|
After Width: | Height: | Size: 634 B |
BIN
www/extras/icon/application_home.png
Executable file
|
After Width: | Height: | Size: 685 B |
BIN
www/extras/icon/application_key.png
Executable file
|
After Width: | Height: | Size: 670 B |
BIN
www/extras/icon/application_lightning.png
Executable file
|
After Width: | Height: | Size: 656 B |
BIN
www/extras/icon/application_link.png
Executable file
|
After Width: | Height: | Size: 701 B |
BIN
www/extras/icon/application_osx.png
Executable file
|
After Width: | Height: | Size: 487 B |
BIN
www/extras/icon/application_osx_terminal.png
Executable file
|
After Width: | Height: | Size: 525 B |
BIN
www/extras/icon/application_put.png
Executable file
|
After Width: | Height: | Size: 585 B |
BIN
www/extras/icon/application_side_boxes.png
Executable file
|
After Width: | Height: | Size: 478 B |
BIN
www/extras/icon/application_side_contract.png
Executable file
|
After Width: | Height: | Size: 547 B |
BIN
www/extras/icon/application_side_expand.png
Executable file
|
After Width: | Height: | Size: 581 B |
BIN
www/extras/icon/application_side_list.png
Executable file
|
After Width: | Height: | Size: 510 B |
BIN
www/extras/icon/application_side_tree.png
Executable file
|
After Width: | Height: | Size: 483 B |
BIN
www/extras/icon/application_split.png
Executable file
|
After Width: | Height: | Size: 520 B |
BIN
www/extras/icon/application_tile_horizontal.png
Executable file
|
After Width: | Height: | Size: 432 B |
BIN
www/extras/icon/application_tile_vertical.png
Executable file
|
After Width: | Height: | Size: 492 B |
BIN
www/extras/icon/application_view_columns.png
Executable file
|
After Width: | Height: | Size: 493 B |
BIN
www/extras/icon/application_view_detail.png
Executable file
|
After Width: | Height: | Size: 576 B |
BIN
www/extras/icon/application_view_gallery.png
Executable file
|
After Width: | Height: | Size: 555 B |
BIN
www/extras/icon/application_view_icons.png
Executable file
|
After Width: | Height: | Size: 476 B |
BIN
www/extras/icon/application_view_list.png
Executable file
|
After Width: | Height: | Size: 473 B |
BIN
www/extras/icon/application_view_tile.png
Executable file
|
After Width: | Height: | Size: 465 B |
BIN
www/extras/icon/application_xp.png
Executable file
|
After Width: | Height: | Size: 426 B |
BIN
www/extras/icon/application_xp_terminal.png
Executable file
|
After Width: | Height: | Size: 507 B |
BIN
www/extras/icon/arrow_branch.png
Executable file
|
After Width: | Height: | Size: 582 B |
BIN
www/extras/icon/arrow_divide.png
Executable file
|
After Width: | Height: | Size: 677 B |
BIN
www/extras/icon/arrow_down.png
Executable file
|
After Width: | Height: | Size: 379 B |
BIN
www/extras/icon/arrow_in.png
Executable file
|
After Width: | Height: | Size: 600 B |
BIN
www/extras/icon/arrow_inout.png
Executable file
|
After Width: | Height: | Size: 551 B |
BIN
www/extras/icon/arrow_join.png
Executable file
|
After Width: | Height: | Size: 626 B |
BIN
www/extras/icon/arrow_left.png
Executable file
|
After Width: | Height: | Size: 345 B |
BIN
www/extras/icon/arrow_merge.png
Executable file
|
After Width: | Height: | Size: 484 B |
BIN
www/extras/icon/arrow_out.png
Executable file
|
After Width: | Height: | Size: 594 B |
BIN
www/extras/icon/arrow_redo.png
Executable file
|
After Width: | Height: | Size: 625 B |
BIN
www/extras/icon/arrow_refresh.png
Executable file
|
After Width: | Height: | Size: 685 B |
BIN
www/extras/icon/arrow_refresh_small.png
Executable file
|
After Width: | Height: | Size: 506 B |
BIN
www/extras/icon/arrow_right.png
Executable file
|
After Width: | Height: | Size: 349 B |
BIN
www/extras/icon/arrow_rotate_anticlockwise.png
Executable file
|
After Width: | Height: | Size: 608 B |
BIN
www/extras/icon/arrow_rotate_clockwise.png
Executable file
|
After Width: | Height: | Size: 602 B |
BIN
www/extras/icon/arrow_switch.png
Executable file
|
After Width: | Height: | Size: 683 B |
BIN
www/extras/icon/arrow_turn_left.png
Executable file
|
After Width: | Height: | Size: 516 B |
BIN
www/extras/icon/arrow_turn_right.png
Executable file
|
After Width: | Height: | Size: 489 B |
BIN
www/extras/icon/arrow_undo.png
Executable file
|
After Width: | Height: | Size: 631 B |
BIN
www/extras/icon/arrow_up.png
Executable file
|
After Width: | Height: | Size: 372 B |
BIN
www/extras/icon/asterisk_orange.png
Executable file
|
After Width: | Height: | Size: 760 B |
BIN
www/extras/icon/asterisk_yellow.png
Executable file
|
After Width: | Height: | Size: 743 B |
BIN
www/extras/icon/attach.png
Executable file
|
After Width: | Height: | Size: 391 B |
BIN
www/extras/icon/award_star_add.png
Executable file
|
After Width: | Height: | Size: 853 B |
BIN
www/extras/icon/award_star_bronze_1.png
Executable file
|
After Width: | Height: | Size: 733 B |
BIN
www/extras/icon/award_star_bronze_2.png
Executable file
|
After Width: | Height: | Size: 755 B |
BIN
www/extras/icon/award_star_bronze_3.png
Executable file
|
After Width: | Height: | Size: 754 B |
BIN
www/extras/icon/award_star_delete.png
Executable file
|
After Width: | Height: | Size: 849 B |
BIN
www/extras/icon/award_star_gold_1.png
Executable file
|
After Width: | Height: | Size: 753 B |
BIN
www/extras/icon/award_star_gold_2.png
Executable file
|
After Width: | Height: | Size: 770 B |
BIN
www/extras/icon/award_star_gold_3.png
Executable file
|
After Width: | Height: | Size: 781 B |
BIN
www/extras/icon/award_star_silver_1.png
Executable file
|
After Width: | Height: | Size: 714 B |
BIN
www/extras/icon/award_star_silver_2.png
Executable file
|
After Width: | Height: | Size: 734 B |
BIN
www/extras/icon/award_star_silver_3.png
Executable file
|
After Width: | Height: | Size: 738 B |
BIN
www/extras/icon/basket.png
Executable file
|
After Width: | Height: | Size: 669 B |
BIN
www/extras/icon/basket_add.png
Executable file
|
After Width: | Height: | Size: 752 B |
BIN
www/extras/icon/basket_delete.png
Executable file
|
After Width: | Height: | Size: 773 B |
BIN
www/extras/icon/basket_edit.png
Executable file
|
After Width: | Height: | Size: 811 B |
BIN
www/extras/icon/basket_error.png
Executable file
|
After Width: | Height: | Size: 794 B |
BIN
www/extras/icon/basket_go.png
Executable file
|
After Width: | Height: | Size: 777 B |
BIN
www/extras/icon/basket_put.png
Executable file
|
After Width: | Height: | Size: 733 B |
BIN
www/extras/icon/basket_remove.png
Executable file
|
After Width: | Height: | Size: 738 B |
BIN
www/extras/icon/bell.png
Executable file
|
After Width: | Height: | Size: 789 B |
BIN
www/extras/icon/bell_add.png
Executable file
|
After Width: | Height: | Size: 816 B |
BIN
www/extras/icon/bell_delete.png
Executable file
|
After Width: | Height: | Size: 824 B |
BIN
www/extras/icon/bell_error.png
Executable file
|
After Width: | Height: | Size: 813 B |
BIN
www/extras/icon/bell_go.png
Executable file
|
After Width: | Height: | Size: 836 B |
BIN
www/extras/icon/bell_link.png
Executable file
|
After Width: | Height: | Size: 850 B |
BIN
www/extras/icon/bin.png
Executable file
|
After Width: | Height: | Size: 476 B |
BIN
www/extras/icon/bin_closed.png
Executable file
|
After Width: | Height: | Size: 363 B |
BIN
www/extras/icon/bin_empty.png
Executable file
|
After Width: | Height: | Size: 475 B |
BIN
www/extras/icon/bomb.png
Executable file
|
After Width: | Height: | Size: 793 B |
BIN
www/extras/icon/book.png
Executable file
|
After Width: | Height: | Size: 593 B |
BIN
www/extras/icon/book_add.png
Executable file
|
After Width: | Height: | Size: 714 B |
BIN
www/extras/icon/book_addresses.png
Executable file
|
After Width: | Height: | Size: 770 B |
BIN
www/extras/icon/book_delete.png
Executable file
|
After Width: | Height: | Size: 719 B |