Sei sulla pagina 1di 20

<%@ Page language="C#" MasterPageFile="~masterurl/default.master" Inherits="M icrosoft.SharePoint.WebPartPages.WebPartPage,Microsoft.SharePoint,Version=14.0.0 .0,Culture=neutral,PublicKeyToken=71e9bce111e9429c" meta:progid="SharePoint.WebP artPage.Document" meta:webpartpageexpansion="full" %> <%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.

WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyTok en=71e9bce111e9429c" %> <%@ Register Tagprefix="Utilities" Namespace="Microsoft. SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture= neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Import Namespace="Microsoft.Sha rePoint" %> <%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Cultur e=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register Tagprefix="WebPartPa ges" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoin t, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> <%@ Register TagPrefix="SharePointPortalControls" Namespace="Microsoft.SharePoin t.Portal.WebControls" Assembly="Microsoft.SharePoint.Portal, Version=14.0.0.0, C ulture=neutral, PublicKeyToken=71e9bce111e9429c" %> <asp:Content ContentPlaceHolderId="PlaceHolderPageTitle" runat="server"> <SharePoint:EncodedLiteral runat="server" text="<%$Resources:wss,multipa ges_homelink_text%>" EncodeMethod='HtmlEncode'/> - <SharePoint:ProjectProperty Property="Title" runat="server"/> </asp:Content> <asp:Content ContentPlaceHolderId="PlaceHolderPageImage" runat="server"> <asp:ScriptManagerProxy runat="server" id="ScriptManagerProxy"> </asp:ScriptManagerProxy> <img src="/_layouts/images/blank.gif" width='1' height='1' alt="" /></as p:Content> <asp:Content ContentPlaceHolderId="PlaceHolderPageTitleInTitleArea" runat="serve r"> <label class="ms-hidden"> <SharePoint:ProjectProperty Property="Title" runat="serv er"/></label> </asp:Content> <asp:Content ContentPlaceHolderId="PlaceHolderTitleAreaClass" runat="server"> <SharePoint:UIVersionedContent runat="server" UIVersion="<=3"> <ContentTemplate> <style type="text/css"> td.ms-titleareaframe, .ms-pagetitleareaframe { height: 10px; } div.ms-titleareaframe { height: 100%; } .ms-pagetitleareaframe table { background: none; height: 10px; } </style> </ContentTemplate> </SharePoint:UIVersionedContent> </asp:Content> <asp:Content ContentPlaceHolderId="PlaceHolderAdditionalPageHead" runat="server" > <SharePoint:RssLink runat="server"/> <SharePoint:CssRegistration runat="server" name="Themable/blog.css"> </SharePoint:CssRegistration> </asp:Content> <asp:Content ContentPlaceHolderId="PlaceHolderSearchArea" runat="server"> <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/>

</asp:Content> <asp:Content ContentPlaceHolderId="PlaceHolderLeftNavBar" runat="server"> <SharePoint:UIVersionedContent UIVersion="3" runat="server"> <ContentTemplate> <div class="ms-BlogNavigator"> <div class="ms-quicklaunchouter"> <div class="ms-quickLa unch" style="width:100%"> <Sharepoint:SPSecurityTrimmedControl runat="server" Perm issionsString="ViewFormPages"> <div class="ms-quicklaunchheader"><SharePoint:SP LinkButton id="idNavLinkViewAllV3" runat="server" NavigateUrl="~site/_layouts/vi ewlsts.aspx" Text="<%$Resources:wss,quiklnch_allcontent%>" accesskey="<%$Resourc es:wss,quiklnch_allcontent_AK%>"/></div> </SharePoint:SPSecurityTrimmedControl> </ContentTemplate> </SharePoint:UIVersionedContent> <SharePoint:UIVersionedContent UIVersion="4" runat="server"> <ContentTemplate> <div class="ms-quicklaunchouter" style="word-wrap:breakword;overflow-x:hidden;"> <div class="ms-quickLaunch"> <h2 style="display:inline;" class="ms-hidden"><SharePoin t:EncodedLiteral runat="server" text="<%$Resources:wss,quiklnch_pagetitle%>" Enc odeMethod="HtmlEncode"/></h2> <div> </ContentTemplate> </SharePoint:UIVersionedContent> <WebPartPages:WebPartZone runat="server" FrameType="TitleBarOnly " ID="BlogNavigator" Title="loc:BlogNavigator" AllowPersonalization="false"><Zon eTemplate> <WebPartPages:XsltListViewWebPart runat="server" Description="Us e the Categories list to define the categories available for posts." ListDisplay Name="" PartOrder="2" HelpLink="" AllowRemove="True" IsVisible="True" AllowHide= "True" UseSQLDataSourcePaging="True" ExportControlledProperties="False" IsInclud edFilter="" DataSourceID="" Title="Categories" ViewFlag="4194477" NoDefaultStyle ="" AllowConnect="True" FrameState="Normal" PageSize="-1" PartImageLarge="" Asyn cRefresh="False" ExportMode="NonSensitiveData" Dir="Default" DetailLink="/sites/ its/SD/KB/Lists/Categories" ShowWithSampleData="False" ListId="c65bdb91-b99d-483 6-9a77-d26655e97306" ListName="{C65BDB91-B99D-4836-9A77-D26655E97306}" FrameType ="None" PartImageSmall="" IsIncluded="True" SuppressWebPartChrome="False" AllowE dit="True" ViewGuid="{52EB1ABA-4C86-43B2-96CA-1EBC62B1F459}" ChromeType="None" A utoRefresh="False" AutoRefreshInterval="60" AllowMinimize="True" WebId="00000000 -0000-0000-0000-000000000000" ViewContentTypeId="0x" InitialAsyncDataFetch="Fals e" GhostedXslLink="blog.xsl" MissingAssembly="Cannot import this Web Part." Help Mode="Modeless" ListUrl="" ID="g_52eb1aba_4c86_43b2_96ca_1ebc62b1f459" Connectio nID="00000000-0000-0000-0000-000000000000" AllowZoneChange="True" TitleUrl="/sit es/its/SD/KB/Lists/Categories" ManualRefresh="False" __MarkupType="vsattributema rkup" __WebPartId="{52EB1ABA-4C86-43B2-96CA-1EBC62B1F459}" __AllowXSLTEditing="t rue" __designer:CustomXsl="fldtypes_Ratings.xsl" WebPart="true" Height="" Width= ""><ParameterBindings> <ParameterBinding Name="dvt_sortdir" Location="Postback; Connection"/> <ParameterBinding Name="dvt_sortfield" Location="Postbac k;Connection"/> <ParameterBinding Name="dvt_startposition" Location="Pos tback" DefaultValue=""/> <ParameterBinding Name="dvt_firstrow" Location="Postback ;Connection"/> <ParameterBinding Name="OpenMenuKeyAccessible" Location= "Resource(wss,OpenMenuKeyAccessible)" />

<ParameterBinding Name="open_menu" Location="Resource(ws s,open_menu)" /> <ParameterBinding Name="select_deselect_all" Location="R esource(wss,select_deselect_all)" /> <ParameterBinding Name="idPresEnabled" Location="Resourc e(wss,idPresEnabled)" /> <ParameterBinding Name="NoAnnouncements" Location="Resou rce(wss,noXinviewofY_LIST)" /> <ParameterBinding Name="NoAnnouncementsHowTo" Location=" Resource(core,noXinviewofY_DEFAULT)" /> <ParameterBinding Name="AddNewAnnouncement" Location="Re source(wss,addnewitem)" /> <ParameterBinding Name="MoreAnnouncements" Location="Res ource(wss,moreItemsParen)" /> </ParameterBindings> <XmlDefinition> <View Name="{52EB1ABA-4C86-43B2-96CA-1EBC62B1F459}" Type ="HTML" Hidden="TRUE" ReadOnly="TRUE" FreeForm="TRUE" OrderedView="TRUE" Display Name="" Url="/sites/its/SD/KB/Lists/Posts/Post.aspx" Level="255" BaseViewID="0" ContentTypeID="0x" CssStyleSheet="blog.css"> <Query> <OrderBy> <FieldRef Name="Title" Ascending ="TRUE"/> </OrderBy> </Query> <ViewFields> <FieldRef Name="CategoryWithLink"/> </ViewFields> <Toolbar Type="Freeform"/> </View> </XmlDefinition> <DataFields> </DataFields> </WebPartPages:XsltListViewWebPart> <WebPartPages:BlogMonthQuickLaunch runat="server" __MarkupType="xmlmarkup" WebPa rt="true" __WebPartId="{FD994588-2D8A-4D0C-96EF-C3CB2F11BDBA}" > <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>Archives</Title><FrameType>None</FrameType><Description>Archives</Descr iption><IsIncluded>true</IsIncluded><ZoneID>BlogNavigator</ZoneID><PartOrder>4</ PartOrder><FrameState>Normal</FrameState><Height /><Width /><AllowRemove>true</A llowRemove><AllowZoneChange>true</AllowZoneChange><AllowMinimize>true</AllowMini mize><AllowConnect>true</AllowConnect><AllowEdit>true</AllowEdit><AllowHide>true </AllowHide><IsVisible>true</IsVisible><DetailLink /><HelpLink /><HelpMode>Model ess</HelpMode><Dir>Default</Dir><PartImageSmall /><MissingAssembly>Cannot import this Web Part.</MissingAssembly><PartImageLarge /><IsIncludedFilter /><ExportCo ntrolledProperties>true</ExportControlledProperties><ConnectionID>00000000-00000000-0000-000000000000</ConnectionID><ID>g_fd994588_2d8a_4d0c_96ef_c3cb2f11bdba< /ID><ListName xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor">{811 BC86C-7823-4B25-B7FB-05AD799DC0D4}</ListName></WebPart></WebPartPages:BlogMonthQ uickLaunch> </ZoneTemplate></WebPartPages:WebPartZone> <SharePoint:UIVersionedContent UIVersion="3" runat="server"> <ContentTemplate> </div> </div> </div>

</ContentTemplate> </SharePoint:UIVersionedContent> <SharePoint:UIVersionedContent UIVersion="4" runat="server"> <ContentTemplate> </div> <Sharepoint:SPSecurityTrimmedControl runat="server" Perm issionsString="ViewFormPages"> <ul class="s4-specialNavLinkList"> <li> <SharePoint:ClusteredSPL inkButton runat="server" NavigateUrl="~si te/_layouts/recyclebin.aspx" ImageClass="s4-s pecialNavIcon" ImageUrl="/_layo uts/images/fgimg.png" ImageWidth=16 ImageHeight=16 OffsetX=0 OffsetY=428 id="idNavLinkRec ycleBin" Text="<%$Resourc es:wss,StsDefault_RecycleBin%>" CssClass="s4-rcy cl" PermissionsStrin g="DeleteListItems" /> </li> <li> <SharePoint:ClusteredSPL inkButton id="idNavLinkVie wAllV4" runat="server" PermissionsStrin g="ViewFormPages" NavigateUrl="~si te/_layouts/viewlsts.aspx" ImageClass="s4-s pecialNavIcon" ImageUrl="/_layo uts/images/fgimg.png" ImageWidth=16 ImageHeight=16 OffsetX=0 OffsetY=0 Text="<%$Resourc es:wss,quiklnch_allcontent_short%>" accesskey="<%$Re sources:wss,quiklnch_allcontent_AK%>"/> </li> </ul> </SharePoint:SPSecurityTrimmedControl> </div> </div> </ContentTemplate> </SharePoint:UIVersionedContent>

