Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <apex:page controller="clist" showHeader="true" sidebar="true">
- <apex:form>
- <apex:pageBlock title="List of Contacts: {!total_size}" mode="inlineEdit">
- <apex:pageBlockTable value="{!ct}" var="c" id="ct">
- <apex:column>
- <apex:outputLink title="" value="/{!c.id}/e?retURL=/apex/{!$CurrentPage.Name}" style="font-weight:bold">Edit</apex:outputLink>
- |
- <apex:commandlink value="Delete" action="{!DeleteContact}">
- <apex:param name="cId" value="{!c.Id}" assignTo="{!cId}" />
- </apex:commandlink>
- </apex:column>
- <apex:column value="{!c.Id}" />
- <apex:column value="{!c.FirstName}" />
- <apex:column value="{!c.LastName}" />
- <apex:column value="{!c.Email}" />
- <apex:column value="{!c.AccountId}" />
- <apex:column value="{!c.Phone}" />
- </apex:pageBlockTable>
- <apex:pageBlockButtons>
- <apex:commandButton value="save" action="{!save1}" />
- <apex:commandButton action="{!Previous}" value="previousPage" disabled="{!disablePrevious}" />
- <apex:commandButton action="{!Next}" value="Nextpage" disabled="{!disableNext}" />
- <apex:commandButton action="{!Last}" value="Last" disabled="{!disableNext}" />
- </apex:pageBlockButtons>
- <br/><br/>
- <apex:pageBlockSection id="task1">
- First Name
- <apex:inputText value="{!firstName}" />
- Last Name
- <apex:inputText value="{!lastName}" />
- Phone
- <apex:inputText value="{!phone}" />
- Email:
- <apex:inputText value="{!email}" />
- <apex:commandButton value="save" action="{!save}" />
- </apex:pageBlockSection>
- <apex:pageBlock>
- <apex:commandButton value="{!Pagect}" />
- <apex:commandButton value="{!TotalPages}" />
- </apex:pageBlock>
- </apex:pageBlock>
- </apex:form>
- </apex:page>
Add Comment
Please, Sign In to add comment