new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,127 @@
|
||||
<?php import::view(THEMA_NAME.'assets/header'); ?>
|
||||
|
||||
<div class="container">
|
||||
<div class="page-header"><h1 class="page-title"><?php echo translate('questionanswer'); ?></h1></div>
|
||||
|
||||
<div class="page-options d-flex">
|
||||
<?php if(Session::select('userid')){ ?>
|
||||
<a href="/question_answer/nocatnewsubject"> <button class="form-control btn btn-primary"><?php echo translate('newsubject'); ?></button></a>
|
||||
<?php }else{ ?>
|
||||
<a href="/member">
|
||||
<button class="btn btn-primary alert1" style="height: 38px;">Konu Açmak için giriş yapın.</button>
|
||||
</a>
|
||||
<?php } ?>
|
||||
<select class="custom-select" name="gorunum" id="gorunum" >
|
||||
<option value="0" selected>Görünüm Seç</option>
|
||||
<option value="1">Forum</option>
|
||||
<option value="2">Soru Cevap</option>
|
||||
</select>
|
||||
|
||||
<select class="form-control custom-select" id="formcategory">
|
||||
<option value=""><?php echo translate('selectcategory'); ?></option>
|
||||
<?php foreach (question_category() as $key): ?>
|
||||
<option value="<?php echo $key->adi ?>"><?php echo $key->adi ?></option>
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- Yeni Konular -->
|
||||
|
||||
<div class="card">
|
||||
<div class="table-responsive">
|
||||
<table class="table ileti">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" style="text-align: center;" >YENİ KONULAR</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach (sonMesajlar() as $key):
|
||||
if ($key->content_id == 0) {$id = $key->id;}else{$id = $key->content_id;}
|
||||
?>
|
||||
<tr>
|
||||
<td width="66">
|
||||
<div class="avatar d-block" style="background-image: url( <?php echo avatar1($key->user_id); ?>)">
|
||||
</td>
|
||||
<td>
|
||||
<a href="/question_answer/subject/<?php echo $id.'-'.$key->title_seo ?>"><?php echo $key->title; ?></a><br>
|
||||
<span style="font-size: 12px;">
|
||||
<ul class="nav">
|
||||
<li class="nav-item nav1"><?php echo yazar($key->user_id); ?> ></li>
|
||||
<li class="nav-item nav1"><?php echo tcevir($key->insertDate); ?> ></li>
|
||||
<li class="nav-item nav1"><a href="/question_answer/category/<?php echo $key->category_id.'-'.forum_kategori_adi($key->category_id)->adi_seo ?>"><?php echo forum_kategori_adi($key->category_id)->adi; ?></a></li>
|
||||
</ul>
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<table class="bilgi table-responsive table-borderless " >
|
||||
<tr>
|
||||
<td>Görünteleme </td>
|
||||
<td>: <?php echo $key->view; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Cevaplar</td>
|
||||
<td>: <?php echo contentlist($key->id); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /Yeni Konular -->
|
||||
|
||||
<!-- soru listeleme -->
|
||||
<div class="card">
|
||||
<div class="table table-responsive" >
|
||||
<table class="table ileti" id="question" style="background: #fff">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="3" style="text-align: center;" >Son Mesajlar</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php foreach (forum_content() as $key): ?>
|
||||
<tr>
|
||||
<td class="text-center" width="66">
|
||||
<div class="avatar d-block" style="background-image: url( <?php echo avatar1($key->user_id); ?>)"></div>
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<a href="/question_answer/subject/<?php echo $key->id.'-'.$key->title_seo; ?>" title="<?php echo kelimebol($key->content,'50') ?>"><?php echo $key->title; ?></a>
|
||||
<span style="font-size: 12px;">
|
||||
<ul class="nav">
|
||||
<li class="nav-item nav1"><?php echo yazar($key->user_id); ?> ></li>
|
||||
<li class="nav-item nav1"><?php echo tcevir($key->insertDate); ?> ></li>
|
||||
<li class="nav-item nav1"><a href="/question_answer/category/<?php echo $key->category_id.'-'.forum_kategori_adi($key->category_id)->adi_seo ?>"><?php echo forum_kategori_adi($key->category_id)->adi; ?></a></li>
|
||||
</ul>
|
||||
</span>
|
||||
|
||||
</td>
|
||||
|
||||
<td>
|
||||
<dl class="sayac">
|
||||
<dt >Görünteleme </dt>
|
||||
<dd>: <?php echo $key->view; ?></dd>
|
||||
|
||||
<dt>Cevaplar </dt>
|
||||
<dl>: <?php echo contentlist($key->id); ?></dl>
|
||||
</dl>
|
||||
|
||||
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
<?php endforeach ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /soru listeleme -->
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<?php import::view(THEMA_NAME.'assets/footer'); ?>
|
||||
Reference in New Issue
Block a user