</asp:Content> <asp:Content ContentPlaceHolderId="PlaceHolderBodyAreaClass" runat="server"> <style type="text/css"> .ms-bodyareaframe { padding: 0px; } </style> </asp:Content> <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <table id="MSO_ContentTable" MsoPnlId="layout" cellpadding="4" cellspaci ng="0" border="0" width="100%"> <SharePoint:UIVersionedContent UIVersion="4" runat="server"> <ContentTemplate> <tr valign="top" class="s4-die"> <td class="ms-pagebreadcrumb"> <asp:SiteMapPath SiteMapProvider="SPContentMapProvider" id="C ontentMap" SkipLinkText="" NodeStyle-CssClass="ms-sitemapdirectional" runat="ser ver"/> </td> </tr> </ContentTemplate> </SharePoint:UIVersionedContent> <tr> <td class="ms-webpartpagedescription"> <SharePoint:ProjectProperty Property="Description" runat ="server"/></td> </tr> <tr> <td> <table cellpadding="0" cellspacing="0" style="width:100%;paddi ng: 5px 10px 10px 10px;" class="birefpost"> <tr> <td valign="top"> <WebPartPages:WebPartZone runat="server" FrameTy pe="TitleBarOnly" ID="Left" Title="loc:Left" AllowPersonalization="false"><ZoneT emplate> <WebPartPages:ContentEditorWebPart runat="server" __MarkupType="xmlmarkup" WebPa rt="true" __WebPartId="{C90E6EB5-3D9F-433F-8632-FECE4D94106F}" > <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>Content Editor</Title> <FrameType>None</FrameType> <Description>Allows authors to enter rich text content.</Description> <IsIncluded>true</IsIncluded> <PartOrder>2</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>Cannot import this Web Part.</MissingAssembly> <PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge> <IsIncludedFilter /> <ExportControlledProperties>true</ExportControlledProperties> <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID> <ID>g_c90e6eb5_3d9f_433f_8632_fece4d94106f</ID> <ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" /> <Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDAT A[<style> .feedback td { border-bottom:10px; } .ms-RadioText { line-height:2em; } .birefpost td,.birefpost,body{ font-family:Arial !important; } .desctext { border-bottom: 1px dotted; padding: 0 0 10px; } .ms-RadioText input {float:left !important;margin-left:2px !important;} </style> <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jque ry/1.6.1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready(function () { checkCookie(); initcount(); for (var j = 0; j <$("#categories").find("a").length; j++) { var id=("cate" + j); $("#categories").find("a")[j].href="../Categories/Category.aspx?Cate goryId="+querySt1("ID",$("#categories").find("a")[j].href.substring(1))+ "&Name= " + $("#categories").find("a")[j].text; $("#categories").find("a")[j].onclick =""; } }); function querySt1(ji,hu) { //alert(hu); gy = hu.split("&"); for (i = 0; i < gy.length; i++) { ft = gy[i].split("="); if (ft[0] == ji) { return ft[1]; } } }

var var var var

