SharePoint 2007 页面及用户控件

页面:

SharePoint 2007 页面及用户控件
 1 <%@ Assembly Name="HP.EUSM.Self-ServiceUpgradeQuota.SPCustomAction, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c0bc8231d98f244c" %>

 2 <%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

 3 <%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls"

 4     Assembly="Microsoft.SharePoint, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

 5 

 6 <%@ Page Language="C#" MasterPageFile="~/_layouts/application.master" Inherits="Microsoft.SharePoint.WebControls.LayoutsPageBase" %>

 7 

 8 <%@ Register TagPrefix="Action" TagName="MainControl" Src="~/_controltemplates/SelfserviceUpgradeQuota/MainControl.ascx" %>

 9 <%@ Register TagPrefix="Action" TagName="Navigator" Src="~/_controltemplates/SelfserviceUpgradeQuota/NavigationBanner.ascx" %>

10 <asp:Content ID="AdditionalPageHead" ContentPlaceHolderID="PlaceHolderAdditionalPageHead"

11     runat="server">

12     <SharePoint:cssregistration runat="server" name="core.css" />

13     <link rel="stylesheet" type="text/css" href="/_layouts/hp/Styles.css" />

14     <%--<link rel="stylesheet" type="text/css" href="/_layouts/hp/hp.css" />--%>

15     <SharePoint:scriptlink language="javascript" name="core.js" runat="server" />

16 </asp:Content>

17 <asp:Content ID="PageTitle" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">

18     <SharePoint:encodedliteral runat="server" text="Request more space" encodemethod='HtmlEncode' />

19 </asp:Content>

20 <asp:Content ID="TitleBreadcrumb" ContentPlaceHolderID="PlaceHolderTitleBreadcrumb"

21     runat="server">

22     <Action:Navigator ID="Navigator" runat="server" PageHolderName="Default.aspx" />

23 </asp:Content>

24 <asp:Content ID="PageTitleInTitleArea" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea"

25     runat="server">

26     <a href="..\settings.aspx">

27         <SharePoint:encodedliteral runat="server" text="Site Settings" encodemethod="HtmlEncode" />

28     </a>&#32;<%--<SharePoint:clustereddirectionalseparatorarrow runat="server" />--%>

29     <SharePoint:encodedliteral runat="server" text="Request more space" encodemethod='HtmlEncode' />

30 </asp:Content>

31 <asp:Content ID="PageDescription" ContentPlaceHolderID="PlaceHolderPageDescription"

32     runat="server">

33     <asp:Label runat="server" ID="lblInfo" Text="This page determines the site collection's eligibility for more space.  Please view<a href='../storman.aspx'><u> storage space allocation</u></a> for more details about the content in this site collection." />

34 </asp:Content>

35 <asp:Content ID="Main" ContentPlaceHolderID="PlaceHolderMain" runat="server">

36     <Action:MainControl ID="MainControl" runat="server" />

37 </asp:Content>
View Code

用户控件:

