new pisilinux web sites
This commit is contained in:
@@ -0,0 +1,71 @@
|
||||
|
||||
<div class="widget-box">
|
||||
<div class="widget-title"> <span class="icon"> <i class="fa fa-align-justify"></i> </span>
|
||||
<h5>Duyuru Düzenleme Formu</h5>
|
||||
</div>
|
||||
<div class="widget-content nopadding">
|
||||
|
||||
|
||||
<form action="#" method="post" class="form-horizontal">
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">TITLE :</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="title" class="span11" value="{{duyuruRow($id)->title}}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Duyuru :</label>
|
||||
<div class="controls">
|
||||
<textarea name="duyuru" id="editor" rows="20" class="span11">{{duyuruRow($id)->text}}</textarea>
|
||||
<script>
|
||||
CKEDITOR.replace('editor', {
|
||||
customConfig: 'admin_config.js',
|
||||
height: 1000,
|
||||
filebrowserBrowseUrl : '/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
||||
filebrowserUploadUrl : '/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
||||
filebrowserImageBrowseUrl : '/filemanager/dialog.php?type=1&editor=ckeditor&fldr='
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Language :</label>
|
||||
<div class="controls">
|
||||
<select name="lang" id="" class="span11" required>
|
||||
<option value="">Select Language</option>
|
||||
@foreach (languageList() as $key):
|
||||
<option value="{{$key->slug}}" {{selected(duyuruRow($id)->lang,$key->slug)}}>{{$key->language}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Status :</label>
|
||||
<div class="controls">
|
||||
<select name="status" id="" class="span11" required>
|
||||
<option value="">Select Status</option>
|
||||
<option value="0" {{selected(duyuruRow($id)->status,'0')}}>Pasif</option>
|
||||
<option value="1" {{selected(duyuruRow($id)->status,'1')}}>Active</option>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-actions">
|
||||
<input type="hidden" name="id" value="{{$id}}">
|
||||
<button type="submit" class="btn btn-success">Save</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,48 @@
|
||||
<a href="{{URL::base('panel/duyuru/new')}}"><button class="btn btn-primary">Yeni Duyuru</button></a>
|
||||
|
||||
<style>
|
||||
.status{
|
||||
padding: 3px;
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<div class="widget-box">
|
||||
<div class="widget-title"> <span class="icon"> <i class="fa fa-bars"></i> </span>
|
||||
<h5>Duyuru List</h5>
|
||||
|
||||
</div>
|
||||
<div class="widget-content nopadding" >
|
||||
|
||||
<table class="table table-bordered data-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width="100">Create Date</th>
|
||||
<th>Title</th>
|
||||
<th>Text</th>
|
||||
<th>Lang</th>
|
||||
<th>Status</th>
|
||||
<th>Operation</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach ($list as $key)
|
||||
<tr >
|
||||
<td>{{tarih($key->createDate,'-')}}</td>
|
||||
<td><a href="{{URL::base('panel/duyuru/edit/'.$key->id)}}"><i class="fa fa-edit"></i> {{$key->title}}</a></td>
|
||||
|
||||
<td>{{$key->text}}</td>
|
||||
<td>{{$key->lang}}</td>
|
||||
<td><p class="status" data-id='{{$key->id}}' data-status='{{$key->status}}' title="durumu değiştirmek için tıklayın">{{status1($key->status)}}</p></td>
|
||||
|
||||
<td>
|
||||
<a href="{{URL::base('panel/download/delete/'.$key->id)}}" onclick="return confirm('Bu kaydı silmek istediğinize eminmisiniz?')">
|
||||
<button class="btn btn-danger"><i class="fa fa-trash"></i></button>
|
||||
</a>
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
@endforeach
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
<div class="widget-box">
|
||||
<div class="widget-title"> <span class="icon"> <i class="fa fa-align-justify"></i> </span>
|
||||
<h5>Yeni Duyuru Ekleme Formu</h5>
|
||||
</div>
|
||||
<div class="widget-content nopadding">
|
||||
|
||||
|
||||
<form action="#" method="post" class="form-horizontal">
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">TITLE :</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="title" class="span11" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Duyuru :</label>
|
||||
<div class="controls">
|
||||
<textarea name="duyuru" id="editor" rows="20" class="span11"></textarea>
|
||||
<script>
|
||||
CKEDITOR.replace('editor', {
|
||||
customConfig: 'admin_config.js',
|
||||
height: 1000,
|
||||
filebrowserBrowseUrl : '/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
||||
filebrowserUploadUrl : '/filemanager/dialog.php?type=2&editor=ckeditor&fldr=',
|
||||
filebrowserImageBrowseUrl : '/filemanager/dialog.php?type=1&editor=ckeditor&fldr='
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="control-group">
|
||||
<label class="control-label">Language :</label>
|
||||
<div class="controls">
|
||||
<select name="lang" id="" class="span11" required>
|
||||
<option value="">Select Language</option>
|
||||
@foreach (languageList() as $key):
|
||||
<option value="{{$key->slug}}">{{$key->language}}</option>
|
||||
@endforeach
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-success">Kaydet</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user