forked from science-ation/science-ation
enter salutations using a textfield, not a dropdown.
This commit is contained in:
parent
343f0f8acd
commit
4cba8caa3c
@ -641,7 +641,6 @@ function draw_contactsinfo_form($contact = null){
|
|||||||
|
|
||||||
// draw a form in which to enter information about the various contacts
|
// draw a form in which to enter information about the various contacts
|
||||||
function draw_contact_form($sponsor_id, $contact = null){
|
function draw_contact_form($sponsor_id, $contact = null){
|
||||||
global $salutations;
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
//grab the sponsor details, so we can do diff things for individual vs organization
|
//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>
|
<tr>
|
||||||
<td><?=i18n("Salutation"); ?></td>
|
<td><?=i18n("Salutation"); ?></td>
|
||||||
<td>
|
<td>
|
||||||
<select name="salutation">
|
<input name="salutation" type="text" value="<?=htmlspecialchars($contact['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";
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</select>
|
</select>
|
||||||
</td>
|
</td>
|
||||||
<td><?=i18n("Position"); ?></td>
|
<td><?=i18n("Position"); ?></td>
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
<?
|
<?
|
||||||
$campaign_types=array("Mail","Email","Phone","Personal Visit","Event","Other");
|
$campaign_types=array("Mail","Email","Phone","Personal Visit","Event","Other");
|
||||||
$salutations=array("Mr.","Mrs.","Ms","Dr.","Professor");
|
|
||||||
|
|
||||||
function getGoal($goal) {
|
function getGoal($goal) {
|
||||||
global $config;
|
global $config;
|
||||||
|
Loading…
Reference in New Issue
Block a user