Commit 953c84f1 by marni

pembuatan polling

parent edf13876
<?php
namespace App\Http\Controllers;
use App\Type;
use Illuminate\Http\Request;
use Session;
class LController extends Controller
{
public function index()
{
$types = Type::all();
return view('polling.index', ['types'=>$types]);
}
public function show($id_type)
{
//$car = Car::findOrFail($id);
// return view('cars.edit', compact('car'));
}
}
......@@ -2,18 +2,22 @@
namespace App\Http\Controllers\Mahasiswa;
//use Illuminate\Contracts\View\View;
use App\Status;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Input;
use Response;
use DB;
use PDF;
use Validator;
use App\Http\Controllers\Controller;
use App\Mahasiswa as Mahasiswa;
use App\Dosenwali as Dosenwali;
use App\Jurusan as Jurusan;
use App\Asrama as Asrama;
use App\Request as Requested;
use App\User as User;
class MahasiswaController extends Controller
{
......@@ -33,57 +37,48 @@ class MahasiswaController extends Controller
public function detail($id)
{
$dataMahasiswa = Mahasiswa::select(DB::raw("nim,mhsnama,tanggallahir,alamat,jurusan,angkatan,dosenwali,asrama,mhsnohp,mhsemail"))->where('nim','=',$id)->get();
$dataMahasiswa = Mahasiswa::select(DB::raw("nim,mhsnama,tanggallahir,alamat,jurusan,angkatan,dosenwali,asrama,mhsnohp,mhsemail,foto"))->where('nim','=',$id)->get();
$data = array('mahasiswa' => $dataMahasiswa);
return view('admin.dashboard.mahasiswa.detailmahasiswa',$data);
}
//menyimpan data form
public function tambahmahasiswa(Request $request){
public function tambahmahasiswa(Request $request)
{
$input = $request->all();
$pesan = array(
'nim.required' => 'NIM dibutuhkan.',
'nim.unique' => 'NIM sudah digunakan',
'mhsnama.required' => 'Nama Mahasiswa dibutuhkan',
'tanggallahir.required' => 'Tanggal Lahir dibutuhkan',
'alamat.required' => 'Alamat dibutuhkan',
'angkatan.required' => 'Angkatan dibutuhkan',
'mhsnohp.required' => 'No. Handphone dibutuhkan',
'mhsemail.required' => 'Email dibutuhkan',
);
$aturan = array(
'nim' => 'required|unique:mahasiswa',
'mhsnama' => 'required|max:60',
'tanggallahir' => 'required|max:60',
'alamat' => 'required|max:60',
'angkatan' => 'required|max:60',
'mhsnohp' => 'required|max:60',
'mhsemail' => 'required|max:60',
);
$validator = Validator::make($input,$aturan,$pesan);
if ($validator->fails()){
$file = $request->file('foto');
$valfile = array('image' => $file);
$valrules = array('image' => 'image');
$validator = Validator::make($valfile, $valrules);
if ($validator->fails()) {
return Redirect::back()->withErrors($validator)->withInput();
}else
$destinationPath = 'uploads';
$size = $file->getSize();
$extension = $file->getClientOriginalExtension();
$fileName = $file->getClientOriginalName();
$upload_success = $file->move($destinationPath, $fileName);
if ($upload_success){
$mahasiswa = new Mahasiswa;
$mahasiswa->nim = $request['nim'];
$mahasiswa->mhsnama = $request['mhsnama'];
$mahasiswa->tanggallahir = $request['tanggallahir'];
$mahasiswa->alamat = $request['alamat'];
$mahasiswa->jurusan = $request['jurusan'];
$mahasiswa->angkatan = $request['angkatan'];
$mahasiswa->dosenwali = $request['dosenwali'];
$mahasiswa->asrama = $request['asrama'];
$mahasiswa->mhsemail = $request['mhsemail'];
$mahasiswa->mhsnohp = $request['mhsnohp'];
$mahasiswa->foto = $fileName;
$mahasiswa->save();
return Redirect::action('Mahasiswa\MahasiswaController@index')->with('successMessage','Data Mahasiswa "'.$input['mhsnama'].'" telah berhasil diubah.');
}
$mahasiswa = new Mahasiswa();
$mahasiswa->nim = $request['nim'];
$mahasiswa->mhsnama = $input['mhsnama'];
$mahasiswa->tanggallahir = $input['tanggallahir'];
$mahasiswa->alamat = $input['alamat'];
$mahasiswa->jurusan = $input['jurusan'];
$mahasiswa->angkatan = $input['angkatan'];
$mahasiswa->dosenwali = $input['dosenwali'];
$mahasiswa->asrama = $input['asrama'];
$mahasiswa->mhsemail = $input['mhsemail'];
$mahasiswa->mhsnohp = $input['mhsnohp'];
if (! $mahasiswa->save())
App::abort(500);
return Redirect::action('Mahasiswa\MahasiswaController@index')->with('successMessage','Data Mahasiswa "'.$input['mhsnama'].'" telah berhasil diubah.');
}
// unutk menghapus data mahasiswa
public function hapus($id){
$nim = Mahasiswa::where('nim', '=', $id)->first();
......@@ -100,29 +95,67 @@ class MahasiswaController extends Controller
$jurusan = Jurusan::orderBy('jurKode')->get();
$dosenwali = Dosenwali::orderBy('nidn')->get();
$asrama = Asrama::orderBy('id')->get();
// $satpam = Satpam::orderBy('id')->get();
return view('admin.dashboard.mahasiswa.editmahasiswa', $data)->with('listjurusan', $jurusan)->with('dosenwali',$dosenwali)->with('asrama',$asrama);
}
//meyimpan hasil edit
public function simpanedit(Request $request,$nim){
$input = $request->all();
$file = $request->file('foto');
$valfile = array('image' => $file);
$valrules = array('image' => 'image');
$editmahasiswa = Mahasiswa::find($nim);
$editmahasiswa->mhsnama = $request['mhsnama'];
$editmahasiswa->tanggallahir = $request['tanggallahir'];
$editmahasiswa->alamat = $request['alamat'];
$editmahasiswa->jurusan = $request['jurusan'];
$editmahasiswa->angkatan = $request['angkatan'];
$editmahasiswa->dosenwali = $request['dosenwali'];
$editmahasiswa->asrama = $request['asrama'];
$editmahasiswa->mhsemail = $request['mhsemail'];
$editmahasiswa->mhsnohp = $request['mhsnohp'];
$validator = Validator::make($valfile, $valrules);
if ($validator->fails()) {
return Redirect::back()->withErrors($validator)->withInput();
}else{
$destinationPath = 'uploads';
$size = $file->getSize();
$extension = $file->getClientOriginalExtension();
$fileName = $file->getClientOriginalName();
$upload_success = $file->move($destinationPath, $fileName);
if ($upload_success){
$editmahasiswa = Mahasiswa::find($nim);
$editmahasiswa->mhsnama = $request['mhsnama'];
$editmahasiswa->tanggallahir = $request['tanggallahir'];
$editmahasiswa->alamat = $request['alamat'];
$editmahasiswa->jurusan = $request['jurusan'];
$editmahasiswa->angkatan = $request['angkatan'];
$editmahasiswa->dosenwali = $request['dosenwali'];
$editmahasiswa->asrama = $request['asrama'];
$editmahasiswa->mhsemail = $request['mhsemail'];
$editmahasiswa->mhsnohp = $request['mhsnohp'];
$editmahasiswa->foto = $fileName;
$editmahasiswa->save();
return Redirect::action('Mahasiswa\MahasiswaController@index')->with('successMessage','Data Mahasiswa "'.$input['mhsnama'].'" telah berhasil diubah.');
}
if (! $editmahasiswa->save())
App::abort(500);
}
}
public function cetak(){
//ambil semua data
$data = array('mahasiswa'=> Mahasiswa::all());
$pdf = PDF::loadView('admin.dashboard.mahasiswa.cetak',$data);
return $pdf->download('Data-Mahasiswa.pdf');
}
return Redirect::action('Mahasiswa\MahasiswaController@index')->with('successMessage','Data Mahasiswa "'.$input['mhsnama'].'" telah berhasil diubah.');
public function search(Request $request){
$cari = $request->get('search');
$mahasiswa = Mahasiswa::where('mhsnama','LIKE','%'.$cari.'%')->paginate(10);
return view('admin.dashboard.mahasiswa.mahasiswa', compact('mahasiswa'));
}
public function print(){
$form = Status::all();
$mahasiswa = Mahasiswa::orderBy('nim')->get();
return view('admin.dashboard.mahasiswa.print')->with('form', $form)->with('mahasiswa',$mahasiswa);
}
public function printform(){
$data = array('requested'=> Requested::all());
$pdf = PDF::loadView('admin.dashboard.mahasiswa.form',$data);
return $pdf->download('Form_Izin_Keluar.pdf');
}
}
......@@ -3,6 +3,8 @@
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use App\Models\Pengumuman;
use App\Http\Requests;
use App\User;
use DB;
......@@ -22,6 +24,14 @@ class PengumumanController extends Controller
return view('admin.dashboard.pengumuman.index')->with('pengumumans', $pengumumans);
}
//pengumuman mahasiswa
public function indexx()
{
$pengumumans = DB::table('pengumumans')->paginate(10);
return view('mahasiswa.dashboard.pengumuman.index')->with('pengumumans', $pengumumans);
}
/**
* Show the form for creating a new resource.
*
......@@ -31,9 +41,8 @@ class PengumumanController extends Controller
{
$this->data['title'] = 'Tambah Pengumuman';
return view('admin.dashboard.pengumuman.add',$this->data);
return view('admin/dashboard/pengumuman/add',$this->data);
}
/**
* Store a newly created resource in storage.
*
......@@ -44,7 +53,29 @@ class PengumumanController extends Controller
{
$input = $request->all();
$data = Pengumuman::create($input);
return redirect(url('/admin'))->with('info','Pengumuman Berhasil Ditambahkan');
return redirect(url('/pengumuman'))->with('info','Pengumuman Berhasil Ditambahkan');
}
public function detail($ids)
{
$this->data['pengumumans'] = Pengumuman::find($ids);
return view('admin/dashboard/pengumuman/detail',$this->data);
}
public function delete($id){
Pengumuman::find($id)->delete();
return redirect(url('/pengumuman'))->with('info','Pengumuman berhasil dihapus');
}
public function editpengumuman($id){
$this->data['pengumumans'] = Pengumuman::find($id);
return view('admin.dashboard.pengumuman.edit',$this->data);
}
public function updatepengumuman(Request $request, $id){
$input = $request->all();
Pengumuman::find($id)->update($input);
return redirect(url('/pengumuman'))->with('info','Pengumuman berhasil diubah');
}
}
<?php
namespace App\Http\Controllers;
use App\Http\Requests;
use App\Vote;
use App\User;
use App\Type;
use App\Result;
use Illuminate\Http\Request;
use Session;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Input;
use Illuminate\Support\Facades\Auth;
class ResultController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\View\View
*/
public function voting(Request $request){
$username = Auth::user()->username;
$input['username'] = $request->user()->username;
$input['no_vote'] = $request->input('no_vote');
$input['id_vote'] = $request->input('id_vote');
Result::create($input);
return view('polling/lihat')->with('alert-success','Data saved');
}
public function pindah(Request $request)
{
$mha= Mahasiswa::find()->all();
}
}
<?php
namespace App\Http\Controllers;
use App\Type;
use Illuminate\Http\Request;
use Session;
class TypeController extends Controller
{
public function index()
{
$types = Type::all();
return view('types.index', ['types'=>$types]);
}
public function user()
{
$types = Type::all();
return view('polling.index', ['types'=>$types]);
}
public function create()
{
return view('types.create');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
*/
public function store(Request $request)
{
//validation
$this->validate($request,[
'id'=>'required',
'nama_vote'=>'required',
]);
//create new data
$type = new type();
$type -> id = $request->id;
$type -> nama_vote = $request->nama_vote;
$type->save();
return redirect()->route('types.index')->with('alert-success','Data saved');
}
/**
* Display the specified resource.
*
* @param int $id
*
* @return \Illuminate\View\View
*/
public function show($id)
{
$type = Type::findOrFail($id);
return view('types.edit', compact('type'));
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
*
* @return \Illuminate\View\View
*/
public function edit($id)
{
$type = Type::findOrFail($id);
//return in the edit view
return view('types.edit', compact('type'));
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
*/
public function update($id, Request $request)
{
//validate
$this->validate($request,[
'id'=>'required',
'nama_vote'=>'required',
]);
$type = Type::findOrFail($id);
$type -> id = $request->id;
$type -> nama_vote = $request->nama_vote ;
$type -> save();
return redirect()->route('types.index')->with('alert-success','Data saved');
}
/**
* Remove the specified resource from storage.
*
* @param int $id
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
*/
public function destroy($id)
{
type::destroy($id);
Session::flash('flash_message', 'type deleted!');
return redirect('types');
}
}
<?php
namespace App\Http\Controllers;
use App\Http\Requests;
use App\Vote;
use App\Type;
use App\Result;
use Illuminate\Http\Request;
use Session;
use Input as Input;
class UVotesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\View\View
*/
public function index($id)
{
$types = Type::where('id',$id)->first();
$votes = $types->vote;
$votess =$types->result;
return view('polling.lihat', compact('votes', 'votess'));
}
public function index1($id){
$types = Type::where('id',$id)->first();
$votes = $types->vote;
$votess =$types->result;
return view('polling.hasil', compact('votes', 'votess'));
}
}
<?php
namespace App\Http\Controllers;
use App\Http\Requests;
use App\Vote;
use App\users;
use App\Result;
use Illuminate\Http\Request;
use Session;
use Input as Input;
class VotesController extends Controller
{
/**
* Display a listing of the resource.
*
* @return \Illuminate\View\View
*/
public function index()
{
$votes = Vote::all();
return view('votes.index', ['vote'=>$votes]);
}
/**
* Show the form for creating a new resource.
*
* @return \Illuminate\View\View
*/
public function create()
{
return view('votes.create');
}
/**
* Store a newly created resource in storage.
*
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
*/
public function store(Request $request)
{
//validation
$this->validate($request,[
'no_vote'=>'required',
'nama'=>'required',
'id_vote'=>'required',
'image'=>'required'
]);
//create new data
$vote = new Vote();
$vote -> no_vote = $request->no_vote;
$vote -> nama = $request->nama;
$vote -> id_vote = $request->id_vote;
$vote -> image = $request ->image;
if($request->hasFile('image')) {
$dir = "image_book/";
$file = Input::file('image');
//getting timestamp
$timestamp = str_replace([' ', ':'], '-', Carbon::now() -> toDateTimeString());
$name = $timestamp. '-' .$file->getClientOriginalName();
$vote -> image = $name;
$file->move(public_path().'/public/img/', $name);
}
$vote->save();
return redirect()->route('votes.index')->with('alert-success','Data saved');
}
/**
* Display the specified resource.
*
* @param int $id
*
* @return \Illuminate\View\View
*/
public function show($no_vote)
{
//$car = Car::findOrFail($id);
// return view('cars.edit', compact('car'));
}
/**
* Show the form for editing the specified resource.
*
* @param int $id
*
* @return \Illuminate\View\View
*/
public function edit($no_vote)
{
$vote = Vote::findOrFail($no_vote);
//return in the edit view
return view('votes.edit', compact('vote'));
}
/**
* Update the specified resource in storage.
*
* @param int $id
* @param \Illuminate\Http\Request $request
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
*/
public function update($no_vote, Request $request)
{
//validate
$this->validate($request,[
'no_vote'=>'required',
'nama'=>'required',
'id_vote'=>'required'
]);
$vote = Vote::findOrFail($no_vote);
$vote ->no_vote = $request->no_vote;
$vote -> nama = $request->nama;
$vote -> id_vote = $request->id_vote;
$vote -> image = $request ->image;
if($request->hasFile('image')) {
$dir = "image_book/";
$file = Input::file('image');
//getting timestamp
$timestamp = str_replace([' ', ':'], '-', Carbon::now() -> toDateTimeString());
$name = $timestamp. '-' .$file->getClientOriginalName();
$vote -> image = $name;
$file->move(public_path().'/public/img/', $name);
}
$vote->save();
return redirect()->route('votes.index')->with('alert-success','Data saved');
}
public function data($no_vote){
$this->data['votes'] = Vote::find($no_vote);
$vote = Vote::all();
return view('polling.lihat',$this->data)->withVote($vote);
}
/**
* Remove the specified resource from storage.
*
* @param int $id
*
* @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector
*/
public function destroy($no_vote)
{
Vote::destroy($no_vote);
Session::flash('flash_message', 'Car deleted!');
return redirect('votes');
}
}
......@@ -57,5 +57,6 @@ class Kernel extends HttpKernel
'guest' => \App\Http\Middleware\RedirectIfAuthenticated::class,
'throttle' => \Illuminate\Routing\Middleware\ThrottleRequests::class,
'level' => \App\Http\Middleware\LevelMiddleware::class,
'admin' => \App\Http\Middleware\Admin::class,
];
}
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Pengumuman extends Model
{
protected $table = 'pengumumans';
protected $dates = ['deleted_at'];
protected $fillable = ['tanggal','judul','content','penulis'];
}
\ No newline at end of file
<?php
namespace App;
use App\Type;
use App\Vote;
use Illuminate\Database\Eloquent\Model;
class Result extends Model
{
protected $table = 'pollresult';
protected $primaryKey = 'id';
protected $fillable = ['id','no_vote','username','id_vote'];
public function type(){
return $this->belongsTo('App\Type', 'no_vote');
}
public function vote(){
return $this->belongsTo('App\Vote', 'id_vote');
}
}
<?php
namespace App;
use App\Result;
use Illuminate\Database\Eloquent\Model;
class Type extends Model
{
protected $table = 'tipe_vote';
protected $primaryKey = 'id';
public function vote(){
return $this->hasMany('App\Vote','id_vote');
}
public function result(){
return $this->hasMany('App\Result','no_vote');
}
}
<?php
namespace App;
use Illuminate\Database\Eloquent\Model;
class Vote extends Model
{
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'kandidat';
/**
* The database primary key value.
*
* @var string
*/
protected $primaryKey = 'id';
protected $fillable = ['id','no_vote','username'];
public function user(){
return $this->belongsTo('User');
}
public function type(){
return $this->belongsTo('App\Type', 'id_vote');
}
public function result(){
return $this->hasMany('App\Result', 'id_Vote'); }
}
This diff is collapsed. Click to expand it.
......@@ -18,7 +18,6 @@ class CreatePengumumansTable extends Migration
$table->string('tanggal');
$table->string('judul');
$table->text('content');
$table->text('images');
$table->string('penulis');
$table->timestamps();
});
......
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTipeTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('tipe_vote', function (Blueprint $table) {
$table->uuid('id')->primary();
$table->string('nama_vote')->nullable(false);
$table->timestamps();
$table->engine = 'InnoDB';
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('tipe_vote');
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTablePollResult extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('PollResult', function (Blueprint $table) {
$table->increments('id');
$table->string('no_vote');
$table->string('username')->unique();
$table->timestamps();
$table->foreign('no_vote')->references('no_vote')->on('vote')
->onUpdate('cascade')->onDelete('cascade');
$table->engine = 'InnoDB';
$table->foreign('username')->references('username')->on('users')
->onUpdate('cascade')->onDelete('cascade');
$table->engine = 'InnoDB';
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateTableVote extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('vote', function (Blueprint $table) {
$table->increments('id')->primary()
$table->string('no_vote', 100)->unique()->nullable(false);
$table->string('nama', 100)->unique()->nullable(false);
$table->string('image', 20);
$table->uuid('id_vote');
$table->timestamps();
$table->foreign('id_vote')->references('id')->on('tipe_vote')
->onUpdate('cascade')->onDelete('cascade');
$table->engine = 'InnoDB';
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
}
......@@ -675,6 +675,10 @@ pre code {
margin-left: -15px;
margin-right: -15px;
}
.pengumuman{
margin-left: 200px;
}
.row:before,
.row:after {
content: " ";
......

/*====================================
Free To Use For Personal And Commercial Usage
Author: http://binarytheme.com
Share Us if You Like our work
Enjoy Our Codes For Free always.
======================================*/
/* user image section */
.user-section {
margin-top:20px;
font-size:22px;
background-color:#304040;
}
.user-section-inner {
height: 65px;
width: 65px;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
overflow: hidden;
display: inline-block;
float: left;
margin-right: 15px;
margin-top: 20px;
}
.user-section-inner img {
margin-left:10px;
width:55px;
height:60px;
}
.user-info {
display: block;
color:#C9D1C8!important;
display: inline-block;
padding: 15px;
margin-bottom: 0px
}
.user-text-online {
font-size:18px;
color:#fff
}
.user-circle-online {
width: 15px!important;
height: 15px!important;
}
/* side-menu section */
.nav > li > a:hover, .nav > li > a:focus {
background-color:rgba(74, 72, 126, 0);
}
.navbar-top-links .open > a, .nav .open > a:hover, .nav .open > a:focus {
background-color: #75C5B8;
}
.navbar-top-links > li > a {
color: #FFFFFF;
}
.nav > li > a {
padding: 20px 15px;
}
#side-menu {
background-color:#5b7065;
}
#side-menu a {
color:#fff;
border-bottom: 1px solid #c9d1c8 !important;
height: 55px;
}
.selected {
background-color:rgb(83, 163, 163);
}
/* back colors */
.blue {
background-color:rgb(113, 159, 241);
}
.green {
background-color:rgb(144, 236, 192);
}
.red {
background-color:rgb(255, 102, 133);
}
.yellow {
background-color:rgb(237, 253, 46);
}
/* No border */
.no-boder {
border:0px solid #5bc0de !important;
}
/* tap nvbar Section */
#navbar {
background-color:#04202c;
}
.navbar-brand {
padding-left:20px;
}
.navbar-brand img {
height:30px;
}
.top-label {
position: absolute;
top: 50%;
right: 50%;
margin-top: -24px;
margin-right: -24px;
}
/*large font*/
.large-font {
font-size:18px;
}
.body-Login-back {
background-color:#84B899;
}
.margin-tips {
margin:5px;
}
.navbar-default {
border-color: #c9d1c8;
}
/*media queries*/
@media(min-width:768px)
{
#page-wrapper {
position: inherit;
margin: 0 0 0 250px;
padding: 0 30px;
min-height: 1000px;
}
}
@media(max-width:768px) {
#wrapper {
margin-top:140px!important;
}
}
......@@ -323,6 +323,7 @@ ul.sidebar-menu li ul.sub li a:hover, ul.sidebar-menu li ul.sub li.active a {
ul.sidebar-menu li{
line-height: 20px !important;
/*margin-bottom: 5px;
margin-left:10px;
margin-right:10px;*/
......@@ -1072,6 +1073,7 @@ div[data-role="editor-toolbar"] {
}
.panel .panel-heading {
line-height: 34px;
color:white;
padding: 0 15px;
min-height: 34px;
border-left: 1px solid #ccc;
......@@ -3719,7 +3721,7 @@ ul.amounts li {
/*panel heading color*/
.panel-heading,.modal-header{
background: #F7F7F7;
background: blue;
color: #688a7e;
}
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
div.dataTables_length label {
float: left;
text-align: left;
font-weight: normal;
}
div.dataTables_length select {
width: 75px;
}
div.dataTables_filter label {
float: right;
font-weight: normal;
}
div.dataTables_filter input {
width: 16em;
}
div.dataTables_info {
padding-top: 8px;
}
div.dataTables_paginate {
float: right;
margin: 0;
}
div.dataTables_paginate ul.pagination {
margin: 2px 0;
white-space: nowrap;
}
table.dataTable,
table.dataTable td,
table.dataTable th {
-webkit-box-sizing: content-box;
-moz-box-sizing: content-box;
box-sizing: content-box;
}
table.dataTable {
clear: both;
margin-top: 6px !important;
margin-bottom: 6px !important;
max-width: none !important;
}
table.dataTable thead .sorting,
table.dataTable thead .sorting_asc,
table.dataTable thead .sorting_desc,
table.dataTable thead .sorting_asc_disabled,
table.dataTable thead .sorting_desc_disabled {
cursor: pointer;
}
table.dataTable thead .sorting {
background: url('../images/sort_both.png') no-repeat center right;
}
table.dataTable thead .sorting_asc {
background: url('../images/sort_asc.png') no-repeat center right;
}
table.dataTable thead .sorting_desc {
background: url('../images/sort_desc.png') no-repeat center right;
}
table.dataTable thead .sorting_asc_disabled {
background: url('../images/sort_asc_disabled.png') no-repeat center right;
}
table.dataTable thead .sorting_desc_disabled {
background: url('../images/sort_desc_disabled.png') no-repeat center right;
}
table.dataTable th:active {
outline: none;
}
/* Scrolling */
div.dataTables_scrollHead table {
margin-bottom: 0 !important;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
div.dataTables_scrollHead table thead tr:last-child th:first-child,
div.dataTables_scrollHead table thead tr:last-child td:first-child {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
div.dataTables_scrollBody table {
margin-top: 0 !important;
margin-bottom: 0 !important;
border-top: none;
}
div.dataTables_scrollBody tbody tr:first-child th,
div.dataTables_scrollBody tbody tr:first-child td {
border-top: none;
}
div.dataTables_scrollFoot table {
margin-top: 0 !important;
border-top: none;
}
/*
* TableTools styles
*/
.table tbody tr.active td,
.table tbody tr.active th {
color: white;
background-color: #08C;
}
.table tbody tr.active:hover td,
.table tbody tr.active:hover th {
background-color: #0075b0 !important;
}
.table tbody tr.active a {
color: white;
}
.table-striped tbody tr.active:nth-child(odd) td,
.table-striped tbody tr.active:nth-child(odd) th {
background-color: #017ebc;
}
table.DTTT_selectable tbody tr {
cursor: pointer;
}
div.DTTT .btn {
font-size: 12px;
color: #333 !important;
}
div.DTTT .btn:hover {
text-decoration: none !important;
}
ul.DTTT_dropdown.dropdown-menu {
z-index: 2003;
}
ul.DTTT_dropdown.dropdown-menu a {
color: #333 !important; /* needed only when demo_page.css is included */
}
ul.DTTT_dropdown.dropdown-menu li {
position: relative;
}
ul.DTTT_dropdown.dropdown-menu li:hover a {
color: white !important;
background-color: #0088cc;
}
div.DTTT_collection_background {
z-index: 2002;
}
/* TableTools information display */
div.DTTT_print_info.modal {
height: 150px;
margin-top: -75px;
text-align: center;
}
div.DTTT_print_info h6 {
margin: 1em;
font-size: 28px;
font-weight: normal;
line-height: 28px;
}
div.DTTT_print_info p {
font-size: 14px;
line-height: 20px;
}
/*
* FixedColumns styles
*/
div.DTFC_LeftHeadWrapper table,
div.DTFC_LeftFootWrapper table,
div.DTFC_RightHeadWrapper table,
div.DTFC_RightFootWrapper table,
table.DTFC_Cloned tr.even {
background-color: white;
}
div.DTFC_RightHeadWrapper table,
div.DTFC_LeftHeadWrapper table {
margin-bottom: 0 !important;
border-top-right-radius: 0 !important;
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child,
div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child,
div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child,
div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child {
border-bottom-left-radius: 0 !important;
border-bottom-right-radius: 0 !important;
}
div.DTFC_RightBodyWrapper table,
div.DTFC_LeftBodyWrapper table {
margin-bottom: 0 !important;
border-top: none;
}
div.DTFC_RightBodyWrapper tbody tr:first-child th,
div.DTFC_RightBodyWrapper tbody tr:first-child td,
div.DTFC_LeftBodyWrapper tbody tr:first-child th,
div.DTFC_LeftBodyWrapper tbody tr:first-child td {
border-top: none;
}
div.DTFC_RightFootWrapper table,
div.DTFC_LeftFootWrapper table {
border-top: none;
}
\ No newline at end of file
/* Set the defaults for DataTables initialisation */
$.extend(true, $.fn.dataTable.defaults, {
"sDom": "<'row'<'col-sm-6'l><'col-sm-6'f>r>" + "t" + "<'row'<'col-sm-6'i><'col-sm-6'p>>",
"oLanguage": {
"sLengthMenu": "_MENU_ records per page"
}
});
/* Default class modification */
$.extend($.fn.dataTableExt.oStdClasses, {
"sWrapper": "dataTables_wrapper form-inline",
"sFilterInput": "form-control input-sm",
"sLengthSelect": "form-control input-sm"
});
// In 1.10 we use the pagination renderers to draw the Bootstrap paging,
// rather than custom plug-in
if ($.fn.dataTable.Api) {
$.fn.dataTable.defaults.renderer = 'bootstrap';
$.fn.dataTable.ext.renderer.pageButton.bootstrap = function(settings, host, idx, buttons, page, pages) {
var api = new $.fn.dataTable.Api(settings);
var classes = settings.oClasses;
var lang = settings.oLanguage.oPaginate;
var btnDisplay, btnClass;
var attach = function(container, buttons) {
var i, ien, node, button;
var clickHandler = function(e) {
e.preventDefault();
if (e.data.action !== 'ellipsis') {
api.page(e.data.action).draw(false);
}
};
for (i = 0, ien = buttons.length; i < ien; i++) {
button = buttons[i];
if ($.isArray(button)) {
attach(container, button);
} else {
btnDisplay = '';
btnClass = '';
switch (button) {
case 'ellipsis':
btnDisplay = '&hellip;';
btnClass = 'disabled';
break;
case 'first':
btnDisplay = lang.sFirst;
btnClass = button + (page > 0 ?
'' : ' disabled');
break;
case 'previous':
btnDisplay = lang.sPrevious;
btnClass = button + (page > 0 ?
'' : ' disabled');
break;
case 'next':
btnDisplay = lang.sNext;
btnClass = button + (page < pages - 1 ?
'' : ' disabled');
break;
case 'last':
btnDisplay = lang.sLast;
btnClass = button + (page < pages - 1 ?
'' : ' disabled');
break;
default:
btnDisplay = button + 1;
btnClass = page === button ?
'active' : '';
break;
}
if (btnDisplay) {
node = $('<li>', {
'class': classes.sPageButton + ' ' + btnClass,
'aria-controls': settings.sTableId,
'tabindex': settings.iTabIndex,
'id': idx === 0 && typeof button === 'string' ? settings.sTableId + '_' + button : null
})
.append($('<a>', {
'href': '#'
})
.html(btnDisplay)
)
.appendTo(container);
settings.oApi._fnBindAction(
node, {
action: button
}, clickHandler
);
}
}
}
};
attach(
$(host).empty().html('<ul class="pagination"/>').children('ul'),
buttons
);
}
} else {
// Integration for 1.9-
$.fn.dataTable.defaults.sPaginationType = 'bootstrap';
/* API method to get paging information */
$.fn.dataTableExt.oApi.fnPagingInfo = function(oSettings) {
return {
"iStart": oSettings._iDisplayStart,
"iEnd": oSettings.fnDisplayEnd(),
"iLength": oSettings._iDisplayLength,
"iTotal": oSettings.fnRecordsTotal(),
"iFilteredTotal": oSettings.fnRecordsDisplay(),
"iPage": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength),
"iTotalPages": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength)
};
};
/* Bootstrap style pagination control */
$.extend($.fn.dataTableExt.oPagination, {
"bootstrap": {
"fnInit": function(oSettings, nPaging, fnDraw) {
var oLang = oSettings.oLanguage.oPaginate;
var fnClickHandler = function(e) {
e.preventDefault();
if (oSettings.oApi._fnPageChange(oSettings, e.data.action)) {
fnDraw(oSettings);
}
};
$(nPaging).append(
'<ul class="pagination">' +
'<li class="prev disabled"><a href="#">&larr; ' + oLang.sPrevious + '</a></li>' +
'<li class="next disabled"><a href="#">' + oLang.sNext + ' &rarr; </a></li>' +
'</ul>'
);
var els = $('a', nPaging);
$(els[0]).bind('click.DT', {
action: "previous"
}, fnClickHandler);
$(els[1]).bind('click.DT', {
action: "next"
}, fnClickHandler);
},
"fnUpdate": function(oSettings, fnDraw) {
var iListLength = 5;
var oPaging = oSettings.oInstance.fnPagingInfo();
var an = oSettings.aanFeatures.p;
var i, ien, j, sClass, iStart, iEnd, iHalf = Math.floor(iListLength / 2);
if (oPaging.iTotalPages < iListLength) {
iStart = 1;
iEnd = oPaging.iTotalPages;
} else if (oPaging.iPage <= iHalf) {
iStart = 1;
iEnd = iListLength;
} else if (oPaging.iPage >= (oPaging.iTotalPages - iHalf)) {
iStart = oPaging.iTotalPages - iListLength + 1;
iEnd = oPaging.iTotalPages;
} else {
iStart = oPaging.iPage - iHalf + 1;
iEnd = iStart + iListLength - 1;
}
for (i = 0, ien = an.length; i < ien; i++) {
// Remove the middle elements
$('li:gt(0)', an[i]).filter(':not(:last)').remove();
// Add the new list items and their event handlers
for (j = iStart; j <= iEnd; j++) {
sClass = (j == oPaging.iPage + 1) ? 'class="active"' : '';
$('<li ' + sClass + '><a href="#">' + j + '</a></li>')
.insertBefore($('li:last', an[i])[0])
.bind('click', function(e) {
e.preventDefault();
oSettings._iDisplayStart = (parseInt($('a', this).text(), 10) - 1) * oPaging.iLength;
fnDraw(oSettings);
});
}
// Add / remove disabled classes from the static elements
if (oPaging.iPage === 0) {
$('li:first', an[i]).addClass('disabled');
} else {
$('li:first', an[i]).removeClass('disabled');
}
if (oPaging.iPage === oPaging.iTotalPages - 1 || oPaging.iTotalPages === 0) {
$('li:last', an[i]).addClass('disabled');
} else {
$('li:last', an[i]).removeClass('disabled');
}
}
}
}
});
}
/*
* TableTools Bootstrap compatibility
* Required TableTools 2.1+
*/
if ($.fn.DataTable.TableTools) {
// Set the classes that TableTools uses to something suitable for Bootstrap
$.extend(true, $.fn.DataTable.TableTools.classes, {
"container": "DTTT btn-group",
"buttons": {
"normal": "btn btn-default",
"disabled": "disabled"
},
"collection": {
"container": "DTTT_dropdown dropdown-menu",
"buttons": {
"normal": "",
"disabled": "disabled"
}
},
"print": {
"info": "DTTT_print_info modal"
},
"select": {
"row": "active"
}
});
// Have the collection use a bootstrap compatible dropdown
$.extend(true, $.fn.DataTable.TableTools.DEFAULTS.oTags, {
"collection": {
"container": "ul",
"button": "li",
"liner": "a"
}
});
}
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
/* Flot plugin for automatically redrawing plots as the placeholder resizes.
Copyright (c) 2007-2013 IOLA and Ole Laursen.
Licensed under the MIT license.
It works by listening for changes on the placeholder div (through the jQuery
resize event plugin) - if the size changes, it will redraw the plot.
There are no options. If you need to disable the plugin for some plots, you
can just fix the size of their placeholders.
*/
/* Inline dependency:
* jQuery resize event - v1.1 - 3/14/2010
* http://benalman.com/projects/jquery-resize-plugin/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
(function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k="setTimeout",j="resize",d=j+"-special-event",b="delay",f="throttleWindow";e[b]=250;e[f]=true;$.event.special[j]={setup:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.add(l);$.data(this,d,{w:l.width(),h:l.height()});if(a.length===1){g()}},teardown:function(){if(!e[f]&&this[k]){return false}var l=$(this);a=a.not(l);l.removeData(d);if(!a.length){clearTimeout(i)}},add:function(l){if(!e[f]&&this[k]){return false}var n;function m(s,o,p){var q=$(this),r=$.data(this,d);r.w=o!==c?o:q.width();r.h=p!==c?p:q.height();n.apply(this,arguments)}if($.isFunction(l)){n=l;return m}else{n=l.handler;l.handler=m}}};function g(){i=h[k](function(){a.each(function(){var n=$(this),m=n.width(),l=n.height(),o=$.data(this,d);if(m!==o.w||l!==o.h){n.trigger(j,[o.w=m,o.h=l])}});g()},e[b])}})(jQuery,this);
(function ($) {
var options = { }; // no options
function init(plot) {
function onResize() {
var placeholder = plot.getPlaceholder();
// somebody might have hidden us and we can't plot
// when we don't have the dimensions
if (placeholder.width() == 0 || placeholder.height() == 0)
return;
plot.resize();
plot.setupGrid();
plot.draw();
}
function bindEvents(plot, eventHolder) {
plot.getPlaceholder().resize(onResize);
}
function shutdown(plot, eventHolder) {
plot.getPlaceholder().unbind("resize", onResize);
}
plot.hooks.bindEvents.push(bindEvents);
plot.hooks.shutdown.push(shutdown);
}
$.plot.plugins.push({
init: init,
options: options,
name: 'resize',
version: '1.0'
});
})(jQuery);
\ No newline at end of file
/*
* jquery.flot.tooltip
*
* description: easy-to-use tooltips for Flot charts
* version: 0.6.2
* author: Krzysztof Urbas @krzysu [myviews.pl]
* website: https://github.com/krzysu/flot.tooltip
*
* build on 2013-09-30
* released under MIT License, 2012
*/
(function(t){var o={tooltip:!1,tooltipOpts:{content:"%s | X: %x | Y: %y",xDateFormat:null,yDateFormat:null,shifts:{x:10,y:20},defaultTheme:!0,onHover:function(){}}},i=function(t){this.tipPosition={x:0,y:0},this.init(t)};i.prototype.init=function(o){function i(t){var o={};o.x=t.pageX,o.y=t.pageY,s.updateTooltipPosition(o)}function e(t,o,i){var e=s.getDomElement();if(i){var n;n=s.stringFormat(s.tooltipOptions.content,i),e.html(n),s.updateTooltipPosition({x:o.pageX,y:o.pageY}),e.css({left:s.tipPosition.x+s.tooltipOptions.shifts.x,top:s.tipPosition.y+s.tooltipOptions.shifts.y}).show(),"function"==typeof s.tooltipOptions.onHover&&s.tooltipOptions.onHover(i,e)}else e.hide().html("")}var s=this;o.hooks.bindEvents.push(function(o,n){s.plotOptions=o.getOptions(),s.plotOptions.tooltip!==!1&&void 0!==s.plotOptions.tooltip&&(s.tooltipOptions=s.plotOptions.tooltipOpts,s.getDomElement(),t(o.getPlaceholder()).bind("plothover",e),t(n).bind("mousemove",i))}),o.hooks.shutdown.push(function(o,s){t(o.getPlaceholder()).unbind("plothover",e),t(s).unbind("mousemove",i)})},i.prototype.getDomElement=function(){var o;return t("#flotTip").length>0?o=t("#flotTip"):(o=t("<div />").attr("id","flotTip"),o.appendTo("body").hide().css({position:"absolute"}),this.tooltipOptions.defaultTheme&&o.css({background:"#fff","z-index":"100",padding:"0.4em 0.6em","border-radius":"0.5em","font-size":"0.8em",border:"1px solid #111",display:"none","white-space":"nowrap"})),o},i.prototype.updateTooltipPosition=function(o){var i=t("#flotTip").outerWidth()+this.tooltipOptions.shifts.x,e=t("#flotTip").outerHeight()+this.tooltipOptions.shifts.y;o.x-t(window).scrollLeft()>t(window).innerWidth()-i&&(o.x-=i),o.y-t(window).scrollTop()>t(window).innerHeight()-e&&(o.y-=e),this.tipPosition.x=o.x,this.tipPosition.y=o.y},i.prototype.stringFormat=function(t,o){var i=/%p\.{0,1}(\d{0,})/,e=/%s/,s=/%x\.{0,1}(?:\d{0,})/,n=/%y\.{0,1}(?:\d{0,})/;return"function"==typeof t&&(t=t(o.series.label,o.series.data[o.dataIndex][0],o.series.data[o.dataIndex][1],o)),o.series.percent!==void 0&&(t=this.adjustValPrecision(i,t,o.series.percent)),o.series.label!==void 0&&(t=t.replace(e,o.series.label)),this.isTimeMode("xaxis",o)&&this.isXDateFormat(o)&&(t=t.replace(s,this.timestampToDate(o.series.data[o.dataIndex][0],this.tooltipOptions.xDateFormat))),this.isTimeMode("yaxis",o)&&this.isYDateFormat(o)&&(t=t.replace(n,this.timestampToDate(o.series.data[o.dataIndex][1],this.tooltipOptions.yDateFormat))),"number"==typeof o.series.data[o.dataIndex][0]&&(t=this.adjustValPrecision(s,t,o.series.data[o.dataIndex][0])),"number"==typeof o.series.data[o.dataIndex][1]&&(t=this.adjustValPrecision(n,t,o.series.data[o.dataIndex][1])),o.series.xaxis.tickFormatter!==void 0&&(t=t.replace(s,o.series.xaxis.tickFormatter(o.series.data[o.dataIndex][0],o.series.xaxis))),o.series.yaxis.tickFormatter!==void 0&&(t=t.replace(n,o.series.yaxis.tickFormatter(o.series.data[o.dataIndex][1],o.series.yaxis))),t},i.prototype.isTimeMode=function(t,o){return o.series[t].options.mode!==void 0&&"time"===o.series[t].options.mode},i.prototype.isXDateFormat=function(){return this.tooltipOptions.xDateFormat!==void 0&&null!==this.tooltipOptions.xDateFormat},i.prototype.isYDateFormat=function(){return this.tooltipOptions.yDateFormat!==void 0&&null!==this.tooltipOptions.yDateFormat},i.prototype.timestampToDate=function(o,i){var e=new Date(o);return t.plot.formatDate(e,i)},i.prototype.adjustValPrecision=function(t,o,i){var e,s=o.match(t);return null!==s&&""!==RegExp.$1&&(e=RegExp.$1,i=i.toFixed(e),o=o.replace(t,i)),o};var e=function(t){new i(t)};t.plot.plugins.push({init:e,options:o,name:"tooltip",version:"0.6.1"})})(jQuery);
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
/* =========================================
URI: https://github.com/onokumus/metisMenu
=======================================*/
; (function ($, window, document, undefined) {
var pluginName = "metisMenu",
defaults = {
toggle: true
};
function Plugin(element, options) {
this.element = element;
this.settings = $.extend({}, defaults, options);
this._defaults = defaults;
this._name = pluginName;
this.init();
}
Plugin.prototype = {
init: function () {
var $this = $(this.element),
$toggle = this.settings.toggle;
$this.find('li.active').has('ul').children('ul').addClass('collapse in');
$this.find('li').not('.active').has('ul').children('ul').addClass('collapse');
$this.find('li').has('ul').children('a').on('click', function (e) {
e.preventDefault();
$(this).parent('li').toggleClass('active').children('ul').collapse('toggle');
if ($toggle) {
$(this).parent('li').siblings().removeClass('active').children('ul.in').collapse('hide');
}
});
}
};
$.fn[ pluginName ] = function (options) {
return this.each(function () {
if (!$.data(this, "plugin_" + pluginName)) {
$.data(this, "plugin_" + pluginName, new Plugin(this, options));
}
});
};
})(jQuery, window, document);
.morris-hover{position:absolute;z-index:1000;}.morris-hover.morris-default-style{border-radius:10px;padding:6px;color:#666;background:rgba(255, 255, 255, 0.8);border:solid 2px rgba(230, 230, 230, 0.8);font-family:sans-serif;font-size:12px;text-align:center;}.morris-hover.morris-default-style .morris-hover-row-label{font-weight:bold;margin:0.25em 0;}
.morris-hover.morris-default-style .morris-hover-point{white-space:nowrap;margin:0.1em 0;}
\ No newline at end of file
/*=======================
URI:https://github.com/HubSpot/pace/
============================*/
/* This is a compiled file, you should be editing the file in the templates directory */
.pace {
-webkit-pointer-events: none;
pointer-events: none;
-webkit-user-select: none;
-moz-user-select: none;
user-select: none;
}
.pace.pace-inactive .pace-progress {
display: none;
}
.pace .pace-progress {
position: fixed;
z-index: 2000;
top: 0;
right: 0;
height: 5rem;
width: 5rem;
}
.pace .pace-progress:after {
margin-top:100px;
display: block;
position: absolute;
top: 0;
right: .5rem;
content: attr(data-progress-text);
font-family: "Helvetica Neue", sans-serif;
font-weight: 100;
font-size: 5rem;
line-height: 1;
text-align: right;
color: rgba(0, 0, 0, 0.19999999999999996);
}
/*Copyright 2013-2014 Iron Summit Media Strategies
URI: http://http://www.ironsummitmedia.com/
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/
.timeline {
position: relative;
padding: 20px 0 20px;
list-style: none;
}
.timeline:before {
content: " ";
position: absolute;
top: 0;
bottom: 0;
left: 50%;
width: 3px;
margin-left: -1.5px;
background-color: #eeeeee;
}
.timeline > li {
position: relative;
margin-bottom: 20px;
}
.timeline > li:before,
.timeline > li:after {
content: " ";
display: table;
}
.timeline > li:after {
clear: both;
}
.timeline > li:before,
.timeline > li:after {
content: " ";
display: table;
}
.timeline > li:after {
clear: both;
}
.timeline > li > .timeline-panel {
float: left;
position: relative;
width: 46%;
padding: 20px;
border: 1px solid #d4d4d4;
border-radius: 2px;
-webkit-box-shadow: 0 1px 6px rgba(0,0,0,0.175);
box-shadow: 0 1px 6px rgba(0,0,0,0.175);
}
.timeline > li > .timeline-panel:before {
content: " ";
display: inline-block;
position: absolute;
top: 26px;
right: -15px;
border-top: 15px solid transparent;
border-right: 0 solid #ccc;
border-bottom: 15px solid transparent;
border-left: 15px solid #ccc;
}
.timeline > li > .timeline-panel:after {
content: " ";
display: inline-block;
position: absolute;
top: 27px;
right: -14px;
border-top: 14px solid transparent;
border-right: 0 solid #fff;
border-bottom: 14px solid transparent;
border-left: 14px solid #fff;
}
.timeline > li > .timeline-badge {
z-index: 100;
position: absolute;
top: 16px;
left: 50%;
width: 50px;
height: 50px;
margin-left: -25px;
border-radius: 50% 50% 50% 50%;
text-align: center;
font-size: 1.4em;
line-height: 50px;
color: #fff;
background-color: #999999;
}
.timeline > li.timeline-inverted > .timeline-panel {
float: right;
}
.timeline > li.timeline-inverted > .timeline-panel:before {
right: auto;
left: -15px;
border-right-width: 15px;
border-left-width: 0;
}
.timeline > li.timeline-inverted > .timeline-panel:after {
right: auto;
left: -14px;
border-right-width: 14px;
border-left-width: 0;
}
.timeline-badge.primary {
background-color: #2e6da4 !important;
}
.timeline-badge.success {
background-color: #3f903f !important;
}
.timeline-badge.warning {
background-color: #f0ad4e !important;
}
.timeline-badge.danger {
background-color: #d9534f !important;
}
.timeline-badge.info {
background-color: #5bc0de !important;
}
.timeline-title {
margin-top: 0;
color: inherit;
}
.timeline-body > p,
.timeline-body > ul {
margin-bottom: 0;
}
.timeline-body > p + p {
margin-top: 5px;
}
\ No newline at end of file
$(function() {
// morris Area chart on dashboard///
Morris.Area({
element: 'morris-area-chart',
data: [{
period: '2010 Q1',
iphone: 2666,
ipad: null,
itouch: 2647
}, {
period: '2010 Q2',
iphone: 2778,
ipad: 2294,
itouch: 2441
}, {
period: '2010 Q3',
iphone: 4912,
ipad: 1969,
itouch: 2501
}, {
period: '2010 Q4',
iphone: 3767,
ipad: 3597,
itouch: 5689
}, {
period: '2011 Q1',
iphone: 6810,
ipad: 1914,
itouch: 2293
}, {
period: '2011 Q2',
iphone: 5670,
ipad: 4293,
itouch: 1881
}, {
period: '2011 Q3',
iphone: 4820,
ipad: 3795,
itouch: 1588
}, {
period: '2011 Q4',
iphone: 15073,
ipad: 5967,
itouch: 5175
}, {
period: '2012 Q1',
iphone: 10687,
ipad: 4460,
itouch: 2028
}, {
period: '2012 Q2',
iphone: 8432,
ipad: 5713,
itouch: 1791
}],
xkey: 'period',
ykeys: ['iphone', 'ipad', 'itouch'],
labels: ['iPhone', 'iPad', 'iPod Touch'],
pointSize: 2,
hideHover: 'auto',
resize: true
});
// morris donut chart on dashboard///
Morris.Donut({
element: 'morris-donut-chart',
data: [{
label: "Download Sales",
value: 12
}, {
label: "In-Store Sales",
value: 30
}, {
label: "Mail-Order Sales",
value: 20
}],
resize: true
});
Morris.Bar({
element: 'morris-bar-chart',
data: [{
y: '2006',
a: 100,
b: 90
}, {
y: '2007',
a: 75,
b: 65
}, {
y: '2008',
a: 50,
b: 40
}, {
y: '2009',
a: 75,
b: 65
}, {
y: '2010',
a: 50,
b: 40
}, {
y: '2011',
a: 75,
b: 65
}, {
y: '2012',
a: 100,
b: 90
}],
xkey: 'y',
ykeys: ['a', 'b'],
labels: ['Series A', 'Series B'],
hideHover: 'auto',
resize: true
});
});
//morris area chart
$(function () {
Morris.Area({
element: 'morris-area-chart',
data: [{
period: '2010 Q1',
iphone: 2666,
ipad: null,
itouch: 2647
}, {
period: '2010 Q2',
iphone: 2778,
ipad: 2294,
itouch: 2441
}, {
period: '2010 Q3',
iphone: 4912,
ipad: 1969,
itouch: 2501
}, {
period: '2010 Q4',
iphone: 3767,
ipad: 3597,
itouch: 5689
}, {
period: '2011 Q1',
iphone: 6810,
ipad: 1914,
itouch: 2293
}, {
period: '2011 Q2',
iphone: 5670,
ipad: 4293,
itouch: 1881
}, {
period: '2011 Q3',
iphone: 4820,
ipad: 3795,
itouch: 1588
}, {
period: '2011 Q4',
iphone: 15073,
ipad: 5967,
itouch: 5175
}, {
period: '2012 Q1',
iphone: 10687,
ipad: 4460,
itouch: 2028
}, {
period: '2012 Q2',
iphone: 8432,
ipad: 5713,
itouch: 1791
}],
xkey: 'period',
ykeys: ['iphone', 'ipad', 'itouch'],
labels: ['iPhone', 'iPad', 'iPod Touch'],
pointSize: 2,
hideHover: 'auto',
resize: true
});
//morris donut chart
Morris.Donut({
element: 'morris-donut-chart',
data: [{
label: "Download Sales",
value: 12
}, {
label: "In-Store Sales",
value: 30
}, {
label: "Mail-Order Sales",
value: 20
}],
resize: true
});
//morris bar chart
Morris.Bar({
element: 'morris-bar-chart',
data: [{
y: '2006',
a: 100,
b: 90
}, {
y: '2007',
a: 75,
b: 65
}, {
y: '2008',
a: 50,
b: 40
}, {
y: '2009',
a: 75,
b: 65
}, {
y: '2010',
a: 50,
b: 40
}, {
y: '2011',
a: 75,
b: 65
}, {
y: '2012',
a: 100,
b: 90
}],
xkey: 'y',
ykeys: ['a', 'b'],
labels: ['Series A', 'Series B'],
hideHover: 'auto',
resize: true
});
//morris line chart
Morris.Line({
element: 'morris-line-chart',
data: [{
y: '2006',
a: 100,
b: 90
}, {
y: '2007',
a: 75,
b: 65
}, {
y: '2008',
a: 50,
b: 40
}, {
y: '2009',
a: 75,
b: 65
}, {
y: '2010',
a: 50,
b: 40
}, {
y: '2011',
a: 75,
b: 65
}, {
y: '2012',
a: 100,
b: 90
}],
xkey: 'y',
ykeys: ['a', 'b'],
labels: ['Series A', 'Series B'],
hideHover: 'auto',
resize: true
});
});
/*====================================
Free To Use For Personal And Commercial Usage
Author: http://binarytheme.com
Share Us if You Like our work
Enjoy Our Codes For Free always.
======================================*/
$(function () {
// tooltip demo
$('.tooltip-demo').tooltip({
selector: "[data-toggle=tooltip]",
container: "body"
})
// popover demo
$("[data-toggle=popover]")
.popover()
///calling side menu
$('#side-menu').metisMenu();
///pace function for showing progress
function load(time) {
var x = new XMLHttpRequest()
x.open('GET', "" + time, true);
x.send();
};
load(20);
load(100);
load(500);
load(2000);
load(3000);
setTimeout(function () {
Pace.ignore(function () {
load(3100);
});
}, 4000);
Pace.on('hide', function () {
console.log('done');
});
paceOptions = {
elements: true
};
});
//Loads the correct sidebar on window load, collapses the sidebar on window resize.
$(function() {
$(window).bind("load resize", function() {
console.log($(this).width())
if ($(this).width() < 768) {
$('div.sidebar-collapse').addClass('collapse')
} else {
$('div.sidebar-collapse').removeClass('collapse')
}
})
})
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -195,7 +195,7 @@
color:#fff;}
.telu {
background-color:#b6252a;
background-color:#2376ba;
color:#fff;}
......
......@@ -16,7 +16,7 @@ overflow: hidden;
position: relative;
left: 10px;
top: 3px;
width: 518px;
width: 100px;
overflow: hidden;
}
ul.newsticker { /* that's your list */
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -10,7 +10,12 @@ Copyright (c) 2014 Daniel Eden
/*style-telu-shared.css*/
.absolute-full{position:absolute;top:0px;left:0px;width:100%;height:100%;}
body{font-family:"Lato", "Helvetica Neue", Arial, sans-serif;color:#666666;background-color:#ffffff;font-size:14px;}
body{font-family:"Lato", "Helvetica Neue", Arial, sans-serif;
color:#b6252a;
background-color:#ffffff;
font-size:20px;
}
p{line-height:1.7em;}
a{color:#808080;outline:0;}
a:hover,
......@@ -91,7 +96,7 @@ form .form-field{display:block;max-width:100%;clear:both;position:relative;margi
form .form-field.small-field{width:49%;float:left;clear:none;}
form .form-field.small-field:nth-child(even){margin-left:2%;}
form .form-field label.error{position:absolute;right:0px;bottom:-4px;font-size:11px;font-weight:normal;color:#fc5857;}
#topHeader{height:10px;background-color:#ed3237;}
#topHeader{height:20px;background-color:#2376ba;}
#header{background-color:#b6252a;*/min-height:80px;border-radius:0px;border:0px;}
.boxed .wrapper #header{left:auto;margin:0 auto;max-width:1240px;}
.boxed .wrapper #header.sticky{left:50%;width:1240px;margin-left:-620px;}
......
......@@ -102,6 +102,7 @@ a:focus {outline:none !important;}
width:100%;
left:0px;
position:absolute;
text-align: justify;
top:48px;
color:#000;
z-index:1000;
......@@ -410,8 +411,8 @@ a:focus {outline:none !important;}
.wsmenu-list > li > a.active{background-color:rgba(0,0,0,0.08) !important; text-decoration:none; }
.wsmenu-submenu > li > a:hover {background-color:rgba(0,0,0,0.08) !important; border-radius:0px!important; text-decoration:none; text-decoration:none;}
.typography-text { padding:0px 0px; font-size:14px;}
.typography-text p{ text-align:justify; line-height:24px; color:#656565;}
.typography-text { padding:0px 0px; font-size:14px; text-align: justify;}
.typography-text p{ line-height:20px; color:#656565;}
.typography-text ul li{ display:block; padding:2px 0px; line-height:22px;}
.typography-text ul li a{color:#656565;}
.hometext{display:none;}
......
public/image/del.PNG

26.5 KB | W: | H:

public/image/del.PNG

13.8 KB | W: | H:

public/image/del.PNG
public/image/del.PNG
public/image/del.PNG
public/image/del.PNG
  • 2-up
  • Swipe
  • Onion skin
public/image/google.jpg

6.91 KB | W: | H:

public/image/google.jpg

2.55 KB | W: | H:

public/image/google.jpg
public/image/google.jpg
public/image/google.jpg
public/image/google.jpg
  • 2-up
  • Swipe
  • Onion skin
This diff is collapsed. Click to expand it.
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment