Merge branch 'develop' into issue-1574
This commit is contained in:
commit
b29b01fad4
|
@ -1162,7 +1162,7 @@
|
|||
if ($conversation_id > 0)
|
||||
$sql_extra .= ' AND `item`.`parent` = '.intval($conversation_id);
|
||||
|
||||
$r = q("SELECT `item`.*, `item`.`id` AS `item_id`, `item`.`network` AS `item_network`,
|
||||
$r = q("SELECT STRAIGHT_JOIN `item`.*, `item`.`id` AS `item_id`, `item`.`network` AS `item_network`,
|
||||
`contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`,
|
||||
`contact`.`network`, `contact`.`thumb`, `contact`.`dfrn-id`, `contact`.`self`,
|
||||
`contact`.`id` AS `cid`, `contact`.`uid` AS `contact-uid`
|
||||
|
|
|
@ -131,134 +131,114 @@ function datetime_convert($from = 'UTC', $to = 'UTC', $s = 'now', $fmt = "Y-m-d
|
|||
|
||||
function dob($dob) {
|
||||
list($year,$month,$day) = sscanf($dob,'%4d-%2d-%2d');
|
||||
$y = datetime_convert('UTC',date_default_timezone_get(),'now','Y');
|
||||
$f = get_config('system','birthday_input_format');
|
||||
if(! $f)
|
||||
$f = 'ymd';
|
||||
$o = datesel($f,'',1920,$y,true,$year,$month,$day);
|
||||
if($dob === '0000-00-00')
|
||||
$value = '';
|
||||
else
|
||||
$value = (($year) ? datetime_convert('UTC','UTC',$dob,'Y-m-d') : datetime_convert('UTC','UTC',$dob,'m-d'));
|
||||
$o = '<input type="text" name="dob" value="' . $value . '" placeholder="' . t('YYYY-MM-DD or MM-DD') . '" />';
|
||||
// if ($dob && $dob != '0000-00-00')
|
||||
// $o = datesel($f,mktime(0,0,0,0,0,1900),mktime(),mktime(0,0,0,$month,$day,$year),'dob');
|
||||
// else
|
||||
// $o = datesel($f,mktime(0,0,0,0,0,1900),mktime(),false,'dob');
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
||||
function datesel_format($f) {
|
||||
|
||||
$o = '';
|
||||
|
||||
if(strlen($f)) {
|
||||
for($x = 0; $x < strlen($f); $x ++) {
|
||||
switch($f[$x]) {
|
||||
case 'y':
|
||||
if(strlen($o))
|
||||
$o .= '-';
|
||||
$o .= t('year');
|
||||
break;
|
||||
case 'm':
|
||||
if(strlen($o))
|
||||
$o .= '-';
|
||||
$o .= t('month');
|
||||
break;
|
||||
case 'd':
|
||||
if(strlen($o))
|
||||
$o .= '-';
|
||||
$o .= t('day');
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
return $o;
|
||||
}
|
||||
|
||||
|
||||
// returns a date selector.
|
||||
// $f = format string, e.g. 'ymd' or 'mdy'
|
||||
// $pre = prefix (if needed) for HTML name and class fields
|
||||
// $ymin = first year shown in selector dropdown
|
||||
// $ymax = last year shown in selector dropdown
|
||||
// $allow_blank = allow an empty response on any field
|
||||
// $y = already selected year
|
||||
// $m = already selected month
|
||||
// $d = already selected day
|
||||
|
||||
/**
|
||||
* returns a date selector
|
||||
* @param $format
|
||||
* format string, e.g. 'ymd' or 'mdy'. Not currently supported
|
||||
* @param $min
|
||||
* unix timestamp of minimum date
|
||||
* @param $max
|
||||
* unix timestap of maximum date
|
||||
* @param $default
|
||||
* unix timestamp of default date
|
||||
* @param $id
|
||||
* id and name of datetimepicker (defaults to "datetimepicker")
|
||||
*/
|
||||
if(! function_exists('datesel')) {
|
||||
function datesel($f,$pre,$ymin,$ymax,$allow_blank,$y,$m,$d) {
|
||||
|
||||
$o = '';
|
||||
|
||||
if(strlen($f)) {
|
||||
for($z = 0; $z < strlen($f); $z ++) {
|
||||
if($f[$z] === 'y') {
|
||||
|
||||
$o .= "<select name=\"{$pre}year\" class=\"{$pre}year\" size=\"1\">";
|
||||
if($allow_blank) {
|
||||
$sel = (($y == '0000') ? " selected=\"selected\" " : "");
|
||||
$o .= "<option value=\"0000\" $sel ></option>";
|
||||
}
|
||||
|
||||
if($ymax > $ymin) {
|
||||
for($x = $ymax; $x >= $ymin; $x --) {
|
||||
$sel = (($x == $y) ? " selected=\"selected\" " : "");
|
||||
$o .= "<option value=\"$x\" $sel>$x</option>";
|
||||
}
|
||||
}
|
||||
else {
|
||||
for($x = $ymax; $x <= $ymin; $x ++) {
|
||||
$sel = (($x == $y) ? " selected=\"selected\" " : "");
|
||||
$o .= "<option value=\"$x\" $sel>$x</option>";
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif($f[$z] == 'm') {
|
||||
|
||||
$o .= "</select> <select name=\"{$pre}month\" class=\"{$pre}month\" size=\"1\">";
|
||||
for($x = (($allow_blank) ? 0 : 1); $x <= 12; $x ++) {
|
||||
$sel = (($x == $m) ? " selected=\"selected\" " : "");
|
||||
$y = (($x) ? $x : '');
|
||||
$o .= "<option value=\"$x\" $sel>$y</option>";
|
||||
}
|
||||
}
|
||||
elseif($f[$z] == 'd') {
|
||||
|
||||
$o .= "</select> <select name=\"{$pre}day\" class=\"{$pre}day\" size=\"1\">";
|
||||
for($x = (($allow_blank) ? 0 : 1); $x <= 31; $x ++) {
|
||||
$sel = (($x == $d) ? " selected=\"selected\" " : "");
|
||||
$y = (($x) ? $x : '');
|
||||
$o .= "<option value=\"$x\" $sel>$y</option>";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$o .= "</select>";
|
||||
return $o;
|
||||
function datesel($format, $min, $max, $default, $id = 'datepicker') {
|
||||
return datetimesel($format,$min,$max,$default,$id,true,false, '','');
|
||||
}}
|
||||
|
||||
/**
|
||||
* returns a time selector
|
||||
* @param $format
|
||||
* format string, e.g. 'ymd' or 'mdy'. Not currently supported
|
||||
* @param $h
|
||||
* already selected hour
|
||||
* @param $m
|
||||
* already selected minute
|
||||
* @param $id
|
||||
* id and name of datetimepicker (defaults to "timepicker")
|
||||
*/
|
||||
if(! function_exists('timesel')) {
|
||||
function timesel($pre,$h,$m) {
|
||||
|
||||
$o = '';
|
||||
$o .= "<select name=\"{$pre}hour\" class=\"{$pre}hour\" size=\"1\">";
|
||||
for($x = 0; $x < 24; $x ++) {
|
||||
$sel = (($x == $h) ? " selected=\"selected\" " : "");
|
||||
$o .= "<option value=\"$x\" $sel>$x</option>";
|
||||
}
|
||||
$o .= "</select> : <select name=\"{$pre}minute\" class=\"{$pre}minute\" size=\"1\">";
|
||||
for($x = 0; $x < 60; $x ++) {
|
||||
$sel = (($x == $m) ? " selected=\"selected\" " : "");
|
||||
$o .= "<option value=\"$x\" $sel>$x</option>";
|
||||
}
|
||||
|
||||
$o .= "</select>";
|
||||
return $o;
|
||||
function timesel($format, $h, $m, $id='timepicker') {
|
||||
return datetimesel($format,new DateTime(),new DateTime(),new DateTime("$h:$m"),$id,false,true);
|
||||
}}
|
||||
|
||||
/**
|
||||
* @brief Returns a datetime selector.
|
||||
*
|
||||
* @param $format
|
||||
* format string, e.g. 'ymd' or 'mdy'. Not currently supported
|
||||
* @param $min
|
||||
* unix timestamp of minimum date
|
||||
* @param $max
|
||||
* unix timestap of maximum date
|
||||
* @param $default
|
||||
* unix timestamp of default date
|
||||
* @param string $id
|
||||
* id and name of datetimepicker (defaults to "datetimepicker")
|
||||
* @param boolean $pickdate
|
||||
* true to show date picker (default)
|
||||
* @param boolean $picktime
|
||||
* true to show time picker (default)
|
||||
* @param $minfrom
|
||||
* set minimum date from picker with id $minfrom (none by default)
|
||||
* @param $maxfrom
|
||||
* set maximum date from picker with id $maxfrom (none by default)
|
||||
* @param boolean $required default false
|
||||
* @return string Parsed HTML output.
|
||||
*
|
||||
* @todo Once browser support is better this could probably be replaced with
|
||||
* native HTML5 date picker.
|
||||
*/
|
||||
if(! function_exists('datetimesel')) {
|
||||
function datetimesel($format, $min, $max, $default, $id = 'datetimepicker', $pickdate = true, $picktime = true, $minfrom = '', $maxfrom = '', $required = false) {
|
||||
|
||||
$o = '';
|
||||
$dateformat = '';
|
||||
if($pickdate) $dateformat .= 'Y-m-d';
|
||||
if($pickdate && $picktime) $dateformat .= ' ';
|
||||
if($picktime) $dateformat .= 'H:i';
|
||||
$minjs = $min ? ",minDate: new Date({$min->getTimestamp()}*1000), yearStart: " . $min->format('Y') : '';
|
||||
$maxjs = $max ? ",maxDate: new Date({$max->getTimestamp()}*1000), yearEnd: " . $max->format('Y') : '';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$input_text = $default ? 'value="' . date($dateformat, $default->getTimestamp()) . '"' : '';
|
||||
$defaultdatejs = $default ? ",defaultDate: new Date({$default->getTimestamp()}*1000)" : '';
|
||||
$pickers = '';
|
||||
if(!$pickdate) $pickers .= ',datepicker: false';
|
||||
if(!$picktime) $pickers .= ',timepicker: false';
|
||||
$extra_js = '';
|
||||
if($minfrom != '')
|
||||
$extra_js .= "\$('#$minfrom').data('xdsoft_datetimepicker').setOptions({onChangeDateTime: function (currentDateTime) { \$('#$id').data('xdsoft_datetimepicker').setOptions({minDate: currentDateTime})}})";
|
||||
if($maxfrom != '')
|
||||
$extra_js .= "\$('#$maxfrom').data('xdsoft_datetimepicker').setOptions({onChangeDateTime: function (currentDateTime) { \$('#$id').data('xdsoft_datetimepicker').setOptions({maxDate: currentDateTime})}})";
|
||||
$readable_format = $dateformat;
|
||||
$readable_format = str_replace('Y','yyyy',$readable_format);
|
||||
$readable_format = str_replace('m','mm',$readable_format);
|
||||
$readable_format = str_replace('d','dd',$readable_format);
|
||||
$readable_format = str_replace('H','HH',$readable_format);
|
||||
$readable_format = str_replace('i','MM',$readable_format);
|
||||
$o .= "<div class='date'><input type='text' placeholder='$readable_format' name='$id' id='$id' $input_text />";
|
||||
$o .= '</div>';
|
||||
$o .= "<script type='text/javascript'>\$(function () {var picker = \$('#$id').datetimepicker({step:5,format:'$dateformat' $minjs $maxjs $pickers $defaultdatejs}); $extra_js})</script>";
|
||||
return $o;
|
||||
}}
|
||||
|
||||
// implements "3 seconds ago" etc.
|
||||
// based on $posted_date, (UTC).
|
||||
|
|
|
@ -4871,6 +4871,37 @@ function first_post_date($uid,$wall = false) {
|
|||
return false;
|
||||
}
|
||||
|
||||
/* modified posted_dates() {below} to arrange the list in years */
|
||||
function list_post_dates($uid, $wall) {
|
||||
$dnow = datetime_convert('',date_default_timezone_get(),'now','Y-m-d');
|
||||
|
||||
$dthen = first_post_date($uid, $wall);
|
||||
if(! $dthen)
|
||||
return array();
|
||||
|
||||
// Set the start and end date to the beginning of the month
|
||||
$dnow = substr($dnow,0,8).'01';
|
||||
$dthen = substr($dthen,0,8).'01';
|
||||
|
||||
$ret = array();
|
||||
|
||||
// Starting with the current month, get the first and last days of every
|
||||
// month down to and including the month of the first post
|
||||
while(substr($dnow, 0, 7) >= substr($dthen, 0, 7)) {
|
||||
$dyear = intval(substr($dnow,0,4));
|
||||
$dstart = substr($dnow,0,8) . '01';
|
||||
$dend = substr($dnow,0,8) . get_dim(intval($dnow),intval(substr($dnow,5)));
|
||||
$start_month = datetime_convert('','',$dstart,'Y-m-d');
|
||||
$end_month = datetime_convert('','',$dend,'Y-m-d');
|
||||
$str = day_translate(datetime_convert('','',$dnow,'F'));
|
||||
if(! $ret[$dyear])
|
||||
$ret[$dyear] = array();
|
||||
$ret[$dyear][] = array($str,$end_month,$start_month);
|
||||
$dnow = datetime_convert('','',$dnow . ' -1 month', 'Y-m-d');
|
||||
}
|
||||
return $ret;
|
||||
}
|
||||
|
||||
function posted_dates($uid,$wall) {
|
||||
$dnow = datetime_convert('',date_default_timezone_get(),'now','Y-m-d');
|
||||
|
||||
|
@ -4909,15 +4940,27 @@ function posted_date_widget($url,$uid,$wall) {
|
|||
/* if($wall && intval(get_pconfig($uid,'system','no_wall_archive_widget')))
|
||||
return $o;*/
|
||||
|
||||
$ret = posted_dates($uid,$wall);
|
||||
$visible_years = get_pconfig($uid,'system','archive_visible_years');
|
||||
if(! $visible_years)
|
||||
$visible_years = 5;
|
||||
|
||||
$ret = list_post_dates($uid,$wall);
|
||||
|
||||
if(! count($ret))
|
||||
return $o;
|
||||
|
||||
$cutoff_year = intval(datetime_convert('',date_default_timezone_get(),'now','Y')) - $visible_years;
|
||||
$cutoff = ((array_key_exists($cutoff_year,$ret))? true : false);
|
||||
|
||||
$o = replace_macros(get_markup_template('posted_date_widget.tpl'),array(
|
||||
'$title' => t('Archives'),
|
||||
'$size' => ((count($ret) > 6) ? 6 : count($ret)),
|
||||
'$size' => $visible_years,
|
||||
'$cutoff_year' => $cutoff_year,
|
||||
'$cutoff' => $cutoff,
|
||||
'$url' => $url,
|
||||
'$dates' => $ret
|
||||
'$dates' => $ret,
|
||||
'$showmore' => t('show more')
|
||||
|
||||
));
|
||||
return $o;
|
||||
}
|
||||
|
|
19
library/datetimepicker/MIT-LICENSE.txt
Normal file
19
library/datetimepicker/MIT-LICENSE.txt
Normal file
|
@ -0,0 +1,19 @@
|
|||
Copyright (c) 2013 http://xdsoft.net
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
20
library/datetimepicker/README.md
Normal file
20
library/datetimepicker/README.md
Normal file
|
@ -0,0 +1,20 @@
|
|||
datetimepicker
|
||||
==============
|
||||
[Documentation][doc]
|
||||
|
||||
|
||||
jQuery Plugin Date and Time Picker
|
||||
|
||||
DateTimePicker
|
||||
|
||||
![ScreenShot](https://raw2.github.com/xdan/datetimepicker/master/screen/1.png)
|
||||
|
||||
DatePicker
|
||||
|
||||
![ScreenShot](https://raw2.github.com/xdan/datetimepicker/master/screen/2.png)
|
||||
|
||||
TimePicker
|
||||
|
||||
![ScreenShot](https://raw2.github.com/xdan/datetimepicker/master/screen/3.png)
|
||||
|
||||
[doc]: http://xdsoft.net/jqplugins/datetimepicker/
|
418
library/datetimepicker/jquery.datetimepicker.css
Normal file
418
library/datetimepicker/jquery.datetimepicker.css
Normal file
|
@ -0,0 +1,418 @@
|
|||
.xdsoft_datetimepicker{
|
||||
box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.506);
|
||||
background: #FFFFFF;
|
||||
border-bottom: 1px solid #BBBBBB;
|
||||
border-left: 1px solid #CCCCCC;
|
||||
border-right: 1px solid #CCCCCC;
|
||||
border-top: 1px solid #CCCCCC;
|
||||
color: #333333;
|
||||
font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
|
||||
padding: 8px;
|
||||
padding-left: 0px;
|
||||
padding-top: 2px;
|
||||
position: absolute;
|
||||
z-index: 9999;
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
display:none;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker iframe {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 75px;
|
||||
height: 210px;
|
||||
background: transparent;
|
||||
border:none;
|
||||
}
|
||||
/*For IE8 or lower*/
|
||||
.xdsoft_datetimepicker button {
|
||||
border:none !important;
|
||||
}
|
||||
|
||||
.xdsoft_noselect{
|
||||
-webkit-touch-callout: none;
|
||||
-webkit-user-select: none;
|
||||
-khtml-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
-o-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
.xdsoft_noselect::selection { background: transparent; }
|
||||
.xdsoft_noselect::-moz-selection { background: transparent; }
|
||||
.xdsoft_datetimepicker.xdsoft_inline{
|
||||
display: inline-block;
|
||||
position: static;
|
||||
box-shadow: none;
|
||||
}
|
||||
.xdsoft_datetimepicker *{
|
||||
-moz-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
padding:0px;
|
||||
margin:0px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_datepicker, .xdsoft_datetimepicker .xdsoft_timepicker{
|
||||
display:none;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_datepicker.active, .xdsoft_datetimepicker .xdsoft_timepicker.active{
|
||||
display:block;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_datepicker{
|
||||
width: 224px;
|
||||
float:left;
|
||||
margin-left:8px;
|
||||
}
|
||||
.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker{
|
||||
width: 256px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker{
|
||||
width: 58px;
|
||||
float:left;
|
||||
text-align:center;
|
||||
margin-left:8px;
|
||||
margin-top:0px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{
|
||||
margin-top:8px;
|
||||
margin-bottom:3px
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_mounthpicker{
|
||||
position: relative;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker .xdsoft_label i,
|
||||
.xdsoft_datetimepicker .xdsoft_prev,
|
||||
.xdsoft_datetimepicker .xdsoft_next,
|
||||
.xdsoft_datetimepicker .xdsoft_today_button{
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0NBRjI1NjM0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0NBRjI1NjQ0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDQ0FGMjU2MTQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQ0FGMjU2MjQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC);
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker .xdsoft_label i{
|
||||
opacity:0.5;
|
||||
background-position:-92px -19px;
|
||||
display: inline-block;
|
||||
width: 9px;
|
||||
height: 20px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker .xdsoft_prev{
|
||||
float: left;
|
||||
background-position:-20px 0px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_today_button{
|
||||
float: left;
|
||||
background-position:-70px 0px;
|
||||
margin-left:5px;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker .xdsoft_next{
|
||||
float: right;
|
||||
background-position:0px 0px;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker .xdsoft_next,
|
||||
.xdsoft_datetimepicker .xdsoft_prev ,
|
||||
.xdsoft_datetimepicker .xdsoft_today_button{
|
||||
background-color: transparent;
|
||||
background-repeat: no-repeat;
|
||||
border: 0px none currentColor;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
height: 30px;
|
||||
opacity: 0.5;
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
||||
outline: medium none currentColor;
|
||||
overflow: hidden;
|
||||
padding: 0px;
|
||||
position: relative;
|
||||
text-indent: 100%;
|
||||
white-space: nowrap;
|
||||
width: 20px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next{
|
||||
float:none;
|
||||
background-position:-40px -15px;
|
||||
height: 15px;
|
||||
width: 30px;
|
||||
display: block;
|
||||
margin-left:14px;
|
||||
margin-top:7px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{
|
||||
background-position:-40px 0px;
|
||||
margin-bottom:7px;
|
||||
margin-top:0px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box{
|
||||
height:151px;
|
||||
overflow:hidden;
|
||||
border-bottom:1px solid #DDDDDD;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div{
|
||||
background: #F5F5F5;
|
||||
border-top:1px solid #DDDDDD;
|
||||
color: #666666;
|
||||
font-size: 12px;
|
||||
text-align: center;
|
||||
border-collapse:collapse;
|
||||
cursor:pointer;
|
||||
border-bottom-width:0px;
|
||||
height:25px;
|
||||
line-height:25px;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div > div:first-child{
|
||||
border-top-width:0px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_today_button:hover,
|
||||
.xdsoft_datetimepicker .xdsoft_next:hover,
|
||||
.xdsoft_datetimepicker .xdsoft_prev:hover {
|
||||
opacity: 1;
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_label{
|
||||
display: inline;
|
||||
position: relative;
|
||||
z-index: 9999;
|
||||
margin: 0;
|
||||
padding: 5px 3px;
|
||||
font-size: 14px;
|
||||
line-height: 20px;
|
||||
font-weight: bold;
|
||||
background-color: #fff;
|
||||
float:left;
|
||||
width:182px;
|
||||
text-align:center;
|
||||
cursor:pointer;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_label:hover>span{
|
||||
text-decoration:underline;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_label:hover i{
|
||||
opacity:1.0;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select{
|
||||
border:1px solid #ccc;
|
||||
position:absolute;
|
||||
right:0px;
|
||||
top:30px;
|
||||
z-index:101;
|
||||
display:none;
|
||||
background:#fff;
|
||||
max-height:160px;
|
||||
overflow-y:hidden;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_monthselect{right:-7px;}
|
||||
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_yearselect{right:2px;}
|
||||
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover{
|
||||
color: #fff;
|
||||
background: #ff8000;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option{
|
||||
padding:2px 10px 2px 5px;
|
||||
text-decoration:none !important;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current{
|
||||
background: #33AAFF;
|
||||
box-shadow: #178FE5 0px 1px 3px 0px inset;
|
||||
color:#fff;
|
||||
font-weight: 700;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_month{
|
||||
width:100px;
|
||||
text-align:right;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar{
|
||||
clear:both;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_year{
|
||||
width: 48px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar table{
|
||||
border-collapse:collapse;
|
||||
width:100%;
|
||||
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td > div{
|
||||
padding-right:5px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar th{
|
||||
height: 25px;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th{
|
||||
width:14.2857142%;
|
||||
background: #F5F5F5;
|
||||
border:1px solid #DDDDDD;
|
||||
color: #666666;
|
||||
font-size: 12px;
|
||||
text-align: right;
|
||||
vertical-align: middle;
|
||||
padding:0px;
|
||||
border-collapse:collapse;
|
||||
cursor:pointer;
|
||||
height: 25px;
|
||||
}
|
||||
.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th{
|
||||
width:12.5%;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar th{
|
||||
background: #F1F1F1;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{
|
||||
color:#33AAFF;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current{
|
||||
background: #33AAFF;
|
||||
box-shadow: #178FE5 0px 1px 3px 0px inset;
|
||||
color:#fff;
|
||||
font-weight: 700;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
|
||||
.xdsoft_datetimepicker .xdsoft_time_box >div >div.xdsoft_disabled{
|
||||
opacity:0.5;
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{
|
||||
opacity:0.2;
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td:hover,
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div:hover{
|
||||
color: #fff !important;
|
||||
background: #ff8000 !important;
|
||||
box-shadow: none !important;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,
|
||||
.xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_disabled:hover{
|
||||
color: inherit !important;
|
||||
background: inherit !important;
|
||||
box-shadow: inherit !important;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_calendar th{
|
||||
font-weight: 700;
|
||||
text-align: center;
|
||||
color: #999;
|
||||
cursor:default;
|
||||
}
|
||||
.xdsoft_datetimepicker .xdsoft_copyright{ color:#ccc !important; font-size:10px;clear:both;float:none;margin-left:8px;}
|
||||
.xdsoft_datetimepicker .xdsoft_copyright a{ color:#eee !important;}
|
||||
.xdsoft_datetimepicker .xdsoft_copyright a:hover{ color:#aaa !important;}
|
||||
|
||||
|
||||
.xdsoft_time_box{
|
||||
position:relative;
|
||||
border:1px solid #ccc;
|
||||
}
|
||||
.xdsoft_scrollbar >.xdsoft_scroller{
|
||||
background:#ccc !important;
|
||||
height:20px;
|
||||
border-radius:3px;
|
||||
}
|
||||
.xdsoft_scrollbar{
|
||||
position:absolute;
|
||||
width:7px;
|
||||
right:0px;
|
||||
top:0px;
|
||||
bottom:0px;
|
||||
cursor:pointer;
|
||||
}
|
||||
.xdsoft_scroller_box{
|
||||
position:relative;
|
||||
}
|
||||
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark{
|
||||
box-shadow: 0px 5px 15px -5px rgba(255, 255, 255, 0.506);
|
||||
background: #000000;
|
||||
border-bottom: 1px solid #444444;
|
||||
border-left: 1px solid #333333;
|
||||
border-right: 1px solid #333333;
|
||||
border-top: 1px solid #333333;
|
||||
color: #cccccc;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box{
|
||||
border-bottom:1px solid #222222;
|
||||
}
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div{
|
||||
background: #0a0a0a;
|
||||
border-top:1px solid #222222;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label{
|
||||
background-color: #000;
|
||||
}
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select{
|
||||
border:1px solid #333;
|
||||
background:#000;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover{
|
||||
color: #000;
|
||||
background: #007fff;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current{
|
||||
background: #cc5500;
|
||||
box-shadow: #b03e00 0px 1px 3px 0px inset;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_label i,
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_prev,
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_next,
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_today_button{
|
||||
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QUExQUUzOTA0M0UyMTFFNDlBM0FFQTJENTExRDVBODYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QUExQUUzOTE0M0UyMTFFNDlBM0FFQTJENTExRDVBODYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBQTFBRTM4RTQzRTIxMUU0OUEzQUVBMkQ1MTFENUE4NiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBQTFBRTM4RjQzRTIxMUU0OUEzQUVBMkQ1MTFENUE4NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pp0VxGEAAAIASURBVHja7JrNSgMxEMebtgh+3MSLr1T1Xn2CHoSKB08+QmR8Bx9A8e7RixdB9CKCoNdexIugxFlJa7rNZneTbLIpM/CnNLsdMvNjM8l0mRCiQ9Ye61IKCAgZAUnH+mU3MMZaHYChBnJUDzWOFZdVfc5+ZFLbrWDeXPwbxIqrLLfaeS0hEBVGIRQCEiZoHQwtlGSByCCdYBl8g8egTTAWoKQMRBRBcZxYlhzhKegqMOageErsCHVkk3hXIFooDgHB1KkHIHVgzKB4ADJQ/A1jAFmAYhkQqA5TOBtocrKrgXwQA8gcFIuAIO8sQSA7hidvPwaQGZSaAYHOUWJABhWWw2EMIH9QagQERU4SArJXo0ZZL18uvaxejXt/Em8xjVBXmvFr1KVm/AJ10tRe2XnraNqaJvKE3KHuUbfK1E+VHB0q40/y3sdQSxY4FHWeKJCunP8UyDdqJZenT3ntVV5jIYCAh20vT7ioP8tpf6E2lfEMwERe+whV1MHjwZB7PBiCxcGQWwKZKD62lfGNnP/1poFAA60T7rF1UgcKd2id3KDeUS+oLWV8DfWAepOfq00CgQabi9zjcgJVYVD7PVzQUAUGAQkbNJTBICDhgwYTjDYD6XeW08ZKh+A4pYkzenOxXUbvZcWz7E8ykRMnIHGX1XPl+1m2vPYpL+2qdb8CDAARlKFEz/ZVkAAAAABJRU5ErkJggg==);
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td,
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{
|
||||
background: #0a0a0a;
|
||||
border:1px solid #222222;
|
||||
color: #999999;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{
|
||||
background: #0e0e0e;
|
||||
}
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_today{
|
||||
color:#cc5500;
|
||||
}
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_default,
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_current,
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current{
|
||||
background: #cc5500;
|
||||
box-shadow: #b03e00 0px 1px 3px 0px inset;
|
||||
color:#000;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td:hover,
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div:hover{
|
||||
color: #000 !important;
|
||||
background: #007fff !important;
|
||||
}
|
||||
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{
|
||||
color: #666;
|
||||
}
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright{ color:#333 !important;}
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a{ color:#111 !important;}
|
||||
.xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a:hover{ color:#555 !important;}
|
||||
|
||||
|
||||
.xdsoft_dark .xdsoft_time_box{
|
||||
border:1px solid #333;
|
||||
}
|
||||
.xdsoft_dark .xdsoft_scrollbar >.xdsoft_scroller{
|
||||
background:#333 !important;
|
||||
}
|
1661
library/datetimepicker/jquery.datetimepicker.js
Normal file
1661
library/datetimepicker/jquery.datetimepicker.js
Normal file
File diff suppressed because one or more lines are too long
|
@ -15,17 +15,9 @@ function events_post(&$a) {
|
|||
$event_id = ((x($_POST,'event_id')) ? intval($_POST['event_id']) : 0);
|
||||
$cid = ((x($_POST,'cid')) ? intval($_POST['cid']) : 0);
|
||||
$uid = local_user();
|
||||
$startyear = intval($_POST['startyear']);
|
||||
$startmonth = intval($_POST['startmonth']);
|
||||
$startday = intval($_POST['startday']);
|
||||
$starthour = intval($_POST['starthour']);
|
||||
$startminute = intval($_POST['startminute']);
|
||||
|
||||
$finishyear = intval($_POST['finishyear']);
|
||||
$finishmonth = intval($_POST['finishmonth']);
|
||||
$finishday = intval($_POST['finishday']);
|
||||
$finishhour = intval($_POST['finishhour']);
|
||||
$finishminute = intval($_POST['finishminute']);
|
||||
$start_text = escape_tags($_REQUEST['start_text']);
|
||||
$finish_text = escape_tags($_REQUEST['finish_text']);
|
||||
|
||||
$adjust = intval($_POST['adjust']);
|
||||
$nofinish = intval($_POST['nofinish']);
|
||||
|
@ -33,12 +25,23 @@ function events_post(&$a) {
|
|||
// The default setting for the `private` field in event_store() is false, so mirror that
|
||||
$private_event = false;
|
||||
|
||||
|
||||
if($start_text) {
|
||||
$start = $start_text;
|
||||
}
|
||||
else {
|
||||
$start = sprintf('%d-%d-%d %d:%d:0',$startyear,$startmonth,$startday,$starthour,$startminute);
|
||||
if($nofinish)
|
||||
}
|
||||
|
||||
if($nofinish) {
|
||||
$finish = '0000-00-00 00:00:00';
|
||||
else
|
||||
}
|
||||
|
||||
if($finish_text) {
|
||||
$finish = $finish_text;
|
||||
}
|
||||
else {
|
||||
$finish = sprintf('%d-%d-%d %d:%d:0',$finishyear,$finishmonth,$finishday,$finishhour,$finishminute);
|
||||
}
|
||||
|
||||
if($adjust) {
|
||||
$start = datetime_convert(date_default_timezone_get(),'UTC',$start);
|
||||
|
@ -405,6 +408,19 @@ function events_content(&$a) {
|
|||
$orig_event = $r[0];
|
||||
}
|
||||
|
||||
// Passed parameters overrides anything found in the DB
|
||||
if($mode === 'edit' || $mode === 'new') {
|
||||
if(!x($orig_event)) $orig_event = array();
|
||||
// In case of an error the browser is redirected back here, with these parameters filled in with the previous values
|
||||
if(x($_REQUEST,'nofinish')) $orig_event['nofinish'] = $_REQUEST['nofinish'];
|
||||
if(x($_REQUEST,'adjust')) $orig_event['adjust'] = $_REQUEST['adjust'];
|
||||
if(x($_REQUEST,'summary')) $orig_event['summary'] = $_REQUEST['summary'];
|
||||
if(x($_REQUEST,'description')) $orig_event['description'] = $_REQUEST['description'];
|
||||
if(x($_REQUEST,'location')) $orig_event['location'] = $_REQUEST['location'];
|
||||
if(x($_REQUEST,'start')) $orig_event['start'] = $_REQUEST['start'];
|
||||
if(x($_REQUEST,'finish')) $orig_event['finish'] = $_REQUEST['finish'];
|
||||
}
|
||||
|
||||
if($mode === 'edit' || $mode === 'new') {
|
||||
|
||||
$n_checked = ((x($orig_event) && $orig_event['nofinish']) ? ' checked="checked" ' : '');
|
||||
|
@ -426,9 +442,6 @@ function events_content(&$a) {
|
|||
$sh_checked .= ' disabled="disabled" ';
|
||||
|
||||
|
||||
|
||||
$tpl = get_markup_template('event_form.tpl');
|
||||
|
||||
$sdt = ((x($orig_event)) ? $orig_event['start'] : 'now');
|
||||
$fdt = ((x($orig_event)) ? $orig_event['finish'] : 'now');
|
||||
|
||||
|
@ -454,11 +467,10 @@ function events_content(&$a) {
|
|||
if(! $f)
|
||||
$f = 'ymd';
|
||||
|
||||
$dateformat = datesel_format($f);
|
||||
$timeformat = t('hour:minute');
|
||||
|
||||
require_once('include/acl_selectors.php');
|
||||
|
||||
$tpl = get_markup_template('event_form.tpl');
|
||||
|
||||
$o .= replace_macros($tpl,array(
|
||||
'$post' => $a->get_baseurl() . '/events',
|
||||
'$eid' => $eid,
|
||||
|
@ -466,16 +478,13 @@ function events_content(&$a) {
|
|||
'$uri' => $uri,
|
||||
|
||||
'$title' => t('Event details'),
|
||||
'$desc' => sprintf( t('Format is %s %s. Starting date and Title are required.'),$dateformat,$timeformat),
|
||||
|
||||
'$desc' => t('Starting date and Title are required.'),
|
||||
'$s_text' => t('Event Starts:') . ' <span class="required" title="' . t('Required') . '">*</span>',
|
||||
'$s_dsel' => datesel($f,'start',$syear+5,$syear,false,$syear,$smonth,$sday),
|
||||
'$s_tsel' => timesel('start',$shour,$sminute),
|
||||
'$s_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$syear+5),DateTime::createFromFormat('Y-m-d H:i',"$syear-$smonth-$sday $shour:$sminute"),'start_text',true,true,'','',true),
|
||||
'$n_text' => t('Finish date/time is not known or not relevant'),
|
||||
'$n_checked' => $n_checked,
|
||||
'$f_text' => t('Event Finishes:'),
|
||||
'$f_dsel' => datesel($f,'finish',$fyear+5,$fyear,false,$fyear,$fmonth,$fday),
|
||||
'$f_tsel' => timesel('finish',$fhour,$fminute),
|
||||
'$f_dsel' => datetimesel($f,new DateTime(),DateTime::createFromFormat('Y',$fyear+5),DateTime::createFromFormat('Y-m-d H:i',"$fyear-$fmonth-$fday $fhour:$fminute"),'finish_text',true,true,'start_text'),
|
||||
'$a_text' => t('Adjust for viewer timezone'),
|
||||
'$a_checked' => $a_checked,
|
||||
'$d_text' => t('Description:'),
|
||||
|
|
|
@ -190,26 +190,22 @@ function profiles_post(&$a) {
|
|||
return;
|
||||
}
|
||||
|
||||
$year = intval($_POST['year']);
|
||||
if($year < 1900 || $year > 2100 || $year < 0)
|
||||
$year = 0;
|
||||
$month = intval($_POST['month']);
|
||||
if(($month > 12) || ($month < 0))
|
||||
$month = 0;
|
||||
$mtab = array(0,31,29,31,30,31,30,31,31,30,31,30,31);
|
||||
$day = intval($_POST['day']);
|
||||
if(($day > $mtab[$month]) || ($day < 0))
|
||||
$day = 0;
|
||||
|
||||
// It's OK to have an empty (0) year, but if you supplied a year you have to have a non-zero month and day
|
||||
if($year && ! $month)
|
||||
$month = 1;
|
||||
if($year && ! $day)
|
||||
$day = 1;
|
||||
|
||||
$dob = '0000-00-00';
|
||||
$dob = sprintf('%04d-%02d-%02d',$year,$month,$day);
|
||||
$dob = $_POST['dob'] ? escape_tags(trim($_POST['dob'])) : '0000-00-00'; // FIXME: Needs to be validated?
|
||||
|
||||
$y = substr($dob,0,4);
|
||||
if((! ctype_digit($y)) || ($y < 1900))
|
||||
$ignore_year = true;
|
||||
else
|
||||
$ignore_year = false;
|
||||
if($dob != '0000-00-00') {
|
||||
if(strpos($dob,'0000-') === 0) {
|
||||
$ignore_year = true;
|
||||
$dob = substr($dob,5);
|
||||
}
|
||||
$dob = datetime_convert('UTC','UTC',(($ignore_year) ? '1900-' . $dob : $dob),(($ignore_year) ? 'm-d' : 'Y-m-d'));
|
||||
if($ignore_year)
|
||||
$dob = '0000-' . $dob;
|
||||
}
|
||||
|
||||
$name = notags(trim($_POST['name']));
|
||||
|
||||
|
@ -701,7 +697,7 @@ function profiles_content(&$a) {
|
|||
'$lbl_fullname' => t('Your Full Name:'),
|
||||
'$lbl_title' => t('Title/Description:'),
|
||||
'$lbl_gender' => t('Your Gender:'),
|
||||
'$lbl_bd' => sprintf( t("Birthday \x28%s\x29:"),datesel_format($f)),
|
||||
'$lbl_bd' => t("Birthday :"),
|
||||
'$lbl_address' => t('Street Address:'),
|
||||
'$lbl_city' => t('Locality/City:'),
|
||||
'$lbl_zip' => t('Postal/Zip Code:'),
|
||||
|
|
|
@ -7,7 +7,7 @@ function search_saved_searches() {
|
|||
if(! feature_enabled(local_user(),'savedsearch'))
|
||||
return $o;
|
||||
|
||||
$r = q("select `id`,`term` from `search` WHERE `uid` = %d",
|
||||
$r = q("SELECT `id`,`term` FROM `search` WHERE `uid` = %d",
|
||||
intval(local_user())
|
||||
);
|
||||
|
||||
|
@ -45,12 +45,12 @@ function search_init(&$a) {
|
|||
|
||||
if(local_user()) {
|
||||
if(x($_GET,'save') && $search) {
|
||||
$r = q("select * from `search` where `uid` = %d and `term` = '%s' limit 1",
|
||||
$r = q("SELECT * FROM `search` WHERE `uid` = %d AND `term` = '%s' LIMIT 1",
|
||||
intval(local_user()),
|
||||
dbesc($search)
|
||||
);
|
||||
if(! count($r)) {
|
||||
q("insert into `search` ( `uid`,`term` ) values ( %d, '%s') ",
|
||||
q("INSERT INTO `search` (`uid`,`term`) VALUES ( %d, '%s')",
|
||||
intval(local_user()),
|
||||
dbesc($search)
|
||||
);
|
||||
|
@ -135,7 +135,7 @@ function search_content(&$a) {
|
|||
if($tag) {
|
||||
logger("Start tag search for '".$search."'", LOGGER_DEBUG);
|
||||
|
||||
$r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
|
||||
$r = q("SELECT STRAIGHT_JOIN `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
|
||||
`contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`alias`, `contact`.`rel`,
|
||||
`contact`.`network`, `contact`.`thumb`, `contact`.`self`, `contact`.`writable`,
|
||||
`contact`.`id` AS `cid`, `contact`.`uid` AS `contact-uid`
|
||||
|
@ -156,7 +156,7 @@ function search_content(&$a) {
|
|||
$sql_extra = sprintf(" AND `item`.`body` REGEXP '%s' ", dbesc(protect_sprintf(preg_quote($search))));
|
||||
}
|
||||
|
||||
$r = q("SELECT `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
|
||||
$r = q("SELECT STRAIGHT_JOIN `item`.`uri`, `item`.*, `item`.`id` AS `item_id`,
|
||||
`contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`alias`, `contact`.`rel`,
|
||||
`contact`.`network`, `contact`.`thumb`, `contact`.`self`, `contact`.`writable`,
|
||||
`contact`.`id` AS `cid`, `contact`.`uid` AS `contact-uid`
|
||||
|
|
1830
view/it/messages.po
1830
view/it/messages.po
File diff suppressed because it is too large
Load diff
|
@ -76,13 +76,6 @@ $a->strings["Page not found."] = "Pagina non trovata.";
|
|||
$a->strings["Permission denied"] = "Permesso negato";
|
||||
$a->strings["Permission denied."] = "Permesso negato.";
|
||||
$a->strings["toggle mobile"] = "commuta tema mobile";
|
||||
$a->strings["Do you wish to confirm your identity (<tt>%s</tt>) with <tt>%s</tt>"] = "";
|
||||
$a->strings["Confirm"] = "Conferma";
|
||||
$a->strings["Do not confirm"] = "";
|
||||
$a->strings["Trust This Site"] = "";
|
||||
$a->strings["No Identifier Sent"] = "";
|
||||
$a->strings["Requested identity don't match logged in user."] = "";
|
||||
$a->strings["Please wait; you are being redirected to <%s>"] = "";
|
||||
$a->strings["Delete this item?"] = "Cancellare questo elemento?";
|
||||
$a->strings["Comment"] = "Commento";
|
||||
$a->strings["show more"] = "mostra di più";
|
||||
|
@ -194,6 +187,7 @@ $a->strings["edit"] = "modifica";
|
|||
$a->strings["Groups"] = "Gruppi";
|
||||
$a->strings["Edit group"] = "Modifica gruppo";
|
||||
$a->strings["Create a new group"] = "Crea un nuovo gruppo";
|
||||
$a->strings["Group Name: "] = "Nome del gruppo:";
|
||||
$a->strings["Contacts not in any group"] = "Contatti in nessun gruppo.";
|
||||
$a->strings["add"] = "aggiungi";
|
||||
$a->strings["Wall Photos"] = "Foto della bacheca";
|
||||
|
@ -739,7 +733,6 @@ $a->strings["Group not found."] = "Gruppo non trovato.";
|
|||
$a->strings["Group name changed."] = "Il nome del gruppo è cambiato.";
|
||||
$a->strings["Save Group"] = "Salva gruppo";
|
||||
$a->strings["Create a group of contacts/friends."] = "Crea un gruppo di amici/contatti.";
|
||||
$a->strings["Group Name: "] = "Nome del gruppo:";
|
||||
$a->strings["Group removed."] = "Gruppo rimosso.";
|
||||
$a->strings["Unable to remove group."] = "Impossibile rimuovere il gruppo.";
|
||||
$a->strings["Group Editor"] = "Modifica gruppo";
|
||||
|
@ -753,7 +746,7 @@ $a->strings["Existing Page Delegates"] = "Delegati Pagina Esistenti";
|
|||
$a->strings["Potential Delegates"] = "Delegati Potenziali";
|
||||
$a->strings["Remove"] = "Rimuovi";
|
||||
$a->strings["Add"] = "Aggiungi";
|
||||
$a->strings["No entries."] = "Nessun articolo.";
|
||||
$a->strings["No entries."] = "Nessuna voce.";
|
||||
$a->strings["Invalid request identifier."] = "L'identificativo della richiesta non è valido.";
|
||||
$a->strings["Discard"] = "Scarta";
|
||||
$a->strings["Ignore"] = "Ignora";
|
||||
|
@ -838,6 +831,9 @@ $a->strings["Plugin Settings"] = "Impostazioni plugin";
|
|||
$a->strings["Off"] = "Spento";
|
||||
$a->strings["On"] = "Acceso";
|
||||
$a->strings["Additional Features"] = "Funzionalità aggiuntive";
|
||||
$a->strings["General Social Media Settings"] = "Impostazioni Media Sociali";
|
||||
$a->strings["Disable intelligent shortening"] = "Disabilita accorciamento intelligente";
|
||||
$a->strings["Normally the system tries to find the best link to add to shortened posts. If this option is enabled then every shortened post will always point to the original friendica post."] = "Normalmente il sistema tenta di trovare il migliore link da aggiungere a un post accorciato. Se questa opzione è abilitata, ogni post accorciato conterrà sempre un link al post originale su Friendica.";
|
||||
$a->strings["Built-in support for %s connectivity is %s"] = "Il supporto integrato per la connettività con %s è %s";
|
||||
$a->strings["enabled"] = "abilitato";
|
||||
$a->strings["disabled"] = "disabilitato";
|
||||
|
@ -944,6 +940,9 @@ $a->strings["You receive a private message"] = "Ricevi un messaggio privato";
|
|||
$a->strings["You receive a friend suggestion"] = "Hai ricevuto un suggerimento di amicizia";
|
||||
$a->strings["You are tagged in a post"] = "Sei stato taggato in un post";
|
||||
$a->strings["You are poked/prodded/etc. in a post"] = "Sei 'toccato'/'spronato'/ecc. in un post";
|
||||
$a->strings["Activate desktop notifications"] = "";
|
||||
$a->strings["Note: This is an experimental feature, as being not supported by each browser"] = "";
|
||||
$a->strings["You will now receive desktop notifications!"] = "";
|
||||
$a->strings["Text-only notification emails"] = "Email di notifica in solo testo";
|
||||
$a->strings["Send text only notification emails, without the html part"] = "Invia le email di notifica in solo testo, senza la parte in html";
|
||||
$a->strings["Advanced Account/Page Type Settings"] = "Impostazioni avanzate Account/Tipo di pagina";
|
||||
|
@ -1108,6 +1107,7 @@ $a->strings["Invalid profile URL."] = "Indirizzo profilo non valido.";
|
|||
$a->strings["Your introduction has been sent."] = "La tua presentazione è stata inviata.";
|
||||
$a->strings["Please login to confirm introduction."] = "Accedi per confermare la presentazione.";
|
||||
$a->strings["Incorrect identity currently logged in. Please login to <strong>this</strong> profile."] = "Non hai fatto accesso con l'identità corretta. Accedi a <strong>questo</strong> profilo.";
|
||||
$a->strings["Confirm"] = "Conferma";
|
||||
$a->strings["Hide this contact"] = "Nascondi questo contatto";
|
||||
$a->strings["Welcome home %s."] = "Bentornato a casa %s.";
|
||||
$a->strings["Please confirm your introduction/connection request to %s."] = "Conferma la tua richiesta di connessione con %s.";
|
||||
|
@ -1269,6 +1269,8 @@ $a->strings["Poll interval"] = "Intervallo di poll";
|
|||
$a->strings["Delay background polling processes by this many seconds to reduce system load. If 0, use delivery interval."] = "Ritarda il processo di poll in background di n secondi per ridurre il carico di sistema. Se 0, usa l'intervallo di invio.";
|
||||
$a->strings["Maximum Load Average"] = "Massimo carico medio";
|
||||
$a->strings["Maximum system load before delivery and poll processes are deferred - default 50."] = "Massimo carico di sistema prima che i processi di invio e di poll siano ritardati. Predefinito a 50.";
|
||||
$a->strings["Maximum Load Average (Frontend)"] = "Media Massimo Carico (Frontend)";
|
||||
$a->strings["Maximum system load before the frontend quits service - default 50."] = "Massimo carico di sistema prima che il frontend fermi il servizio - default 50.";
|
||||
$a->strings["Use MySQL full text engine"] = "Usa il motore MySQL full text";
|
||||
$a->strings["Activates the full text engine. Speeds up search - but can only search for four and more characters."] = "Attiva il motore full text. Velocizza la ricerca, ma puo' cercare solo per quattro o più caratteri.";
|
||||
$a->strings["Suppress Language"] = "Disattiva lingua";
|
||||
|
@ -1440,6 +1442,7 @@ $a->strings["Private photo"] = "Foto privata";
|
|||
$a->strings["Public photo"] = "Foto pubblica";
|
||||
$a->strings["Recent Photos"] = "Foto recenti";
|
||||
$a->strings["The post was created"] = "Il messaggio è stato creato";
|
||||
$a->strings["You already added this contact."] = "Hai già aggiunto questo contatto.";
|
||||
$a->strings["Contact added"] = "Contatto aggiunto";
|
||||
$a->strings["Move account"] = "Muovi account";
|
||||
$a->strings["You can import an account from another Friendica server."] = "Puoi importare un account da un altro server Friendica.";
|
||||
|
@ -1498,6 +1501,7 @@ $a->strings["bb2dia2bb: "] = "bb2dia2bb: ";
|
|||
$a->strings["bb2md2html2bb: "] = "bb2md2html2bb: ";
|
||||
$a->strings["Source input (Diaspora format): "] = "Sorgente (formato Diaspora):";
|
||||
$a->strings["diaspora2bb: "] = "diaspora2bb: ";
|
||||
$a->strings["Not Extended"] = "Not Extended";
|
||||
$a->strings["Tag removed"] = "Tag rimosso";
|
||||
$a->strings["Remove Item Tag"] = "Rimuovi il tag";
|
||||
$a->strings["Select a tag to remove: "] = "Seleziona un tag da rimuovere: ";
|
||||
|
@ -1704,6 +1708,7 @@ $a->strings["Return to contact editor"] = "Ritorna alla modifica contatto";
|
|||
$a->strings["No mirroring"] = "Non duplicare";
|
||||
$a->strings["Mirror as forwarded posting"] = "Duplica come messaggi ricondivisi";
|
||||
$a->strings["Mirror as my own posting"] = "Duplica come miei messaggi";
|
||||
$a->strings["Refetch contact data"] = "Ricarica dati contatto";
|
||||
$a->strings["Account Nickname"] = "Nome utente";
|
||||
$a->strings["@Tagname - overrides Name/Nickname"] = "@TagName - al posto del nome utente";
|
||||
$a->strings["Account URL"] = "URL dell'utente";
|
||||
|
|
|
@ -13,10 +13,10 @@
|
|||
<input type="hidden" name="preview" id="event-edit-preview" value="0" />
|
||||
|
||||
<div id="event-start-text">{{$s_text}}</div>
|
||||
{{$s_dsel}} {{$s_tsel}}
|
||||
{{$s_dsel}}
|
||||
|
||||
<div id="event-finish-text">{{$f_text}}</div>
|
||||
{{$f_dsel}} {{$f_tsel}}
|
||||
{{$f_dsel}}
|
||||
|
||||
<div id="event-datetime-break"></div>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<link rel="stylesheet" href="{{$baseurl}}/view/global.css" type="text/css" media="all" />
|
||||
<link rel="stylesheet" href="{{$baseurl}}/library/colorbox/colorbox.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="{{$baseurl}}/library/datetimepicker/jquery.datetimepicker.css" type="text/css" media="screen" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
|
||||
|
||||
|
@ -34,6 +35,7 @@
|
|||
<script type="text/javascript" src="{{$baseurl}}/js/fk.autocomplete.js" ></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/library/colorbox/jquery.colorbox-min.js"></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/library/datetimepicker/jquery.datetimepicker.js"></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/library/tinymce/jscripts/tiny_mce/tiny_mce_src.js" ></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/js/acl.js" ></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/js/webtoolkit.base64.js" ></script>
|
||||
|
|
|
@ -1,9 +1,47 @@
|
|||
<script>
|
||||
|
||||
function showHideDates() {
|
||||
if( $('#posted-date-dropdown').is(':visible')) {
|
||||
$('#posted-date-dropdown').hide();
|
||||
$('#posted-date-collapse').html(window.showMore);
|
||||
|
||||
}
|
||||
else {
|
||||
$('#posted-date-dropdown').show();
|
||||
$('#posted-date-collapse').html(window.showFewer);
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
<div id="datebrowse-sidebar" class="widget">
|
||||
<h3>{{$title}}</h3>
|
||||
<script>function dateSubmit(dateurl) { window.location.href = dateurl; } </script>
|
||||
<select id="posted-date-selector" name="posted-date-select" onchange="dateSubmit($(this).val());" size="{{$size}}">
|
||||
{{foreach $dates as $d}}
|
||||
<option value="{{$url}}/{{$d.1}}/{{$d.2}}" >{{$d.0}}</option>
|
||||
{{/foreach}}
|
||||
</select>
|
||||
<script>function dateSubmit(dateurl) { window.location.href = dateurl; } </script>
|
||||
<ul id="posted-date-selector" class="datebrowse-ul">
|
||||
{{foreach $dates as $y => $arr}}
|
||||
{{if $y == $cutoff_year}}
|
||||
</ul>
|
||||
<div id="posted-date-dropdown" style="display: none;">
|
||||
<ul id="posted-date-selector-drop" class="datebrowse-ul">
|
||||
{{/if}}
|
||||
<li id="posted-date-selector-year-{{$y}}" class="tool">
|
||||
<a class="datebrowse-link" href="#" onclick="openClose('posted-date-selector-{{$y}}'); return false;">{{$y}}</a>
|
||||
</li>
|
||||
<div id="posted-date-selector-{{$y}}" style="display: none;">
|
||||
<ul class="posted-date-selector-months datebrowse-ul">
|
||||
{{foreach $arr as $d}}
|
||||
<li class="tool">
|
||||
<a class="datebrowse-link" href="#" onclick="dateSubmit('{{$url}}/{{$d.1}}/{{$d.2}}'); return false;">{{$d.0}}</a></li>
|
||||
</li>
|
||||
{{/foreach}}
|
||||
</ul>
|
||||
</div>
|
||||
{{/foreach}}
|
||||
{{if $cutoff}}
|
||||
</div>
|
||||
<ul class="datebrowse-ul">
|
||||
<li onclick="showHideDates(); return false;" id="posted-date-collapse" class="fakelink tool">{{$showmore}}</li>
|
||||
</ul>
|
||||
{{/if}}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -2026,11 +2026,11 @@ a.mail-list-link {
|
|||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.nets-ul, .fileas-ul, .categories-ul {
|
||||
.nets-ul, .fileas-ul, .categories-ul, .datebrowse-ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.nets-ul li, .fileas-ul li, .categories-ul li {
|
||||
.nets-ul li, .fileas-ul li, .categories-ul li, .datebrowse-ul li {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<script type="text/javascript" src="{{$baseurl}}/view/theme/frost-mobile/js/readmore.min.js" ></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/js/jquery.textinputs.js" ></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/library/datetimepicker/jquery.datetimepicker.js"></script>
|
||||
|
||||
<script type="text/javascript" src="{{$baseurl}}/js/fk.autocomplete.js" ></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/view/theme/frost-mobile/js/acl.js" ></script>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
<base href="{{$baseurl}}/" />
|
||||
<meta name="generator" content="{{$generator}}" />
|
||||
<link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="{{$baseurl}}/library/datetimepicker/jquery.datetimepicker.css" type="text/css" media="screen" />
|
||||
<script type="text/javascript" src="{{$baseurl}}/js/jquery.js"></script>
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
|
||||
|
|
|
@ -159,6 +159,11 @@ $(document).ready(function() {
|
|||
eventClick: function(calEvent, jsEvent, view) {
|
||||
showEvent(calEvent.id);
|
||||
},
|
||||
loading: function(isLoading, view) {
|
||||
if(!isLoading) {
|
||||
$('td.fc-day').dblclick(function() { window.location.href='/events/new?start='+$(this).data('date'); });
|
||||
}
|
||||
},
|
||||
|
||||
eventRender: function(event, element, view) {
|
||||
//console.log(view.name);
|
||||
|
@ -353,6 +358,14 @@ function showEvent(eventid) {
|
|||
);
|
||||
}
|
||||
|
||||
function doEventPreview() {
|
||||
$('#event-edit-preview').val(1);
|
||||
$.post('events',$('#event-edit-form').serialize(), function(data) {
|
||||
$.colorbox({ html: data });
|
||||
});
|
||||
$('#event-edit-preview').val(0);
|
||||
}
|
||||
|
||||
function initCrop() {
|
||||
function onEndCrop( coords, dimensions ) {
|
||||
$PR( 'x1' ).value = coords.x1;
|
||||
|
|
|
@ -2327,11 +2327,11 @@ a.mail-list-link {
|
|||
margin-top: 10px;
|
||||
}
|
||||
|
||||
.nets-ul, .fileas-ul, .categories-ul {
|
||||
.nets-ul, .fileas-ul, .categories-ul, .datebrowse-ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.nets-ul li, .fileas-ul li, .categories-ul li {
|
||||
.nets-ul li, .fileas-ul li, .categories-ul li, .datebrowse-ul li {
|
||||
margin-top: 10px;
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,7 @@
|
|||
<script type="text/javascript" src="{{$baseurl}}/library/colorbox/jquery.colorbox-min.js"></script>
|
||||
{{*<!--<script type="text/javascript" src="{{$baseurl}}/library/tiptip/jquery.tipTip.minified.js"></script>-->*}}
|
||||
<script type="text/javascript" src="{{$baseurl}}/library/jgrowl/jquery.jgrowl_minimized.js"></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/library/datetimepicker/jquery.datetimepicker.js"></script>
|
||||
|
||||
<script type="text/javascript" src="{{$baseurl}}/view/theme/frost/js/acl.js" ></script>
|
||||
<script type="text/javascript" src="{{$baseurl}}/js/webtoolkit.base64.js" ></script>
|
||||
|
|
|
@ -5,17 +5,18 @@
|
|||
{{$desc}}
|
||||
</p>
|
||||
|
||||
<form action="{{$post}}" method="post" >
|
||||
<form id="event-edit-form" action="{{$post}}" method="post" >
|
||||
|
||||
<input type="hidden" name="event_id" value="{{$eid}}" />
|
||||
<input type="hidden" name="cid" value="{{$cid}}" />
|
||||
<input type="hidden" name="uri" value="{{$uri}}" />
|
||||
<input type="hidden" name="preview" id="event-edit-preview" value="0" />
|
||||
|
||||
<div id="event-start-text">{{$s_text}}</div>
|
||||
{{$s_dsel}} {{$s_tsel}}
|
||||
{{$s_dsel}}
|
||||
|
||||
<div id="event-finish-text">{{$f_text}}</div>
|
||||
{{$f_dsel}} {{$f_tsel}}
|
||||
{{$f_dsel}}
|
||||
|
||||
<div id="event-datetime-break"></div>
|
||||
|
||||
|
@ -45,6 +46,7 @@
|
|||
{{$acl}}
|
||||
|
||||
<div class="clear"></div>
|
||||
<input id="event-edit-preview" type="submit" name="preview" value="{{$preview|escape:'html'}}" onclick="doEventPreview(); return false;" />
|
||||
<input id="event-submit" type="submit" name="submit" value="{{$submit}}" />
|
||||
</form>
|
||||
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
<link rel="stylesheet" href="{{$baseurl}}/library/colorbox/colorbox.css" type="text/css" media="screen" />
|
||||
{{*<!--<link rel="stylesheet" href="{{$baseurl}}/library/tiptip/tipTip.css" type="text/css" media="screen" />-->*}}
|
||||
<link rel="stylesheet" href="{{$baseurl}}/library/jgrowl/jquery.jgrowl.css" type="text/css" media="screen" />
|
||||
<link rel="stylesheet" href="{{$baseurl}}/library/datetimepicker/jquery.datetimepicker.css" type="text/css" media="screen" />
|
||||
|
||||
<link rel="stylesheet" type="text/css" href="{{$stylesheet}}" media="all" />
|
||||
|
||||
|
|
|
@ -839,6 +839,9 @@ aside #dfrn-request-link:hover {
|
|||
aside #profiles-menu {
|
||||
width: 20em;
|
||||
}
|
||||
aside .posted-date-selector-months {
|
||||
margin-left: 10px;
|
||||
}
|
||||
#contact-block {
|
||||
overflow: auto;
|
||||
height: auto;
|
||||
|
@ -1279,13 +1282,13 @@ section {
|
|||
opacity: 0.5;
|
||||
}*/
|
||||
.wwto {
|
||||
position: absolute !important;
|
||||
background: #FFFFFF;
|
||||
border: 2px solid #364e59;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
overflow: hidden;
|
||||
padding: 1px;
|
||||
position: absolute !important;
|
||||
top: 40px;
|
||||
left: 30px;
|
||||
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
|
||||
|
@ -1962,27 +1965,6 @@ ul.tabs li .active {
|
|||
width: 50px;
|
||||
float: left;
|
||||
}
|
||||
/* videos page */
|
||||
.videos .video-top-wrapper {
|
||||
width: 200px;
|
||||
float: left;
|
||||
margin: 0px 10px 10px 0px;
|
||||
position: relative;
|
||||
}
|
||||
.videos .video-top-wrapper .video-js {
|
||||
width: 200px!important;
|
||||
height: 132px!important;
|
||||
}
|
||||
.videos .video-top-wrapper .video-delete {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
transition: opacity 0.5s;
|
||||
}
|
||||
.videos .video-top-wrapper:hover .video-delete {
|
||||
opacity: 1;
|
||||
}
|
||||
/* photo albums */
|
||||
#photo-edit-link-wrap {
|
||||
margin-bottom: 10px;
|
||||
|
|
|
@ -839,6 +839,9 @@ aside #dfrn-request-link:hover {
|
|||
aside #profiles-menu {
|
||||
width: 20em;
|
||||
}
|
||||
aside .posted-date-selector-months {
|
||||
margin-left: 10px;
|
||||
}
|
||||
#contact-block {
|
||||
overflow: auto;
|
||||
height: auto;
|
||||
|
@ -1279,13 +1282,13 @@ section {
|
|||
opacity: 0.5;
|
||||
}*/
|
||||
.wwto {
|
||||
position: absolute !important;
|
||||
background: #FFFFFF;
|
||||
border: 2px solid #364e59;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
overflow: hidden;
|
||||
padding: 1px;
|
||||
position: absolute !important;
|
||||
top: 40px;
|
||||
left: 30px;
|
||||
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
|
||||
|
@ -1962,27 +1965,6 @@ ul.tabs li .active {
|
|||
width: 50px;
|
||||
float: left;
|
||||
}
|
||||
/* videos page */
|
||||
.videos .video-top-wrapper {
|
||||
width: 200px;
|
||||
float: left;
|
||||
margin: 0px 10px 10px 0px;
|
||||
position: relative;
|
||||
}
|
||||
.videos .video-top-wrapper .video-js {
|
||||
width: 200px!important;
|
||||
height: 132px!important;
|
||||
}
|
||||
.videos .video-top-wrapper .video-delete {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
transition: opacity 0.5s;
|
||||
}
|
||||
.videos .video-top-wrapper:hover .video-delete {
|
||||
opacity: 1;
|
||||
}
|
||||
/* photo albums */
|
||||
#photo-edit-link-wrap {
|
||||
margin-bottom: 10px;
|
||||
|
|
|
@ -839,6 +839,9 @@ aside #dfrn-request-link:hover {
|
|||
aside #profiles-menu {
|
||||
width: 20em;
|
||||
}
|
||||
aside .posted-date-selector-months {
|
||||
margin-left: 10px;
|
||||
}
|
||||
#contact-block {
|
||||
overflow: auto;
|
||||
height: auto;
|
||||
|
@ -1279,13 +1282,13 @@ section {
|
|||
opacity: 0.5;
|
||||
}*/
|
||||
.wwto {
|
||||
position: absolute !important;
|
||||
background: #FFFFFF;
|
||||
border: 2px solid #364e59;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
overflow: hidden;
|
||||
padding: 1px;
|
||||
position: absolute !important;
|
||||
top: 40px;
|
||||
left: 30px;
|
||||
-webkit-box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.7);
|
||||
|
@ -1962,27 +1965,6 @@ ul.tabs li .active {
|
|||
width: 50px;
|
||||
float: left;
|
||||
}
|
||||
/* videos page */
|
||||
.videos .video-top-wrapper {
|
||||
width: 200px;
|
||||
float: left;
|
||||
margin: 0px 10px 10px 0px;
|
||||
position: relative;
|
||||
}
|
||||
.videos .video-top-wrapper .video-js {
|
||||
width: 200px!important;
|
||||
height: 132px!important;
|
||||
}
|
||||
.videos .video-top-wrapper .video-delete {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
transition: opacity 0.5s;
|
||||
}
|
||||
.videos .video-top-wrapper:hover .video-delete {
|
||||
opacity: 1;
|
||||
}
|
||||
/* photo albums */
|
||||
#photo-edit-link-wrap {
|
||||
margin-bottom: 10px;
|
||||
|
|
|
@ -354,7 +354,7 @@ aside {
|
|||
|
||||
#profiles-menu { width: 20em; }
|
||||
|
||||
|
||||
.posted-date-selector-months { margin-left: 10px; }
|
||||
}
|
||||
|
||||
#contact-block {
|
||||
|
@ -666,18 +666,16 @@ section {
|
|||
|
||||
.wwto {
|
||||
position: absolute !important;
|
||||
width: 25px; height: 25px;
|
||||
background: #FFFFFF;
|
||||
border: 2px solid @Metalic3;
|
||||
height: 25px;
|
||||
width: 25px;
|
||||
overflow: hidden;
|
||||
padding: 1px;
|
||||
position: absolute !important;
|
||||
top: 40px;
|
||||
left: 30px;
|
||||
|
||||
.shadow(0px, 0px)
|
||||
.shadow(0px, 0px);
|
||||
}
|
||||
.wwto .contact-photo { width: 25px; height: 25px; }
|
||||
|
||||
|
@ -900,7 +898,6 @@ span[id^="showmore-wrap"] {
|
|||
width: 100%;
|
||||
margin: 0px 2em 20px 0px;
|
||||
|
||||
|
||||
.profile-jot-text {
|
||||
height: 1em; width: 99%; font-size: 10px;
|
||||
color: @CommentBoxEmptyColor;
|
||||
|
@ -1321,33 +1318,6 @@ ul.tabs {
|
|||
width: 50px; float: left;
|
||||
}
|
||||
|
||||
/* videos page */
|
||||
.videos {
|
||||
.video-top-wrapper {
|
||||
width: 200px; float: left;
|
||||
margin: 0px 10px 10px 0px;
|
||||
position: relative;
|
||||
|
||||
.video-js {
|
||||
width: 200px!important;
|
||||
height: 132px!important;
|
||||
}
|
||||
|
||||
.video-delete {
|
||||
position: absolute;
|
||||
opacity: 0;
|
||||
right: 0px;
|
||||
top: 0px;
|
||||
transition: opacity 0.5s;
|
||||
}
|
||||
|
||||
&:hover .video-delete {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* photo albums */
|
||||
@photosize: 150px;
|
||||
|
||||
|
@ -1689,7 +1659,6 @@ footer { height: 100px; display: table-row; }
|
|||
cursor:move;
|
||||
.roundbottom();
|
||||
.shadow();
|
||||
|
||||
}
|
||||
|
||||
/* the input field */
|
||||
|
|
|
@ -945,13 +945,14 @@ ul .sidebar-group-li .icon {
|
|||
width: 12px;
|
||||
}
|
||||
|
||||
.nets-ul, .fileas-ul, .categories-ul {
|
||||
.nets-ul, .fileas-ul, .categories-ul, .datebrowse-ul {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.nets-ul li,
|
||||
.fileas-ul li,
|
||||
.categories-ul li {
|
||||
.categories-ul li,
|
||||
.datebrowse-link {
|
||||
}
|
||||
|
||||
.nets-link {
|
||||
|
@ -4605,10 +4606,6 @@ div #datebrowse-sidebar.widget {
|
|||
|
||||
#id_npassword {}
|
||||
|
||||
#posted-date-selector {
|
||||
margin-left: 33px;
|
||||
}
|
||||
|
||||
#hide-comments-page-widget {
|
||||
margin-left: 40px;
|
||||
}
|
||||
|
|
|
@ -427,12 +427,16 @@ a.sidebar-group-element {
|
|||
color: #737373;
|
||||
}
|
||||
|
||||
#follow-sidebar form, #peoplefind-sidebar form, #netsearch-box form, #posted-date-selector {
|
||||
#follow-sidebar form, #peoplefind-sidebar form, #netsearch-box form {
|
||||
margin-left: 10px;
|
||||
margin-top: 3px;
|
||||
margin-bottom: 3px;
|
||||
}
|
||||
|
||||
.posted-date-selector-months {
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
#sidebar-ungrouped, .side-link {
|
||||
padding-top: 5px;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue