Field for middle initials has expanded to allow for full middle names

git-svn-id: https://rosehill.googlecode.com/svn/trunk@63 100bd78a-fc82-11de-b5bc-ffd2847a4b57
This commit is contained in:
inghamn 2010-01-28 21:23:44 +00:00
parent 4b8a24d590
commit 96572f37d4
7 changed files with 15 additions and 18 deletions

View File

@ -48,7 +48,7 @@
<td><input name="deed[firstname1]" id="deed-firstname1" /></td>
</tr>
<tr><td><label for="deed-middleInitial1">MI</label></td>
<td><input name="deed[middleInitial1]" id="deed-middleInitial1" size="1" maxlength="1" />
<td><input name="deed[middleInitial1]" id="deed-middleInitial1" />
</td>
</tr>
<tr><td><label for="deed-lastname1">Last</label></td>
@ -62,7 +62,7 @@
<td><input name="deed[firstname2]" id="deed-firstname2" /></td>
</tr>
<tr><td><label for="deed-middleInitial2">MI</label></td>
<td><input name="deed[middleInitial2]" id="deed-middleInitial2" size="1" maxlength="1" />
<td><input name="deed[middleInitial2]" id="deed-middleInitial2" />
</td>
</tr>
<tr><td><label for="deed-lastname2">Last</label></td>

View File

@ -67,7 +67,6 @@
</tr>
<tr><td><label for="deed-middleInitial1">MI</label></td>
<td><input name="deed[middleInitial1]" id="deed-middleInitial1"
size="1" maxlength="1"
value="<?php echo View::escape($this->deed->getMiddleInitial1()); ?>" />
</td>
</tr>
@ -87,7 +86,6 @@
</tr>
<tr><td><label for="deed-middleInitial2">MI</label></td>
<td><input name="deed[middleInitial2]" id="deed-middleInitial2"
size="1" maxlength="1"
value="<?php echo View::escape($this->deed->getMiddleInitial2()); ?>" />
</td>
</tr>

View File

@ -50,7 +50,7 @@ $return_url = isset($this->return_url) ? $this->return_url : BASE_URL.'/intermen
<td><input name="interment[firstname]" id="interment-firstname" /></td>
</tr>
<tr><td><label for="interment-middleInitial">MI</label></td>
<td><input name="interment[middleInitial]" id="interment-middleInitial" size="1" maxlength="1" />
<td><input name="interment[middleInitial]" id="interment-middleInitial" />
</td>
</tr>
<tr><td><label for="interment-lastname">Last</label></td>

View File

@ -73,7 +73,6 @@ $return_url = $this->return_url ? $this->return_url : BASE_URL.'/interments';
</tr>
<tr><td><label for="interment-middleInitial">MI</label></td>
<td><input name="interment[middleInitial]" id="interment-middleInitial"
size="1" maxlength="1"
value="<?php echo View::escape($this->interment->getMiddleInitial()); ?>" />
</td>
</tr>

View File

@ -314,11 +314,11 @@ class Deed
}
/**
* @param char $char
* @param string $string
*/
public function setMiddleInitial1($char)
public function setMiddleInitial1($string)
{
$this->middleInitial1 = $char;
$this->middleInitial1 = trim($string);
}
/**
@ -338,11 +338,11 @@ class Deed
}
/**
* @param char $char
* @param string $string
*/
public function setMiddleInitial2($char)
public function setMiddleInitial2($string)
{
$this->middleInitial2 = $char;
$this->middleInitial2 = trim($string);
}
/**

View File

@ -380,11 +380,11 @@ class Interment
}
/**
* @param char $char
* @param string $string
*/
public function setMiddleInitial($char)
public function setMiddleInitial($string)
{
$this->middleInitial = $char;
$this->middleInitial = trim($string);
}
/**

View File

@ -52,10 +52,10 @@ create table deeds (
lot varchar(5),
lastname1 varchar(20),
firstname1 varchar(20),
middleInitial1 char(1),
middleInitial1 varchar(20),
lastname2 varchar(20),
firstname2 varchar(20),
middleInitial2 char(1),
middleInitial2 varchar(20),
issueDate date,
notes text,
lot2 char(5),
@ -73,7 +73,7 @@ create table interments (
deceasedDate date,
lastname varchar(20),
firstname varchar(20),
middleInitial char(1),
middleInitial varchar(20),
birthPlace varchar(20),
lastResidence varchar(20),
age int unsigned,