/** * hataları gösterir * * @param array $error * hatalar * @param string $class * div in class ları * @return string hataların döneceği div basılacak olanı */ public static function display($error, $class = 'alert alert-danger') { if (is_array($error)) { $row = "<div class='{$class}'>"; foreach ($error as $error) { $row .= \Lib\Strings::strtoTrUcFirst($error) . '<br>'; } $row .= "</div>"; return $row; } else { if (isset($error)) { return "<div class='{$class}'>{$error}</div>"; } } }
public static function YeniSiparisBildirimi($data, $mailYazisi) { $kullanici_bilgileri = \Lib\Session::get('kullanici_bilgileri'); $ad_soyad = \Lib\Strings::strtoTrUcFirst($kullanici_bilgileri['adi']) . ' ' . \Lib\Strings::strtoTrUcFirst($kullanici_bilgileri['soyadi']); // echo '<pre>'; extract($data); $file = self::TableStyle() . '<body bgcolor="#f6f6f6"> <strong> ' . $mailYazisi . ' </strong>' . $data['sepet'] . ' <table class="body-wrap"> <tbody> <tr class="price2"> <td class="right"><b>Toplam:</b></td> <td class="right"><a class="toplamfiyat" href="' . $data['sepet_fiyat_toplami'] . '"></a> <span class="toplamfiyatspan">' . $data['sepet_fiyat_toplami'] . ' TL</span> </td> </tr> </tbody> </table> <strong>Bilgileriniz </strong> <table class="body-wrap" border="1" cellspacing="0" cellpadding="0"> <tbody> <tr> <th>Sipariş No:</th> <td>' . $siparis_no . '</td> </tr> <tr> <th>Siparişi Oluşturan:</th> <td>' . $ad_soyad . '</td> </tr> <tr> <th>Telefon Numarası</th> <td>' . $telefon . '</td> </tr> <tr> <th>Email Adresi</th> <td>' . $email . '</td> </tr> <tr> <th>Oluşturma Zamanı:</th> <td>' . $olusturma_zamani . '</td> </tr> <tr> <th>Sipariş Durumu:</th> <td>' . $siparis_durumu . '</td> </tr> <tr> <th>Sipariş Tutarı</th> <td>' . $siparis_tutari . ' TL</td> </tr> <tr> <th>Ödeme Türü</th> <td>' . $odeme_tipi . '</td> </tr> <tr> <th>Mağaza</th> <td>' . $magaza_adi . '</td> </tr> </tbody> </table> </div> <strong>Teslimat Bilgileri </strong> <table class="body-wrap" border="1" cellspacing="0" cellpadding="0"> <tbody> <tr> <th>Teslimat Saati:</th> <td>' . $teslimat_saati . '</td> </tr> <tr> <th>Teslimat Tarihi:</th> <td>' . $teslimat_tarihi . '</td> </tr> <tr> <th>İsim Soyisim:</th> <td>' . $ad_soyad . '</td> </tr> <tr> <th>Adres:</th> <td>' . $alici_adres . ' </td> </tr> <tr> <th>Şehir ,İlçe, Semt/Mahalle</th> <td>' . $alici_il . ' , ' . $alici_ilce . ' , ' . $alici_semt . '</td> </tr> </tbody> </table> </div> <strong>Fatura Bilgileri </strong> <table class="body-wrap" border="1" cellspacing="0" cellpadding="0"> <tbody> <tr> <th>İsim Soyisim:</th> <td>' . $ad_soyad . '</td> </tr> <tr> <th>Adres:</th> <td>' . $fatura_adres . ' </td> </tr> <tr> <th>Şehir ,İlçe, Semt/Mahalle</th> <td>' . $fatura_il . ' , ' . $fatura_ilce . ' , ' . $fatura_semt . '</td> </tr> </tbody> </table> </div></body></html>'; $file = self::replaceSpace($file); return $file; }