Updates
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
<table id="{!! $id !!}" class="{!! $class !!}">
|
||||
<table id="{!! $id !!}" class="{!! $class !!}" style="width:100%">
|
||||
<colgroup>
|
||||
@for ($i = 0; $i < count($columns); $i++)
|
||||
<col class="con{!! $i !!}" />
|
||||
|
92
resources/views/vendor/Chumper/ticket-dept-javascript.blade.php
vendored
Normal file
92
resources/views/vendor/Chumper/ticket-dept-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
$dept = $segments[1];
|
||||
$status = $segments[2];
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var clicked = 1;
|
||||
var create = false;
|
||||
var last = true;
|
||||
var sort = [[6, "desc"]];
|
||||
oTable = myFunction();
|
||||
|
||||
$("select[name=label]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
$("select[name=tag]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
|
||||
"ajax": {
|
||||
url: "{{url('filter')}}",
|
||||
data: function (d) {
|
||||
d.labels = $('select[name=label]').val();
|
||||
d.tags = $('select[name=tag]').val();
|
||||
d.segment = "{{$segment}}";
|
||||
d.department = "{{$dept}}";
|
||||
d.status = "{{$status}}";
|
||||
}
|
||||
},
|
||||
"aaSorting": sort,
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [6,7] },
|
||||
{ "visible": last, "targets": 6 },
|
||||
{"visible": create, "targets":7},
|
||||
],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a.toggle-vis').on( 'click', function (e)
|
||||
{
|
||||
clicked = clicked+1;
|
||||
if((clicked%2)== 0){
|
||||
last = false;
|
||||
create = true;
|
||||
sort = [[7, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-clock-o" style="color:green;"> </i>{!!Lang::get("lang.last_activity")!!}');
|
||||
} else {
|
||||
last = true;
|
||||
create = false;
|
||||
sort = [[6, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-plus-square-o" style="color:green;"> </i>{!!Lang::get("lang.created-at")!!}');
|
||||
|
||||
}
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
90
resources/views/vendor/Chumper/ticket-javascript.blade.php
vendored
Normal file
90
resources/views/vendor/Chumper/ticket-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var clicked = 1;
|
||||
var create = false;
|
||||
var last = true;
|
||||
var sort = [[6, "desc"]];
|
||||
oTable = myFunction();
|
||||
$("select[name=label]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
$("select[name=tag]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>"+
|
||||
"t"+
|
||||
"<'row'<'col-xs-6'i><'col-xs-6'p>>",
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
|
||||
"ajax": {
|
||||
url: "{{url('filter')}}",
|
||||
data: function (d) {
|
||||
d.labels = $('select[name=label]').val();
|
||||
d.tags = $('select[name=tag]').val();
|
||||
d.segment = "{{$segment}}";
|
||||
}
|
||||
},
|
||||
"aaSorting": sort,
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [6,7] },
|
||||
{ "visible": last, "targets": 6 },
|
||||
{"visible": create, "targets":7},
|
||||
],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a.toggle-vis').on( 'click', function (e)
|
||||
{
|
||||
clicked = clicked+1;
|
||||
if((clicked%2)== 0){
|
||||
last = false;
|
||||
create = true;
|
||||
sort = [[7, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-clock-o" style="color:green;"> </i>{!!Lang::get("lang.last_activity")!!}');
|
||||
} else {
|
||||
last = true;
|
||||
create = false;
|
||||
sort = [[6, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-plus-square-o" style="color:green;"> </i>{!!Lang::get("lang.created-at")!!}');
|
||||
|
||||
}
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
109
resources/views/vendor/Chumper/tuser-javascript.blade.php
vendored
Normal file
109
resources/views/vendor/Chumper/tuser-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,109 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var clicked = 1;
|
||||
var create = false;
|
||||
var last = true;
|
||||
var sort = [[6, "desc"]];
|
||||
var status = "Open";
|
||||
oTable = myFunction();
|
||||
$("select[name=label]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
$("select[name=tag]").change(function () {
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction()
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sDom": "<'row'<'col-xs-6'l><'col-xs-6'f>r>"+
|
||||
"t"+
|
||||
"<'row'<'col-xs-6'i><'col-xs-6'p>>",
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"bServerSide": true,
|
||||
"lengthMenu": [[10, 25, 50, 100, 500], [10, 25, 50, 100, 500]],
|
||||
"ajax": {
|
||||
url: "{{url('filter')}}",
|
||||
data: function (d) {
|
||||
d.labels = $('select[name=label]').val();
|
||||
d.tags = $('select[name=tag]').val();
|
||||
d.segment = "{{$segment}}/"+status;
|
||||
}
|
||||
},
|
||||
"aaSorting": sort,
|
||||
"columnDefs": [
|
||||
{ "searchable": false, "targets": [6,7] },
|
||||
{ "visible": last, "targets": 6 },
|
||||
{"visible": create, "targets":7},
|
||||
],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
$('a.toggle-vis').on( 'click', function (e)
|
||||
{
|
||||
clicked = clicked+1;
|
||||
if((clicked%2)== 0){
|
||||
last = false;
|
||||
create = true;
|
||||
sort = [[7, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-clock-o" style="color:green;"> </i>{!!Lang::get("lang.last_activity")!!}');
|
||||
} else {
|
||||
last = true;
|
||||
create = false;
|
||||
sort = [[6, "desc"]]
|
||||
$('a.toggle-vis').html('<i class="fa fa-plus-square-o" style="color:green;"> </i>{!!Lang::get("lang.created-at")!!}');
|
||||
|
||||
}
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
$('#open_tab').on('click', function(){
|
||||
redrawTable("Open");
|
||||
});
|
||||
|
||||
$('#closed_tab').on('click', function(){
|
||||
redrawTable("Closed");
|
||||
});
|
||||
|
||||
$('#deleted_tab').on('click', function(){
|
||||
redrawTable("Deleted");
|
||||
});
|
||||
|
||||
function redrawTable(showTicket) {
|
||||
status = showTicket;
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
}
|
||||
});
|
||||
|
||||
</script>
|
47
resources/views/vendor/Chumper/user-javascript.blade.php
vendored
Normal file
47
resources/views/vendor/Chumper/user-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
<?php
|
||||
$segments = \Request::segments();
|
||||
$segment = "";
|
||||
foreach($segments as $seg){
|
||||
$segment.="/".$seg;
|
||||
}
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
var show = 'active';
|
||||
oTable = myFunction(show);
|
||||
|
||||
$("select[name=type_of_profile]").change(function () {
|
||||
//alert($('select[name=type_of_profile]').val());
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction();
|
||||
});
|
||||
|
||||
function myFunction(show)
|
||||
{
|
||||
return jQuery('#chumper').dataTable({
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
"ajax": {
|
||||
url: "{{url('user-list')}}",
|
||||
data: function (d) {
|
||||
d.profiletype = show;
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
$('.active').on('click', function(){
|
||||
show = 'active';
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction(show);
|
||||
});
|
||||
|
||||
$('.inactive').on('click', function(){
|
||||
show = 'inactive';
|
||||
$("#chumper").dataTable().fnDestroy();
|
||||
myFunction(show);
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
@@ -5,4 +5,5 @@
|
||||
{!! $options !!}
|
||||
);
|
||||
});
|
||||
|
||||
</script>
|
52
resources/views/vendor/chumper.database/ticket-javascript.blade.php
vendored
Normal file
52
resources/views/vendor/chumper.database/ticket-javascript.blade.php
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery(document).ready(function () {
|
||||
|
||||
oTable = jQuery('#chumper').dataTable({
|
||||
"sPaginationType": "full_numbers",
|
||||
"bProcessing": true,
|
||||
//"sAjaxSource": "{{url('filter')}}",
|
||||
"bServerSide": true,
|
||||
// "fnServerParams": function (aoData) {
|
||||
// $("select[name=label]").change(function () {
|
||||
// var labels = $("select[name=label]").val();
|
||||
// aoData.push({"name": "thing", "value": "thingsvalue"});
|
||||
// });
|
||||
//
|
||||
// },
|
||||
"ajax": {
|
||||
"type": "POST",
|
||||
"url": '/myUrl/MyMethod/',
|
||||
"contentType": 'application/json; charset=utf-8',
|
||||
"data": function (data) {
|
||||
return data = JSON.stringify(data);
|
||||
}
|
||||
},
|
||||
"aaSorting": [[6, "desc"]],
|
||||
"fnCreatedRow": function (nRow, aData, iDataIndex) {
|
||||
var str = aData[3];
|
||||
if (str.search("#000") == -1) {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "#F3F3F3", "font-weight": "600", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #F3F3F3"});
|
||||
});
|
||||
} else {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
$("td", nRow).mouseenter(function () {
|
||||
$("td", nRow).css({"background-color": "#DEDFE0", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px #DEDFE0"});
|
||||
});
|
||||
$("td", nRow).mouseleave(function () {
|
||||
$("td", nRow).css({"background-color": "white", "border-bottom": "solid 0.5px #ddd", "border-right": "solid 0.5px white"});
|
||||
});
|
||||
}
|
||||
}}
|
||||
);
|
||||
$("select[name=label]").change(function () {
|
||||
oTable.fnDraw();
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
37
resources/views/vendor/datatables/print.blade.php
vendored
Normal file
37
resources/views/vendor/datatables/print.blade.php
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Print Table</title>
|
||||
<meta charset="UTF-8">
|
||||
<meta name=description content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<!-- Bootstrap CSS -->
|
||||
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
|
||||
<style>
|
||||
body {margin: 20px}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<table class="table table-bordered table-condensed table-striped">
|
||||
@foreach($data as $row)
|
||||
@if ($row == reset($data))
|
||||
<tr>
|
||||
@foreach($row as $key => $value)
|
||||
<th>{!! $key !!}</th>
|
||||
@endforeach
|
||||
</tr>
|
||||
@endif
|
||||
<tr>
|
||||
@foreach($row as $key => $value)
|
||||
@if(is_string($value) || is_numeric($value))
|
||||
<td>{!! $value !!}</td>
|
||||
@else
|
||||
<td></td>
|
||||
@endif
|
||||
@endforeach
|
||||
</tr>
|
||||
@endforeach
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
1
resources/views/vendor/datatables/script.blade.php
vendored
Normal file
1
resources/views/vendor/datatables/script.blade.php
vendored
Normal file
@@ -0,0 +1 @@
|
||||
(function(window,$){window.LaravelDataTables=window.LaravelDataTables||{};window.LaravelDataTables["%1$s"]=$("#%1$s").DataTable(%2$s);})(window,jQuery);
|
Reference in New Issue
Block a user