Post; contenxt; web; list; function initcount() { context = new SP.ClientContext.get_current(); web = context.get_web(); list = web.get_lists().getByTitle('Posts'); this.Post = list.getItemById(querySt("ID")); context.load(Post, 'Hit_x0020_Count'); context.executeQueryAsync(Function.createDelegate(this, this.onPostSucce Function.createDelegate(this, this.onPostFail));

ss),

} function onPostSuccess() { var pageview = Post.get_item('Hit_x0020_Count'); var count; if (pageview == null || pageview == '0') { count='1'; } else { count=(eval(pageview)+ 1); } Post.set_item('Hit_x0020_Count', (eval(count))); Post.update(); context.executeQueryAsync(Function.createDelegate(this, this.onSuccess), Function.createDelegate(this, this.onFail)); } function onPostFail() { alert('failed to get list. Error:' + args.get_message()); } function onSuccess() { //alert('success'); } function onFail(sender, args) { alert('failed. Message:' + args.get_message()); } function getCookie(c_name) { var i, x, y, ARRcookies = document.cookie.split(";"); for (i = 0; i < ARRcookies.length; i++) { x = ARRcookies[i].substr(0, ARRcookies[i].indexOf("=")); y = ARRcookies[i].substr(ARRcookies[i].indexOf("=") + 1); x = x.replace(/^\s+|\s+$/g, ""); if (x == c_name) { return unescape(y); } } } function setCookie(c_name, value, exdays) { var exdate = new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value = escape(value) + ((exdays == null) ? "" : "; expires=" + exdate.toUTCString()); document.cookie = c_name + "=" + c_value; } function checkCookie() {

var cookiename = "submit" + querySt("ID"); var submit = getCookie(cookiename); if ((submit == null && submit == "")|| submit == undefined ) { setCookie(cookiename, "submit" , 1); } else { //setCookie(cookiename, "submit" , 1); // alert(cookiename ); // alert(submit); $("#feedbackform").attr("style","display:none"); $("#feedbackstar").attr("style","display:none"); $("#errsuccess").text("Thank you for sumbitting your valuable feedback. We will process this as our higher priority."); $("#errsuccess").attr('style','background:Green;color:white;width:50%;padding:5p x;font-weight:bold;'); } } function querySt(ji) { hu = window.location.search.substring(1); gy = hu.split("&"); for (i = 0; i < gy.length; i++) { ft = gy[i].split("="); if (ft[0] == ji) { return ft[1]; } } } function Insert() { try { var radioAH=""; var flag=false; for (var i = 0; i < $('[name="Articlerdbutton"]').length; i++) { if($("#"+$('[name="Articlerdbutton"]')[i].id).is(':checked')) { radioAH =$("#"+$('[name="Articlerdbutton"]')[i].id).val(); flag=true; break; } } if(flag) { if($('[name="Articlerdbutton"]').length) context = new SP.ClientContext.get_current(); web = context.get_web(); var listfeed = web.get_lists().getByTitle('Feedback'); var listItemCreationInfo = new SP.ListItemCreationInformation(); var newItem = listfeed .addItem(listItemCreationInfo); newItem.set_item('Title', radioAH); newItem.set_item('FreeText', $("#freetext").val()); newItem.set_item('Post_x0020_ID', querySt("ID")); newItem.update(); context.executeQueryAsync(Function.createDelegate(this, this.Success ), Function.createDelegate(this, this.Fail));

} else { $("#errsuccess").attr('style','background:maroon;color:white;width:50%;p adding:5px;font-weight:bold;'); if( jQuery.trim($("#freetext").val()) == '') { $("#errsuccess").text("Please select any one of the selection or enter data in the free textbox"); } } } catch (e) { alert('error:' + e.Message); } } function Success(sender, args) { $("#feedbackform").attr("style","display:none"); $("#feedbackstar").attr("style","display:none"); $("#errsuccess").attr('style','background:Green;color:white;width:50%;pad ding:5px;font-weight:bold;'); $("#errsuccess").text("Thank you for sumbitting your valuable feedback.We w ill process this as our higher priority."); } function Fail(sender, args) { alert('failed to get list. Error:' + args.get_message()); } function Print() { var arr=querySt("ID"); window.open('../../Print.aspx?KB='+arr, 'Print', 'width=700, hei ght=500, scrollbars=yes, status=no, toolbar=no, menubar=no, location=no'); } </script> ]]></Content> <PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" /> </WebPart> </WebPartPages:ContentEditorWebPart> <WebPartPages:DataFormWebPart runat="server" Description="" PartOrder="4" HelpLi nk="" AllowRemove="True" IsVisible="True" AllowHide="True" UseSQLDataSourcePagin g="True" ExportControlledProperties="True" DataSourceID="" Title="Posts" ViewFla g="8" NoDefaultStyle="TRUE" AllowConnect="True" FrameState="Normal" PageSize="10 " PartImageLarge="" AsyncRefresh="False" ExportMode="All" Dir="Default" DetailLi nk="" ShowWithSampleData="False" ListId="811bc86c-7823-4b25-b7fb-05ad799dc0d4" L istName="{811BC86C-7823-4B25-B7FB-05AD799DC0D4}" FrameType="None" PartImageSmall ="" IsIncluded="True" SuppressWebPartChrome="False" AllowEdit="True" ManualRefre sh="False" ChromeType="None" AutoRefresh="False" AutoRefreshInterval="60" AllowM inimize="True" ViewContentTypeId="" InitialAsyncDataFetch="False" MissingAssembl y="Cannot import this Web Part." HelpMode="Modeless" ID="g_85312020_e3c9_481d_af 8e_ffff7626de20" ConnectionID="00000000-0000-0000-0000-000000000000" AllowZoneCh ange="True" IsIncludedFilter="" __MarkupType="vsattributemarkup" __WebPartId="{8 5312020-E3C9-481D-AF8E-FFFF7626DE20}" __AllowXSLTEditing="true" WebPart="true" H eight="" Width=""><ParameterBindings> <ParameterBinding Name="dvt_apos" Locati on="Postback;Connection"/> <ParameterBinding Name="ManualRefresh" L

ocation="WPProperty[ManualRefresh]"/> <ParameterBinding Name="UserID" Location ="CAMLVariable" DefaultValue="CurrentUserName"/> <ParameterBinding Name="Today" Location= "CAMLVariable" DefaultValue="CurrentDate"/> <ParameterBinding Name="dvt_startpositio n" Location="Postback" DefaultValue=""/> <ParameterBinding Name="dvt_firstrow" Lo cation="Postback;Connection"/> <ParameterBinding Name="dvt_nextpagedata " Location="Postback;Connection"/> <ParameterBinding Name="ListID" Location ="None" DefaultValue="{811BC86C-7823-4B25-B7FB-05AD799DC0D4}"/> <ParameterBinding Name="Param1" Location ="QueryString(ID)" DefaultValue=""/> </ParameterBindings> <DataFields> @KB_x0020_Number,KB Number;@Title,Title;@Body,Resolution;@PostCategory,Category; @PublishedDate,Published;@Source_x0020_URL,Source URL;@_ModerationComments,Appro ver Comments;@NumComments,# Comments;@_ModerationStatus,Approval Status;@Average Rating,Rating (0-5);@RatingCount,Number of Ratings;@Problem0,Problem;@Issue,Issu e;@Summary,Summary;@Additional_x0020_Information,Additional Information;@Hit_x00 20_Count,Hit Count;@ID,ID;@ContentType,Content Type;@Modified,Modified;@Created, Created;@Author,Created By;@Editor,Modified By;@_UIVersionString,Version;@Attach ments,Attachments;@File_x0020_Type,File Type;@FileLeafRef,Name (for use in forms );@FileDirRef,Path;@FSObjType,Item Type;@_HasCopyDestinations,Has Copy Destinati ons;@_CopySource,Copy Source;@ContentTypeId,Content Type ID;@_UIVersion,UI Versi on;@Created_x0020_Date,Created;@FileRef,URL Path;@ItemChildCount,Item Child Coun t;@FolderChildCount,Folder Child Count;</DataFields> <Xsl>

<xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" xmlns:d="http://schem as.microsoft.com/sharepoint/dsp" version="1.0" exclude-result-prefixes="xsl msxs l ddwrt" xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://sch emas.microsoft.com/WebParts/v2/DataView/designer" xmlns:xsl="http://www.w3.org/1 999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:SharePoint ="Microsoft.SharePoint.WebControls" xmlns:ddwrt2="urn:frontpage:internal"> <xsl:output method="html" indent="no"/> <xsl:decimal-format NaN=""/> <xsl:param name="dvt_apos">&apos;</xsl:p aram> <xsl:param name="ManualRefresh"></xsl:pa ram> <xsl:param name="dvt_firstrow">1</xsl:pa ram> <xsl:param name="dvt_nextpagedata" /> <xsl:param name="ListName">Comments</xsl:param> <xsl:param name="Param1" /> <xsl:param name="Param2" /> <xsl:variable name="dvt_1_automode">0</x sl:variable>

<xsl:template match="/" xmlns:x="http://

www.w3.org/2001/XMLSchema" xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" xmlns:asp="http://schemas.microsoft.com/ASPNET/20" xmlns:__designer="http://sch emas.microsoft.com/WebParts/v2/DataView/designer" xmlns:SharePoint="Microsoft.Sh arePoint.WebControls"> <xsl:choose> <xsl:when test="($Manual Refresh = 'True')"> <table width="100%" border="0" cellpadding="0" c ellspacing="0"> <tr> <td valign="top"> <xsl:call-template name= "dvt_1"/> </td> <td width="1%" class="ms-vb" val ign="top"> <img src="/_layouts/imag es/staticrefresh.gif" id="ManualRefresh" border="0" onclick="javascript: {ddwrt: GenFireServerEvent('__cancel')}" alt="Click here to refresh the dataview."/> </td> </tr> </table> </xsl:when> <xsl:otherwise> <xsl:call-templa te name="dvt_1"/> </xsl:otherwise> </xsl:choose> </xsl:template> <xsl:template name="dvt_1"> <xsl:variable name="dvt_StyleNam e">RepForm3</xsl:variable> <xsl:variable name="Rows" select ="/dsQueryResponse/Rows/Row"/> <xsl:variable name="dvt_RowCount " select="count($Rows)"/> <xsl:variable name="RowLimit" se lect="1" /> <xsl:variable name="FirstRow" se lect="$dvt_firstrow" /> <xsl:variable name="LastRow" sel ect="$FirstRow + $dvt_RowCount - 1" /> <xsl:variable name="IsEmpty" sel ect="$dvt_RowCount = 0" /> <xsl:variable name="dvt_IsEmpty" select="$dvt_RowCount = 0"/> <xsl:choose> <xsl:when test="$dvt_IsE mpty"> <xsl:call-templa te name="dvt_1.empty"/> </xsl:when> <xsl:otherwise> <table border="0" width="100%"> <xsl:call-template name="dvt_1.body"> <xsl:with-param name="Rows" sele ct="$Rows"/> <xsl:with-param name="FirstRow"

select="1" /> <xsl:with-param name="LastRow" s elect="$LastRow - $FirstRow + 1" /> </xsl:call-template> </table> </xsl:otherwise> </xsl:choose> <xsl:call-template name="dvt_1.c ommandfooter"> <xsl:with-param name="Fi rstRow" select="$FirstRow" /> <xsl:with-param name="La stRow" select="$LastRow" /> <xsl:with-param name="Ro wLimit" select="$RowLimit" /> <xsl:with-param name="dv t_RowCount" select="$dvt_RowCount" /> <xsl:with-param name="Re alLastRow" select="number(ddwrt:NameChanged('',-100))" /> </xsl:call-template> </xsl:template> <xsl:template name="dvt_1.body"> <xsl:param name="Rows"/> <xsl:param name="FirstRow" /> <xsl:param name="LastRow" /> <xsl:for-each select="$Rows"> <xsl:variable name="dvt_ KeepItemsTogether" select="false()" /> <xsl:variable name="dvt_ HideGroupDetail" select="false()" /> <xsl:if test="(position( ) &gt;= $FirstRow and position() &lt;= $LastRow) or $dvt_KeepItemsTogether"> <xsl:if test="no t($dvt_HideGroupDetail)" ddwrt:cf_ignore="1"> <xsl:cal l-template name="dvt_1.rowview" /> </xsl:if> </xsl:if> </xsl:for-each> </xsl:template> <xsl:template name="dvt_1.rowview"> <tr> <td> <table border="0" cellspacing="0" width="75%" > <tr><td><div style="float:right"><a href="javasc ript:Print()"><img alt="Print this page" style="border:none;" src="http://suppor t.microsoft.com/library/images/support/CN/printer_20x.png" /></a></div></td></tr > <tr> <td> KB : <xsl:value-of sele ct="format-number(@ID,'00000')"/> <xsl:text> </xsl:text> - <xsl:text> </xsl:te xt> Created by :<xsl:value-of select="@Author" disable-output-escaping="yes"/> <br/> <div style="padding:0 0 10px"> Rating : <xsl:if test="@AverageRa ting &gt;= 4.75"> <span>

