﻿<?xml version="1.0" encoding="utf-16"?>
<xListSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <recordsPerPage>25</recordsPerPage>
  <enableAlphaFilter>false</enableAlphaFilter>
  <enablePageSelection>true</enablePageSelection>
  <enableRecordsPerPage>true</enableRecordsPerPage>
  <enableCustomPaging>false</enableCustomPaging>
  <enableExcelExport>false</enableExcelExport>
  <enableHide_OnNoQuery>false</enableHide_OnNoQuery>
  <enableHide_OnNoResults>false</enableHide_OnNoResults>
  <enableAdvancedParsing>true</enableAdvancedParsing>
  <enableCompoundIIFConditions>true</enableCompoundIIFConditions>
  <enableQueryDebug>false</enableQueryDebug>
  <enableQueryDebug_Edit>false</enableQueryDebug_Edit>
  <enableQueryDebug_Admin>false</enableQueryDebug_Admin>
  <enableQueryDebug_Super>false</enableQueryDebug_Super>
  <enableQueryDebug_Log>false</enableQueryDebug_Log>
  <enableQueryDebug_ErrorLog>false</enableQueryDebug_ErrorLog>
  <autoRefreshInterval />
  <skipRedirectActions>false</skipRedirectActions>
  <skipSubqueryDebugging>false</skipSubqueryDebugging>
  <enableAdmin_Edit>true</enableAdmin_Edit>
  <enableAdmin_Admin>false</enableAdmin_Admin>
  <enableAdmin_Super>false</enableAdmin_Super>
  <enableAJAX>true</enableAJAX>
  <enableAJAXCustomPaging>false</enableAJAXCustomPaging>
  <enableAJAXCustomStatus>false</enableAJAXCustomStatus>
  <enableAJAXManual>false</enableAJAXManual>
  <enableAJAXPageHistory>false</enableAJAXPageHistory>
  <customAJAXPageHistory />
  <BotRecordCount>0</BotRecordCount>
  <BotPageVariableName />
  <enableBotShowAllRecords>false</enableBotShowAllRecords>
  <enableBotDetection>true</enableBotDetection>
  <BotNonAjaxText />
  <includeJavascriptUtilities>true</includeJavascriptUtilities>
  <includeJavascriptValidation>true</includeJavascriptValidation>
  <javascriptOnComplete />
  <enableMultipleColumnSorting>true</enableMultipleColumnSorting>
  <ModuleCommunicationMessageType />
  <showAll>false</showAll>
  <useExplicitSystemVariables>true</useExplicitSystemVariables>
  <enabledForcedQuerySplit>false</enabledForcedQuerySplit>
  <searchItems />
  <queryItems>
    <anyType xsi:type="QueryOptionItem">
      <Index>0</Index>
      <VariableType>&lt;Session&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>filter[TABID,SYSTEM]_LinkCategoryTopID</QuerySource>
      <QueryTarget>@FilterLinkCategoryTopID</QueryTarget>
      <QueryTargetLeft>SVLink.LinkCategoryTopID = </QueryTargetLeft>
      <QueryTargetRight />
      <QueryTargetEmpty>1=1</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>false</EscapeHTML>
      <EscapeListX>0</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>1</Index>
      <VariableType>&lt;Session&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>filter[TABID,SYSTEM]_LinkCategorySubID</QuerySource>
      <QueryTarget>@FilterLinkCategorySubID</QueryTarget>
      <QueryTargetLeft>SVLink.LinkCategorySubID = </QueryTargetLeft>
      <QueryTargetRight />
      <QueryTargetEmpty>1=1</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>false</EscapeHTML>
      <EscapeListX>0</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>2</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>txtEditRatingLinkID</QuerySource>
      <QueryTarget>@UEditRatingLinkID</QueryTarget>
      <QueryTargetLeft />
      <QueryTargetRight />
      <QueryTargetEmpty>-1</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>3</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>slcLinkCategoryTopID</QuerySource>
      <QueryTarget>@LinkCategoryTopID</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>false</EscapeHTML>
      <EscapeListX>0</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>4</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>slcLinkCategorySubID</QuerySource>
      <QueryTarget>@LinkCategorySubID</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>false</EscapeHTML>
      <EscapeListX>0</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>5</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>txtLinkDescription</QuerySource>
      <QueryTarget>@LinkDescription</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>6</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>chkLinkAuthorized</QuerySource>
      <QueryTarget>@LinkAuthorized</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>false</EscapeHTML>
      <EscapeListX>0</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>7</Index>
      <VariableType>&lt;Session&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>filter[TABID,SYSTEM]_LinkName</QuerySource>
      <QueryTarget>@FilterLinkName</QueryTarget>
      <QueryTargetLeft>'%</QueryTargetLeft>
      <QueryTargetRight>%'</QueryTargetRight>
      <QueryTargetEmpty>'%%'</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>8</Index>
      <VariableType>&lt;Message&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>RatingSaveModule</QuerySource>
      <QueryTarget>@SaveRatingID</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>0</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>9</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>txtLinkImageURL</QuerySource>
      <QueryTarget>@LinkImageURL</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>10</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>txtEditRating</QuerySource>
      <QueryTarget>@URatingEdit</QueryTarget>
      <QueryTargetLeft />
      <QueryTargetRight />
      <QueryTargetEmpty>-1</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>11</Index>
      <VariableType>&lt;Message&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>LinksSaveModule</QuerySource>
      <QueryTarget>@SaveLinksID</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>0</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>false</EscapeHTML>
      <EscapeListX>1</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>12</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>txtLinkContact</QuerySource>
      <QueryTarget>@LinkContact</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>13</Index>
      <VariableType>&lt;Message&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>LinksEditModule</QuerySource>
      <QueryTarget>@EditLinksID</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>0</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>14</Index>
      <VariableType>&lt;Session&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>URatingIP</QuerySource>
      <QueryTarget>@URatingIP</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>'None'</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>false</EscapeHTML>
      <EscapeListX>1</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>15</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>txtLinkEmail</QuerySource>
      <QueryTarget>@LinkEmail</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>16</Index>
      <VariableType>&lt;Message&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>LinkApprove</QuerySource>
      <QueryTarget>@ApproveID</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>'0'</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>17</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>txtLinkName</QuerySource>
      <QueryTarget>@LinkName</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>18</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Date</VariableDataType>
      <QuerySource>txtLinkDate</QuerySource>
      <QueryTarget>@LinkDate</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>19</Index>
      <VariableType>&lt;Form&gt;</VariableType>
      <VariableDataType>Any</VariableDataType>
      <QuerySource>txtLinkURL</QuerySource>
      <QueryTarget>@LinkURL</QueryTarget>
      <QueryTargetLeft>'</QueryTargetLeft>
      <QueryTargetRight>'</QueryTargetRight>
      <QueryTargetEmpty>NULL</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
    <anyType xsi:type="QueryOptionItem">
      <Index>20</Index>
      <VariableType>&lt;QueryString&gt;</VariableType>
      <VariableDataType>Number</VariableDataType>
      <QuerySource>CurrentLinkID</QuerySource>
      <QueryTarget>@LinkID</QueryTarget>
      <QueryTargetLeft />
      <QueryTargetRight />
      <QueryTargetEmpty>-1</QueryTargetEmpty>
      <Protected>true</Protected>
      <EscapeHTML>true</EscapeHTML>
      <EscapeListX>2</EscapeListX>
    </anyType>
  </queryItems>
  <listItems>
    <anyType xsi:type="ListFormatItem">
      <Index>0</Index>
      <GroupStatement>Header/Footer</GroupStatement>
      <ListHeader>&lt;script language=javascript&gt;
	//DECLARE THE RECORD ID BEFORE CHECKS - THIS ENSURES ONLY ONE OPEN EDITOR AT A TIME
	var lxLinksEditID = '';
	var lxRatingEditID = '';
