All pastes #231159 Raw Edit

Unnamed

public text v1 · immutable
#231159 ·published 2006-10-31 17:35 UTC
rendered paste body
<?php
    ob_start();
    session_start();
    include("baglan.php"); 
?>
<?php
if (empty($_SESSION['kullanici_adi']) OR empty($_SESSION['sifre'])) {
header("location:girisyok.php");
} else {

?>
<!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" lang="TR" xml:lang="TR">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>Haber Yönetim Sistemi (Bellona &#304;zpa )</title>
<link href="haber.css" rel="stylesheet" type="text/css" />
<meta name="title" content="Bellona &#304;zpa  Haber Yönetim Sistemi" />
<meta name="Description" content="Bellona &#304;zpa  Haber Yönetim Sistemi" />
<meta name="Keywords" content="Bellona &#304;zpa  Haber Yönetim Sistemi" />
<meta name="language" content="TR" />
<meta name="copyright" content="Hiratech Design Studio" />
<meta name="Reply-to" content="info@hiratech.com" />
<meta name="document-class" content="Published" />
<meta name="document-classification" content="Design" />
</HEAD>
<body>
<form action="bayiekle.php?islem=eklendi" method="POST">
<div class="prg">
 <div id="topmenu"><a href="sifremidegistir.php">&#350;ifremi De&#287;i&#351;tir</a> - <a href="cikis.php">Sistemden Ç&#305;k!</a><a href="cikis.php"></a></div>
		    <table width="100%"  border="0" cellspacing="1" 
cellpadding="1" summary="Bilgisayar Sistem &#350;ablonu">
              <caption>
              &#304;çerik Yönetimi (Bellona &#304;zpa  Bürosu)
              </caption>
              <tr>
                <th class="parcalar">Bayi &#304;&#351;lemleri</th>
              </tr>
			   <tr>
                <th class="markalar"><a href="bayileranasayfa.php">Ana Sayfa</a></th>
              </tr>
              <tr>
                <th class="markalar"><a href="bayiekle.php">Yeni Bayi Ekle</a></th>
              </tr>
              <tr>
                <th class="markalar"><a href="bayids.php">Bayi Düzenle veya Sil</a></th>
              </tr>
              <tr>
                <th class="parcalar">Bayi Ekle!</th>
              </tr>
              <tr>
                <td scope="row">	
        <?php
      if ($_GET['islem'] == "eklendi") {
      $kategoriid  = $_POST["kategoriid"];
      $bayikodu   = $_POST["bayikodu"];
	  $bayiadi  = $_POST["bayiadi"];
      $yetkili   = $_POST["yetkili"];
      $statu  = $_POST["statu"];
      $bayiadres   = $_POST["bayiadres"];
	  $il  = $_POST["il"];
      $ilce   = $_POST["ilce"];
	  $telefon  = $_POST["telefon"];
      $eposta   = $_POST["eposta"];

      if (empty ($kategoriid) or empty ($bayikodu) or empty ($bayiadi) or empty ($yetkli) or empty ($statu) or empty ($bayiadres) or empty ($il) or empty ($ilce) or empty ($telefon) or empty ($eposta)) {
         echo '
          <b>Hata!!: Lütfen formda yer alan tüm alanlar&#305; doldurun!</b>
          ';
          } else {
          $veri = "INSERT INTO bayiler (bayikodu, bayiadi, yetkili, statu, bayiadres, il, ilce, telefon, eposta)
                   VALUES ('bayikodu', 'bayiadi', 'yetkili', 'statu', 'bayiadres', 'il', 'ilce', 'telefon', 'eposta')
                  ";
          $veri_gir = mysql_query ($veri);
          echo '
		<center><em>Ekledi&#287;iniz <b>Bayi</b> sisteme kaydedildi.</em></center>
                ';

              }
      }
        ?>
		 	<table style="font-family: trebuchet MS; font-size:11px; cellspacing="0" cellpadding="0" width="98%" border="0" valign="top">
      <tbody>
        <tr>
          <td width="96%" colspan="2"><br /><p><em> Sisteme yeni <b>Bayi</b> eklemek için form'u doldurun..</em></p></td>
        </tr>
        <tr>
          <td><em>Kategori:</em></td>
          <td><select name="kategoriid" class="form2" ><?php 
	$vt = "select * from kategori order by 'kategoriid' desc";
	$vts = mysql_query($vt);
	while ( $vtc = mysql_fetch_assoc($vts))  {
	echo '
<option value="'.$vtc[kategoriid].'">'.$vtc[kategoriadi].'</option>
';
	} ?> </select>	</td>
        </tr>
        <tr>
          <td><em>Bayi Kodu:</em></td>
          <td><input name="bayikodu" type="text" class="field" style="font-family: trebuchet MS; font-size:11px; background-color: #FBFBFD ; width:205px ; height:20px"></td>
        </tr>
        <tr>
          <td><em>Bayi Ad&#305;:</em></td>
          <td><input name="bayikadi" type="text" class="field" style="font-family: trebuchet MS; font-size:11px; background-color: #FBFBFD ; width:205px ; height:20px"></td>
        </tr>
        <tr>
          <td><em>Yetkili:</em></td>
          <td><input name="yetkili" type="text" class="field" style="font-family: trebuchet MS; font-size:11px; background-color: #FBFBFD ; width:205px ; height:20px"></td>
        </tr>
        <tr>
          <td><em>Statü:</em></td>
          <td><input name="statu" type="text" class="field" style="font-family: trebuchet MS; font-size:11px; background-color: #FBFBFD ; width:205px ; height:20px"></td>
        </tr>
        <tr>
          <td><em>Bayi Adres:</em></td>
          <td><input name="bayiadres" type="text" class="field" style="font-family: trebuchet MS; font-size:11px; background-color: #FBFBFD ; width:205px ; height:20px"></td>
        </tr>
        <tr>
          <td><em>&#304;l:</em></td>
          <td><input name="il" type="text" class="field" style="font-family: trebuchet MS; font-size:11px; background-color: #FBFBFD ; width:205px ; height:20px"></td>
        </tr>
        <tr>
          <td><em>&#304;lçe:</em></td>
          <td><input name="ilce" type="text" class="field" style="font-family: trebuchet MS; font-size:11px; background-color: #FBFBFD ; width:205px ; height:20px"></td>
        </tr>
        <tr>
          <td><em>Telefon:</em></td>
          <td><input name="telefon" type="text" class="field" style="font-family: trebuchet MS; font-size:11px; background-color: #FBFBFD ; width:205px ; height:20px"></td>
        </tr>
        <tr>
          <td><em>E-posta:</em></td>
          <td><input name="eposta" type="text" class="field" style="font-family: trebuchet MS; font-size:11px; background-color: #FBFBFD ; width:205px ; height:20px"><br /> 
            <br /><input name="gonder" type="submit" class="field" value="Bayi Ekle"></td>
        </tr>
	  </table>
	 </TD>
  </TR><br />
              </tr>
			  <tr>
                <th class="parcalar"><a href="http://www.hiratech.com">Hiratech Design Studio</a></th>
              </tr>
            </table>
</div><br />
</form>
</body>
</html>
<?php } ?>