This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (min-width: 0px) and (max-width: 720px) { | |
.highcharts-axis-labels text:nth-child(even) { | |
display:none; | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a id="download_csv" class="button">Téléchargement de la liste</a> | |
<script type="text/javascript"> | |
var csvRows = []; | |
var exceptCol = [0, 1, 3, 4, 6]; | |
jQuery('table.tablesorter tbody tr').each(function(index, row) { | |
var text = []; | |
jQuery('td.active_filter', row).each(function(index, cell) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('app').filter('floatdigit', function(){ | |
return function(value, showsymbol) { | |
var number = parseFloat(value); | |
var symbol = (typeof showsymbol != "undefined" && showsymbol) ? ' €' : ''; | |
if (parseFloat(number.toFixed(2)) === parseFloat(number.toFixed(3))) return number.toFixed(2)+symbol; | |
return number.toFixed(3)+symbol; | |
}; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// | |
public function actionAjaxView($id) | |
{ | |
$model = $this->loadModel($id); | |
$this->renderPartial('//intervenant/_view', array('model' => $model), false, true); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Controller | |
// | |
// Company fields => address_id, idenity_id | |
// | |
public function actionCreate() | |
{ | |
$model = new Company; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# linux | |
gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=Merged2.pdf -dBATCH 19.pdf 20.pdf 24.pdf 33.pdf | |
REM windows | |
"c:\Program Files\gs\gs9.04\bin\gswin64c.exe" -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=Merged2.pdf -dBATCH 19.pdf 20.pdf 24.pdf 33.pdf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Add DateTime Sort to Datatables Jquery Plugin | |
// Format 23-10-2011 12:34 | |
// | |
jQuery.fn.dataTableExt.aTypes.push( | |
function ( sData ) { | |
if ( sData.charAt(2) == '-' && sData.charAt(5) == '-' && sData.length == 16) { // Choose format 23-10-2011 18:30 ou 23/10/2011 13:20 | |
return 'date'; | |
} |