Hangi dile ile yazıldı hocam?
php hocam
<div class="col-lg-12">
<div class="card">
<div class="card-header justify-content-between d-flex align-items-center">
<h4 class="card-title">NetGSM Ayarları</h4>
</div><!-- end card header -->
<?php
$netgsm = json_decode($settings['netgsm']);
?>
<div class="card-body">
<form method="post" enctype="multipart/form-data">
<?php
if($_POST['kaydet']){
$netgsm = [
'header' => $_POST['header'],
'username' => $_POST['username'],
'password' => $_POST['password'],
'ilkmesaj' => $_POST['ilkmesaj'],
'sonmesaj' => $_POST['sonmesaj']
];
$guncelle = $vt->guncelle('0', 'ayarlar', 'netgsm', '', array(json_encode($netgsm)));
if($guncelle){
echo '<div class="alert alert-success" style="padding:5px;">NetGSM Entegrasyonu güncellenmiştir.</div>';
}else{
echo '<div class="alert alert-success" style="padding:5px;">NetGSM Entegrasyonu güncellenmiştir.</div>';
}
}
?>
<div class="mb-3 row">
<label for="example-text-input" class="col-md-2 col-form-label">SMS Başlığı</label>
<div class="col-md-10">
<input class="form-control" type="text" name="header" id="example-text-input" required="" value="<?=$netgsm->header?>">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-text-input" class="col-md-2 col-form-label">Kullanıcı Adı</label>
<div class="col-md-10">
<input class="form-control" type="text" name="username" id="example-text-input" required="" value="<?=$netgsm->username?>">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-text-input" class="col-md-2 col-form-label">Şifre</label>
<div class="col-md-10">
<input class="form-control" type="text" name="password" id="example-text-input" required="" value="<?=$netgsm->password?>">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-text-input" class="col-md-2 col-form-label">İlk Mesaj</label>
<div class="col-md-10">
<input class="form-control" type="text" name="ilkmesaj" id="example-text-input" required="Sayın müşterimiz. " value="<?=$netgsm->ilkmesaj?>">
</div>
</div><!-- end row -->
<div class="mb-3 row">
<label for="example-text-input" class="col-md-2 col-form-label">Son Mesaj</label>
<div class="col-md-10">
<input class="form-control" type="text" name="sonmesaj" id="example-text-input" required="tutarında bir borcunuz bulunmaktadır." value="<?=$netgsm->sonmesaj?>">
</div>
</div><!-- end row -->
<input type="submit" name="kaydet" class="btn btn-success" value="Kaydet">
</form>
</div><!-- end row -->
</div></div>