Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form id="details" action="process.php" method="POST" onSubmit="return check_file_name();" >
- <table>
- <tr>
- <td style="width:100px;" valign="top">Lead Source</td>
- <td>
- <select name="Lead_Source[]" class="large">
- <?php
- $leads = array("TD Scotland","IVA Compare","Debt Advice Company","Trust Deeds Direct" );
- foreach($leads as $lead){
- if(in_array($lead,$_SESSION['details']['Lead Source']) || $lead == $_SESSION['details']['Lead Source']){
- $selected = "selected='true'";
- } else {
- $selected='';
- }
- echo "<option value='$lead' $selected>$lead</option>";
- }
- ?>
- </select>
- </td>
- </tr>
- <tr>
- <td style="width:100px;" valign="top">IP</td>
- <td>
- <select name="IP" class="large">
- <?php
- $ips = array("Tenon","Carrington Dean");
- foreach($ips as $ip){
- if($ip == $_SESSION['details']['IP']){
- $selected = "selected='true'";
- } else {
- $selected='';
- }
- echo "<option value='$ip' $selected>$ip</option>";
- }
- ?>
- </select>
- </td>
- </tr>
- <tr>
- <td style="width:100px;" valign="top">Product<br/><i>(Ctrl Click to Select more than one)</i></td>
- <td>
- <select name="Product[]" class="large" size="6" multiple="true">
- <?php
- $products = array("TD","Double TD","IVA","DMP","LI","PPI","DAS");
- foreach($products as $product){
- if(in_array($product,$_SESSION['details']['Product']) || $product == $_SESSION['details']['Product']){
- $selected = "selected='true'";
- } else {
- $selected='';
- }
- echo "<option value='$product' $selected>$product</option>";
- }
- ?>
- </select>
- </td>
- </tr>
- <tr>
- <td style="width:100px;">Kelsom employee</td>
- <td>
- <select name="Kelsom_Employee" class="large">
- <option value=""></option>
- <?php
- $users = array("JP","Mark Sommerville","Stuart Harris");
- foreach($users as $user){
- if($user==$_SESSION['details']['Kelsom Employee']){
- $selected = "selected='true'";
- } else {
- $selected='';
- }
- echo "<option value='$user' $selected>$user</option>";
- }
- ?>
- </select>
- </td>
- </tr>
- <!--<tr>
- <td>Lead Source</td>
- <td>
- <select name="Lead_Source" class="large">
- <option value=""></option>
- <?php
- $sources = array("TD Scotland","IVA Compare");
- foreach($sources as $source){
- if($source==$_SESSION['details']['Lead Source']){
- $selected = "selected='true'";
- } else {
- $selected='';
- }
- echo "<option value='$source' $selected>$source</option>";
- }
- ?>
- </select>
- </td>
- </tr>-->
- <tr>
- <td>Home Owner</td>
- <td>
- <select name="Home_Owner" id="homeOwner" class="small">
- <option value=""></option>
- <?php
- $bool = array("Yes","No");
- foreach($bool as $value){
- if($value==$_SESSION['details']['Home Owner']){
- $selected = "selected='true'";
- } else {
- $selected='';
- }
- echo "<option value='$value' $selected>$value</option>";
- }
- ?>
- </select>
- </td>
- </tr>
- </table>
- <div id="show_parent">
- <div id="show_child">
- <table style='padding-top:0px;margin-top:0px;'>
- <tr>
- <td style="width:100px;">Equity</td>
- <td>
- £ <input type="text" name="Equity" style="width:90px;" value="<?php echo substr($_SESSION['details']['Equity'],7); ?>" />
- </td>
- </tr>
- <tr>
- <td>Last Survey Date</td>
- <td>
- <?php survey_date(); ?>
- </td>
- </tr>
- <tr>
- <td>House Type</td>
- <td>
- <select name="House_Type" class="large">
- <option value=""></option>
- <?php
- $houseTypes = array("Detached","Semi-detached","Flat");
- foreach($houseTypes as $type){
- if($type==$_SESSION['details']['House Type']){
- $selected = "selected='true'";
- } else {
- $selected='';
- }
- echo "<option value='$type' $selected>$type</option>";
- }
- ?>
- </select>
- </td>
- </tr>
- </table>
- </div>
- </div>
- <table style='padding-top:0px;margin-top:0px;'>
- <tr>
- <td style="width:100px;">Telephone 1</td>
- <td>
- <input type="text" name="tel1" value="<?php echo $_SESSION['details']['Tel1']; ?>" />
- </td>
- </tr>
- <tr>
- <td>Telephone 2</td>
- <td>
- <input type="text" name="tel2" value="<?php echo $_SESSION['details']['Tel2']; ?>" />
- </td>
- </tr>
- <tr>
- <td style="width:100px;" valign="top">Call</td>
- <td>
- <select name="call" class="large">
- <?php
- $leads = array("anytime","morning","afternoon","evening");
- foreach($leads as $lead){
- if(in_array($lead,$_SESSION['details']['call']) || $lead == $_SESSION['details']['Call']){
- $selected = "selected='true'";
- } else {
- $selected='';
- }
- echo "<option value='$lead' $selected>$lead</option>";
- }
- ?>
- </select>
- </td>
- </tr>
- <tr>
- <td style="width:100px;" valign="top">Time</td>
- <td>
- <?php
- list($hour,$minute,$am_pm) = explode(":", $_SESSION['details']['Time']);
- echo hourmin("time[]","time[]","time[]",$hour,$minute,$am_pm);
- ?>
- </td>
- </tr>
- <tr>
- <td style="width:100px;">Address</td>
- <td>
- <textarea name="Contact_Details" style="height:100px;"><?php echo $_SESSION['details']['Contact Details']; ?></textarea>
- </td>
- </tr>
- <tr>
- <td>Notes</td>
- <td>
- <textarea name="Notes"><?php echo $_SESSION['details']['Notes']; ?></textarea>
- </td>
- </tr>
- </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement