NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

<%--
Document : detay
Created on : 03.Tem.2017, 19:23:15
Author : maer
--%>


<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="wissen.ziyaretci.DB"%>
<%@page import="java.sql.ResultSet"%>
<!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="">

<title>Maers Blogs</title>

<!-- Bootstrap CSS file -->
<link href="lib/bootstrap-3.0.3/css/bootstrap.min.css" rel="stylesheet" />
<link href="lib/bootstrap-3.0.3/css/bootstrap-theme.min.css" rel="stylesheet" />
<link href="blog.css" rel="stylesheet" />
<style type="text/css">

.metin{width:750px;background:#ddd;word-wrap:break-word;}

</style>
</head>

<body>
<%
boolean isAdmin = false;
if (session.getAttribute("user_id") != null) {

isAdmin = true;
}
%>
<%
request.setCharacterEncoding("UTF-8");
String id = request.getParameter("id");

String q = "select u.ad as kisi, y.tarih as tarih, y.baslik as baslik, y.metin as metin ,y.resim as resim,y.yorum_aktif as aktif, k.ad as katad from yazi y, users u,kategori k WHERE y.userid=u.ad and k.id=y.katid and y.id='" + id + "'";
String q2 = "select ad ,eposta ,yorum,tarih from yorumlar where yazi_id='" + id + "' ";

DB db = new DB();
ResultSet rsMesaj = db.execute(q);
ResultSet rsYorum = db.execute(q2);


%>

<!-- Header -->
<header class="navbar navbar-inverse navbar-fixed-top bs-docs-nav" role="banner">
<div class="container">
<div class="navbar-header">
<button class="navbar-toggle" type="button" data-toggle="collapse" data-target=".bs-navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="index.jsp" class="navbar-brand">Maer</a>
</div>
<nav class="collapse navbar-collapse bs-navbar-collapse" role="navigation">
<form class="navbar-form navbar-right" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Arama">
</div>
<button type="submit" class="btn btn-default">Ara</button>
</form>
<ul class="nav navbar-nav">
<li class="active"><a href="index.jsp">AnaSayfa</a></li>
<li><a href="iletisim.jsp">İletişim</a></li>
<li><a href="hakkimda.jsp">Hakkımda</a></li>
</ul>
</nav>
</div>
</header>

<!-- Body -->
<div class="container">
<div class="row">
<div class="col-md-8">
<% if (isAdmin) {

out.print("<li class="list-group-item"> <a href="duzenle.jsp?id=" + id + "">Duzenlemek İçin Tıklayın</a></li>");

}

%>
<article >
<% String isAktif = "false";
while (rsMesaj.next()) {
String kisi = rsMesaj.getString("kisi");
String metin = rsMesaj.getString("metin").replace("n", "<br />");
String tarih = rsMesaj.getString("tarih");
String katadd = rsMesaj.getString("katad");
String resim = rsMesaj.getString("resim");
String baslik = rsMesaj.getString("baslik");
isAktif = rsMesaj.getString("aktif");

%>
<h1><a href=""><%=baslik%></a></h1>

<div class="row" >
<div class="col-sm-6 col-md-6" >
<span class="glyphicon glyphicon-folder-open"></span> &nbsp;<a href="#"><%=katadd%></a>
&nbsp;&nbsp;
</div>
<div class="col-sm-6 col-md-6">
<span class="glyphicon glyphicon-pencil"></span> <a href=""><%=kisi%></a>
&nbsp;&nbsp;<span class="glyphicon glyphicon-time"></span> <%=tarih%>
</div>
</div>

<hr>

<img src="img/<%=resim%>" class="img-responsive">

<br />

<p class="metin" ><%=metin%></p>

<hr>
<% } %>
</article>

<ul class="pager">
<li class="previous"><a href="index.jsp">&larr; Geri</a></li>
</ul>

<!-- Comment form -->
<%if (isAktif.equalsIgnoreCase("true")) {%>
<div class="well">

<h4>Yorum Yap</h4>
<form action="op.jsp?do=add_msg" method="post" class='clearfix'>
<input type='hidden' name='id' value='<%=id%>' class='form-control input' required />
<div class="col-md-6 form-group">
<label class="sr-only" for="name">Ad</label>
<input type="text" name='ad' class="form-control" id="name" placeholder="AD">
</div>
<div class="col-md-6 form-group">

<label class="sr-only" >Email</label>
<input type="email" name='eposta' class="form-control" id="email" placeholder="Email">
</div>
<div class="col-md-12 form-group">
<label class="sr-only" >Yorum</label>
<textarea class="form-control" name='yrm' id="comment" placeholder="Yorum"></textarea>
</div>
<div class="col-md-12 form-group text-right">
<button type="submit" class="btn btn-primary">Tamam</button>
</div>

</form>
</div>
<%}%>
<hr />

<ul id="comments" class="comments">
<% while (rsYorum.next()) {
String yad = rsYorum.getString("eposta");
String yor = rsYorum.getString("yorum");
String ytrh = rsYorum.getString("tarih");
%>
<li class="comment">
<div class="clearfix">
<h4 class="pull-left"><%=yad%></h4>
<p class="pull-right"><%=ytrh%></p>
</div>
<p>
<em><%=yor%></em>
</p>
</li>
<%}%>
</ul>

</div>
<div class="col-md-4">

<div class="well text-center">
<p class="lead">
Beni Facebookta Takip Et
</p>
<button class="btn btn-primary btn-lg">Takip Et</button>
</div>

<!-- Latest Posts -->
<div class="panel panel-default">
<div class="panel-heading">
<h4>Son Yazılar</h4>
</div>
<ul class="list-group">
<li class="list-group-item"><a href="singlepost.html">Yazı Data</a></li>
<li class="list-group-item"><a href="singlepost.html">Yazı Data</a></li>

</ul>
</div>

<!-- Categories -->
<div class="panel panel-default">
<div class="panel-heading">
<h4>Categories</h4>
</div>
<ul class="list-group">
<li class="list-group-item"><a href="#">Kategori Data</a></li>
<li class="list-group-item"><a href="#">Data 2</a></li>

</ul>
</div>

<!-- Tags -->
<div class="panel panel-default">
<div class="panel-heading">
<h4>Tag</h4>
</div>
<div class="panel-body">
<ul class="list-inline">
<li><a href="#">Tag Data </a></li>
<li><a href="#">Data 2</a></li>

</ul>
</div>
</div>

<!-- Recent Comments -->
<div class="panel panel-default">
<div class="panel-heading">
<h4>Son Yorumlar</h4>
</div>
<article>


<ul class="list-group">
<li class="list-group-item"><a href="#">Yorum Data <em>john</em></a></li>
<li class="list-group-item"><a href="#">Data 2<em>Anto</em></a></li>

</ul>
</div>

</div>
</div>
</div>

<!-- Footer -->
<footer>
<div class="container">
<hr />
<p class="text-center">Copyright &copy; Maer 2017. All rights reserved.</p>
</div>
</footer>

<!-- Bootstrap Script file -->
<script src="lib/jquery-2.0.3.min.js"></script>
<script src="lib/bootstrap-3.0.3/js/bootstrap.min.js"></script>
</body>
</html>
     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.