-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathToolBar_Example.dwp
More file actions
195 lines (171 loc) · 6.24 KB
/
ToolBar_Example.dwp
File metadata and controls
195 lines (171 loc) · 6.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
<?xml version="1.0" encoding="utf-8"?>
<WebPart xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.microsoft.com/WebPart/v2">
<Title>ToolBar Example</Title>
<FrameType>Default</FrameType>
<Description>Use for formatted text, tables, and images.</Description>
<IsIncluded>true</IsIncluded>
<ZoneID>Left</ZoneID>
<PartOrder>1</PartOrder>
<FrameState>Normal</FrameState>
<Height />
<Width />
<AllowRemove>true</AllowRemove>
<AllowZoneChange>true</AllowZoneChange>
<AllowMinimize>true</AllowMinimize>
<AllowConnect>true</AllowConnect>
<AllowEdit>true</AllowEdit>
<AllowHide>true</AllowHide>
<IsVisible>true</IsVisible>
<DetailLink />
<HelpLink />
<HelpMode>Modeless</HelpMode>
<Dir>Default</Dir>
<PartImageSmall />
<MissingAssembly />
<PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge>
<IsIncludedFilter />
<Assembly>Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
<TypeName>Microsoft.SharePoint.WebPartPages.ContentEditorWebPart</TypeName>
<ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
<Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDATA[<script>
/*
* The SharePoint Page ToolBar Web Part v1.1
*
* Created by James@Milne.com 25/4/05
*
* This web part can be freely used, as long as it is not sold
* or any charges are paid for its use or installation.
*
* Copyright 2005
*
*/
var VerticalOrientation=false;
</script>
<style>
.oButton a:hover
{
border: solid 1px #000084;
background-image: url("/_layouts/images/rtebnhov.gif");
background-repeat: repeat-x;
background-color: #fddd98;
cursor: hand;
padding:2px;
text-decoration: none;
}
.oButton {
padding:3px;
font-family:Verdana;
font-size:10px;
height: 22
}
</style>
<script language="javascript">
function PrintPreview()
{
var sURL=document.location.href;
if (sURL.indexOf('?') >0) {
sURL=document.location+"&PrintPreview";}
else {
sURL=document.location+"?PrintPreview";}
window.open(sURL);
}
function AlertMe()
{
//diidSubscribeButton for TeamSites.
var AlertLink = document.getElementById("diidSubscribeButton");
if (AlertLink==null)
AlertLink = document.getElementById("TBBSubscribeCategory");
if (AlertLink!=null)
document.location=AlertLink;
else
alert("The 'Alert Me' feature is not available on this page.");
}
function AddToMyLinks()
{
//diidPinToMyPage for TeamSites.
var MyLinks = document.getElementById("diidPinToMyPage");
if (MyLinks==null)
MyLinks= document.getElementById("TBBPin");
if (MyLinks!=null)
eval(unescape(MyLinks.href));
else
alert("The 'Add to my links' feature is not available on this page.");
}
function EmailPage()
{
window.navigate("mailto:%20?subject=Have a look at this page..&body=<" + document.location.href + ">");
}
function AddToFavorites()
{
window.external.AddFavorite(document.location.href,document.title);
}
function Comments()
{
// You could redirect this to a Survey or some other page.
window.navigate("mailto:Jame"+"s@Mi"+"lne.com?subject=Feedback on Web Page..&body=I would like to give feedback on this page <" + document.location.href + ">");
}
// If we are in Print Preview Mode then Hide a bunch of styles.
if (document.location.href.indexOf('PrintPreview') >0) {
document.write('<style>');
document.write('.jm-toolbar, .ms-navframe,.ms-bannerframe,.ms-sbtable,.ms-searchform,.ms-sbtopcorner,.ms-sblbcorner { display: none; } ');
document.write('div.ms-titleareaframe { border-top: 0px white solid; } ');
document.write('</style>');
print();
}
function ShowStatus(Msg) {
window.status=Msg;
return true;
}
</script>
<table border="0" width="100%" height="25" cellpadding=0 cellspacing=0 class="ms-toolbar jm-toolbar">
<tr>
<td valign=middle>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td >
<span class="oButton" ><a href="#" onclick="PrintPreview();" class="oButton" onmouseover="return ShowStatus('Print Preview');"><img src="/_layouts/images/fax.GIF" border="0" align=absmiddle> Print Version</a></span>
</td>
<script>
if (VerticalOrientation) document.write("</tr><tr>");
</script>
<td >
<span class="oButton"><a href="#" onclick="EmailPage();" class="oButton" onmouseover="return ShowStatus('Email this Page to a Friend');"><img src="/_layouts/images/gmailnew.GIF" border="0" align=absmiddle> Email Page</a></span>
</td>
<script>
if (VerticalOrientation) document.write("</tr><tr>");
</script>
<td >
<span class="oButton"><a href="#" onclick="AddToFavorites();" class="oButton" onmouseover="return ShowStatus('Add this Page to Your Favorites');"><img src="/_layouts/images/star.GIF" border="0" align=absmiddle> Add to Favorites</a></span>
</td>
<script>
if (VerticalOrientation) document.write("</tr><tr>");
</script>
<td >
<span class="oButton"><a href="#" onclick="Comments();" class="oButton" onmouseover="return ShowStatus('Add Comments to this Page');"><img src="/_layouts/images/Keyword.gif" border="0" align=absmiddle> Comments</a></span>
</td>
<script>
if (VerticalOrientation) document.write("</tr><tr>");
</script>
<td >
<span class="oButton"><a href="#" onclick="AlertMe();" class="oButton" onmouseover="return ShowStatus('Place an Alert on this page');"><img src="/_layouts/images/grefresh.GIF" border="0" align=absmiddle> Alert Me</a></span>
</td>
<script>
if (VerticalOrientation) document.write("</tr><tr>");
</script>
<td >
<span class="oButton"><a href="#" onclick="AddToMyLinks();" class="oButton" onmouseover="return ShowStatus('Add this page to My Links');"><img src="/_layouts/images/ReLink.GIF" border="0" align=absmiddle> Add to My Links</a></span>
</td>
<script>
if (VerticalOrientation) document.write("</tr><tr>");
</script>
<td >
<span class="oButton"><a href="#" onclick="AddToMyLinks();" class="oButton" onmouseover="return ShowStatus('Description Here');"><img src="/_layouts/images/ReLink.GIF" border="0" align=absmiddle> Email Helpdesk</a></span>
</td>
</tr>
</table>
</td>
</tr>
</table>
]]></Content>
<PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" />
</WebPart>