<a class="ms-currentRating"><img class="ms-rating_5" style="padding-top: 2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 5 stars. " /></a> </span> </xsl:if> <xsl:if test="@AverageRating &gt;= 4.25 and @AverageRating &lt; 4.75"> <span> <a class="ms-currentRating"><img class="ms-rating_4_5" style="padding-to p:2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 4.5 st ars." /></a> </span> </xsl:if> <xsl:if test="@AverageRating &gt;= 3.75 and @AverageRating &lt; 4.25"> <span> <a class="ms-currentRating"><img class="ms-rating_4" style="padding-top: 2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 4 stars. " /></a> </span> </xsl:if> <xsl:if test="@AverageRating &gt;= 3.25 and @AverageRating &lt; 3.75"> <span> <a class="ms-currentRating"><img class="ms-rating_3_5" style="padding-to p:2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 3.5 st ars." /></a> </span> </xsl:if> <xsl:if test="@AverageRating &gt;= 2.75 and @AverageRating &lt; 3.25"> <span> <a class="ms-currentRating"><img class="ms-rating_3" style="padding-top: 2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 3 stars. " /></a> </span> </xsl:if> <xsl:if test="@AverageRating &gt;= 2.25 and @AverageRating &lt; 2.75"> <span> <a class="ms-currentRating"><img class="ms-rating_2_5" style="padding-to p:2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 2.5 st ars." /></a> </span> </xsl:if> <xsl:if test="@AverageRating &gt;= 1.75 and @AverageRating &lt; 2.25"> <span> <a class="ms-currentRating"><img class="ms-rating_2" style="padding-top: 2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 2 stars. " /></a> </span> </xsl:if> <xsl:if test="@AverageRating &gt;= 1.25 and @AverageRating &lt; 1.75"> <span> <a class="ms-currentRating"><img class="ms-rating_1_5" style="padding-to p:2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 1.5 st ars." /></a> </span> </xsl:if> <xsl:if test="@AverageRating &lt; 1.25"> <span> <a class="ms-currentRating"><img class="ms-rating_1" style="padding-top: 2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 1 star." /></a> </span>

</xsl:if> <xsl:if test="@AverageRating = ''"> <span> <a class="ms-currentRating"><img class="ms-rating_0" style="padding-top: 2px;" src="/_layouts/Images/Ratings.png" alt="Current average rating is 0 star." /></a> </span> </xsl:if> <xsl:text> </xsl:text> Pageviews : <xsl:text> </xsl:text><xsl:if test="@ Hit_x0020_Count &gt; 0 "> <xsl:value-of select="@Hit_x0020_Count+1"></xsl:valueof></xsl:if><xsl:if test="@Hit_x0020_Count = 'NaN'"> <xsl:text>1</xsl:text> </xs l:if> </div> </td> </tr> <tr > <td width="75%" class="m s-vb" style="padding-bottom: 10px;"> <h2><xsl:value-of select ="@Title"/></h2> <div id="categories"> <x sl:value-of select="@PostCategory" disable-output-escaping="yes"/></div> </td> </tr> <xsl:if test="string-length(@Summary) &g t; 20"> <tr> <td width="75%" class="ms-vb" st yle="padding-bottom: 10px;"> <h3><b>Summary:</b></h3> <div class="desctext" >< xsl:value-of select="@Summary" disable-output-escaping="yes"/></div> </td> </tr> </xsl:if> <xsl:if test="string-length(@Problem) &g t; 20"> <tr > <td width="75%" class="ms-vb" st yle="padding-bottom: 10px;"> <h3><b>Problem:</b></h3> <div class="desctext" >< xsl:value-of select="@Problem" disable-output-escaping="yes"/></div> </td> </tr> </xsl:if> <xsl:if test="string-length(@Issue) &gt; 20"> <tr > <td width="75%" class="ms-vb" st yle="padding-bottom: 10px;"> <h3><b>Issue:</b></h3> <div class="desctext" >< xsl:value-of select="@Issue" disable-output-escaping="yes"/></div> </td> </tr> </xsl:if>

<xsl:if test="string-length(@Body) &gt; 20"> <tr> <td width="75%" class="ms-vb" st yle="padding-bottom: 10px;"> <h3><b>Resolution:</b></ h3> <div class="desctext" >< xsl:value-of select="@Body" disable-output-escaping="yes"/></div> </td> </tr> </xsl:if> <xsl:if test="string-length(@Additional_x0020_Information) &gt; 20"> <tr> <td width="75%" class="ms-vb" st yle="padding-bottom: 10px;"> <h3><b>Additional Inform ation:</b></h3> <div class="desctext" >< xsl:value-of select="@Additional_x0020_Information" disable-output-escaping="yes "/></div> </td> </tr> </xsl:if> <xsl:if test="$dvt_1_automode = '1'" ddw rt:cf_ignore="1"> <tr> <td colspan="99" class=" ms-vb"> <span ddwrt:amke yfield="ID" ddwrt:amkeyvalue="ddwrt:EscapeDelims(string(@ID))" ddwrt:ammode="vie w"></span> </td> </tr> </xsl:if> </table> </td> </tr> </xsl:template> <xsl:template name="dvt_1.empty"> <xsl:variable name="dvt_ViewEmpt yText">There are no items to show in this view.</xsl:variable> <table border="0" width="100%"> <tr> <td class="ms-vb"> <xsl:value-of select="$dvt_ViewEmptyText "/> </td> </tr> </table> </xsl:template> <xsl:template name="dvt_1.commandfooter" > <xsl:param name="FirstRow" /> <xsl:param name="LastRow" /> <xsl:param name="RowLimit" /> <xsl:param name="dvt_RowCount" / >

