[Gesso-commits] gesso member.php,1.13,1.14
Brought to you by:
atupone
From: Tupone A. <at...@us...> - 2006-02-26 13:33:33
|
Update of /cvsroot/gesso/gesso In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1768 Modified Files: member.php Log Message: putItem() added. It puts an item in the form Index: member.php =================================================================== RCS file: /cvsroot/gesso/gesso/member.php,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** member.php 20 Feb 2006 23:31:14 -0000 1.13 --- member.php 26 Feb 2006 13:33:23 -0000 1.14 *************** *** 17,20 **** --- 17,31 ---- } + function putItem($name, $id) { + ?> + <tr> + <td nowrap="nowrap" class="form_label"><?php echo $name;?></td> + <td class="form_value"> + <input type="text" class="form_input" size="30" name="p_member_id" value="<?php echo $line[$id]?>" /> + </td> + </tr> + <?php + } + switch ($p_action) { case "member_new": *************** *** 69,128 **** <input type="hidden" name="p_action" value="<?php echo $action ?>" /> <table border="0" cellpadding="0" cellspacing="1" class="form_table"> ! <tr> ! <td nowrap="nowrap" class="form_label">Matricola</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_member_id" value="<?php echo $line[member_id] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Numero Tessera </td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_membership_card_number" value="<?php echo $line[membership_card_number] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Nome</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_name" value="<?php echo $line[name] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Cognome</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_surname" value="<?php echo $line[surname] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">E-Mail</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_email" value="<?php echo $line[email] ?>" /></td> ! </tr> <tr> <td nowrap="nowrap" class="form_label">Tipo Socio </td> <td class="form_value"><?php echo lov('p_member_type_id', "select member_type_id, description from tmember_type $member_type_query_where", $line[member_type_id], $member_type_noblank, 'class="form_input"') ?></td> </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Cellulare</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_phone_mobile" value="<?php echo $line[phone_mobile] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Tel. Abitazione</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_phone_home" value="<?php echo $line[phone_home] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Codice Fiscale </td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_tax_code" value="<?php echo $line[tax_code] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Luogo Di Nascita</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_birthplace" value="<?php echo $line[birthplace] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Data Di Nascita (dd-mm-yyyy)</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_birthdate" value="<?php echo $line[birthdate_f] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Via</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_address" value="<?php echo $line[address] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">CAP</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_zip_code" value="<?php echo $line[zip_code] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Città</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_city" value="<?php echo $line[city] ?>" /></td> ! </tr> <tr> <td nowrap="nowrap" class="form_label">Provincia</td> --- 80,104 ---- <input type="hidden" name="p_action" value="<?php echo $action ?>" /> <table border="0" cellpadding="0" cellspacing="1" class="form_table"> ! <?php ! putItem(Matricola, member_id); ! putItem('Numero Tessera', membership_card_number); ! putItem(Nome, name); ! putItem(Cognome, surname); ! putItem('E-Mail', email); ! ?> <tr> <td nowrap="nowrap" class="form_label">Tipo Socio </td> <td class="form_value"><?php echo lov('p_member_type_id', "select member_type_id, description from tmember_type $member_type_query_where", $line[member_type_id], $member_type_noblank, 'class="form_input"') ?></td> </tr> ! <?php ! putItem(Cellulare, phone_mobile); ! putItem('Tel. Abitazione', phone_home); ! putItem('Codice Fiscale', tax_code); ! putItem('Luogo Di Nascita', birthplace); ! putItem('Data Di Nascita (dd-mm-yyyy)', birthdate_f); ! putItem(Via, address); ! putItem(CAP, zip_code); ! putItem('Città', city); ! ?> <tr> <td nowrap="nowrap" class="form_label">Provincia</td> *************** *** 137,160 **** <td class="form_value"><input type="checkbox" name="p_flag_activist" value="Y"<?php echo (($line[flag_activist] == "Y") ? ("checked") : ("")) ?> /></td> </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Importo</td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_amount" value="<?php echo $line[amount] ?>" /></td> ! </tr> <tr> <td nowrap="nowrap" class="form_label">Indesiderato</td> <td class="form_value"><input type="checkbox" name="p_flag_unwanted" value="Y"<?php echo (($line[flag_unwanted] == "Y") ? ("checked") : ("")) ?> /></td> </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Data Stampa Domanda </td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_print_application_date" value="<?php echo $line[print_application_date_f] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Data Accettazione </td> ! <td class="form_value"><input type="text" class="form_input" size="30" name="p_acceptance_date" value="<?php echo $line[acceptance_date_f] ?>" /></td> ! </tr> ! <tr> ! <td nowrap="nowrap" class="form_label">Data Registrazione</td> ! <td nowrap="nowrap" class="form_value"><input type="text" class="form_input" size="30" name="p_registration_date" value="<?php echo $line[registration_date_f] ?>" /></td> ! </tr> <tr> <td colspan="2" nowrap="nowrap"> <div align="left"> --- 113,128 ---- <td class="form_value"><input type="checkbox" name="p_flag_activist" value="Y"<?php echo (($line[flag_activist] == "Y") ? ("checked") : ("")) ?> /></td> </tr> ! <?php ! putItem(Importo, amount); ! ?> <tr> <td nowrap="nowrap" class="form_label">Indesiderato</td> <td class="form_value"><input type="checkbox" name="p_flag_unwanted" value="Y"<?php echo (($line[flag_unwanted] == "Y") ? ("checked") : ("")) ?> /></td> </tr> ! <?php ! putItem('Data Stampa Domanda', print_application_date_f); ! putItem('Data Accettazione', acceptance_date_f); ! putItem('Data Registrazione', registration_date_f); ! ?> <tr> <td colspan="2" nowrap="nowrap"> <div align="left"> |