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(!$_REQUEST['event_type_id'] || ($_REQUEST['event_type_id'] != 'IMAX' && $_REQUEST['event_type_id'] != "SPACESHOWS")){ | |
//Open the db connection | |
db_connect(); | |
//start building the SQL statement | |
$sql = "SELECT a.event_id, a.event_code, a.event_title, a.event_desc, a.event_short_desc, a.event_location, a.event_time_desc, a.event_price_data, a.event_note, | |
a.event_tag, a.event_img_filename, a.event_img_caption, a.event_img_credit, a.is_members_only, a.is_member_event, a.ticket_code, | |
a.show_buy_button, a.event_code2, a.ticket_code2, a.event_time_desc2, a.show_buy_button2, a.access_chair, a.access_audio, a.access_tty, a.access_largeprint, a.access_cc, a.access_sign, a.access_braille, a.access_touch, | |
b.event_img_path, b.event_type_desc, b.banner_filename, b.event_type_note, |
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 | |
include "/web/docs/programs/includes/functions.inc"; | |
db_connect(); | |
if ($_GET['event_type_id'] || $_GET['event_subtype_id'] || $_GET['event_sub_subtype_id']){ | |
$event_type_id = $_GET['event_type_id']; | |
$event_subtype_id = $_GET['event_subtype_id']; |
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 write_latitude_and_longitude(lat_long) { | |
var coordinates = String(lat_long).replace(/\(/, ""); | |
coordinates = String(coordinates).replace(/\)/, ""); | |
var coordiantes_array = String(coordinates).split(","); | |
$("#lat_long_container").html("<div class='lat_long_div'><span class='label'>Latitude: </span>" + coordiantes_array[0] + "</div><div class='lat_long_div'><span class='label'>Longitude: </span>" + coordiantes_array[1] + "</div>"); | |
} | |
function generate_xml_doc(lat_long){ | |
var coordinates = String(lat_long).replace(/\(/, ""); |
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
$query2 = "SELECT * FROM vendor | |
ORDER BY VendorName"; | |
if (!$vendorResult = @mysql_query($query2, $connection)) | |
showerror(); | |
$template->setCurrentBlock("VENDORS"); | |
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 PersonPageManager = (function(){ | |
var personPage = { | |
freebaseBio : $('#freebase-bio'), | |
bibliocommonsBlock : $('#block-block-123').find('.content'), | |
freebaseMID : Drupal.settings.nypl_new.freebase_mid, | |
personName : Drupal.settings.nypl_new.person_name, |
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 locations_events_list() { | |
$locations_vid = _locations_get_vid(); | |
$locations_terms = taxonomy_get_tree($locations_vid); | |
/* | |
$loc_result = db_select('locations_term', 'lt') | |
->join('locations', 'l', 'l.lid = lt.lid') | |
->fields('lt', array('tid')) | |
->fields('l', array('activities')) |
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 locations_events_list() { | |
$locations_vid = _locations_get_vid(); | |
$locations_terms = taxonomy_get_tree($locations_vid); | |
/* | |
$loc_result = db_select('locations_term', 'lt') | |
->join('locations', 'l', 'l.lid = lt.lid') | |
->fields('lt', array('tid')) | |
->fields('l', array('activities')) |
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 locations_events_list() { | |
$locations_vid = _locations_get_vid(); | |
$locations_terms = taxonomy_get_tree($locations_vid); | |
/* | |
$loc_result = db_select('locations_term', 'lt') | |
->join('locations', 'l', 'l.lid = lt.lid') | |
->fields('lt', array('tid')) | |
->fields('l', array('activities')) |
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 locations_events_list() { | |
$locations_vid = _locations_get_vid(); | |
$locations_terms = taxonomy_get_tree($locations_vid); | |
/* | |
You don't need to do this. If you know you are expecting an object, simply use db_query, and substitute your while() statement for a | |
foreach. You'll get the same behavior. | |
$loc_result = db_select('locations_term', 'lt') | |
->join('locations', 'l', 'l.lid = lt.lid') | |
->fields('lt', array('tid')) |
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
# include <stdio.h> | |
# define MAXLINE 1000 | |
int cgetl(char line[], int maxline, FILE * file); | |
void copy(char to[], char from[]); | |
int main () { | |
int len; | |
int max; | |
char line[MAXLINE]; |
OlderNewer