new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
<div class="widget-box">
|
||||
<div class="widget-title"> <span class="icon"> <i class="fa fa-align-justify"></i> </span>
|
||||
<h5>FORUM KATEGORİLER</h5>
|
||||
<div class="pull-right" style="margin:5px;">
|
||||
<a href="{{URL::base('forum/forumKat')}}">
|
||||
<button>YENİ KATEGORİ</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="widget-content nopadding">
|
||||
<style>
|
||||
tr:nth-child(even) {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
</style>
|
||||
<table class="table table-bordered table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Kategoriler</th>
|
||||
<th>Açıklama</th>
|
||||
<th>Status</th>
|
||||
<th width="80">İşlemler</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($catList as $key)
|
||||
<tr>
|
||||
<td><b>{{$key->adi}}</b></td>
|
||||
<td>{{$key->aciklama}}</td>
|
||||
<td>{{status($key->status)}}</td>
|
||||
<td class="islemler" style="text-align: center;">
|
||||
<a href="{{URL::base('forum/kategori_edit/'.$key->id)}}"><i class="fas fa-pencil-alt"></i></a>
|
||||
<a href="{{URL::base('forum/category_delete/'.$key->id)}}" onclick="return confirm('Bu kaydı silmek istediğinize eminmisiniz?')"><i class="fa fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@foreach (forun_alt_kat($key->id) as $key )
|
||||
<tr>
|
||||
<td>--{{$key->adi}}</td>
|
||||
<td>{{$key->aciklama}}</td>
|
||||
<td>{{status($key->status)}}</td>
|
||||
<td class="islemler" style="text-align: center;">
|
||||
<a href="{{URL::base('forum/kategori_edit/'.$key->id)}}"><i class="fas fa-pencil-alt"></i></a>
|
||||
<a href="{{URL::base('forum/category_delete/'.$key->id)}}" onclick="return confirm('Bu kaydı silmek istediğinize eminmisiniz?')"><i class="fas fa-trash"></i></a>
|
||||
</td>
|
||||
</tr>
|
||||
@endforeach
|
||||
@endforeach
|
||||
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,42 @@
|
||||
|
||||
<style>
|
||||
.tr2{
|
||||
background: #CFCFCF;
|
||||
}
|
||||
</style>
|
||||
<a href="/panel/forum/category_list"><button class="btn btn-primary">Forum category management</button></a>
|
||||
<h1>Forum Management</h1>
|
||||
<div class="widget-box">
|
||||
<div class="widget-title"> <span class="icon"> <i class="fa fa-align-justify"></i> </span>
|
||||
<h5>Konular</h5>
|
||||
|
||||
</div>
|
||||
<div class="widget-content nopadding">
|
||||
|
||||
<table class="table table-bordered table-striped data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Ana Konu başlığı</th>
|
||||
|
||||
<th width="150">Kategori</th>
|
||||
<th width="175">İşlemler</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
@foreach ($konu as $key)
|
||||
<tr class="tr2">
|
||||
<td class="text-center">{{$key->id}}</td>
|
||||
<td>{{$key->title}}</td>
|
||||
|
||||
<td>{{forumCategoryName($key->category_id)}}</td>
|
||||
<td>
|
||||
<a href="/panel/forum/konu/{{$key->id}}"><button>Cevaplar</button></a>
|
||||
<a href="/panel/forum/edit/{{$key->id}}"><button>Düzenle</button></a>
|
||||
<a href="/panel/forum/delete/{{$key->id}}"><button>Sil</button></a></td>
|
||||
</tr>
|
||||
@endforeach
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
@@ -0,0 +1,44 @@
|
||||
|
||||
<h2>FORUM NEW CATECORY</h2><hr>
|
||||
<div class="widget-box">
|
||||
<div class="widget-title"> <span class="icon"> <i class="fa fa-align-justify"></i> </span>
|
||||
<h5>YENİ KATEGORİ </h5>
|
||||
</div>
|
||||
|
||||
{{DB::error()}}
|
||||
<div class="widget-content nopadding">
|
||||
<form action="" method="post" class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label">Üst Kategori :</label>
|
||||
<div class="controls">
|
||||
|
||||
<select name="kat_ustid" id="" class="span11">
|
||||
<option value="0">ANA KATEGORİ</option>
|
||||
@foreach (forum_kategori_panel() as $key )
|
||||
<option value="{{$key->id}}" >{{$key->adi}}</option>
|
||||
@endforeach
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Kategori Adı:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="span11" name="adi" value="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Açıklama:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="span11" name="aciklama" value="">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
|
||||
<button type="submit" class="btn btn-success btn-block">Kategoriyi Kaydet</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,53 @@
|
||||
|
||||
<h2>KATEGORİ DÜZENLE</h2><hr>
|
||||
<div class="widget-box">
|
||||
<div class="widget-title"> <span class="icon"> <i class="fa fa-align-justify"></i> </span>
|
||||
<h5>YENİ KATEGORİ </h5>
|
||||
</div>
|
||||
{{DB::error()}}
|
||||
<div class="widget-content nopadding">
|
||||
<form action="" method="post" class="form-horizontal">
|
||||
<div class="control-group">
|
||||
<label class="control-label">Üst Kategori :</label>
|
||||
<div class="controls">
|
||||
|
||||
<select name="kat_ustid" id="" class="span11">
|
||||
<option value="0">ANA KATEGORİ</option>
|
||||
@foreach (forum_kategori_panel() as $key )
|
||||
<option value="{{$key->id}}" {[selected(forum_kategori_row($id)->kat_ustid,$key->id)]}>{{$key->adi}}</option>
|
||||
@endforeach
|
||||
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="control-group">
|
||||
<label class="control-label">Kategori Adı:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="span11" name="adi" value="{{forum_kategori_row($id)->adi}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Açıklama:</label>
|
||||
<div class="controls">
|
||||
<input type="text" class="span11" name="aciklama" value="{{forum_kategori_row($id)->aciklama}}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Durumu:</label>
|
||||
<div class="controls">
|
||||
<select name="status" class="span11">
|
||||
<option value="1" {{selected(forum_kategori_row($id)->status,1)}}>Aktif</option>
|
||||
<option value="0" {{selected(forum_kategori_row($id)->status,0)}}>Pasif</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="hidden" name="id" value="{{$id}} ">
|
||||
<button type="submit" class="btn btn-success btn-block">Kategoriyi Kaydet</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php import::view('header'); ?>
|
||||
<div class="widget-box">
|
||||
|
||||
<div class="widget-content">
|
||||
|
||||
<form action="#" method="post" class="form-horizontal">
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Başlık :</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="title" class="span11" value="<?php echo forum_content_row($id)->title; ?>">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Kategori :</label>
|
||||
<div class="controls">
|
||||
<select name="category" id="" class="span11">
|
||||
<option value="0">ANA KATEGORİ</option>
|
||||
<?php $select = ""; foreach (forum_kategori_panel() as $key ):
|
||||
if ($key->id == forum_content_row($id)->category_id) {$select = 'selected';}
|
||||
?>
|
||||
|
||||
<option value="<?php echo $key->id ?>" <?php echo $select; ?>><?php echo $key->adi ?></option>
|
||||
|
||||
<?php $select = ""; foreach (forum_kategori_panel($key->id) as $key1 ):
|
||||
if ($key1->id == forum_content_row($id)->category_id) {$select = 'selected';}
|
||||
|
||||
?>
|
||||
<option value="<?php echo $key1->id ?>" <?php echo $select; ?>>--><?php echo $key1->adi ?></option>
|
||||
<?php $select = ""; endforeach ?>
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">İçerik :</label>
|
||||
<div class="controls">
|
||||
<textarea name="content" id="editor" rows="20" class="span11"><?php echo forum_content_row($id)->content ?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="hidden" name="id" value="<?php echo $id; ?>">
|
||||
<button type="submit" class="btn btn-success btn-block">Kaydet</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php import::view('footer'); ?>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php import::view('header'); ?>
|
||||
<div class="widget-box">
|
||||
<div class="widget-title"> <h5><?php echo forum_content_row($id)->title; ?></h5></div>
|
||||
<div class="widget-content">
|
||||
<img src="<?php echo avatar1(forum_content_row($id)->user_id); ?>" alt="" width="100">
|
||||
<?php echo forum_content_row($id)->user_id.'-'.yazar(forum_content_row($id)->user_id).' - '.tcevir(forum_content_row($id)->insertDate,1).' - '.forum_kategori_adi(forum_content_row($id)->category_id)->adi; ?>
|
||||
<hr>
|
||||
<?php echo forum_content_row($id)->content; ?>
|
||||
|
||||
</div>
|
||||
<div class="widget-content">
|
||||
<a href="/panel/forum/edit/<?php echo $id ?>"><button>Düzenle</button></a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- cevaplar -->
|
||||
<?php $a=1; foreach (cevaplist($id) as $key): $a = $a+1; ?>
|
||||
<div class="widget-box">
|
||||
|
||||
<div class="widget-content">
|
||||
<img src="<?php echo avatar1($key->user_id); ?>" alt="" width="100">
|
||||
<?php echo yazar($key->user_id).' - '.tcevir($key->insertDate,1); ?>
|
||||
<hr>
|
||||
<?php echo $key->content; ?>
|
||||
</div>
|
||||
<div class="widget-content">
|
||||
<a href="/panel/forum/edit/<?php echo $key->id ?>"><button>Düzenle</button></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php endforeach ?>
|
||||
|
||||
|
||||
<?php import::view('footer'); ?>
|
||||
@@ -0,0 +1,34 @@
|
||||
<a href="{{URL::base('forum/category_list')}}" class="btn btn-primary">
|
||||
Forum category management</a>
|
||||
<a href="{{URL::base('forum/search')}}" class="btn btn-primary">Search</a>
|
||||
<hr>
|
||||
<form action="" method="post" >
|
||||
|
||||
<div class="form-actions">
|
||||
<div class="control-group">
|
||||
|
||||
<div class="controls">
|
||||
<input type="text" class="span12" name="username" value="" placeholder="Kullanıcı adını yazın">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<button type="submit" class="btn btn-success btn-block">Ara</button>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<hr>
|
||||
@if (isset($konu))
|
||||
<form action="" method="post">
|
||||
@foreach ($konu as $key)
|
||||
<label>
|
||||
<input type="checkbox" id="check" name="forumDel[]" value="{{$key->id}}"> - {{$key->id}} - {{kelimebol($key->content,25)}} <hr>
|
||||
</label>
|
||||
@endforeach
|
||||
<input type="hidden" name="delete" value="1">
|
||||
<button type="submit" class="btn btn-danger">Delete</button>
|
||||
</form>
|
||||
@else
|
||||
<div class="alert alert-danger">Aradığınız kriterlere uygun sonuç bulunamadı.</div>
|
||||
@endif
|
||||
Reference in New Issue
Block a user