├── scriptReplaceFilesWithExtension.ps1 ├── EmployeeDirectory.css ├── Item_LargePicture_Hero.html ├── Item_Person_Table.html ├── Control_Slideshow_Hero.html └── Control_SearchResults_Table.html /scriptReplaceFilesWithExtension.ps1: -------------------------------------------------------------------------------- 1 | $goodFiles = Read-Host -Prompt 'Input the path of the directory you want to copy from' 2 | $badFiles = Read-Host -Prompt 'Input the path of the directory you want to past to' 3 | $fileExtensionType = Read-Host -Prompt 'Input the extension type you want to replace (make sure to include .extensionname)' 4 | Get-ChildItem $goodFiles | ForEach-Object { 5 | $currentFile = $_ 6 | $currentFileName = $_.BaseName 7 | Write-Host $currentFile 8 | $badFileLocation = Get-ChildItem -Recurse $badFiles | Where-Object { $_.BaseName -Match "$currentFileName" -and $_.extension -eq $fileExtensionType} | Select-Object -ExpandProperty DirectoryName 9 | 10 | if($badFileLocation) { # if this variable is not null, we've found original file location 11 | Write-Host "found file [$currentFile] in location: [$badFileLocation]. overwriting the original." 12 | Copy-Item -Path $goodFiles\$currentFile -Destination $badFileLocation -Force 13 | Write-Host "Deleting [$fileExtensionType] : [$badFileLocation][$currentFileName].jse file" 14 | Remove-Item -Path $badFileLocation\$currentFileName.jse -Force 15 | } 16 | else { 17 | Write-Warning "Could not find a [$fileExtensionType] file named [$currentFileName] in location [$badFiles]." 18 | } 19 | 20 | } -------------------------------------------------------------------------------- /EmployeeDirectory.css: -------------------------------------------------------------------------------- 1 | /* Alpha links for search */ 2 | #DeltaPlaceHolderSearchArea{ 3 | display:none; 4 | } 5 | .ms-core-suiteLinkList{ 6 | display:none; 7 | } 8 | #ResultHeader{ 9 | margin:5px 5px 5px 5px!important; 10 | display:block!important; 11 | } 12 | .note{ 13 | width:33%; 14 | float:right; 15 | } 16 | #edir-alpha-links { 17 | margin-top:10px; 18 | } 19 | #edir-alpha-links span { 20 | padding:0 3px 0 3px; 21 | width:35px; 22 | font-size:18px; 23 | } 24 | #edir-alpha-links span.no-link { 25 | padding:0 6px 0 6px; 26 | } 27 | #edir-alpha-links span a { 28 | padding:0 3px 0 3px; 29 | border-radius:6px 6px 6px 6px; 30 | background-color:#26917b; 31 | color:#fff; 32 | } 33 | #edir-alpha-links span a.selected { 34 | background-color:#26917b; 35 | } 36 | /* Alpha links for search */ 37 | .ms-listviewtable{ 38 | border-collapse:collapse!important; 39 | } 40 | .peopleItem td{ 41 | border:thin black solid; 42 | } 43 | .peopleHeader { 44 | } 45 | .peopleHeader td{ 46 | border:thin black solid; 47 | } 48 | 49 | tbody:nth-child(even) { 50 | background-color: #d3d3d3; 51 | 52 | } 53 | tr:nth-child(even) { 54 | /*background-color: #d3d3d3;*/ 55 | } 56 | .ms-viewheadertr { 57 | background:#26917b; 58 | } 59 | .ms-vh2{ 60 | color:white; 61 | font-weight:bold; 62 | font-size:10pt; 63 | text-align:center; 64 | } 65 | .label { 66 | width:46%; 67 | margin-top:8px; 68 | margin-right:10px; 69 | font-weight:bold; 70 | float:none!important; 71 | } 72 | .ms-vh2 { 73 | } 74 | .clear { 75 | clear:both; 76 | } 77 | .left{ 78 | float:left; 79 | width:40% 80 | } 81 | .right{ 82 | float:right; 83 | width:40%; 84 | } 85 | .btnRight{ 86 | float:right; 87 | width:20%; 88 | } 89 | .profileDetail{ 90 | padding:15px; 91 | position:fixed; 92 | width:800px; 93 | top: 40%; 94 | left: 50%; 95 | margin-left: -400px; 96 | margin-top: -40px; 97 | z-index:100; 98 | } 99 | .ms-srch-sb-border{ 100 | border:thin black solid!important; 101 | } -------------------------------------------------------------------------------- /Item_LargePicture_Hero.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hero Large Picture 4 | 5 | 17 | 18 | 19 | 20 | 21 | 26 | 29 | 30 | 38 | 39 |
40 | 62 |
63 | 68 |
69 | 74 |
75 |
76 | 77 | 78 | -------------------------------------------------------------------------------- /Item_Person_Table.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | People Search Table Item 4 | 5 | 19 | 20 | 21 |
22 | 36 | 37 | 38 | 42 | 43 | 44 | Display Name 45 | First Name 46 | 47 | Ascending 48 | 49 | 50 | Descending 51 | 52 | 53 | 54 | Last Name 55 | 56 | 57 | Title 58 | Office 59 | Department 60 | Work # 61 | Mobile # 62 | Email 63 | 64 | 65 | 68 | 69 | 70 | 71 | _#= ctx.CurrentItem.PreferredName =#_ 72 | 73 | _#=ctx.CurrentItem.FirstName=#_ 74 | _#=ctx.CurrentItem.LastName=#_ 75 | _#=ctx.CurrentItem.JobTitle=#_ 76 | _#= ctx.CurrentItem.BaseOfficeLocation =#_ 77 | _#=ctx.CurrentItem.Department=#_ 78 | _#=ctx.CurrentItem.WorkPhone=#_ 79 | _#=ctx.CurrentItem.MobilePhone=#_ 80 | 81 | _#=ctx.CurrentItem.WorkEmail=#_ 82 | 83 | 84 | 85 | 88 | 138 | 139 |
140 | 141 | 142 | -------------------------------------------------------------------------------- /Control_Slideshow_Hero.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Hero Image Slideshow 4 | 5 | 16 | 17 | 18 | 19 | 20 | 25 | 28 | 29 | 37 | 38 |
39 | 196 |
197 |
198 | _#= ctx.RenderGroups(ctx) =#_ 199 |
200 | 203 |
_#= $noResults =#_
204 | 207 |
208 |
209 | 210 | 217 | 218 |   219 | 220 | 224 |
225 | 226 |
227 | 230 |
231 |
232 |
233 | 234 | 235 | -------------------------------------------------------------------------------- /Control_SearchResults_Table.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | People Search Table Control 4 | 5 | 18 | 19 | 20 | 24 | 25 |
26 | 27 | 35 | 36 | 37 | 55 | 97 | 98 | 99 | 100 | 106 |
107 | 124 |
125 | _#= getUpScopeHtml("UpScopeLinkTopA") =#_ 126 |
127 | 147 |
148 |
    149 | 156 |
  • 157 | 177 |
  • 178 | 183 |

    Click the dropdown to sort

    184 |
  • 185 | 207 | 208 |
  • 209 | 212 |
213 |
214 | 233 |
234 |
_#= $htmlEncode(Srch.Res.qs_PersonalResultTitleSingular) =#_
235 | _#= Srch.U.trimTitle(pfTitle, Srch.U.titleTruncationLength, 2) =#_ 236 |
237 | 247 |
248 | _#= String.format($htmlEncode(Srch.Res.rs_DidYouMean), dymHtml) =#_ 249 |
250 | 261 |
262 |
263 |

_#= $htmlEncode(Srch.Res.rs_Edit_ResultSourcesTitle) =#_

264 |
_#= String.format($htmlEncode(Srch.Res.rs_Edit_ResultSourcesDescription), sourcesHtml) =#_
265 |
266 |
267 |

_#= $htmlEncode(Srch.Res.rs_Edit_ResultTypesTitle) =#_

268 |
_#= String.format($htmlEncode(Srch.Res.rs_Edit_ResultTypesDescription), displayTemplatesHtml, resultTypesHtml) =#_
269 |
270 |
271 |

_#= $htmlEncode(Srch.Res.rs_Edit_QueryRulesTitle) =#_

272 |
_#= String.format($htmlEncode(Srch.Res.rs_Edit_QueryRulesDescription), queryRulesHtml) =#_
273 |
274 |
275 |
_#= String.format($htmlEncode(Srch.Res.rs_Edit_ConfigureSearchResults), configureResultsLink) =#_
276 |
277 |
278 | 281 |
282 | 285 | 286 | _#= ctx.RenderGroups(ctx) =#_ 287 |
288 | 291 |
292 | 297 |
_#= $htmlEncode(Srch.Res.rs_NoResultsTitle) =#_
298 |
_#= $htmlEncode(Srch.Res.rs_NoResultsSuggestions) =#_
299 |
    300 |
  • _#= $htmlEncode(Srch.Res.rs_NoResultsSpelling) =#_
  • 301 |
  • _#= $htmlEncode(Srch.Res.rs_NoResultsDifferentTerms) =#_
  • 302 |
  • _#= $htmlEncode(Srch.Res.rs_NoResultsGeneralTerms) =#_
  • 303 |
  • _#= $htmlEncode(Srch.Res.rs_NoResultsFewerTerms) =#_
  • 304 | 307 |
  • _#= $htmlEncode(Srch.Res.rs_NoResultsRefiners) =#_
  • 308 | 313 |
  • _#= String.format($htmlEncode(Srch.Res.rs_NoResultsTips), searchTipsLink) =#_
  • 314 |
315 | 320 | _#= $htmlEncode(emptyMessage) =#_ 321 | 324 |
325 | 328 |
329 | 330 | 333 |
334 | _#= getUpScopeHtml("UpScopeLinkBottomA") =#_ 335 |
336 | 343 | 382 | 386 | 387 |
388 | 396 |
397 | _#= String.format($htmlEncode(countDisplayString), $htmlEncode(totalRows.localeFormat("N0"))) =#_ 398 |
399 | 402 | 403 | 437 |
438 | 441 |
442 |
443 | 444 | 445 | --------------------------------------------------------------------------------