Visualforce pages in stadard page layout salesforce

<apex:page standardController="SFDC_Employee__c">
    <style type="text/css">
        * {
          font-family: Roboto;
        }

        div.message {
          position: relative;
          padding: 1px;
          padding-left: 35px;
          margin: 20px 10px;
          box-shadow: 0 2px 5px rgba(0, 0, 0, .3);
          background: #BBB;
          color: #FFF;
        }

        div.message.lost {
            color: white;
            background: red;
        }
       
        div.message.won {
            color: white;
            background: green;
        }
    </style>

    <link href="//fonts.googleapis.com/css?family=Roboto:300italic,400italic,400,300,600,700" rel="stylesheet" type="text/css" />
    <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet" />

   <div class="won message" style="display: {!IF(SFDC_Employee__c.Employee_Type__c= 'Full Time', '', 'none')}" >
      <h2>Employee : This Employee is Full Time person</h2>
    </div>
   
    <div class="lost message" style="display: {!IF(SFDC_Employee__c.Employee_Type__c= 'Part Time', '', 'none')}" >
      <h2>Employee : This Employee is Part Time person</h2>
    </div>
</apex:page>



No comments:

Featured

What is Cryptography in salesforce and what are all the algorithms provided by them ?

A). It is a security protocal between two systems. Lets say we are integration two systems without any encrytion mechanism then hackers wil...

Popular