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'); | |
include_once(BASEPATH.'libraries/Pagination.php'); | |
class PaginationSortable extends CI_Pagination { | |
/** | |
* Generate the pagination links | |
* | |
* @access public | |
* @return string |
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 | |
$this->db->where("id",$contact->heardfrom_id); | |
$this->db->from("heardfrom"); | |
$heard_res = $this->db->get()->row(); | |
// Followed by | |
$this->db->set("status_id","3"); | |
$this->db->where("contact.id",$contact->id); | |
$this->db->update("contacts"); |
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
<li> | |
<label>Notify me of any sign ups:</label> | |
<?php echo form_checkbox('notify',$adminuser->notify, $adminuser->notify); ?> | |
</li> |
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 | |
// common | |
function push_implode($set, $glue, $op){ | |
$set_array = array(); | |
foreach($set as $key => $value){ | |
array_push( | |
$set_array, | |
sprintf("%s %s %s", |
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 | |
// common | |
/* | |
#usage | |
push_implode($an_array, ",", "="); |
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 | |
$options = array( | |
'conditions' => array( | |
'User.id' => $id | |
), | |
'contain' => array( | |
'ContactsGroup' => array( // how would i make this order desc | |
'Contact' | |
) |
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
mime_type :j, 'application/octet-stream' | |
mime_type :sj, 'application/octet-stream' | |
mime_type :plist, 'application/octet-stream' |
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
@import <Foundation/CPObject.j> | |
@implementation ProjectsController : CPObject | |
{ | |
// CPTableView datasource methods | |
- (int)numberOfRowsInTableView:(CPTableView)tableView | |
{ | |
return 1; | |
} |
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
@import <Foundation/CPObject.j> | |
//@import <AppKit/CPColor.j> | |
@implementation ProjectsView : CPView | |
{ | |
CPTableView projectsTable; | |
} |
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
@implementation ProjectsView : CPView | |
{ | |
CPTableView projectsTable; | |
} | |
- (id)initWithFrame:(CPRect)frame | |
{ | |
self = [super initWithFrame:frame]; | |
// create the CPTableView | |
projectsTable = [[CPTableView alloc] initWithFrame:[self bounds]]; |