This file contains hidden or 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 | |
function replacer($array) { | |
$newArray = array(); | |
foreach ($array as $key => $val) { | |
foreach ($val as $k=>$v) { | |
if ($v == "" || $v === null) { | |
$newArray[$key][$k] = "empty"; | |
} else { |
This file contains hidden or 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
public function _getLastBusinessDay() { | |
// lets figure out the business days.. | |
$holidayList = array(); | |
$ourDate = date('Y-m-d', strtotime('-5 weekdays')); | |
if (in_array($ourDate, $holidayList)) { | |
$ourDate = date('Y-m-d', strtotime('-1 weekday', strtotime($ourDate))); | |
} | |
return $ourDate; |
This file contains hidden or 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
public $ourDate; | |
public function _getLastBusinessDay() { | |
// lets figure out the business days.. | |
$holidayList = array('2013-02-06'); | |
$this->ourDate = date('Y-m-d', strtotime('-5 weekdays')); | |
foreach ($holidayList as $holiday) { | |
$timestamp = strtotime($holiday);// holiday lists.. | |
$tmp = strtotime($this->ourDate); // todays date - 5 weekdays | |
$tmp1 = strtotime(date('Y-m-d')); // todays date |
This file contains hidden or 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
public function _getHolidayList() { | |
$newArray = array(); | |
$dt = new \DateTime(); | |
$newArray[] = $dt->modify("First day of January")->format('Y-m-d'); | |
$newArray[] = $dt->modify("Third Monday of January")->format('Y-m-d'); | |
$newArray[] = $dt->modify("Third Monday of February")->format('Y-m-d'); | |
$newArray[] = $dt->modify("Last Monday of May")->format("Y-m-d"); | |
$newArray[] = $dt->modify("July 4")->format("Y-m-d"); | |
$newArray[] = $dt->modify("First Monday of September")->format("Y-m-d"); |
This file contains hidden or 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 | |
use codeigniter\core\common; | |
use codeigniter\core\benchmark; | |
use codeigniter\core\hooks; | |
use codeigniter\core\config; | |
use codeigniter\core\utf8; | |
use codeigniter\core\uri; | |
use codeigniter\core\router; | |
use codeigniter\core\output; |
This file contains hidden or 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
#logo { | |
height: 24px; | |
padding: 18px 0 18px 15px; | |
width: 224px; | |
border: 0; | |
-webkit-border-top-left-radius: 4px; -moz-border-radius-topleft: 4px; border-top-left-radius: 4px; | |
background:url(../images/logo.png) left center no-repeat; | |
text-decoration: none; | |
text-indent: -99999px; | |
a {} |
This file contains hidden or 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 { | |
color: #3f3f3f; | |
&:hover, :visited, :link { | |
@extend a; | |
} | |
} |
This file contains hidden or 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 clear_cache() { | |
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, no-transform, max-age=0, post-check=0, pre-check=0"); | |
$this->output->set_header("Pragma: no-cache"); | |
} |
This file contains hidden or 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
//= require jquery | |
//= require jquery-ui | |
//= require functions | |
//= require plugins | |
//= require elfinder | |
//= require datatables | |
//= require wl_Date | |
//= require wl_Time | |
//= require wl_Widget | |
//= require wl_Multiselect |
This file contains hidden or 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
/* | |
* This is a manifest file that'll be compiled into application.css, which will include all the files | |
* listed below. | |
* | |
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets, | |
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path. | |
* | |
* You're free to add application-wide styles to this file and they'll appear at the top of the | |
* compiled file, but it's generally better to create a new file per style scope. | |
* |