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
23 | |
24 var upload = { | |
25 onloadstart: function (evt) { | |
26 bar.addClass('uploading'); | |
27 }, | |
28 | |
29 onprogress: function (evt) { | |
30 var percent = evnt.loaded/evt.total*100; | |
31 progress.css('width', percent + '%') | |
32 }, |
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
SELECT node.nid AS nid, COUNT(node_node_data_field_tourist_attraction.nid) AS node_node_data_field_tourist_attraction_nid, node_node_data_field_tourist_attraction.type AS node_node_data_field_tourist_attraction_type FROM node node LEFT JOIN content_field_day_plan node_data_field_day_plan ON node.vid = node_data_field_day_plan.vid LEFT JOIN flexifield_items flexifield_items_node_data_field_day_plan ON node_data_field_day_plan.field_day_plan_item_id = flexifield_items_node_data_field_day_plan.item_id LEFT JOIN content_field_tourist_attraction flexifield_items_node_data_field_day_plan_node_data_field_tourist_attraction ON flexifield_items_node_data_field_day_plan.item_id = flexifield_items_node_data_field_day_plan_node_data_field_tourist_attraction.vid LEFT JOIN node node_node_data_field_tourist_attraction ON flexifield_items_node_data_field_day_plan_node_data_field_tourist_attraction.field_tourist_attraction_nid = node_node_data_field_tourist_attraction.nid WHERE node.type in ('travel_log') GROUP BY node_node_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
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; | |
CREATE TABLE IF NOT EXISTS `location` ( | |
`id` bigint(20) NOT NULL AUTO_INCREMENT, | |
`level0` varchar(255), | |
`level1` varchar(255), | |
`level2` varchar(255), | |
`level3` varchar(255), |
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
{% load common_tags %} | |
{% load i18n %} | |
<li class="notification-item service-{{ notification.service|to_ }}{% if notification.status == notification.STATUS_NEW %} notification-new{% endif %} clearfix"> | |
{% if notification.service == 'Relationship' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'followed you' %} <span class="noti-time">{{ notification.created|date:'f a' }}</span> | |
{% elif notification.service == 'Goal' %} |
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
{% spaceless %} | |
{% load common_tags %} | |
{% load comment_tags %} | |
{% load i18n %} | |
<{% if tag %}{{ tag }}{% else %}li{% endif %} class="notification-item service-{{ notification.service|to_ }}{% if notification.status == notification.STATUS_NEW or notification.status == notification.STATUS_NEW2 %} notification-new{% endif %} clearfix"> | |
{% if notification.service == 'Relationship' %} | |
{{ notification.src_user|fullnamelink }} {% trans 'followed you' %} {% if display_time %}<span class="noti-time">{{ notification.created|date:'f a' }}</span>{% endif %}<span></span> |
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> | |
<html> | |
<head> | |
<title>SUbmit form</title> | |
</head> | |
<body> | |
<script type="text/javascript">var popup_submitted=false;</script> | |
<iframe name="hidden_iframe" id="hidden_iframe" style="display: none;" | |
onload="if(popup_submitted) {window.location=window.location;}"></iframe> |
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
<style> | |
.wrapper { | |
height: 100%; | |
position: relative; | |
} | |
.sidebar { | |
width: 100px; | |
float: left; | |
height: 100%; | |
position: absolute; |
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 relative_to_absolute ($text) { | |
$lang = language_default(); | |
global $base_path; | |
$text = preg_replace( | |
'/(src|href)=(\'|")' . preg_quote($base_path, '/') . '/', | |
'$1=$2'. url('<front>', array('absolute' => TRUE, 'language' => $lang)), |
OlderNewer