enter salutations using a textfield, not a dropdown.

This commit is contained in:
justin 2010-07-11 13:52:28 +00:00
parent 343f0f8acd
commit 4cba8caa3c
2 changed files with 1 additions and 10 deletions

View File

@ -641,7 +641,6 @@ function draw_contactsinfo_form($contact = null){
// draw a form in which to enter information about the various contacts
function draw_contact_form($sponsor_id, $contact = null){
global $salutations;
global $config;
//grab the sponsor details, so we can do diff things for individual vs organization
@ -687,14 +686,7 @@ function draw_contact_form($sponsor_id, $contact = null){
<tr>
<td><?=i18n("Salutation"); ?></td>
<td>
<select name="salutation">
<option value=""><?=i18n("Choose")?></option>
<?
foreach($salutations AS $salutation) {
if($contact['salutation']==$salutation) $sel="selected=\"selected\""; else $sel="";
echo "<option $sel value=\"$salutation\">$salutation</option>\n";
}
?>
<input name="salutation" type="text" value="<?=htmlspecialchars($contact['salutation'])?>">
</select>
</td>
<td><?=i18n("Position"); ?></td>

View File

@ -1,6 +1,5 @@
<?
$campaign_types=array("Mail","Email","Phone","Personal Visit","Event","Other");
$salutations=array("Mr.","Mrs.","Ms","Dr.","Professor");
function getGoal($goal) {
global $config;