SharePoint 2007 页面及用户控件
  1 <%@ Assembly Name="HP.EUSM.Self-ServiceUpgradeQuota.SPCustomAction, Version=1.0.0.0, Culture=neutral, PublicKeyToken=c0bc8231d98f244c" %>

  2 <%@ Control Language="C#" AutoEventWireup="true" Inherits="HP.EUSM.Self_ServiceUpgradeQuota.SPCustomAction.MainControl" %>

  3 

  4 <table border="0" width="100%" height="100%" cellpadding="0" cellspacing="0" class="ms-main">

  5     <col style="height: 100%; width: 60%;" />

  6     <col style="height: 100%; width: 40%;" />

  7     <tr>

  8         <td class="ms-sectionline" height="1" colspan="2">

  9             <img src="/_layouts/images/blank.gif" width='1' height='1' alt="" />

 10         </td>

 11     </tr>

 12     <tr>

 13         <td class="ms-descriptiontext" valign="top">

 14             <table border="0" cellpadding="1" cellspacing="0" width="100%">

 15                 <tr>

 16                     <td class="ms-sectionheader" style="padding-top: 4px;" height="22" valign="top">

 17                         <h3 class="ms-standardheader ms-inputformheader">

 18                             Storage Space Allocation

 19                         </h3>

 20                     </td>

 21                 </tr>

 22                 <tr>

 23                     <td class="ms-descriptiontext ms-inputformdescription">

 24                     </td>

 25                     <td>

 26                         <img src="/_layouts/images/blank.gif" width='8' height='1' alt="" />

 27                     </td>

 28                 </tr>

 29                 <tr>

 30                     <td>

 31                         <img src="/_layouts/images/blank.gif" width='150' height='19' alt="" />

 32                     </td>

 33                 </tr>

 34             </table>

 35         </td>

 36         <td class="ms-authoringcontrols ms-inputformcontrols" valign="top" align="left">

 37             <table border="0" width="100%" cellspacing="0" cellpadding="0">

 38                 <tr>

 39                     <td width="9px">

 40                         <img src="/_layouts/images/blank.gif" width='9' height='7' alt="" />

 41                     </td>

 42                     <td>

 43                         <img src="/_layouts/images/blank.gif" width='150' height='7' alt="" />

 44                     </td>

 45                     <td width="10px">

 46                         <img src="/_layouts/images/blank.gif" width='10' height='1' alt="" />

 47                     </td>

 48                 </tr>

 49                 <tr>

 50                     <td />

 51                     <td class="ms-authoringcontrols">

 52                         <table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0">

 53                             <tr>

 54                                 <td class="ms-authoringcontrols" style="white-space: nowrap;">

 55                                     <table cellpadding="0" cellspacing="0" border="0" width="100%">

 56                                         <tr class="ms-authoringcontrols">

 57                                             <td class="ms-authoringcontrols">

 58                                                 <asp:Label ID="lbStatistics" runat="server" />

 59                                             </td>

 60                                         </tr>

 61                                     </table>

 62                                 </td>

 63                             </tr>

 64                             <tr>

 65                                 <td>

 66                                     <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

 67                                 </td>

 68                             </tr>

 69                             <tr>

 70                                 <td>

 71                                     <table border="0" width="100%" cellspacing="0" cellpadding="0" style="height: 100%;

 72                                         table-layout: fixed;">

 73                                         <colgroup>

 74                                             <col width="30px" style="white-space: nowrap" />

 75                                             <col width="25px" />

 76                                         </colgroup>

 77                                         <tr>

 78                                             <td>

 79                                                 &nbsp;

 80                                             </td>

 81                                             <td class="datacellkey" nowrap="nowrap">

 82                                                 <span>&nbsp;</span>

 83                                             </td>

 84                                             <td class="ms-authoringcontrols" nowrap="nowrap">

 85                                                 <span class="info_title">&nbsp;Site content&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>:&nbsp;&nbsp;

 86                                                 <asp:Label ID="lbSiteUsage" runat="server" CssClass="ms-descriptiontext" />

 87                                                 <span class="info_unit">&nbsp;</span>

 88                                             </td>

 89                                         </tr>

 90                                         <tr>

 91                                             <td>

 92                                             </td>

 93                                             <td>

 94                                                 <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

 95                                             </td>

 96                                             <td>

 97                                                 <br />

 98                                             </td>

 99                                         </tr>

100                                         <tr id="trashbin" runat="server">

101                                             <td>

102                                                 &nbsp;

103                                             </td>

104                                             <td class="trashbincellkey" id="trashbinkey" nowrap="nowrap">

105                                                 <span>&nbsp;</span>

106                                             </td>

107                                             <td class="ms-authoringcontrols" nowrap="nowrap">

108                                                 <span class="info_title">&nbsp;<a href="../AdminRecycleBin.aspx" style="text-decoration: underline"

109                                                     target="_self">Recycle bin</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>:&nbsp;&nbsp;

110                                                 <asp:Label ID="lbRcyBinConsumed" runat="server" CssClass="ms-descriptiontext" />

111                                                 <span class="info_unit">&nbsp;</span>

112                                             </td>

113                                         </tr>

114                                         <tr id="trashbinBlank" runat="server">

115                                             <td>

116                                             </td>

117                                             <td>

118                                                 <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

119                                             </td>

120                                             <td>

121                                                 <br />

122                                             </td>

123                                         </tr>

124                                         <!-- free space -->

125                                         <tr>

126                                             <td>

127                                                 &nbsp;

128                                             </td>

129                                             <td class="freecellkey" nowrap="nowrap">

130                                                 <span>&nbsp;</span>

131                                             </td>

132                                             <td nowrap="nowrap">

133                                                 <span class="info_title">&nbsp;Free storage&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>:&nbsp;&nbsp;

134                                                 <asp:Label ID="lbAvailableStorage" runat="server" CssClass="ms-descriptiontext" />

135                                                 <span class="info_unit">&nbsp;</span>

136                                             </td>

137                                         </tr>

138                                         <tr>

139                                             <td>

140                                             </td>

141                                             <td>

142                                                 <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

143                                             </td>

144                                             <td>

145                                                 <br />

146                                             </td>

