Koha/koha-tmpl/intranet-tmpl/prog/en/members/memberentryI.tmpl

478 lines
27 KiB
Cheetah
Executable file

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Organisation Patron Management</title>
<script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/includes/members.js"></script>
<!-- TMPL_INCLUDE NAME="calendar.inc" -->
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<!-- TMPL_INCLUDE NAME="menus.inc" -->
<!-- TMPL_INCLUDE NAME="menu-members.inc" -->
<!-- TMPL_IF NAME="opadd" -->
<h1>
Add organisation patron (step <!-- TMPL_VAR NAME="step" -->) <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
</h1>
<!-- TMPL_ELSE -->
<h1 >
Modify organisation patron <!-- TMPL_VAR NAME="surname" --> <!-- TMPL_VAR name="firstname" -->
</h1>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="check_member" -->
<!-- TMPL_IF NAME="step_2" -->
<p>
<form name="form_double">
<div id="problem">
Duplicate suspected
<a href="javascript:Dopop('borrowers_details.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->');" class="borrowers_button">Details</a>
Duplicate ?
<a href="/cgi-bin/koha/members/memberentry.pl?borrowernumber=<!--TMPL_VAR NAME="check_member"-->&category_type=<!--TMPL_VAR NAME="check_categorytype"-->" class="borrowers_button">Yes</a>
&nbsp;&nbsp;&nbsp; No, it is not
<input type="checkbox" <!-- TMPL_IF NAME="checked"--> checked <!--/TMPL_IF--> name="answernodouble" >
</div>
</form>
</p>
<!--/TMPL_IF-->
<!--/TMPL_IF-->
<!-- TMPL_IF Name="nok" -->
<h1>ERROR</h1>
<div id="problem">
<p>The following fields are wrong. Please fix it/them</p>
<!-- TMPL_IF NAME="ERROR_cardnumber" -->
<p>Cardnumber already in use</p>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="ERROR_login_exist" -->
<p>login/password already exist</p>
<!-- /TMPL_IF -->
</div>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="step_1"-->
<form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
<!-- field always hidden in different form (1,2,3) -->
<input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->">
<input type="hidden" name="FormFieldList" value="cardnumber|surname|contactname|contactfirstname|select_city">
<input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->">
<input type="hidden" name="type" value="borrowers">
<input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->">
<input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->">
<input type="hidden" name="actionType" value="<!-- TMPL_VAR NAME="actionType" -->">
<input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->">
<input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
<input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->">
<input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
<!-- from form 2 -->
<input type="hidden" name="streetnumber" value="<!-- TMPL_VAR NAME="streetnumber" -->">
<input type="hidden" name="streettype" value="<!-- TMPL_VAR NAME="streettype" -->">
<input type="hidden" name="address" value="<!-- TMPL_VAR NAME="address" -->">
<input type="hidden" name="address2" value="<!-- TMPL_VAR NAME="address2" -->">
<input type="hidden" name="zipcode" value="<!-- TMPL_VAR NAME="zipcode" -->">
<input type="hidden" name="city" value="<!-- TMPL_VAR NAME="city" -->">
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->">
<input type="hidden" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" >
<input type="hidden" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" >
<textarea style="display:none;" name="contactnote" cols="70" rows="3" ><!-- TMPL_VAR NAME="contactnote" --></textarea>
<input type="hidden" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" />
<!-- from form 3 -->
<input type="hidden" name="dateenrolled" size="20" value="<!-- TMPL_VAR NAME="dateenrolled" -->">
<input type="hidden" name="dateexpiry" size="20" value="<!-- TMPL_VAR NAME="dateexpiry" -->">
<textarea style="display:none;" name="opacnote" cols="70" rows="3"><!-- TMPL_VAR NAME="opacnote"--></textarea>
<textarea style="display:none;" name="borrowernotes" cols="70" rows="3"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
<input type="hidden" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->">
<input type="hidden" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->">
<input type="hidden" name="debarred" value="<!-- TMPL_VAR NAME="debarred" -->" />
<input type="hidden" name="lost" value="<!-- TMPL_VAR NAME="lost" -->" />
<input type="hidden" name="gonenoaddress" value="<!-- TMPL_VAR NAME="gonenoaddress" -->" />
<!-- TMPL_IF NAME="opadd" -->
<input type="hidden" name="op" value="add">
<!-- TMPL_ELSE -->
<input type="hidden" name="op" value="modify">
<!-- /TMPL_IF -->
<p>
<!-- TMPL_IF NAME="mandatorycardnumber" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Card number</label>
<input type="text" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->">
</p>
<fieldset id="memberentry_identity">
<legend>Organisation identity</legend>
<p>
<!-- TMPL_IF NAME="mandatorysurname" -->
<label style="font-weight:bold">
<!-- TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Organisation name</label>
<input style="text-transform:uppercase;" type="text" name="surname" size="20" value="<!-- TMPL_VAR NAME="surname" -->" >
</p>
<p>
<!-- TMPL_IF NAME="catcodepopup" -->
<label>Category</label>
<!-- TMPL_VAR NAME="catcodepopup" -->
<!-- TMPL_ELSE -->
<span class="problem">There is no category type to add an Institution.</span>
<a href="/cgi-bin/koha/admin/categorie.pl">Please create one</a>
<!-- /TMPL_IF -->
</p>
<!-- TMPL_IF NAME="city_cgipopup" -->
<!-- TMPL_IF NAME="mandatoryselect_city" -->
<label style="font-weight:bold">
<!-- TMPL_ELSE -->
<label>
<!-- /TMPL_IF-->
Select a city</label>
<!-- TMPL_VAR NAME="citypopup" -->
<!-- /TMPL_IF-->
</fieldset>
<fieldset>
<legend>Personal identity</legend>
<p>
<!-- TMPL_IF NAME="mandatorycontactname" -->
<label style="font-weight:bold">
<!-- TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Surname</label>
<input style="text-transform:uppercase;" type="text" name="contactname" size="20" value="<!-- TMPL_VAR NAME="contactname" -->" >
</p>
<p>
<!-- TMPL_IF NAME="mandatorycontactfirstname" -->
<label style="font-weight:bold">
<!-- TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Firstname</label>
<input style="text-transform:capitalize;" type="text" name="contactfirstname" size="20" value="<!-- TMPL_VAR NAME="contactfirstname" -->">
</p>
</fieldset>
<div>
<input type="button" name="step2" value="Next step" onclick="check_form_borrowers('2');">
</div>
</p>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="step_2"-->
<form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
<!-- field always hidden in different form (1,2,3) -->
<input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->">
<input type="hidden" name="FormFieldList" value="cardnumber|streetnumber|streettype|address|address2|zipcode|city|phonepro|emailpro|fax|contactnote">
<input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->">
<input type="hidden" name="type" value="borrowers">
<input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->">
<input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->">
<input type="hidden" name="actionType" value="<!-- TMPL_VAR NAME="actionType" -->">
<input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->">
<input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
<input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->">
<input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->" />
<!-- from form 1 -->
<input type="hidden" name="surname" value="<!-- TMPL_VAR NAME="surname" -->" >
<input type="hidden" name="categorycode" value="<!-- TMPL_VAR NAME="categorycode" -->">
<input type="hidden" name="contactname" value="<!-- TMPL_VAR name="contactname" -->">
<input type="hidden" name="select_city" value="<!-- TMPL_VAR NAME="select_city" -->">
<input type="hidden" name="contactfirstname" value="<!-- TMPL_VAR name="contactfirstname" -->">
<!-- from form 3 -->
<input type="hidden" name="dateenrolled" size="20" value="<!-- TMPL_VAR NAME="dateenrolled" -->">
<input type="hidden" name="dateexpiry" size="20" value="<!-- TMPL_VAR NAME="dateexpiry" -->">
<textarea style="display:none;" name="opacnote" cols="70" rows="3"><!-- TMPL_VAR NAME="opacnote"--></textarea>
<textarea style="display:none;" name="borrowernotes" cols="70" rows="3"><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
<input type="hidden" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->">
<input type="hidden" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->">
<input type="hidden" name="debarred" value="<!-- TMPL_VAR NAME="debarred" -->" />
<input type="hidden" name="lost" value="<!-- TMPL_VAR NAME="lost" -->" />
<input type="hidden" name="gonenoaddress" value="<!-- TMPL_VAR NAME="gonenoaddress" -->" />
<!-- TMPL_IF NAME="opadd" -->
<input type="hidden" name="op" value="add">
<!-- TMPL_ELSE -->
<input type="hidden" name="op" value="modify">
<!-- /TMPL_IF -->
<p>
<!-- TMPL_IF NAME="mandatorycardnumber" -->
<label style="font-weight:bold">
<!-- TMPL_ELSE -->
<label>
<!-- /TMPL_IF-->
Card number</label>
<input type="text" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->">
</p>
<fieldset is="memberentry_address">
<legend>Organisation address</legend>
<p>
<!-- TMPL_IF NAME="mandatorystreetnumber" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Street number</label>
<input type="text" name="streetnumber" size="5" value="<!-- TMPL_VAR NAME="streetnumber" -->">
</p>
<!-- TMPL_IF NAME="road_cgipopup" -->
<p>
<!-- TMPL_IF NAME="mandatorystreettype" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Street type</label>
<!-- TMPL_VAR NAME="roadpopup" -->
<p>
<!--/TMPL_IF-->
<p>
<!-- TMPL_IF NAME="mandatoryaddress" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Address</label>
<input type="text" name="address" size="34" value="<!-- TMPL_VAR NAME="address" -->">
</p>
<p>
<!-- TMPL_IF NAME="mandatoryaddress2s" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Address 2</label>
<input type="text" name="address2" size="33" value="<!-- TMPL_VAR NAME="address2" -->">
</p>
<p>
<!-- TMPL_IF NAME="mandatoryzipcode" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Zipcode</label>
<input type="text" name="zipcode" size="10" maxlength="10" value="<!-- TMPL_VAR NAME="zipcode" -->">
</p>
<p>
<!-- TMPL_IF NAME="mandatorycity" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
City</label>
<input style="text-transform:uppercase;" type="text" name="city" size="20" value="<!-- TMPL_VAR NAME="city" -->">
</p>
<!-- TMPL_IF NAME="mandatorybranchcode" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Branch</label>
<!-- TMPL_VAR NAME="CGIbranch" -->
</p>
<p>
<!-- TMPL_IF NAME="mandatoryphonepro" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Phone (prof)</label>
<input type="text" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" >
<p>
</p>
<!-- TMPL_IF NAME="mandatoryemailpro" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
E-mail (prof)</label>
<input type="text" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" >
</p>
<p>
<!-- TMPL_IF NAME="mandatoryefax" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Fax</label>
<input type="text" name="fax" value="<!-- TMPL_VAR NAME="fax" -->" >
</p>
</fieldset>
<fieldset>
<legend>Patron list</legend>
<p>
<!-- TMPL_IF NAME="mandatorycontactnote" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Can check out books</label>
<textarea name="contactnote" cols="70" rows="2" ><!-- TMPL_VAR NAME="contactnote" --></textarea>
</p>
<fieldset>
<div id="action">
<input type="button" name="step1" value="Previous step" onclick="check_form_borrowers(0);">
<input type="button" name="step3" onclick="check_form_borrowers('3')" value="Next step">
</div>
</form>
<!-- ############################END FORM PROFESSIONAL############################################"-->
<!--/TMPL_IF-->
<!-- TMPL_IF NAME="step_3"-->
<form name="form" action="/cgi-bin/koha/members/memberentry.pl" method="post">
<!-- field always hidden in different form (1,2,3) -->
<input type="hidden" name="BorrowerMandatoryField" value="<!--TMPL_VAR NAME="BorrowerMandatoryField"-->">
<input type="hidden" name="FormFieldList" value="cardnumber|dateenrolled|dateexpiry|opacnote|borrowernotes|userid|password">
<input type="hidden" name="category_type" value="<!-- TMPL_VAR name="category_type" -->">
<input type="hidden" name="type" value="borrowers">
<input type="hidden" name="step" value="<!-- TMPL_VAR NAME="step" -->">
<input type="hidden" name="updtype" value="<!-- TMPL_VAR NAME="updtype" -->">
<input type="hidden" name="actionType" value="<!-- TMPL_VAR NAME="actionType" -->">
<input type="hidden" name="select_roadtype" value="<!-- TMPL_VAR NAME="select_roadtype" -->">
<input type="hidden" name="destination" value="<!-- TMPL_VAR NAME="destination" -->" />
<input type="hidden" name="check_member" value="<!-- TMPL_VAR NAME="check_member" -->" />
<input type="hidden" name="borrowernumber" value="<!-- TMPL_VAR NAME="borrowernumber" -->">
<input type="hidden" name="nodouble" value="<!-- TMPL_VAR NAME="nodouble" -->"/>
<!-- from form 1 -->
<input type="hidden" name="surname" value="<!-- TMPL_VAR NAME="surname" -->" >
<input type="hidden" name="categorycode" value="<!-- TMPL_VAR NAME="categorycode" -->">
<input type="hidden" name="contactname" value="<!-- TMPL_VAR name="contactname" -->">
<input type="hidden" name="select_city" value="<!-- TMPL_VAR NAME="select_city" -->">
<input type="hidden" name="contactfirstname" value="<!-- TMPL_VAR name="contactfirstname" -->">
<!-- from form 2 -->
<input type="hidden" name="streetnumber" value="<!-- TMPL_VAR NAME="streetnumber" -->">
<input type="hidden" name="streettype" value="<!-- TMPL_VAR NAME="streettype" -->">
<input type="hidden" name="address" value="<!-- TMPL_VAR NAME="address" -->">
<input type="hidden" name="address2" value="<!-- TMPL_VAR NAME="address2" -->">
<input type="hidden" name="zipcode" value="<!-- TMPL_VAR NAME="zipcode" -->">
<input type="hidden" name="city" value="<!-- TMPL_VAR NAME="city" -->">
<input type="hidden" name="branchcode" value="<!-- TMPL_VAR NAME="branchcode" -->">
<input type="hidden" name="phonepro" value="<!-- TMPL_VAR NAME="phonepro" -->" >
<input type="hidden" name="emailpro" value="<!-- TMPL_VAR NAME="emailpro" -->" >
<textarea style="display:none;" name="contactnote" cols="70" rows="3" ><!-- TMPL_VAR NAME="contactnote" --></textarea>
<input type="hidden" name="fax" value="<!-- TMPL_VAR NAME="fax" -->">
<!-- TMPL_IF NAME="opadd" -->
<input type="hidden" name="op" value="add">
<!-- TMPL_ELSE -->
<input type="hidden" name="op" value="modify">
<!-- /TMPL_IF -->
<p>
<!-- TMPL_IF NAME="mandatorycardnumber" -->
<label style="font-weight:bold">
<!-- TMPL_ELSE -->
<label>
<!-- /TMPL_IF-->
Cardnumber</label>
<input type="text" name="cardnumber" size="10" value="<!-- TMPL_VAR NAME="cardnumber" -->">
</p>
<fieldset id="memberentry_subscription">
<legend>Library set-up</legend>
<p>
<!-- TMPL_IF NAME="mandatorydateenrolled" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Arrival date</label>
<input type="text" id="dateenrolled" name="dateenrolled" maxlength="10" size="10" onchange="CheckDate(document.form.dateenrolled);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateenrolled" -->">
<img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="dateenrolled_button" />
<script language="JavaScript" type="text/javascript">
Calendar.setup(
{
inputField : "dateenrolled",
ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
button : "datenrolled_button"
}
);
</script>
</p>
<p>
<!-- TMPL_IF NAME="mandatorydateexpiry" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Expiry date</label>
<input type="text" name="dateexpiry" maxlength="10" size="10"
onchange="CheckDate(document.form.dateexpiry);check_manip_date('verify');" value="<!-- TMPL_VAR NAME="dateexpiry" -->">
</p>
<p>
<!-- TMPL_IF NAME="mandatoryopacnote" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
OPAC note</label>
<textarea name="opacnote" cols="40" rows="2" ><!-- TMPL_VAR NAME="opacnote" --></textarea>
</p>
<p>
<!-- TMPL_IF NAME="mandatoryborrowernotes" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Library note</label>
<textarea name="borrowernotes" cols="40" rows="2" ><!-- TMPL_VAR NAME="borrowernotes" --></textarea>
</p>
</fieldset>
<fieldset id="memberentry_userid">
<legend>OPAC login</legend>
<p>
<!-- TMPL_IF NAME="mandatorylogin" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
OPAC Login</label>
<input type="text" name="userid" size="20" value="<!-- TMPL_VAR NAME="userid" -->">
</p>
<p>
<!-- TMPL_IF NAME="mandatorypassword" -->
<label style="font-weight:bold">
<!--TMPL_ELSE-->
<label>
<!-- /TMPL_IF-->
Password</label>
<!--TMPL_IF NAME="opadd"-->
<input type="text" name="password" size="20" value="<!-- TMPL_VAR NAME="password" -->">
<!--TMPL_ELSE-->
<!--TMPL_IF NAME="password"-->
<input type="text" name="password" size="20" value="****">
<!--TMPL_ELSE-->
<input type="text" name="password" size="20" value="">
<!--/TMPL_IF-->
<!--/TMPL_IF-->
</p>
<!--this zones are not necessary in modif mode -->
<!-- TMPL_UNLESS NAME="opadd" -->
<h2>Warning</h2>
<!-- TMPL_LOOP NAME="flagloop" -->
<p>
<label class="borrowers_labels_title"><!-- TMPL_VAR NAME="html" --></label>
<input type="radio" name="<!-- TMPL_VAR NAME="name" -->" value="1" <!-- TMPL_VAR NAME="yes" -->>Yes
<input type="radio" name="<!-- TMPL_VAR NAME="name" -->" value="0" <!-- TMPL_VAR NAME="no" -->>No
</p>
<!-- /TMPL_LOOP -->
<!-- /TMPL_UNLESS -->
<p>
</fieldset>
<div>
<input type="button" class="borrowers_button" name="step2" value="Previous step" onclick="check_form_borrowers(1);">
<!-- TMPL_IF NAME="opadd" -->
<input type="button" name="step4" onclick="unique();" value="Add member">
<!-- TMPL_ELSE -->
<input type="button" name="step4" onclick="check_form_borrowers();" value="Modify member">
<!--/TMPL_IF -->
</div>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->