Arama butonu
Bu konudaki kullanıcılar: 1 misafir
2
Cevap
603
Tıklama
0
Öne Çıkarma
PHP Resim Oluşturucu(Yardım)
S
12 yıl (168 mesaj)
Teğmen
Konu Sahibi

Merhaba Arkadaşlar;
Php İle Bir İmza Oluşuturucu Hazırladım. Html Olarak İmzayı Alıyorum Fakat Microsoft Tarafında İmzada Sıkıntı Çıkıyor Table İle Yada Div ile Hazırlayıp Maile Eklediğimde Resimler Gözükmüyor. Benimde Bunu Html Olarak Değilde PNG Olarak Almam Lazım Bu Konuda Bana Yardım Edebilecek Birileri Varmı ???
İmza Oluşuturucu

 
<?php
if (!empty($_REQUEST['Sender'])):
$sender = $_REQUEST['Sender'];
$layout = file_get_contents('./layout.html', FILE_USE_INCLUDE_PATH);

if (empty($sender['mobile'])) {
$start = strpos($layout, '[[IF-MOBILE]]');
$end = strpos($layout, '[[ENDIF-MOBILE]]');
$layout = str_replace(substr($layout, $start, $end-$start+16), '', $layout);

} else {
$layout = str_replace("[[IF-MOBILE]]", '', $layout);
$layout = str_replace("[[ENDIF-MOBILE]]", '', $layout);
$layout = str_replace("[[Mobile]]", $sender['mobile'], $layout);
}

$layout = str_replace("[[NAME]]", $sender['name'], $layout);
$layout = str_replace("[[PHONE]]", $sender['phone'], $layout);
$layout = str_replace("[[EMAIL]]", $sender['email'], $layout);
$layout = str_replace("[[Baslik]]", $sender['baslik'], $layout);
$layout = str_replace("[[MOBILE]]", $sender['mobile'], $layout);
$layout = str_replace("[[ADRS]]", $sender['adrs'], $layout);

if (!empty($_REQUEST['download'])) {
header('Content-Description: File Transfer');
header('Content-Type: text/html');
header('Content-Disposition: attachment; filename=assinatura.html');
header('Content-Transfer-Encoding: binary');
header('Expires: 0');
header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
header('Pragma: public');
}

echo $layout;
else: ?><!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="Sercan KARA">

<title>İmza Oluştrucu</title>

<!-- Bootstrap core CSS -->
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css" rel="stylesheet">

<!-- Custom styles for this template -->
<style type="text/css">
/* Sticky footer styles
-------------------------------------------------- */

html,
body {
height: 100%;
/* The html and body elements cannot have any padding or margin. */
}

/* Wrapper for page content to push down footer */
#wrap {
min-height: 100%;
height: auto !important;
height: 100%;
/* Negative indent footer by its height */
margin: 0 auto -60px;
/* Pad bottom by footer height */
padding: 0 0 60px;
}

/* Set the fixed height of the footer here */
#footer {
height: 60px;
background-color: #f5f5f5;
}


/* Custom page CSS
-------------------------------------------------- */
/* Not required for template or sticky footer method. */

#wrap > .container {
padding: 60px 15px 0;
}
.container .credit {
margin: 20px 0;
}

#footer > .container {
padding-left: 15px;
padding-right: 15px;
}

code {
font-size: 80%;
}
</style>

</head>

<body>

<!-- Wrap all page content here -->
<div id="wrap">

<!-- Fixed navbar -->
<div class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=87795518&url=#" data-href="#">İmza Oluşturucu</a>
</div>
</div>
</div>

<!-- Begin page content -->
<div class="container">
<div class="page-header">
<h1>İmza Oluşturucu</h1>
</div>
<form role="form" method="post" target="preview" id="form">
<div class="form-group">
<label for="Name">İsim Soyisim</label>
<input type="text" class="form-control" id="Name" name="Sender[name]" placeholder="İsim Soyisim Giriniz">
</div>
<div class="form-group">
<label for="Name">Title</label>
<input type="text" class="form-control" id="BAslik" name="Sender[baslik]" placeholder="Title Giriniz">
</div>
<div class="form-group">
<label for="Email">Email</label>
<input type="email" class="form-control" id="Email" name="Sender[email]" placeholder="Email Gririniz">
</div>
<div class="form-group">
<label for="Phone">Telefon</label>
<input type="phone" class="form-control" id="Phone" name="Sender[phone]" placeholder="+XX (XX) XXXX-XXXX">
</div>
<div class="form-group">
<label for="Mobile">Cep Telefonu</label>
<input type="phone" class="form-control" id="Mobile" name="Sender[mobile]" placeholder="+XX (XX) XXXX-XXXX">
</div>
<div class="form-group">
<label for="Mobile">Adres</label>
<input type="phone" class="form-control" id="Adrs" name="Sender[adrs]" placeholder="Adres Giriniz">
</div>

<button id="preview" type="submit" class="btn btn-default">Önizleme</button>
<button id="download" class="btn btn-default">İndir</button>
<input type="hidden" name="download" id="will-download" value="">
</form>
</div>

<div class="container">
<iframe src="about:blank" name="preview" width="100%" height="200"></iframe>
</div>

</div>

<div id="footer">
<div class="container">
<p class="text-muted credit">developed by <a data-test="test" rel="nofollow" style="word-wrap: break-word; text-decoration: underline;" target="_blank" onclick="return dhExternalLinkRedirect(this)" href="/ExternalLinkRedirect?module=pgdcode&messageId=87795518&url=http://www.sercankara.com/" data-href="http://www.sercankara.com/">Sercan KARA</a>.</p>
</div>
</div>


<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js"></script>
<script type="text/javascript">
$( document ).ready(function() {
$("#download").bind( "click", function() {
$('#will-download').val('true');
$('#form').removeAttr('target').submit();
});

$("#preview").bind( "click", function() {
$('#will-download').val('');
$('#form').attr('target','preview');
});

});
</script>
</body>
</html>
<?php endif;


İmzayı Oluşturduğu ve Kayıt Etmesi İçin Kullandığı HTML Dosya
 
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Başlıksız Belge</title>
</head>

<body>
<table width="795" border="0" cellspacing="0" cellpadding="0" style="font-family:Arial; color:#000">
<tr>
<td style="background:url(enplus.png); height:121px"><table width="795" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style=" width:200px; font-size:20px; color:#000000"><b>      [[NAME]]</b></td>
<td style="color:#e52720; font-size:18px;">[[EMAIL]]</td>
</tr>
<tr>
<td colspan="2" style=" color:#e52720;" >          <b>[[Baslik]]</b></td>
</tr>
<tr>
<td colspan="2" style="font-size:14px" >          Tel:[[PHONE]] - Cep:[[MOBILE]]</td>

</tr>
<tr>
<td colspan="2" style="font-size:14px" >          [[ADRS]]</td>
</tr>
</table>
</td>
</tr>
</table>

</body>
</html>



Bu Çıktıyı PNG Olarak Nasıl Kayıt Edebilirim. Şimdiden TEşekkürler

DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.

Üye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.

Üye Ol Şimdi Değil





< Bu mesaj bu kişi tarafından değiştirildi sewox -- 11 Şubat 2014; 11:18:59 >

S
12 yıl (168 mesaj)
Teğmen
Konu Sahibi

Arkadaşlar Konu Hala Aktiftir.


Bu mesaja 1 cevap geldi.
S
12 yıl (168 mesaj)
Teğmen
Konu Sahibi

Konu Hala Aktiftir.



DH Mobil uygulaması ile devam edin. Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin. Gizle ve güncelleme çıkana kadar tekrar gösterme.