signature.inc
上传用户:xiao730204
上传日期:2007-01-04
资源大小:141k
文件大小:2k
- <form method="post" action="<?php echo $default->base_url; ?>">
- <?php
- $form_mode = PIMP_MAIL_PREF_SIG;
- $name = 'session_id';
- $value = $session_id;
- include( './templates/form/form_hidden_elem.inc' );
- $user_sig_db = new User_Signature_Db();
- $user_sig_db = $user_sig_db->Db(
- $default->pimp_settings_db->driver,
- $default->pimp_settings_db
- );
- $current_signature = new Pimp_Signature();
- $ret_vals = $user_sig_db->Get( $user_obj->user_id );
- if ( $ret_vals[ 0 ] == 0 ) {
- $current_signature->user_id = $user_obj->user_id;
- $user_sig_db->Add( $current_signature );
- } else {
- $current_signature = $ret_vals[ 1 ];
- }
- if ( $mail_sig != '' ) {
- $current_signature->user_id = $user_obj->user_id;
- $current_signature->signature = $mail_sig;
- $user_sig_db->Modify( $current_signature );
- }
- ?>
- <tr <?php echo $template_obj->GetValue( 'default_bgcolor' ); ?>>
- <td colspan="2">
- <?php echo $template_obj->GetValue( 'default_font' ); ?>
- <b>Your signature :</b>
- </td>
- </tr>
- <tr <?php echo $template_obj->GetValue( 'default_bgcolor' ); ?>>
- <td colspan="2">
- <?php echo $template_obj->GetValue( 'default_font' ); ?>
- <center>
- <textarea wrap="hard" name="mail_sig" rows="4" cols="75">
- <?php echo $current_signature->signature; ?>
- </textarea>
- </center>
- </td>
- </tr>
- <tr <?php echo $template_obj->GetValue( 'default_bgcolor' ); ?>>
- <td colspan="2">
- <?php echo $template_obj->GetValue( 'default_font' ); ?>
- <center>
- <input type="submit" value="Commit Changes">
- <input type="reset" value="Reset">
- </center>
- </td>
- </tr>
- </form>