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
//Check that the form was submitted | |
if ($this->input->post()) | |
{ | |
$this->load->library('form_validation'); | |
//set rules... | |
$this->form_validation->set_rules('EID','EID','required'); | |
//etc... | |
if ($this->form_validation->run() === FALSE) |
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
/* Make all column div within 'group' the same height */ | |
/* http://www.cssnewbie.com/equal-height-columns-with-jquery/ */ | |
function equalHeight(group) { | |
var tallest = 0; | |
group.each(function() { | |
var thisHeight = $(this).height(); | |
if(thisHeight > tallest) { | |
tallest = thisHeight; | |
} | |
}); |
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
private function generateUniqueID() | |
{ | |
// creates a unique 6 position alphanumeric client id | |
// if the client id is already in the clients table then call this function again | |
// otherwise return the client id | |
// | |
$newCode = strtoupper(substr(md5(uniqid(rand(), true)),0,6)); // creates a 6 digit token | |
if($this->job_model->isIDinUse($newCode)){ | |
// that code exists already so try again |
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 | |
/** | |
* Return the return the word with inital caps | |
* | |
* @access public | |
* @param string the word | |
* @return string | |
*/ | |
if(!function_exists('pdf_file_name')) |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
// -------------------------------------------------------------------- | |
if ( ! function_exists('log_entry')) | |
{ | |
// adds the $message to $the_log | |
function log_entry($the_log, $message) | |
{ | |
$myPath = $_SERVER['DOCUMENT_ROOT'].'/system/logs/'; |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
// -------------------------------------------------------------------- | |
if(!function_exists('vardump')) | |
{ | |
function vardump($text='',$theVar) | |
{ | |
echo '<pre>'; | |
echo $text . ': '; | |
var_dump($theVar); |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<title>vTicker</title> | |
<meta name="description" content=" " /> | |
<meta name="keywords" content=" " /> | |
<style type="text/css" media="all"> |
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
http://net.tutsplus.com/tutorials/php/9-useful-php-functions-and-features-you-need-to-know/ |
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
$saveArray = array( | |
'mc_gross' => $_POST['mc_gross'], | |
'protection_eligibility' => $_POST['protection_eligibility'], | |
'address_status' => $_POST['address_status'], | |
'payer_id' => $_POST['payer_id'], | |
'tax' => $_POST['tax'], | |
'address_street' => $_POST['address_street'], | |
'payment_date' => $_POST['payment_date'], | |
'payment_status' => $_POST['payment_status'], | |
'charset' => $_POST['charset'], |