147                                         </tr>

148                                         <tr>

149                                             <td>

150                                                 &nbsp;

151                                             </td>

152                                             <td class="ms-authoringcontrols" nowrap="nowrap" colspan="2" style="width: auto;">

153                                                 <asp:Panel ID="panelSndStageRcybin" runat="server" CssClass="ms-authoringcontrols">

154                                                     <table cellpadding="0" cellspacing="0" border="0" width="100%" class="ms-authoringcontrols">

155                                                         <tr>

156                                                             <td class="trashbincellkey" id="trashbinkey" nowrap="nowrap">

157                                                                 <span>&nbsp;</span>

158                                                             </td>

159                                                             <td nowrap="nowrap" class="ms-authoringcontrols">

160                                                                 <span class="info_title">&nbsp;Reserved for <a href="../AdminRecycleBin.aspx?View=2"

161                                                                     style="text-decoration: underline" target="_self">second stage recycle bin</a>&nbsp;</span>:&nbsp;&nbsp;

162                                                                 <asp:Label ID="lbSndStageRcybin" runat="server" CssClass="ms-descriptiontext" />

163                                                                 <span class="info_unit">&nbsp;</span>

164                                                             </td>

165                                                         </tr>

166                                                         <tr>

167                                                             <td>

168                                                                 <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

169                                                             </td>

170                                                             <td>

171                                                                 <br />

172                                                             </td>

173                                                         </tr>

174                                                         <!-- End Right_Text -->

175                                                         <tr>

176                                                             <td>

177                                                                 <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

178                                                             </td>

179                                                             <td class="ms-authoringcontrols" nowrap="nowrap">

180                                                                 <asp:Panel ID="Panel1" runat="server">

181                                                                     <span style="text-align: justify">&nbsp;</span>

182                                                                     <img src="/_layouts/images/SelfserviceUpgradeQuota/Item.gif" width="5" height="5"

183                                                                         style="vertical-align: middle; height: 5px;" alt="" />

184                                                                     <span style="text-align: justify">A second stage Recycle Bin stores items that you delete

185                                                                         from your Recycle Bin.</span></asp:Panel>

186                                                             </td>

187                                                         </tr>

188                                                         <tr>

189                                                             <td>

190                                                                 <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

191                                                             </td>

192                                                             <td>

193                                                                 <br />

194                                                             </td>

195                                                         </tr>

196                                                     </table>

197                                                 </asp:Panel>

198                                             </td>

199                                         </tr>

200                                     </table>

201                                 </td>

202                             </tr>

203                         </table>

204                     </td>

205                     <td width="10px">

206                         <img src="/_layouts/images/blank.gif" width='10' height='1' alt="" />

207                     </td>

208                 </tr>

209             </table>

210         </td>

211     </tr>

212     <tr>

213         <td class="ms-sectionline" height="1" colspan="2">

214             <img src="/_layouts/images/blank.gif" width='1' height='1' alt="" />

215         </td>

216     </tr>

217     <tr>

218         <td class="ms-descriptiontext" valign="top">

219             <table border="0" cellpadding="1" cellspacing="0" width="100%">

220                 <tr>

221                     <td class="ms-sectionheader" style="padding-top: 4px;" height="22" valign="top">

222                         <h3 class="ms-standardheader ms-inputformheader">

223                             Eligibility

224                         </h3>

225                     </td>

226                 </tr>

227                 <tr>

228                     <td class="ms-descriptiontext ms-inputformdescription">

229                     </td>

230                     <td>

231                         <img src="/_layouts/images/blank.gif" width='8' height='1' alt="" />

232                     </td>

233                 </tr>

234                 <tr>

235                     <td>

236                         <img src="/_layouts/images/blank.gif" width='150' height='19' alt="" />

237                     </td>

238                 </tr>

239             </table>

240         </td>

241         <td class="ms-authoringcontrols ms-inputformcontrols" valign="top" align="left">

242             <table border="0" width="100%" cellspacing="0" cellpadding="0" style="height: 100%">

243                 <colgroup>

244                     <col style="height: 100%; width: 10px;" />

245                     <col style="height: 100%; width: 100%;" />

246                     <col style="height: 100%; width: 10px;" />

247                 </colgroup>

248                 <tr class="ms-authoringcontrols">

249                     <td>

250                         <img src="/_layouts/images/blank.gif" height="7" alt="" />

251                     </td>

252                     <td>

253                         <img src="/_layouts/images/blank.gif" height="7" alt="" />

254                     </td>

255                     <td>

256                         <img src="/_layouts/images/blank.gif" height="1" alt="" />

