如何在分页中将默认视图设置为最后一页:PHP

时间:2016-09-14 17:37:21

标签: php pagination

这是我从互联网上获得的剧本

param (

[string]$DomainAdminAcct,
[string]$DomainAdminPass,
[string]$ServerName

)

InlineScript {
Add-PSSnapin VMWare.VimAutomation.Core
$vCenter = "test300"
Connect-ViServer -server $vCenter -ErrorAction Stop


$myCluster = Get-Cluster -Name "DC Test"
$myTemplate = Get-Template -Name "2012dc" -Location "our company"
$OSCustomizationSpec = New-OSCustomizationSpec –Name “$ServerName” –FullName “$ServerName” –OrgName “our company” –Domain “our.domain.com” –DomainUsername “$DomainAdminAcct” –DomainPassword "$DomainAdminPass" -AdminPassword "changeme" -ChangeSid
New-VM -Name $ServerName  -ResourcePool $myCluster -Template $myTemplate -OSCustomizationSpec $OSCustomizationSpec  

 }
}

此程序查看第一页但我想在将最后一行数据插入表“players”后将默认视图设置为最后一页。我有一个像反向分页的东西,但我不知道如何设置它。我不擅长php。请帮忙!

0 个答案:

没有答案