<xsl:param name="RealLastRow" /> </xsl:template> <xsl:template name="dvt_1.navigation"> <xsl:param name="FirstRow" /> <xsl:param name="LastRow" /> <xsl:param name="RowLimit" /> <xsl:param name="dvt_RowCount" / > <xsl:param name="RealLastRow" /> <xsl:variable name="PrevRow"> <xsl:choose> <xsl:when test=" $FirstRow - $RowLimit &lt; 1">1</xsl:when> <xsl:otherwise> <xsl:value-of select="$FirstRow - $RowLi mit" /> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="LastRowValue "> <xsl:choose> <xsl:when test=" $LastRow &gt; $RealLastRow"> <xsl:value-of select="$LastRow"></xsl:va lue-of> </xsl:when> <xsl:otherwise> <xsl:value-of select="$RealLastRow"></xs l:value-of> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:variable name="NextRow"> <xsl:value-of select="$LastRowValue + 1"></xsl:value-of> </xsl:variable> <td nowrap="nowrap" class="ms-pa ging" align="right"> <xsl:if test="$dvt_first row &gt; 1" ddwrt:cf_ignore="1"> <a> <xsl:attribute n ame="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent('dvt_first row={1};dvt_startposition={}')" />;</xsl:attribute> Start</a> <xsl:text disabl e-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> <a> <xsl:attribute n ame="href">javascript: history.back();</xsl:attribute> <img src="/_layo uts/images/prev.gif" border="0" alt="Previous" /> </a> <xsl:text disabl e-output-escaping="yes" ddwrt:nbsp-preserve="yes">&amp;nbsp;</xsl:text> </xsl:if> <xsl:value-of select="$F irstRow" /> - <xsl:value-of select=

"$LastRowValue" /> <xsl:text xmlns:ddwrt="h ttp://schemas.microsoft.com/WebParts/v2/DataView/runtime" ddwrt:nbsp-preserve="y es" disable-output-escaping="yes">&amp;nbsp;</xsl:text> <xsl:if test="$LastRowVa lue &lt; $dvt_RowCount or string-length($dvt_nextpagedata)!=0" ddwrt:cf_ignore=" 1"> <a> <xsl:attribute n ame="href">javascript: <xsl:value-of select="ddwrt:GenFireServerEvent(concat('dv t_firstrow={',$NextRow,'};dvt_startposition={',$dvt_nextpagedata,'}'))" />;</xsl :attribute> <img src="/_layo uts/images/next.gif" border="0" alt="Next" /> </a> </xsl:if> </td> </xsl:template> </xsl:stylesheet></Xsl> <DataSources> <SharePoint:SPDataSource runat="server" DataSourceMode="List" SelectCommand="&lt ;View&gt;&lt;Query&gt;&lt;Where&gt;&lt;Eq&gt;&lt;FieldRef Name=&quot;ID&quot;/&g t;&lt;Value Type=&quot;Counter&quot;&gt;{Param1}&lt;/Value&gt;&lt;/Eq&gt;&lt;/Wh ere&gt;&lt;/Query&gt;&lt;/View&gt;" UseInternalName="True" UseServerDataFormat=" True" ID="dataformwebpart1"><SelectParameters><WebPartPages:DataFormParameter Pa rameterKey="ListID" PropertyName="ParameterValues" DefaultValue="{811BC86C-78234B25-B7FB-05AD799DC0D4}" Name="ListID"></WebPartPages:DataFormParameter><asp:Par ameter DefaultValue="0" Name="StartRowIndex"></asp:Parameter><asp:Parameter Defa ultValue="0" Name="nextpagedata"></asp:Parameter><asp:Parameter DefaultValue="10 " Name="MaximumRows"></asp:Parameter><WebPartPages:DataFormParameter ParameterKe y="Param1" PropertyName="ParameterValues" Name="Param1"></WebPartPages:DataFormP arameter> </SelectParameters><UpdateParameters><WebPartPages:DataFormParameter ParameterKe y="ListID" PropertyName="ParameterValues" DefaultValue="{811BC86C-7823-4B25-B7FB -05AD799DC0D4}" Name="ListID"></WebPartPages:DataFormParameter> </UpdateParameters><InsertParameters><WebPartPages:DataFormParameter ParameterKe y="ListID" PropertyName="ParameterValues" DefaultValue="{811BC86C-7823-4B25-B7FB -05AD799DC0D4}" Name="ListID"></WebPartPages:DataFormParameter> </InsertParameters><DeleteParameters><WebPartPages:DataFormParameter ParameterKe y="ListID" PropertyName="ParameterValues" DefaultValue="{811BC86C-7823-4B25-B7FB -05AD799DC0D4}" Name="ListID"></WebPartPages:DataFormParameter> </DeleteParameters> </SharePoint:SPDataSource> </DataSources> </WebPartPages:DataFormWebPart> </ZoneTemplate></WebPartPages:WebPartZone> <div style="display:none;" id="errsuccess">sdfsd</div> <div id="feedbackstar"><div class="ms-RadioText"><b>Rate this article:</b></div> <SharePointPortalControls:AverageRatingFieldControl id="PageRatingContro l" ControlMode="Display" FieldName="AverageRating" runat="server"/></div> <WebPartZone runat="server" FrameType="TitleBarOnly" ID="leftdown" Title="Leftdo wn" AllowPersonalization="false"><ZoneTemplate> <WebPartPages:ContentEditorWebPart runat="server" __MarkupType="xmlmarkup" WebPa rt="true" __WebPartId="{D3CAEA0A-B031-41DC-A917-1AAA52237E63}"> <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>Content Editor</Title>

