Advertisement
Guest User

Untitled

a guest
Jan 10th, 2020
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.                         <cfdiv id="contactWin" tagName="contactWin">
  2. <cfquery name="getProspectContacts" datasource="#application.dsn#">
  3.     SELECT PC.*
  4.     FROM Prospects P INNER JOIN Prospect_Contacts PC ON P.Prospect_ID = PC.Prospect_ID
  5.     WHERE P.Prospect_ID = <cfqueryparam value="#attributes.Prospect_id#" cfsqltype="CF_SQL_INTEGER">
  6. </cfquery>
  7. <cfscript>
  8.     getProspectContactTypes = app.options("Prospect_Contact_Types");
  9. </cfscript>
  10. <table width="100%" border="0" cellspacing="0" cellpadding="4">
  11.     <tr>
  12.         <td class="result_item" valign="top" width="17%">Last Name</td>
  13.         <td class="result_item" valign="top" width="17%">First Name</td>
  14.         <td class="result_item" valign="top" width="17%">Title</td>
  15.         <td class="result_item" valign="top" width="17%">Phone</td>
  16.         <td class="result_item" valign="top" width="17%">Email</td>
  17.         <td class="result_item" valign="top" width="17%">Contact Type</td>
  18.         <td class="result_item">&nbsp;</td>
  19.     </tr>
  20.     <cfloop query="getProspectContacts">
  21.         <tr class="<cfif currentrow MOD 2 EQ 0>grid_row<cfelse>grid_row_alt</cfif>">
  22.             <td valign="top" width="17%">#getProspectContacts.First_Name#</td>
  23.             <td class="<cfif currentrow MOD 2 EQ 0>grid_row<cfelse>grid_row_alt</cfif>" valign="top" width="17%">#getProspectContacts.Last_Name#</td>
  24.             <td valign="top" width="17%">#getProspectContacts.Title#</td>
  25.             <td valign="top" width="17%">#getProspectContacts.Phone#</td>
  26.             <td valign="top" width="17%">#getProspectContacts.Email#</td>
  27.             <td valign="top" width="17%">#getProspectContacts.Contact_Type#</td>
  28.         </tr>
  29.     </cfloop>
  30.     <form method="post" target="contactWin">
  31.     <tr>
  32.         <td class="grid_row"><input type="text" name="first_name_edit" value="" size="20" maxlength="100" class="small"></td>
  33.         <td class="grid_row"><input type="text" name="last_name_edit" value="" size="20" maxlength="100" class="small"></td>
  34.         <td class="grid_row"><input type="text" name="title_edit" value="" size="20" maxlength="100" class="small"></td>
  35.         <td class="grid_row"><input type="text" name="phone_edit" value="" size="20" maxlength="100" class="small"></td>
  36.         <td class="grid_row"><input type="text" name="email_edit" value="" size="20" maxlength="100" class="small"></td>
  37.         <td class="grid_row" colspan="3" valign="top" style="padding-top: 5px;">
  38.             <cfif getProspectContactTypes.recordcount GT 1>
  39.                 <select name="prospect_contact_type_edit" class="required" class="small" style="margin-top: -10px;">
  40.                     <option value="" Selected>Select...</option>
  41.                     <cfloop query="getProspectContactTypes">
  42.                         <option value="#getProspectContactTypes.option_value#">#getProspectContactTypes.option_text#</option>
  43.                     </cfloop>
  44.                 </select>
  45.             <cfelse>
  46.                 <input type="hidden" name="prospect_contact_type_edit" value="#getProspectContactTypes.Option_value#">
  47.             </cfif>
  48.             <input type="submit" name="contactAdd" value="Add" style="height: 22px; vertical-align: bottom; padding: 0px;">
  49.         </td>
  50.     </tr>
  51.     </form>
  52. </table>
  53. <cfdump var="#form#">
  54.                        
  55.                         </cfdiv>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement