<CFCONTENT TYPE="text/vnd.wap.wml"><?xml version="1.0"?>
<!-- Get the employee information -->
<cfquery name="Detail" datasource="Corporate_Directory">
SELECT *
FROM Employee_Information
WHERE Employee_ID = '#URL.Employee_ID#'
</cfquery>

<!-- Strip out (, ), or - -->
<cfif Detail.Employee_Direct_Phone NEQ "">
<cfset Direct_Dial = Replace(Detail.Employee_Direct_Phone, "(", "", 
    "ALL")>
<cfset Direct_Dial = Replace(Direct_Dial, ")", "", "ALL")>
<cfset Direct_Dial = Replace(Direct_Dial, "-", "", "ALL")>
</cfif>
<!-- End Stripping -->

<!DOCTYPE wml PUBLIC "-//PHONE.COM//DTD WML 1.1//EN" 
    "http://www.phone.com/dtd/wml11.dtd" >


<wml>

    <card id="search">
        <p>
        
        <strong>Corporate Directory</strong>
        <br/>
        <strong>| Detail |</strong>
        <br/>
        <cfoutput query="Detail">
        #Employee_Last_Name#, #Employee_First_Name# 
             #Employee_Middle_Initial#<br/>
        <cfif Employee_Direct_Phone NEQ "">
        <a href="wtai://wp/mc;#Direct_Dial#">Place Call</a><br/>
        Direct: #Employee_Direct_Phone#<br/>
        </cfif>
        
        <cfif Employee_Ext_Phone NEQ "">
        Ext: #Employee_Ext_Phone#<br/>
        </cfif>
        
        <cfif Employee_Cell_Phone NEQ "">
        Mobile: #Employee_Cell_Phone#<br/>
        </cfif>
        </cfoutput>
        
        
        </p>
    </card>

</wml>