<FrameType>None</FrameType> <Description>Allows authors to enter rich text content.</Description> <IsIncluded>true</IsIncluded> <PartOrder>2</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>Cannot import this Web Part.</MissingAssembly> <PartImageLarge>/_layouts/images/mscontl.gif</PartImageLarge> <IsIncludedFilter /> <ExportControlledProperties>true</ExportControlledProperties> <ConnectionID>00000000-0000-0000-0000-000000000000</ConnectionID> <ID>g_d3caea0a_b031_41dc_a917_1aaa52237e63</ID> <ContentLink xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" /> <Content xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor"><![CDAT A[<table cellspacing="1" id="feedbackform" cellpadding="0" class="feedback"> <tbody> <tr> <td><div class="ms-RadioText"><b>Did this articl e help you ?</b></div> <span title="This article resolved your issue" class="ms-RadioTe xt"> <input type="radio" value="This article resolved your issue" nam e="Articlerdbutton" id="ARissue"/>This article resolved your issue</span></td> </tr> <tr> <td><span title="This article didn&#39;t resolve d my issue" class="ms-RadioText"><input type="radio" value="This article didn&#3 9;t resolved my issue" name="Articlerdbutton" id="DARissue"/>This article didn&#39;t resolved my issue</span></td> </tr> <tr> <td><span title="This article helped but additio nal information was required to resolve this issue" class="ms-RadioText"><input type="radio" value="This article helped but additional information was required to resolve this issue" name="Articlerdbutton" id="HARissue"/>This article helped but additional information was re quired to resolve this issue</span></td> </tr> <tr><td width="75%" colspan="2" class="ms-vb"><div class ="ms-RadioText"><b> What can we do to improve this information?(4000 or few characters)</b></div><span dir="none"> <textarea dir="none" class="ms-long" title="Body" id="freetext" cols="20" rows="10" ></textarea><br>

</span></td></tr><tr><td><div><input type="button" value="submit" onclic k="Javascript:Insert()" /></div></td></tr> </tbody></table> ]]></Content> <PartStorage xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" /> </WebPart> </WebPartPages:ContentEditorWebPart> </ZoneTemplate></WebPartZone> </td> <td valign="top" class="ms-blogRightZone" style="width:1 65px;word-wrap:break-word;overflow-x:hidden;"> <WebPartPages:WebPartZone runat="server" FrameTy pe="TitleBarOnly" ID="Right" Title="loc:Right" AllowPersonalization="false"><Zon eTemplate> <WebPartPages:BlogAdminWebPart runat="server" __MarkupType="xmlmarkup" WebPart=" true" __WebPartId="{E4BE4FC6-F9AF-46BD-93CF-306577A8AE1C}" > <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>Blog Tools</Title><FrameType>Default</FrameType><Description>Blog Admin Links</Description><IsIncluded>true</IsIncluded><ZoneID>Right</ZoneID><PartOrde r>2</PartOrder><FrameState>Normal</FrameState><Height /><Width /><AllowRemove>tr ue</AllowRemove><AllowZoneChange>true</AllowZoneChange><AllowMinimize>true</Allo wMinimize><AllowConnect>true</AllowConnect><AllowEdit>true</AllowEdit><AllowHide >true</AllowHide><IsVisible>true</IsVisible><DetailLink /><HelpLink /><HelpMode> Modeless</HelpMode><Dir>Default</Dir><PartImageSmall /><MissingAssembly>Cannot i mport this Web Part.</MissingAssembly><PartImageLarge /><IsIncludedFilter /><Exp ortControlledProperties>true</ExportControlledProperties><ConnectionID>000000000000-0000-0000-000000000000</ConnectionID><ID>g_e4be4fc6_f9af_46bd_93cf_306577a8 ae1c</ID><ListName xmlns="http://schemas.microsoft.com/WebPart/v2/ContentEditor" >{811BC86C-7823-4B25-B7FB-05AD799DC0D4}</ListName></WebPart></WebPartPages:BlogA dminWebPart> </ZoneTemplate></WebPartPages:WebPartZone> <br/> <div id="BlogRSSNav"></div> </td> </tr> </table> </td> </tr> </table> <script type="text/javascript"> // <![CDATA[ JSRequest.EnsureSetup(); var cid = JSRequest.QueryString["ID"]; var page = JSRequest.FileName; if (cid != null && page == "Category.aspx") { var categoryEl = document.getElementById("ms-CategoryTitle-"+cid ); if (categoryEl != null) { var titlePlaceHolderEl = document.getElementById("ms-Pr ojectTitlePlaceHolder"); if (titlePlaceHolderEl != null) { titlePlaceHolderEl.innerHTML = categoryEl.inne rHTML;

} } } var pageTitleSeparator = document.getElementById("onetidPageTitleSeparat or"); if (pageTitleSeparator != null) { pageTitleSeparator.innerHTML = ""; } // ]]> </script> </asp:Content>

Potrebbero piacerti anche