257                     </td>

258                 </tr>

259                 <tr class="ms-authoringcontrols">

260                     <td />

261                     <td class="ms-authoringcontrols">

262                         <table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0">

263                             <colgroup>

264                                 <col width="15px" style="height: 20px" />

265                                 <col width="99%" style="height: 15px" />

266                             </colgroup>

267                             <tr>

268                                 <td class="ms-authoringcontrols table-td" style="white-space: nowrap;" colspan="2">

269                                     <asp:Literal ID="ltrlPoilcyCheckResult" runat="server" />

270                                     <br />

271                                     <br />

272                                     <asp:Label ID="lbContinuedWorkflow" runat="server" />

273                                 </td>

274                             </tr>

275                             <tr>

276                                 <td colspan="2">

277                                     <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

278                                 </td>

279                             </tr>

280                         </table>

281                         <asp:Panel ID="panelViolateQuota" runat="server" CssClass="ms-authoringcontrols">

282                             <table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0">

283                                 <colgroup>

284                                     <col width="15px" style="height: 100%" />

285                                     <col width="99%" style="height: 100%" />

286                                 </colgroup>

287                                 <tr>

288                                     <td class="ms-authoringcontrols table-td" colspan="2" nowrap="nowrap">

289                                         <span>&nbsp;</span>

290                                     </td>

291                                 </tr>

292                                 <!-- End Right_Text -->

293                                 <tr>

294                                     <td>

295                                         <img src="/_layouts/images/blank.gif" width="15px" height="1" alt="" /><font color="red"><b>&nbsp;-

296                                             &nbsp;</b></font>

297                                     </td>

298                                     <td class="ms-authoringcontrols table-td">

299                                         <img src="/_layouts/images/blank.gif" width="5px" height="1" alt="" />

300                                         <asp:Literal ID="ltrlQuotaViolation" runat="server" />

301                                         <br />

302                                         <br />

303                                     </td>

304                                 </tr>

305                                 <tr>

306                                     <td colspan="2">

307                                         <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

308                                     </td>

309                                 </tr>

310                             </table>

311                         </asp:Panel>

312                         <asp:Panel ID="panelViolateRcyBin" runat="server" CssClass="ms-authoringcontrols">

313                             <table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0">

314                                 <colgroup>

315                                     <col width="15px" style="height: 20px" />

316                                     <col width="99%" style="height: 15px" />

317                                 </colgroup>

318                                 <!-- <tr>

319                                     <td class="ms-authoringcontrols table-td" colspan="2" nowrap="nowrap">

320                                         <span>&nbsp;</span>

321                                     </td>

322                                 </tr>-->

323                                 <!-- End Right_Text -->

324                                 <tr>

325                                     <td>

326                                         <img src="/_layouts/images/blank.gif" width="15px" height="1" alt="" /><font color="red"><b>&nbsp;-

327                                             &nbsp;</b></font>

328                                     </td>

329                                     <td class="ms-authoringcontrols table-td">

330                                         <img src="/_layouts/images/blank.gif" width="5px" height="1" alt="" />

331                                         <asp:Literal ID="ltrlRcyBinViolation" runat="server" />

332                                         <br />

333                                         <br />

334                                     </td>

335                                 </tr>

336                                 <tr>

337                                     <td colspan="2">

338                                         <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

339                                     </td>

340                                 </tr>

341                             </table>

342                         </asp:Panel>

343                         <asp:Panel ID="panelViolateUsage" runat="server" CssClass="ms-authoringcontrols">

344                             <table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0"

345                                 style="height: 100%">

346                                 <colgroup>

347                                     <col width="15px" style="height: 20px" />

348                                     <col width="99%" style="height: 15px" />

349                                 </colgroup>

350                                 <!--<tr>

351                                     <td class="ms-authoringcontrols table-td" colspan="2" nowrap="nowrap">

352                                         <span>&nbsp;</span>

353                                     </td>

354                                 </tr>-->

355                                 <!-- End Right_Text -->

356                                 <tr>

357                                     <td valign="top">

358                                         <img src="/_layouts/images/blank.gif" width="15px" height="1" alt="" /><font color="red"><b>&nbsp;-

359                                             &nbsp;</b></font>

360                                     </td>

361                                     <td class="ms-authoringcontrols table-td">

362                                         <img src="/_layouts/images/blank.gif" width="5px" height="1" alt="" />

363                                         <asp:Literal ID="ltrlUsageViolation" runat="server" />

364                                         <br />

365                                         <br />

366                                     </td>

367                                 </tr>

368                                 <tr>

369                                     <td colspan="2">

