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 ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* My Model | |
* | |
* Used as a base class for all admin or app related model functions. | |
* | |
* @author Alex Garcia | |
* @since 0.1 | |
* @version 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
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* Admin Controller | |
* | |
* Provides methods and properties for all admin related objects. | |
* | |
*/ | |
class Admin_Controller extends CI_Controller{ | |
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
$(document).ready(function(){ | |
$('.btn-delete-workflow-comment').click(function(e){ | |
e.preventDefault(); | |
var url = $(this).parent().attr('href') + '/do'; | |
$(this).parent().parent().parent().fadeOut('slow'); | |
ajax_request(url); | |
}); | |
$('.btn-delete-image').click(function(e){ |
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 | |
/*-------------------------------------------------------- | |
Configurables | |
--------------------------------------------------------*/ | |
$site_title = "San Antonio Web Designer and Developer - Alex Garcia"; | |
$site_description = "The online web design and development portfolio of Alex Garcia. | |
A San Antonio based artist, web designer and web developer."; | |
$tracking_enabled = "false"; | |
$site_offline = 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
var win = Titanium.UI.currentWindow; | |
//Used when zooming into images. | |
var animation = Titanium.UI.createAnimation(); | |
animation.duration = 500; | |
var infoText = Titanium.UI.createLabel({ | |
text:win.fullDescription, | |
color:'#fff', | |
font:{fontSize:15, fontWeight:'normal'}, |
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(){ | |
//----------------------------------------------------------------------------- | |
//Temporary code to set the classes on the body tag based on the current segments. | |
//This will be used to style specific pages or sections or to qualify an already defined general class on that page. | |
//Get the segments in the url after the host name | |
var pathArray = window.location.pathname.split( '/' ); | |
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 defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Table | |
* | |
* Handles the creation of tables programmatically | |
*/ | |
class Table{ | |
public $table_open; | |
public $table_rows; |
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 | |
/** | |
* Drop Down | |
* | |
* Enables easier creation of drop downs within our code. | |
*/ | |
class Dropdown{ | |
public $dd_open; | |
public $dd_options; |
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 defined('SYSPATH') OR die('No direct access allowed.'); | |
/** | |
* Project Controller | |
* | |
* Handles the data traffic for our projects. | |
* | |
* @package Project_Controller | |
* @category Controllers | |
* @author Alex Garcia | |
* @copyright Copyright (c) 2010, KGBTexas |
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
$(document).ready(function(){ | |
var today = new Date(); | |
today = new Date(today.getFullYear(), today.getMonth(), today.getDate()); // Zero time components | |
var tomorrow = today.getDay() + 1; | |
var next_two_days = today.getDay() + 2; | |
var next_three_days = today.getDay() + 3; | |
var curr_time = getTime(); | |
var curr_day = today.getDate(); | |
OlderNewer