&lt;/script&gt;
&lt;table width=100% border=0 cellpadding=5 cellspacing=0  class=DataGrid_Container&gt;
&lt;thead class=DataGrid_Header&gt;
&lt;tr class="URLPubDate"&gt;
	&lt;th colspan=2 nowrap="nowrap" style="WIDTH: 32px;"&gt;&amp;nbsp;&lt;/th&gt;
&lt;th align="left" nowrap="nowrap" width="100%"&gt;&lt;span class="URLPubDate"&gt;Sort By:&amp;nbsp;
&lt;a {SORT,avgRating,Rating,"Rating &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortAscending.gif"" border=0&gt;", "Rating &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortDescending.gif"" border=0&gt;",DESC TOGGLE,1}&gt;{SORTHEADER,1}&lt;/a&gt;&amp;nbsp;
&lt;a {SORT,LinkName,Name,"Name &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortAscending.gif"" border=0&gt;", "Name &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortDescending.gif"" border=0&gt;",ASC TOGGLE,2}&gt;{SORTHEADER,2}&lt;/a&gt;&amp;nbsp;
&lt;a {SORT,LinkDate,Link Date,"Link Date &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortAscending.gif"" border=0&gt;", "Link Date &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortDescending.gif"" border=0&gt;",DESC TOGGLE,3}&gt;{SORTHEADER,3}&lt;/a&gt;&amp;nbsp;
&lt;a {SORT,CategoryTopName,Top Category,"Top Category &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortAscending.gif"" border=0&gt;", "Top Category &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortDescending.gif"" border=0&gt;",ASC TOGGLE,4}&gt;{SORTHEADER,4}&lt;/a&gt;&amp;nbsp;
&lt;a {SORT,LinkCategorySubID,Sub Category,"Sub Category &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortAscending.gif"" border=0&gt;", "Sub Category &lt;img src=""[ApplicationPATH,SYSTEM]/Images/SortDescending.gif"" border=0&gt;",ASC TOGGLE,5}&gt;{SORTHEADER,5}&lt;/a&gt;&lt;/span&gt;&lt;/th&gt;

	&lt;th nowrap="nowrap" style="WIDTH: 32px;"&gt;&amp;nbsp;&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr class="FileManager_Pager"&gt;
	&lt;td colspan=4 nowrap="nowrap"   style="WIDTH: 100%;text-align: center;"&gt;[FORMAT,[TOTALRECORDS,System],{0:#,##0}] Link(s)&lt;/td&gt;
&lt;/tr&gt;
</ListHeader>
      <ListFooter>&lt;tr class="FileManager_Pager"&gt;
	&lt;td colspan=4 nowrap="nowrap"   style="WIDTH: 100%;text-align: center;"&gt;[FORMAT,[TOTALRECORDS,System],{0:#,##0}] Link(s)&lt;/td&gt;
&lt;/tr&gt;

&lt;tr &gt;
	&lt;td colspan=4 nowrap="nowrap" class="normal"&gt;
		&lt;span showsummary="True" displaymode="BulletList" headertext="The following error(s) were identified:" style="color:Red;display:none;"&gt;&lt;/span&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr &gt;
	&lt;td colspan=4 nowrap="nowrap" align="right"&gt;
	&lt;img id="tbiAddLinks" border=0 style="CURSOR: hand; CURSOR: pointer;" 
	src="[PORTALPATH,System]Images/TBI_Add.gif"
	onclick="lxFetch(lxLinksEdit,0,'Action=LinksEdit','Links_NEW');" 
	onmouseover="this.src='[PORTALPATH,System]Images/TBI_AddMO.gif'"
	onmouseout="this.src='[PORTALPATH,System]Images/TBI_Add.gif'"
	onmousedown="this.src='[PORTALPATH,System]Images/TBI_AddMD.gif'"
	onmouseup="this.src='[PORTALPATH,System]Images/TBI_Add.gif'"
	Atl="Add A Link" /&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr &gt;
	&lt;td colspan=4 nowrap="nowrap" class="normal"&gt;
		&lt;div id="Links_NEW"&gt;&lt;/div&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
</ListFooter>
    </anyType>
  </listItems>
  <messageItems>
    <anyType xsi:type="MessageActionItem">
      <Index>0</Index>
      <ActionType>Action-Assignment</ActionType>
      <ActionInformation>11:9;9;32;5;1;&lt;Session&gt;URatingIP[Request.UserHostAddress,System]False0</ActionInformation>
      <Level>0</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>1</Index>
      <ActionType>Action-Assignment</ActionType>
      <ActionInformation>11:9;12;1;5;1;&lt;Session&gt;@IsExporting0False0</ActionInformation>
      <Level>0</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>2</Index>
      <ActionType>Message</ActionType>
      <ActionInformation>5:11;0;LinksExport</ActionInformation>
      <Level>0</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>3</Index>
      <ActionType>Action-Assignment</ActionType>
      <ActionInformation>11:9;12;1;5;1;&lt;Session&gt;@IsExporting1False0</ActionInformation>
      <Level>1</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>4</Index>
      <ActionType>Action-Output</ActionType>
      <ActionInformation>5:14;9;Complete ExcelLinks.xls</ActionInformation>
      <Level>1</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>5</Index>
      <ActionType>Condition-If</ActionType>
      <ActionInformation>8:22;1;13;'[Action,QueryString]'='LinksFilter'</ActionInformation>
      <Level>0</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>6</Index>
      <ActionType>Action-Assignment</ActionType>
      <ActionInformation>12:9;29;22;5;1;&lt;Session&gt;filter[TABID,SYSTEM]_LinkName[txtFlt_LinkName,Form]False0</ActionInformation>
      <Level>1</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>7</Index>
      <ActionType>Action-Assignment</ActionType>
      <ActionInformation>12:9;38;31;5;1;&lt;Session&gt;filter[TABID,SYSTEM]_LinkCategoryTopID[slcFlt_LinkCategoryTopID,Form]False0</ActionInformation>
      <Level>1</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>8</Index>
      <ActionType>Action-Assignment</ActionType>
      <ActionInformation>12:9;38;31;5;1;&lt;Session&gt;filter[TABID,SYSTEM]_LinkCategorySubID[slcFlt_LinkCategorySubID,Form]False0</ActionInformation>
      <Level>1</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>9</Index>
      <ActionType>Message</ActionType>
      <ActionInformation>5:15;0;LinksEditModule</ActionInformation>
      <Level>0</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>10</Index>
      <ActionType>Action-Execute</ActionType>
      <ActionInformation>11:10;479;5;0;UpdateDataIF EXISTS (SELECT * FROM SVLink WHERE LinkID=@EditLinksID)
BEGIN
	if '[FORMAT,"Administrators",{ISINROLE}]'='True'
	BEGIN
		UPDATE SVLink SET
		LinkName=@LinkName,LinkDate=@LinkDate,LinkURL=@LinkURL,LinkDescription=@LinkDescription,LinkCategoryTopID=@LinkCategoryTopID,LinkCategorySubID=@LinkCategorySubID,LinkContact=@LinkContact,LinkEmail=@LinkEmail,LinkImageURL=@LinkImageURL,LinkAuthorized=@LinkAuthorized
		WHERE LinkID=@EditLinksID
		
		Select @EditLinksID RecID
	END
END

False</ActionInformation>
      <Level>1</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>11</Index>
      <ActionType>Message</ActionType>
      <ActionInformation>5:15;0;LinksSaveModule</ActionInformation>
      <Level>0</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>12</Index>
      <ActionType>Action-Execute</ActionType>
      <ActionInformation>10:8;341;5;0;SaveDataBEGIN
	INSERT INTO SVLink (LinkName,LinkDate,LinkURL,LinkDescription,LinkCategoryTopID,LinkCategorySubID,LinkContact,LinkEmail,LinkImageURL,LinkAuthorized)
	VALUES (@LinkName,@LinkDate,@LinkURL,@LinkDescription,@LinkCategoryTopID,@LinkCategorySubID,@LinkContact,@LinkEmail,@LinkImageURL,@LinkAuthorized)
		
	Select SCOPE_IDENTITY() RecID
ENDFalse</ActionInformation>
      <Level>1</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>13</Index>
      <ActionType>Message</ActionType>
      <ActionInformation>5:16;0;RatingSaveModule</ActionInformation>
      <Level>0</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>14</Index>
      <ActionType>Action-Execute</ActionType>
      <ActionInformation>10:8;411;5;0;SaveDataIF EXISTS (SELECT * FROM SVRatings WHERE RatingID = @SaveRatingID AND RatingIP = @URatingIP)
BEGIN
	UPDATE SVRatings SET
	Rating=@URatingEdit,RatingIP=@URatingIP,RatingLinkID=@UEditRatingLinkID
	WHERE RatingID=@SaveRatingID

	Select @SaveRatingID RecID
END
ELSE
BEGIN
	INSERT INTO SVRatings (Rating,RatingIP,RatingLinkID)
	VALUES (@URatingEdit,@URatingIP,@UEditRatingLinkID)
	
	Select SCOPE_IDENTITY() RecID
ENDFalse</ActionInformation>
      <Level>1</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>15</Index>
      <ActionType>Condition-If</ActionType>
      <ActionInformation>8:22;1;13;'[Action,QueryString]'='LinksDelete'</ActionInformation>
      <Level>0</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>16</Index>
      <ActionType>Action-Execute</ActionType>
      <ActionInformation>11:10;162;5;0;DeleteDataif '[FORMAT,"Administrators",{ISINROLE}]'='True'
BEGIN
	DELETE FROM SVLink
	WHERE LinkID=@LinkID
END

BEGIN
	DELETE FROM SVRatings
	WHERE RatingLinkID=@LinkID
ENDFalse</ActionInformation>
      <Level>1</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>17</Index>
      <ActionType>Message</ActionType>
      <ActionInformation>5:11;0;LinkApprove</ActionInformation>
      <Level>0</Level>
    </anyType>
    <anyType xsi:type="MessageActionItem">
      <Index>18</Index>
      <ActionType>Action-Execute</ActionType>
      <ActionInformation>11:11;166;5;0;ApproveLinkBEGIN
	if '[FORMAT,"Administrators",{ISINROLE}]'='True'
	BEGIN
		UPDATE SVLink SET
		LinkAuthorized=1
		WHERE LinkID=@ApproveID
		
		Select @ApproveID RecID
	END
END
False</ActionInformation>
      <Level>1</Level>
    </anyType>
  </messageItems>
  <query>{IIF,"'[Action,QueryString]'&lt;&gt;'LinksNew_Cancel'","
	SELECT	SVLink.*, SVCategoryTop.CategoryTopName, SVCategorySub.CategorySubName, R.avgRating, R.countRating
	FROM	SVLink
	INNER JOIN	SVCategoryTop ON SVCategoryTop.CategoryTopID = SVLink.LinkCategoryTopID
	INNER JOIN	SVCategorySub ON SVCategorySub.CategorySubID = SVLink.LinkCategorySubID
	LEFT OUTER JOIN 
		(
		SELECT RatingLinkID, ROUND(AVG(Rating)*20,0) AS avgRating, COUNT(RatingID) AS countRating FROM SVRatings GROUP BY RatingLinkID
		) R ON R.RatingLinkID = SVLink.LinkID
	WHERE	(SVLink.LinkName like @FilterLinkName  OR SVLink.LinkDescription like @FilterLinkName) AND @FilterLinkCategoryTopID  AND @FilterLinkCategorySubID AND ISNULL(SVLink.LinkAuthorized,0) = 0
	ORDER BY [SORTTAG]
",""}</query>
  <filter />
  <customConnection />
  <listItem>&lt;tr class=cellborder&gt;
	&lt;td nowrap="nowrap" style="WIDTH: 32px;"&gt;
{IIF,"'[@IsExporting,Session]'&lt;&gt;'1'","

\{IIF,""[FORMAT,"Administrators",{ISINROLE}]=True"",""

			&lt;img id=""""tbiEdit[LinkID]"""" border=0 style=""""CURSOR: hand; CURSOR: pointer;"""" 
				src='[PORTALPATH,System]Images/GI_Edit.gif' 
				onclick=""""if (lxLinksEditID=='')  lxFetch(lxLinksEdit,0,'Action=LinksEdit&amp;CurrentLinkID=[LinkID]&amp;Page=[PAGENUMBER,System]','LinkID_[LinkID]'); return false;"""" 
				onmouseover=""""this.src='[PORTALPATH,System]Images/GI_EditMO.gif'"""" onmouseout = """"this.src='[PORTALPATH,System]Images/GI_Edit.gif'"""" onmousedown = """"this.src='[PORTALPATH,System]Images/GI_EditMD.gif'"""" onmouseup = """"this.src='[PORTALPATH,System]Images/GI_Edit.gif'""""&gt;

"",
""""\}


",
""}
&lt;/td&gt;
	&lt;td nowrap="nowrap" style="WIDTH: 32px;"&gt;

		&lt;span style="PADDING-RIGHT: 16px;"&gt;
		&lt;img id="tbiLinkApprove" border=0 style="CURSOR: hand; CURSOR: pointer;" src='[PORTALPATH,System]Images/GI_Approve.gif' 
			onclick="if ((typeof(Page_SmartValidate) == 'function') &amp;&amp; (Page_SmartValidate() == true)) { {ACTION,[LinkID],LinkApprove,,M,False};}alert('Link Approved!  It is now in the public listing.')" 
			onmouseover="this.src='[PORTALPATH,System]Images/GI_Approve.gif'" onmouseout = "this.src='[PORTALPATH,System]Images/GI_Approve.gif'" onmousedown = "this.src='[PORTALPATH,System]Images/GI_Approve.gif'" onmouseup = "this.src='[PORTALPATH,System]Images/GI_Approve.gif'"&gt;
		&lt;/span&gt;

	&lt;/td&gt;
	&lt;td align="left" valign="top" width="100%" &gt;
		&lt;span class="URLTitle"&gt;&lt;a href="[LinkURL]" target="_blank" class="URLTitle"&gt;[LinkName]&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
		&lt;span class="URLPubDateBlack"&gt;ID:&amp;nbsp;&lt;/span&gt;&lt;span class="URLPubDate"&gt;[LinkID]&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="URLPubDateBlack"&gt;Posted:&amp;nbsp;&lt;/span&gt;&lt;span class="URLPubDate"&gt;[LinkDate]&lt;/span&gt;&lt;br /&gt;
		&lt;a href="[LinkURL]" target="_blank" class="URLPubDate"&gt;[LinkURL]&lt;/a&gt;&lt;br /&gt;
		&lt;br /&gt;&lt;span class="URLDescription"&gt;[LinkDescription]&lt;/span&gt;&lt;br /&gt;
		&lt;span class="URLPubDateBlack"&gt;Category:&amp;nbsp;&lt;/span&gt;&lt;span class="URLPubDate"&gt;[CategoryTopName] -&gt; [CategorySubName]&lt;/span&gt;&lt;br /&gt;
		&lt;table cellspacing=0 cellpadding=0 style="border: none 0px;width: 100%;"&gt;
			&lt;tr&gt;
				&lt;td valign="bottom" style="white-space: nowrap;"&gt;&lt;span class="URLPubDateBlack"&gt;Average Rating:&lt;/span&gt;&amp;nbsp;&lt;/td&gt;
				&lt;td valign="bottom" style="white-space: nowrap;"&gt;&lt;div class='rating_bar'&gt;&lt;div style='width:{IIF,"'[avgRating]'&lt;&gt;''",[avgRating],0}%'&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
				&lt;td valign="bottom" style="white-space: nowrap;"&gt;&lt;span class='URLPubDate'&gt;&amp;nbsp;&amp;nbsp;from {IIF,"'[countRating]'&lt;&gt;''",[countRating],0} ratings.&lt;/span&gt;&lt;/td&gt;
				&lt;td valign="bottom" style="white-space: nowrap;"&gt;&lt;span class="URLPubDateBlack"&gt;&amp;nbsp;&amp;nbsp;Rate This Link:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
				&lt;td valign="bottom" style="white-space: nowrap;width: 100%;"&gt;
					&lt;img id="tbiEdit[LinkID]" border=0 style="CURSOR: hand; CURSOR: pointer;" 
					src="[PORTALPATH,System]Images/GI_Rate.gif" 
					onclick="if (lxRatingEditID=='')  lxFetch(lxRatingEdit,0,'Action=RatingEdit&amp;CurrentLinkID=[LinkID]&amp;Page=[PAGENUMBER,System]','LinkID_[LinkID]'); return false;" 
					onmouseover="this.src='[PORTALPATH,System]Images/GI_RateHover.gif'" onmouseout ="this.src='[PORTALPATH,System]Images/GI_Rate.gif'" onmousedown="this.src='[PORTALPATH,System]Images/GI_RateHover.gif'" onmouseup="this.src='[PORTALPATH,System]Images/GI_Rate.gif'"&gt;

				&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;
	&lt;/td&gt;
	&lt;td nowrap="nowrap" style="WIDTH: 32px;"&gt;
	
{IIF,"'[@IsExporting,Session]'&lt;&gt;'1'","

\{IIF,""[FORMAT,"Administrators",{ISINROLE}]=True"",""
	&lt;img id=""""tbiDelete[LinkID]"""" border=0 style=""""CURSOR: hand; CURSOR: pointer;"""" src='[PORTALPATH,System]Images/GI_Delete.gif' onclick=""""if (confirm('Are you sure you want to delete?')==true) \\{lxFetch([MODULEID,System],0,'Action=LinksDelete&amp;CurrentLinkID=[LinkID]&amp;Page=[PAGENUMBER,System]');\\}"""" onmouseover=""""this.src='[PORTALPATH,System]Images/GI_DeleteMO.gif'"""" onmouseout = """"this.src='[PORTALPATH,System]Images/GI_Delete.gif'"""" onmousedown = """"this.src='[PORTALPATH,System]Images/GI_DeleteMD.gif'"""" onmouseup = """"this.src='[PORTALPATH,System]Images/GI_Delete.gif'""""&gt;
"",
""""\}
",
""}

	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=4 id=LinkID_[LinkID]&gt;&lt;/td&gt;&lt;/tr&gt;

</listItem>
  <listAItem>&lt;tr class=alt_cellborder&gt;
	&lt;td nowrap="nowrap" style="WIDTH: 32px;"&gt;
{IIF,"'[@IsExporting,Session]'&lt;&gt;'1'","

\{IIF,""[FORMAT,"Administrators",{ISINROLE}]=True"",""

			&lt;img id=""""tbiEdit[LinkID]"""" border=0 style=""""CURSOR: hand; CURSOR: pointer;"""" 
				src='[PORTALPATH,System]Images/GI_Edit.gif' 
				onclick=""""if (lxLinksEditID=='')  lxFetch(lxLinksEdit,0,'Action=LinksEdit&amp;CurrentLinkID=[LinkID]&amp;Page=[PAGENUMBER,System]','LinkID_[LinkID]'); return false;"""" 
				onmouseover=""""this.src='[PORTALPATH,System]Images/GI_EditMO.gif'"""" onmouseout = """"this.src='[PORTALPATH,System]Images/GI_Edit.gif'"""" onmousedown = """"this.src='[PORTALPATH,System]Images/GI_EditMD.gif'"""" onmouseup = """"this.src='[PORTALPATH,System]Images/GI_Edit.gif'""""&gt;

"",
""""\}


",
""}
&lt;/td&gt;
	&lt;td nowrap="nowrap" style="WIDTH: 32px;"&gt;

		&lt;span style="PADDING-RIGHT: 16px;"&gt;
		&lt;img id="tbiLinkApprove" border=0 style="CURSOR: hand; CURSOR: pointer;" src='[PORTALPATH,System]Images/GI_Approve.gif' 
			onclick="if ((typeof(Page_SmartValidate) == 'function') &amp;&amp; (Page_SmartValidate() == true)) { {ACTION,[LinkID],LinkApprove,,M,False};}alert('Link Approved!  It is now in the public listing.')" 
			onmouseover="this.src='[PORTALPATH,System]Images/GI_Approve.gif'" onmouseout = "this.src='[PORTALPATH,System]Images/GI_Approve.gif'" onmousedown = "this.src='[PORTALPATH,System]Images/GI_Approve.gif'" onmouseup = "this.src='[PORTALPATH,System]Images/GI_Approve.gif'"&gt;
		&lt;/span&gt;

	&lt;/td&gt;
	&lt;td align="left" valign="top" width="100%" &gt;
		&lt;span class="URLTitle"&gt;&lt;a href="[LinkURL]" target="_blank" class="URLTitle"&gt;[LinkName]&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;
		&lt;span class="URLPubDateBlack"&gt;ID:&amp;nbsp;&lt;/span&gt;&lt;span class="URLPubDate"&gt;[LinkID]&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span class="URLPubDateBlack"&gt;Posted:&amp;nbsp;&lt;/span&gt;&lt;span class="URLPubDate"&gt;[LinkDate]&lt;/span&gt;&lt;br /&gt;
		&lt;a href="[LinkURL]" target="_blank" class="URLPubDate"&gt;[LinkURL]&lt;/a&gt;&lt;br /&gt;
		&lt;br /&gt;&lt;span class="URLDescription"&gt;[LinkDescription]&lt;/span&gt;&lt;br /&gt;
		&lt;span class="URLPubDateBlack"&gt;Category:&amp;nbsp;&lt;/span&gt;&lt;span class="URLPubDate"&gt;[CategoryTopName] -&gt; [CategorySubName]&lt;/span&gt;&lt;br /&gt;
		&lt;table cellspacing=0 cellpadding=0 style="border: none 0px;width: 100%;"&gt;
			&lt;tr&gt;
				&lt;td valign="bottom" style="white-space: nowrap;"&gt;&lt;span class="URLPubDateBlack"&gt;Average Rating:&lt;/span&gt;&amp;nbsp;&lt;/td&gt;
				&lt;td valign="bottom" style="white-space: nowrap;"&gt;&lt;div class='rating_bar'&gt;&lt;div style='width:{IIF,"'[avgRating]'&lt;&gt;''",[avgRating],0}%'&gt;&lt;/div&gt;&lt;/div&gt;&lt;/td&gt;
				&lt;td valign="bottom" style="white-space: nowrap;"&gt;&lt;span class='URLPubDate'&gt;&amp;nbsp;&amp;nbsp;from {IIF,"'[countRating]'&lt;&gt;''",[countRating],0} ratings.&lt;/span&gt;&lt;/td&gt;
				&lt;td valign="bottom" style="white-space: nowrap;"&gt;&lt;span class="URLPubDateBlack"&gt;&amp;nbsp;&amp;nbsp;Rate This Link:&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/td&gt;
				&lt;td valign="bottom" style="white-space: nowrap;width: 100%;"&gt;
					&lt;img id="tbiEdit[LinkID]" border=0 style="CURSOR: hand; CURSOR: pointer;" 
					src="[PORTALPATH,System]Images/GI_Rate.gif" 
					onclick="if (lxRatingEditID=='')  lxFetch(lxRatingEdit,0,'Action=RatingEdit&amp;CurrentLinkID=[LinkID]&amp;Page=[PAGENUMBER,System]','LinkID_[LinkID]'); return false;" 
					onmouseover="this.src='[PORTALPATH,System]Images/GI_RateHover.gif'" onmouseout ="this.src='[PORTALPATH,System]Images/GI_Rate.gif'" onmousedown="this.src='[PORTALPATH,System]Images/GI_RateHover.gif'" onmouseup="this.src='[PORTALPATH,System]Images/GI_Rate.gif'"&gt;

				&lt;/td&gt;
			&lt;/tr&gt;
		&lt;/table&gt;
	&lt;/td&gt;
	&lt;td nowrap="nowrap" style="WIDTH: 32px;"&gt;
	
{IIF,"'[@IsExporting,Session]'&lt;&gt;'1'","

\{IIF,""[FORMAT,"Administrators",{ISINROLE}]=True"",""
	&lt;img id=""""tbiDelete[LinkID]"""" border=0 style=""""CURSOR: hand; CURSOR: pointer;"""" src='[PORTALPATH,System]Images/GI_Delete.gif' onclick=""""if (confirm('Are you sure you want to delete?')==true) \\{lxFetch([MODULEID,System],0,'Action=LinksDelete&amp;CurrentLinkID=[LinkID]&amp;Page=[PAGENUMBER,System]');\\}"""" onmouseover=""""this.src='[PORTALPATH,System]Images/GI_DeleteMO.gif'"""" onmouseout = """"this.src='[PORTALPATH,System]Images/GI_Delete.gif'"""" onmousedown = """"this.src='[PORTALPATH,System]Images/GI_DeleteMD.gif'"""" onmouseup = """"this.src='[PORTALPATH,System]Images/GI_Delete.gif'""""&gt;
"",
""""\}
",
""}

	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=4 id=LinkID_[LinkID]&gt;&lt;/td&gt;&lt;/tr&gt;

</listAItem>
  <defaultItem>&lt;script language=javascript&gt;
	//DECLARE THE RECORD ID BEFORE CHECKS - THIS ENSURES ONLY ONE OPEN EDITOR AT A TIME
	var lxLinksEditID = '';
	var lxRatingEditID = '';
&lt;/script&gt;
&lt;table width=100% border=0 cellpadding=0 cellspacing=0 class="DataGrid_Container"&gt;
&lt;tr class=DataGrid_Item&gt;
&lt;td align=center&gt;No Link Found. {IIF,"[FORMAT,"Administrators",{ISINROLE}]=True","Press Add to create a new Link",""}&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;tr class="FileManager_Pager"&gt;
	&lt;th nowrap="nowrap"   style="WIDTH: 100%; PADDING-LEFT: 32px;"&gt;0 Link&lt;/th&gt;
&lt;/tr&gt;
&lt;tr &gt;
	&lt;td nowrap="nowrap" class="normal"&gt;
		&lt;span showsummary="True" displaymode="BulletList" headertext="The following error(s) were identified:" style="color:Red;display:none;"&gt;&lt;/span&gt;
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr &gt;
	&lt;td nowrap="nowrap" align="right"&gt;
{IIF,"'[@IsExporting,Session]'&lt;&gt;'1'","

	{IIF,"[FORMAT,"Administrators",{ISINROLE}]=True","
				&lt;img id=""""tbiAddLinks"""" border=0 style=""""CURSOR: hand; CURSOR: pointer;"""" 
					src='[PORTALPATH,System]Images/TBI_Add.gif' 
					onclick=""""lxFetch(lxLinksEdit,0,'Action=LinksEdit','Links_NEW');"""" 
					onmouseover=""""this.src='[PORTALPATH,System]Images/TBI_AddMO.gif'"""" onmouseout = """"this.src='[PORTALPATH,System]Images/TBI_Add.gif'"""" onmousedown = """"this.src='[PORTALPATH,System]Images/TBI_AddMD.gif'"""" onmouseup = """"this.src='[PORTALPATH,System]Images/TBI_Add.gif'"""" Atl=""""Add A Link""""&gt;

	",
	""}
	
",
""}
	&lt;/td&gt;
&lt;/tr&gt;
&lt;tr &gt;
	&lt;td nowrap="nowrap" class="normal"&gt;
		&lt;div id="Links_NEW"&gt;&lt;/div&gt;
	&lt;/td&gt;
&lt;/tr&gt;

&lt;/tbody&gt;
&lt;/table&gt;</defaultItem>
  <noqueryItem>&lt;DIV class=Normal  id="Links_NEW"&gt;&lt;/DIV&gt;</noqueryItem>
  <SearchQuery />
  <SearchTitle />
  <SearchLink />
  <SearchAuthor />
  <SearchDate />
  <SearchKey />
  <SearchContent />
  <SearchDescription />
  <Version>17</Version>
</xListSettings>