370                                         <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

371                                     </td>

372                                 </tr>

373                             </table>

374                         </asp:Panel>

375                         <asp:Panel ID="panelViolateDBSize" runat="server" CssClass="ms-authoringcontrols">

376                             <table class="ms-authoringcontrols" border="0" width="100%" cellspacing="0" cellpadding="0"

377                                 style="height: 100%">

378                                 <colgroup>

379                                     <col width="15px" style="height: 20px" />

380                                     <col width="99%" style="height: 15px" />

381                                 </colgroup>

382                                 <tr>

383                                     <td class="ms-authoringcontrols table-td" colspan="2" nowrap="nowrap">

384                                         <span>&nbsp;</span>

385                                     </td>

386                                 </tr>

387                                 <!-- End Right_Text -->

388                                 <tr>

389                                     <td>

390                                         <img src="/_layouts/images/blank.gif" width="15px" height="1" alt="" /><font color="red"><b>&nbsp;-

391                                             &nbsp;</b></font>

392                                     </td>

393                                     <td class="ms-authoringcontrols table-td">

394                                         <img src="/_layouts/images/blank.gif" width="5px" height="1" alt="" />

395                                         <asp:Literal ID="ltrlDBSizeViolation" runat="server" />

396                                         <br />

397                                         <br />

398                                     </td>

399                                 </tr>

400                                 <tr>

401                                     <td colspan="2">

402                                         <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

403                                     </td>

404                                 </tr>

405                             </table>

406                         </asp:Panel>

407                     </td>

408                     <td>

409                         <img src="/_layouts/images/blank.gif" width="100%" height="1" alt="" />

410                     </td>

411                 </tr>

412                 <tr class="ms-authoringcontrols">

413                     <td />

414                     <td>

415                         <asp:HyperLink ID="lkTarget" runat="server" CssClass="ms-authoringcontrols hide-section" />

416                     </td>

417                     <td />

418                 </tr>

419                 <tr class="ms-authoringcontrols">

420                     <td />

421                     <td>

422                         <img src="/_layouts/images/blank.gif" width="100%" height="13" alt="" />

423                     </td>

424                     <td />

425                 </tr>

426             </table>

427         </td>

428     </tr>

429     <tr>

430         <td class="ms-sectionline" height="1" colspan="2">

431             <img src="/_layouts/images/blank.gif" width='1' height='1' alt="" />

432         </td>

433     </tr>

434     <tr>

435         <td height="10px" class="ms-descriptiontext" colspan="2">

436             <img src="/_layouts/images/blank.gif" width="1" height="10" alt="" />

437         </td>

438     </tr>

439     <tr>

440         <td colspan="2">

441             <table cellpadding="0" cellspacing="0" width="100%">

442                 <colgroup>

443                     <col width="99%" />

444                     <col width="1%" />

445                 </colgroup>

446                 <tr>

447                     <td>

448                         &#160;

449                     </td>

450                     <td nowrap="nowrap">

451                         <asp:Button ID="BtnUpgradeQuota" runat="server" Text="" CssClass="ms-ButtonHeightWidth"

452                             OnClick="OnBtnUpgradeQuotaClick" />

453                         <asp:Button ID="BtnCancel" runat="server" Text="Cancel" CssClass="ms-ButtonHeightWidth"

454                             OnClick="OnBtnCancelClick" />

455                     </td>

456                 </tr>

457             </table>

458         </td>

459     </tr>

460     <tr>

461         <td height="10px" class="ms-descriptiontext" colspan="2">

462             <asp:Label ID="lbErrMsg" runat="server" ForeColor="Red" Text="" />

463         </td>

464         <td height="10px" class="ms-descriptiontext">

465             <img src="/_layouts/images/blank.gif" width="1" height="10" alt="" />

466         </td>

467     </tr>

468     <tr>

469         <td height="10px" class="ms-descriptiontext" colspan="2">

470             <img src="/_layouts/images/blank.gif" width="1" height="10" alt="" />

471         </td>

472     </tr>

473     <tr>

474         <td class="ms-descriptiontext" style="height: 10px;">

475         </td>

476         <td class="ms-descriptiontext" style="height: 10px;">

477             <img src="/_layouts/images/blank.gif" width="1" height="10" alt="" />

478         </td>

479     </tr>

480     <tr>

481         <td class="ms-descriptiontext" colspan="2" style="text-align: center; height: 40px;">

482             <img src="/_layouts/images/blank.gif" width="1" height="40" alt="" />

483         </td>

484     </tr>

485 </table>
View Code

 

 

 

你可能感兴趣的:(SharePoint)