Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added the stuff for the text messaging field -- Fixed bug #219

  • Loading branch information...
commit a09fc08c373c924e06b457f16c05d592aa12fd26 1 parent 3c76b2f
wolfpac444 authored
View
6 insertdata.pl
@@ -59,7 +59,7 @@
categorycode='$data{'categorycode'}',city='$data{'city'}',area='$data{'area'}',phone='$data{'phone'}',
borrowernotes='$data{'borrowernotes'}',altphone='$data{'altphone'}',surname='$data{'surname'}',
initials='$data{'initials'}',physstreet='$data{'address'}',ethnicity='$data{'ethnicity'}',
- gonenoaddress='$data{'gna'}',lost='$data{'lost'}',debarred='$data{'debarred'}'
+ gonenoaddress='$data{'gna'}',lost='$data{'lost'}',debarred='$data{'debarred'}',textmessaging='$data{'textmessaging'}'
where borrowernumber=$data{'borrowernumber'}";
# print $query;
@@ -69,11 +69,11 @@
$data{'joining'}=ParseDate($data{'joining'});
$data{'joining'}=UnixDate($data{'joining'},'%Y-%m-%d');
$query="insert into borrowers (title,expiry,cardnumber,sex,ethnotes,streetaddress,faxnumber,
- firstname,altnotes,dateofbirth,contactname,emailaddress,dateenrolled,streetcity,
+ firstname,altnotes,dateofbirth,contactname,emailaddress,textmessaging,dateenrolled,streetcity,
altrelationship,othernames,phoneday,categorycode,city,area,phone,borrowernotes,altphone,surname,
initials,ethnicity,borrowernumber) values ('$data{'title'}','$data{'expiry'}','$data{'cardnumber'}',
'$data{'sex'}','$data{'ethnotes'}','$data{'address'}','$data{'faxnumber'}',
- '$data{'firstname'}','$data{'altnotes'}','$data{'dateofbirth'}','$data{'contactname'}','$data{'emailaddress'}',
+ '$data{'firstname'}','$data{'altnotes'}','$data{'dateofbirth'}','$data{'contactname'}','$data{'emailaddress'}','$data{'textmessaging'}',
'$data{'joining'}','$data{'streetcity'}','$data{'altrelationship'}','$data{'othernames'}',
'$data{'phoneday'}','$data{'categorycode'}','$data{'city'}','$data{'area'}','$data{'phone'}',
'$data{'borrowernotes'}','$data{'altphone'}','$data{'surname'}','$data{'initials'}',
View
18 koha-tmpl/intranet-tmpl/default/en/members/memberentry.tmpl
@@ -115,16 +115,30 @@
<tr valign=top bgcolor=white>
<td COLSPAN=2><input type=text name=phone size=20 value="<TMPL_VAR NAME=phone>"></td>
- <td><input type=text name=phoneday size=20 value="<TMPL_VAR NAME=phoneday>"></td>
<td><input type=text name=faxnumber size=20 value="<TMPL_VAR NAME=faxnumber>"></td>
<td><input type=text name=emailaddress size=20 value="<TMPL_VAR NAME=emailaddress>"></td>
+ <td><input type=text name=textmessaging size=20 value="<TMPL_VAR NAME=textmessaging>"></td>
</tr>
<tr valign=top bgcolor=white>
<td COLSPAN=2 ><FONT SIZE=2>Phone (Home)</td>
- <td><FONT SIZE=2>Phone (day)</td>
<td><FONT SIZE=2>Fax</td>
<td><FONT SIZE=2>Email</td>
+ <td><FONT SIZE=2>Text Messaging</td>
+ </tr>
+
+ <tr valign=top bgcolor=white>
+ <td COLSPAN=2><input type=text name=phone size=20 value="<TMPL_VAR NAME=phoneday>"></td>
+ <td></td>
+ <td></td>
+ <td></td>
+ </tr>
+
+ <tr valign=top bgcolor=white>
+ <td COLSPAN=2 ><FONT SIZE=2>Phone (Day)</td>
+ <td></td>
+ <td></td>
+ <td></td>
</tr>
<tr valign=top bgcolor="99cc33">
View
2  koha-tmpl/intranet-tmpl/default/en/members/moremember.tmpl
@@ -28,7 +28,7 @@
Phone (Daytime): <TMPL_VAR NAME="phoneday"><BR>
Fax: <TMPL_VAR NAME="faxnumber"><BR>
E-mail: <a href="mailto:<TMPL_VAR NAME="emailaddress">"><TMPL_VAR NAME="emailaddress"></a><br>
- Textmessaging:<TMPL_VAR NAME="textmessaging"><p>
+ Text messaging: <TMPL_VAR NAME="textmessaging"><p>
Membership Number: <TMPL_VAR NAME="borrowernumber"><BR>
Membership: <TMPL_VAR NAME="categorycode"><BR>
Area: <TMPL_VAR NAME="area"><BR>
View
10 koha-tmpl/intranet-tmpl/default/en/newmember.tmpl
@@ -187,6 +187,14 @@
<TMPL_VAR Name="emailaddress">
</td>
</tr>
+ <tr valign=top bgcolor="white" >
+ <td>
+ <B>Text messaging</B>
+ </td>
+ <td>
+ <TMPL_VAR NAME=textmessaging>
+ </td>
+ </tr>
<tr valign=top bgcolor="<TMPL_VAR Name="main">" >
<td background="<TMPL_VAR Name="image">">
<B>ALTERNATIVE CONTACT DETAIL</B>
@@ -255,4 +263,4 @@
</TMPL_IF>
-<TMPL_INCLUDE Name="members-bottom.inc">
+<TMPL_INCLUDE Name="members-bottom.inc">
View
1  memberentry.pl
@@ -195,6 +195,7 @@
phoneday => $data->{'phoneday'},
faxnumber => $data->{'faxnumber'},
emailaddress => $data->{'emailaddress'},
+ textmessaging => $data->{'textmessaging'},
contactname => $data->{'contactname'},
altphone => $data->{'altphone'},
altnotes => $data->{'altnotes'},
View
1  misc/koha.mysql
@@ -266,6 +266,7 @@ CREATE TABLE borrowers (
phone text NOT NULL,
emailaddress text,
faxnumber text,
+ textmessaging text,
altstreetaddress text,
altsuburb text,
altcity text,
View
1  newmember.pl
@@ -167,6 +167,7 @@
phoneday => $data{'phoneday'},
faxnumber => $data{'faxnumber'},
emailaddress => $data{'emailaddress'},
+ textmessaging => $data{'textmessaging'},
contactname => $data{'contactname'},
altphone => $data{'altphone'},
altrelationship => $data{'altrelationship'},
Please sign in to comment.
Something went wrong with that request. Please try again.