Exemplo n.º 1
0

			
			

<div class="ekle" style="background-color:#eee;border: 1px solid #222;";>

		<h1 style="color: #46464A;line-height:100px;">&nbsp&nbspSAYFA EKLE</h1>

		
		
		
					<?php 
    if (@$_POST["editor1"]) {
        $sadi = p('sAdi');
        $icerik = p2('editor1');
        if (empty($sadi) or empty($icerik)) {
            echo '<br><font style="color:red">lütfen formda boş alan bırakmayınız</font>';
        } else {
            $kaydet = mysql_query("INSERT INTO sekme (sadi,icerik) VALUES ('{$sadi}','{$icerik}')");
            if ($kaydet) {
                echo '<center><h1><font  style="color:green" >Sayfa oluşturuldu.</font></h1></center>';
                header("refresh: 1;");
            } else {
                echo mysql_error();
            }
        }
    }
    ?>
		
		
Exemplo n.º 2
0
		box-shadow: inset 0 0 8px  rgba(0,0,0,0.1),0 0 16px rgba(0,0,0,0.1); 
		padding: 15px; background: rgba(255,255,255,0.5);
		margin: 0 0 10px 0;margin-left:20px"> </input><br><br>
				<textarea style="" class="ckeditor" name="editor1" id="ck" cols="30" rows="10" ><?php 
    echo $g_icerik;
    ?>
</textarea><br>
				<input name="duzenle" alt="duzenle" type="submit" class="butontipiduzenle" value="Kaydet">
				<input name="sil" alt="sil" type="submit" class="butontipiduzenle" value="Sil" style="margin-left:80%">
				<br><br>
			</form>
			
			<?php 
    if (isset($_POST['duzenle'])) {
        $sAdi = p2('sAdi');
        $text = p2('editor1');
        $guncelle_icerik = query("Update sekme Set icerik = '{$text}' Where sadi='{$sekmeAdi}' ");
        $guncelle_sadi = query("Update sekme Set sadi = '{$sAdi}' Where sadi='{$sekmeAdi}' ");
        echo '<center><h1><font  style="color:green" >İçerik Başarıyla Değiştirildi. Yönlendiriliyorsunuz...</font></h1></center><br><br>';
        header("Location:duzenle.php?sekme=" . $sAdi . "");
    }
    if (isset($_POST['sil'])) {
        $sil = query("delete from sekme Where sadi='{$sekmeAdi}' ");
        echo '<center><h1><font  style="color:green" >Silme işlemi başarıyla gerçekleştirildi. Yönlendiriliyorsunuz...</font></h1></center><br><br>';
        $result2 = mysql_query("SELECT * FROM sekme ORDER BY id");
        $myrow2 = mysql_fetch_array($result2);
        $anasayfa = $myrow2['sadi'];
        header("Location:duzenle.php?sekme={$anasayfa}");
    }
} else {
    header("Location:index.php");
Exemplo n.º 3
0
function p1()
{
    p2();
}
Exemplo n.º 4
0
p2();
p($row[4]);
p3();
p1();
p('TEXT');
p2();
p($row[5]);
p3();
p1();
p('TIME');
p2();
p($row[6]);
p3();
p1();
p('VARCHAR');
p2();
p($row[7]);
p3();
p('</tbody></table><td><div>&nbsp;</div></td>');
q('by£º');
s();
p('<td><div>&nbsp;</div></td>');
q('blog£º<a href="http://www.sai52.com" target="_blank">www.');
s();
p('.com</a></body></html>');
function p($line)
{
    echo $line . "\n";
}
function q($line1)
{