Hi there
Once again it's me, stumped at another mod. I would like to add a third option to the validation routine: delete link without sending email to the submitter. I have edited admin_html.pl (down in the validation routine) as follows:
# html_record for printing. Also add a checkbox with name=key and value=delete.
for ($i = 0; $i < ($#modhits+1) / ($#db_cols+1); $i++) {
last if (++$counter > 10);
%tmp = &array_to_hash ($i, @modhits);
print qq|
<table border=1><TR><TD colspan=2>|;
&html_record_form_mult (%tmp);
print qq|
</TD></TR>
<TR><TD VALIGN=TOP><INPUT TYPE="RADIO" NAME="$tmp{$db_key}" VALUE="modify"> <$font><a href="$tmp{'URL'}" target="_blank">Modify</a></font></TD>
<TD VALIGN=TOP><INPUT TYPE="RADIO" NAME="$tmp{$db_key}" VALUE="delete"> <$font>Delete. Email Reason:</font><br> <textarea name="reason-$tmp{$db_key}" rows=4 cols=40>$db_email_reject</textarea></TD>
</TR></TABLE>to read:
# html_record for printing. Also add a checkbox with name=key and value=delete.
for ($i = 0; $i < ($#modhits+1) / ($#db_cols+1); $i++) {
last if (++$counter > 10);
%tmp = &array_to_hash ($i, @modhits);
print qq|
<table border=1><TR><TD colspan=2>|;
&html_record_form_mult (%tmp);
print qq|
</TD></TR>
<TR><TD VALIGN=TOP><INPUT TYPE="RADIO" NAME="$tmp{$db_key}" VALUE="modify"> <$font><a href="$tmp{'URL'}" target="_blank">Modify</a></font></TD>
<TD VALIGN=TOP><INPUT TYPE="RADIO" NAME="$tmp{$db_key}" VALUE="delete"> <$font>Delete. Email Reason:</font><br> <textarea name="reason-$tmp{$db_key}" rows=4 cols=40>$db_email_reject</textarea></TD>
</TR></TABLE>
All while it does indeed delete the item, it still sends out the email. Any suggestions how I can go about this? And where is the rejection email send-routine declared?
Thanks for any help, especially you Bobsie!
------------------
Thanks!
Michael
genweb.net/~emmgee/pages/
[This message has been edited by MikeB (edited July 13, 1999).]
Once again it's me, stumped at another mod. I would like to add a third option to the validation routine: delete link without sending email to the submitter. I have edited admin_html.pl (down in the validation routine) as follows:
Code:
# Go through each modified hit and convert the array to hash and send to # html_record for printing. Also add a checkbox with name=key and value=delete.
for ($i = 0; $i < ($#modhits+1) / ($#db_cols+1); $i++) {
last if (++$counter > 10);
%tmp = &array_to_hash ($i, @modhits);
print qq|
<table border=1><TR><TD colspan=2>|;
&html_record_form_mult (%tmp);
print qq|
</TD></TR>
<TR><TD VALIGN=TOP><INPUT TYPE="RADIO" NAME="$tmp{$db_key}" VALUE="modify"> <$font><a href="$tmp{'URL'}" target="_blank">Modify</a></font></TD>
<TD VALIGN=TOP><INPUT TYPE="RADIO" NAME="$tmp{$db_key}" VALUE="delete"> <$font>Delete. Email Reason:</font><br> <textarea name="reason-$tmp{$db_key}" rows=4 cols=40>$db_email_reject</textarea></TD>
</TR></TABLE>
Code:
# Go through each modified hit and convert the array to hash and send to # html_record for printing. Also add a checkbox with name=key and value=delete.
for ($i = 0; $i < ($#modhits+1) / ($#db_cols+1); $i++) {
last if (++$counter > 10);
%tmp = &array_to_hash ($i, @modhits);
print qq|
<table border=1><TR><TD colspan=2>|;
&html_record_form_mult (%tmp);
print qq|
</TD></TR>
<TR><TD VALIGN=TOP><INPUT TYPE="RADIO" NAME="$tmp{$db_key}" VALUE="modify"> <$font><a href="$tmp{'URL'}" target="_blank">Modify</a></font></TD>
<TD VALIGN=TOP><INPUT TYPE="RADIO" NAME="$tmp{$db_key}" VALUE="delete"> <$font>Delete. Email Reason:</font><br> <textarea name="reason-$tmp{$db_key}" rows=4 cols=40>$db_email_reject</textarea></TD>
</TR></TABLE>
All while it does indeed delete the item, it still sends out the email. Any suggestions how I can go about this? And where is the rejection email send-routine declared?
Thanks for any help, especially you Bobsie!
------------------
Thanks!
Michael
genweb.net/~emmgee/pages/
[This message has been edited by MikeB (edited July 13, 1999).]