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 | |
$this->db->select("*, ( 6371 * acos( cos( radians('".$geoc['lat']."') ) * cos( radians( geoc_adresse.lat ) ) * cos( radians( geoc_adresse.long ) - radians('".$geoc['long']."') ) + sin( radians('".$geoc['lat']."') ) * sin( radians( geoc_adresse.lat ) ) ) ) AS distance"); | |
$this->db->join('geoc_adresse', 'geoc_adresse.id_geoc = agenda.geoc_adresse_id_geoc'); | |
$this->db->having("distance < '".$geoc['km']."'"); | |
$this->db->order_by('distance'); | |
?> |
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
class media | |
{ | |
var $CI; | |
function __construct() | |
{ | |
$this->CI =& get_instance(); | |
$this->CI->load->library('dmcloud'); | |
} |
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
ob_start(); | |
include('/home/webmaster/public_html/client/mylov4/index.php'); | |
ob_end_clean(); | |
function CheckAuthentication() | |
{ | |
$CI =& get_instance(); | |
$CI->load->library('session'); | |
if($CI->session->userdata('connect') !== FALSE){ |
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
function taille(string, doc) | |
{ | |
var debut_zone = 145; | |
var largeur_zone = 25; | |
var font_size = 10; | |
var t = doc.getStringUnitWidth(string); | |
var result = debut_zone + (largeur_zone - (t * font_size / ( 72 / 25.6 ))); |
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 | |
for ($w=1; $w < 53; $w++) { | |
for($i = 1; $i <= 365; $i++) { | |
$week = date("W", mktime(0, 0, 0, 1, $i, 2014)); | |
if($week == $w) { | |
$debut = date("Y-m-d", mktime(0, 0, 0, 1, $i, 2014)); | |
$fin = date("Y-m-d", mktime(0, 0, 0, 1, $i+6, 2014)); |
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
<div class="form-group"> | |
<label for="f_nom_arret">Heure de passage normal : </label> | |
<select name="heure"> | |
<option value="h">heure</option> | |
<?php for ($heure = 00 ; $heure <= 23 ; $heure++): | |
$hour = sprintf("%02d", $heure); | |
?> | |
<option value="<?php echo $hour ?>"><?=$hour;?></option> | |
<?php endfor; ?> | |
</select> |
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 | |
if ( ! function_exists('isLundi')) | |
{ | |
function isLundi($date = FALSE) { | |
if($date === FALSE) | |
{ | |
return (date('N', strtotime(date("Y-m-d H:i:s"))) == 1); | |
} | |
return (date('N', strtotime($date)) == 1); | |
} |
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
function getUrlParam(name) { | |
var results = new RegExp('[\\?&]' + name + '=([^]*)').exec(window.location.href); | |
return (results && results[1]) || undefined; | |
} |
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
jQuery(document).ready(function($) | |
{ | |
function CopyPasta() | |
{ | |
var commentaire = " : coucou : "; | |
var url = window.location.href; | |
var copy = window.getSelection(); | |
var brut = copy.toString(); | |
var divPaste = document.createElement('div'); |
OlderNewer