Skip to content

Commit

Permalink
Item9244: first commit of working codebase to svn
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk/HijaxPlugin@8055 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
DavidPatterson authored and DavidPatterson committed Jul 7, 2010
0 parents commit 812a726
Show file tree
Hide file tree
Showing 103 changed files with 4,326 additions and 0 deletions.
9 changes: 9 additions & 0 deletions data/System/GalleryForm.txt
@@ -0,0 +1,9 @@
%META:TOPICINFO{author="WikiAdmin" date="1256285030" format="1.1" reprev="1.1" version="1.1"}%
%META:TOPICPARENT{name="WebHome"}%
---+ %SPACEOUT{%TOPIC%}%

| *Name:* | *Type:* | *Size:* | *Values:* | *Tooltip message:* | *Attributes:* |
| TopicType | select | 1 | GroupMembers | Classify a topic by function | |
| Topic Title | text | 100 | | | |

%META:REVCOMMENT{comment_1=" " minor_1="1" ncomments="1" rev_1="1" t_1="1254488549"}%
26 changes: 26 additions & 0 deletions data/System/GalleryModules.txt
@@ -0,0 +1,26 @@
%META:TOPICINFO{author="WikiAdmin" date="1255619147" format="1.1" reprev="1.3" version="1.3"}%
%META:TOPICPARENT{name="AjaxRules"}%
<verbatim>
%STARTSECTION{"formatgallerylist"}%%FORMATLIST{"%LIST%" split="[\s,]" separator=" " format="$percntINCLUDE{$quot%SYSTEMWEB%.GalleryModules$quot section=$quot%GALLERYFORMAT%$quot USER=$quot$1$quot raw=$quoton$quot}$percnt"}%
%ENDSECTION{"formatgallerylist"}%

%STARTSECTION{"FORMAT:GroupMembers"}%<li>
<a class="thumb" href="%FORMFIELD{"Picture" topic="%USERSWEB%.%USER%" format="%PUBURL%/%USERSWEB%/%USER%/$value" default="%PUBURL%/%SYSTEMWEB%/PersonalInfoAddOn/_120___silhouette.gif" alttext="%PUBURL%/%SYSTEMWEB%/PersonalInfoAddOn/_120___silhouette.gif"}%" title="%USER%">
<img src="%FORMFIELD{"Picture" topic="%USERSWEB%.%USER%" format="%PUBURL%/%USERSWEB%/%USER%/$value" default="%PUBURL%/%SYSTEMWEB%/PersonalInfoAddOn/_120___silhouette.gif" alttext="%PUBURL%/%SYSTEMWEB%/PersonalInfoAddOn/_120___silhouette.gif"}%" alt="%USER%" />
</a>
<div class="username">%SPACEOUT{%USER%}%</div>
<div class="caption">
<div class="image-title">%USER% is...</div>
<div class="image-desc">
%SEARCH{"ResponsiblePerson = '%USER%' AND TopicType = 'TermsOfReference'" type="query" nonoise="on" format="[[$web.$topic][$percntFORMFIELD{$quotJobTitle$quot topic=$quot$web.$topic$quot default=$quot(no title defined for this position)$quot}$percnt]]$n"}%
</div>
<!-- USER% says...<br />
INCLUDE{"%USERSWEB%.%USER%"}% -->
</div>
</li>
%ENDSECTION{"FORMAT:GroupMembers"}%

%STARTSECTION{"LIST:GroupMembers"}%%SEARCH{"*" nonoise="on" topic="%USERGROUP%" web="%USERSWEB%" format="$pattern(.*[\t\s]*\* Set GROUP = (.*?)[\r\n].*)"}%%ENDSECTION{"LIST:GroupMembers"}%
</verbatim>

%META:REVCOMMENT{comment_1=" " minor_1="1" ncomments="1" rev_1="3" t_1="1255618191"}%
9 changes: 9 additions & 0 deletions data/System/GalleryViewTemplate.txt
@@ -0,0 +1,9 @@
%META:TOPICINFO{author="WikiAdmin" date="1258378584" format="1.1" version="1.3"}%
%META:TOPICPARENT{name="WebHome"}%
%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"content"}%
%INCLUDE{"%SYSTEMWEB%.GalleryViewer" GALLERYTITLE="---+ %FORMFIELD{"TopicTitle" topic="%BASEWEB%.%BASETOPIC%"}%" GALLERYTYPE="%FORMFIELD{"TopicType" topic="%BASEWEB%.%BASETOPIC%"}%"}%
%TMPL:END%
%TMPL:DEF{"form"}%%TMPL:END%

%META:REVCOMMENT{comment_1=" " minor_1="1" ncomments="1" rev_1="27" t_1="1255614726"}%
101 changes: 101 additions & 0 deletions data/System/GalleryViewer.txt
@@ -0,0 +1,101 @@
%META:TOPICINFO{author="WikiAdmin" date="1256568256" format="1.1" reprev="1.5" version="1.5"}%
%META:TOPICPARENT{name="WebHome"}%
<link rel="stylesheet" href="%PUBURLPATH%/%SYSTEMWEB%/NuSkin/galleriffic.css" type="text/css" />
%GALLERYTITLE%

<div id="gallery" class="galContent">
<div id="galControls" class="galControls"></div>
<div id="galLoading" class="galLoader"></div>
<div id="galSlideshow" class="galSlideshow"></div>
<div id="galCaption" class="galEmbox"></div>
</div>
<div id="galThumbs" class="galNavigation">
<ul class="thumbs noscript">
%INCLUDE{"%SYSTEMWEB%.GalleryModules" LIST="%INCLUDE{"%SYSTEMWEB%.GalleryModules" section="LIST:%GALLERYTYPE%" raw="on"}%" GALLERYFORMAT="FORMAT:%GALLERYTYPE%" section="formatgallerylist" raw="on"}%
</ul>
</div>
<div class="twikiClear"></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/NuSkin/jquery.galleriffic.js"></script>
<script type="text/javascript">
// We only want these styles applied when javascript is enabled
$('div.galNavigation').css({'width' : '48%', 'float' : 'left'});
$('div.galContent').css('display', 'block');

// Initially set opacity on thumbs and add
// additional styling for hover effect on thumbs
var onMouseOutOpacity = 0.67;
$('#galThumbs ul.thumbs li').css('opacity', onMouseOutOpacity)
.hover(
function () {
$(this).not('.selected').fadeTo('fast', 1.0);
},
function () {
$(this).not('.selected').fadeTo('fast', onMouseOutOpacity);
}
);

function scaleImage() {
var max_height = 350; //Sets the max height, in pixels, for every image
$(".galSlideshow img").each(function(){
var width = $(this).width();
var height = $(this).height();
// alert(height + " " + width);
if (height > max_height) {
var ratio = ( width / height );
var new_height= max_height;
var new_width = (new_height * ratio);
// alert(new_height + " " + new_width);
$(this).height(new_height).width(new_width);
}
});
}

$(document).ready(function() {
// Initialize Advanced Galleriffic Gallery
var galleryAdv = $('#gallery').galleriffic('#galThumbs', {
delay: 3000,
numThumbs: 9,
preloadAhead: 9,
enableTopPager: true,
enableBottomPager: true,
imageContainerSel: '#galSlideshow',
controlsContainerSel: '#galControls',
captionContainerSel: '#galCaption',
loadingContainerSel: '#galLoading',
renderSSControls: true,
renderNavControls: true,
playLinkText: 'Play Slideshow',
pauseLinkText: 'Pause Slideshow',
prevLinkText: '&lsaquo; Previous Entry ',
nextLinkText: 'Next Entry &rsaquo;',
nextPageLinkText: 'Next &rsaquo;',
prevPageLinkText: '&lsaquo; Prev',
enableHistory: false,
autoStart: false,
onChange: function(prevIndex, nextIndex) {
$('#galThumbs ul.thumbs').children()
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
.eq(nextIndex).fadeTo('fast', 1.0);
},
onTransitionOut: function(callback) {
$('#galCaption').fadeTo('fast', 0.0);
$('#galSlideshow').fadeTo('fast', 0.0, callback);
},
onTransitionIn: function() {
$('#galSlideshow').fadeTo('fast', 1.0);
$('#galCaption').fadeTo('fast', 1.0);
if ( $.browser.msie && /6.0/.test(navigator.userAgent) ) scaleImage();
},
onPageTransitionOut: function(callback) {
$('#galThumbs ul.thumbs').fadeTo('fast', 0.0, callback);
},
onPageTransitionIn: function() {
$('#galThumbs ul.thumbs').fadeTo('fast', 1.0);
}
});
%IF{"defined user AND $ user != ''" then="$($quot.thumbs a.thumb[title='%URLPARAM{user}%']$quot).trigger($quotclick$quot);"}%
});
</script>

%META:REVCOMMENT{comment_1=" " minor_1="1" ncomments="1" rev_1="5" t_1="1256558184"}%
101 changes: 101 additions & 0 deletions data/System/GroupMembers.txt
@@ -0,0 +1,101 @@
%META:TOPICINFO{author="WikiAdmin" date="1256568256" format="1.1" reprev="1.5" version="1.5"}%
%META:TOPICPARENT{name="WebHome"}%
<link rel="stylesheet" href="%PUBURLPATH%/%SYSTEMWEB%/NuSkin/galleriffic.css" type="text/css" />
---+ Members of the %BASEWEB% Group

<div id="gallery" class="galContent">
<div id="galControls" class="galControls"></div>
<div id="galLoading" class="galLoader"></div>
<div id="galSlideshow" class="galSlideshow"></div>
<div id="galCaption" class="galEmbox"></div>
</div>
<div id="galThumbs" class="galNavigation">
<ul class="thumbs noscript">
%INCLUDE{"%SYSTEMWEB%.GalleryModules" LIST="%SEARCH{"*" nonoise="on" topic="%USERGROUP%" web="%USERSWEB%" format="$pattern(.*[\t\s]*\* Set GROUP = (.*?)[\r\n].*)"}%" GALLERYFORMAT="groupmember" section="formatgallerylist" raw="on"}%
</ul>
</div>
<div class="twikiClear"></div>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/NuSkin/jquery.galleriffic.js"></script>
<script type="text/javascript">
// We only want these styles applied when javascript is enabled
$('div.galNavigation').css({'width' : '48%', 'float' : 'left'});
$('div.galContent').css('display', 'block');

// Initially set opacity on thumbs and add
// additional styling for hover effect on thumbs
var onMouseOutOpacity = 0.67;
$('#galThumbs ul.thumbs li').css('opacity', onMouseOutOpacity)
.hover(
function () {
$(this).not('.selected').fadeTo('fast', 1.0);
},
function () {
$(this).not('.selected').fadeTo('fast', onMouseOutOpacity);
}
);

function scaleImage() {
var max_height = 350; //Sets the max height, in pixels, for every image
$(".galSlideshow img").each(function(){
var width = $(this).width();
var height = $(this).height();
// alert(height + " " + width);
if (height > max_height) {
var ratio = ( width / height );
var new_height= max_height;
var new_width = (new_height * ratio);
// alert(new_height + " " + new_width);
$(this).height(new_height).width(new_width);
}
});
}

$(document).ready(function() {
// Initialize Advanced Galleriffic Gallery
var galleryAdv = $('#gallery').galleriffic('#galThumbs', {
delay: 3000,
numThumbs: 9,
preloadAhead: 9,
enableTopPager: true,
enableBottomPager: true,
imageContainerSel: '#galSlideshow',
controlsContainerSel: '#galControls',
captionContainerSel: '#galCaption',
loadingContainerSel: '#galLoading',
renderSSControls: true,
renderNavControls: true,
playLinkText: 'Play Slideshow',
pauseLinkText: 'Pause Slideshow',
prevLinkText: '&lsaquo; Previous User ',
nextLinkText: 'Next User &rsaquo;',
nextPageLinkText: 'Next &rsaquo;',
prevPageLinkText: '&lsaquo; Prev',
enableHistory: false,
autoStart: false,
onChange: function(prevIndex, nextIndex) {
$('#galThumbs ul.thumbs').children()
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
.eq(nextIndex).fadeTo('fast', 1.0);
},
onTransitionOut: function(callback) {
$('#galCaption').fadeTo('fast', 0.0);
$('#galSlideshow').fadeTo('fast', 0.0, callback);
},
onTransitionIn: function() {
$('#galSlideshow').fadeTo('fast', 1.0);
$('#galCaption').fadeTo('fast', 1.0);
if ( $.browser.msie && /6.0/.test(navigator.userAgent) ) scaleImage();
},
onPageTransitionOut: function(callback) {
$('#galThumbs ul.thumbs').fadeTo('fast', 0.0, callback);
},
onPageTransitionIn: function() {
$('#galThumbs ul.thumbs').fadeTo('fast', 1.0);
}
});
%IF{"defined user AND $ user != ''" then="$($quot.thumbs a.thumb[title='%URLPARAM{user}%']$quot).trigger($quotclick$quot);"}%
});
</script>

%META:REVCOMMENT{comment_1=" " minor_1="1" ncomments="1" rev_1="5" t_1="1256558184"}%
10 changes: 10 additions & 0 deletions data/System/HierarchyForm.txt
@@ -0,0 +1,10 @@
%META:TOPICINFO{author="WikiAdmin" date="1256285030" format="1.1" reprev="1.1" version="1.1"}%
%META:TOPICPARENT{name="WebHome"}%
---+ %SPACEOUT{%TOPIC%}%

| *Name:* | *Type:* | *Size:* | *Values:* | *Tooltip message:* | *Attributes:* |
| TopicType | select | 1 | OrganigramTopic | Classify a topic by function | |
| Topic Title | text | 100 | | | |
| Children Type | select | 1 | TermsOfReference | Select the type of children to shown in the hierarchy | |

%META:REVCOMMENT{comment_1=" " minor_1="1" ncomments="1" rev_1="1" t_1="1254488549"}%
58 changes: 58 additions & 0 deletions data/System/HierarchyModules.txt
@@ -0,0 +1,58 @@
%META:TOPICINFO{author="WikiAdmin" date="1255619147" format="1.1" reprev="1.3" version="1.3"}%
%META:TOPICPARENT{name="AjaxRules"}%
<verbatim>
%STARTSECTION{"tree"}%%TREEVIEW{topic="%topic%" web="%web%" format="* $percntINCLUDE{$quot%SYSTEMWEB%.HierarchyModules$quot section=$quotITEM:%TYPE%$quot web=$quot$web$quot topic=$quot$topic$quot raw=$quoton$quot}$percnt$n" levelprefix=" " nodiv="1" startlevel="1"}%%ENDSECTION{"tree"}%

%STARTSECTION{"ITEM:TermsOfReference"}%<div class='reveal'><a class='hierarchyLink' web='%web%' topic='%topic%' href='%SCRIPTURL{view}%/%web%/%topic%'>%FORMFIELD{"JobTitle" topic="%web%.%topic%" default="!%topic%" alttext="!%topic%"}%</a>%FORMFIELD{"ResponsiblePerson" topic="%web%.%topic%" format="<a class='meta' href='%SCRIPTURL{view}%/%web%/GroupMembers?user=$value'>$value</a>"}%<div class='subAction hidden'></div></div>%ENDSECTION{"ITEM:TermsOfReference"}%

%STARTSECTION{"ADD:TermsOfReference"}%<form>
<div class='foswikiFormSteps'>
<div id='' class='oopsMessage hidden'></div>
<div class='foswikiFormStep'>
<label for="JobTitle"> *JobTitle:* </label>

<input type="text" name="JobTitle" size="80" class="urlParam topicTitle" value="" />

<label for="ReportsTo"> *Reports to:* </label>

<input type="text" disabled="disabled" size="80" name="ReportsTo" class="subTo" value="&lt;the Group Leader doesn't report to anyone within this group&gt;" />

<label for="ResponsiblePerson"> *Responsible Person:* </label>

<select multiple size="5" id="userlist" class="urlParam" name="ResponsiblePerson">
%SEARCH{"*" nonoise="on" topic="%USERGROUP%" web="%USERSWEB%" format="$percntFORMATLIST{$quot$pattern(.*[\t\s]*\* Set GROUP = (.*?)[\r\n].*)$quot split=$quot[\s,]$quot separator=$quot $quot format=$quot<option value='$dollar1'>$dollarpercntSPACEOUT{$dollar1}$dollarpercnt</option>$quot}$percnt"}%
</select>

<input type="hidden" name="templatetopic" value="TermsOfReferenceTemplate" class="urlParam" />
<input type="hidden" name="topicparent" value="%BASETOPIC%" class="urlParam" />
<input type="hidden" name="topic" value="%BASETOPIC%AUTOINC01" class="urlParam" />
<input type="hidden" name="hijax" value="hierarchy" class="urlParam" />
<input type="hidden" name="cover" value="ajax" class="urlParam" />
<input type="hidden" name="nocontent" value="1" class="urlParam" />
</div>
<div class='foswikiFormStep'>
<input type="submit" class="foswikiSubmit clicktoadd clicktoaction" value="Submit" /> <input type="submit" class="foswikiSubmit clicktoclose" value="Cancel" />
</div>
</div>
</form>%ENDSECTION{"ADD:TermsOfReference"}%

%STARTSECTION{"setHome:TermsOfReference"}%true%ENDSECTION{"setHome:TermsOfReference"}%

%STARTSECTION{"rootMessage:TermsOfReference"}%---+++ Create the Group Leader position by entering the Job Title (and selecting the Responsible Person)%ENDSECTION{"rootMessage:TermsOfReference"}%

%STARTSECTION{"confirmdelete"}%<form>
<div class='foswikiFormSteps'>
<div id='' class='oopsMessage hidden'></div>
<div class='foswikiFormStep'>
<h3>Are you sure you want to delete this position?</h3>
Any sub-positions will be left without a parent.
</div>
<div class='foswikiFormStep'>
<input type="submit" class="foswikiSubmit clicktodelete clicktoaction" value="Delete" /> <input type="submit" class="foswikiSubmit clicktoclose" value="Cancel" />
</div>
</div>
</form>%ENDSECTION{"confirmdelete"}%

</verbatim>

%META:REVCOMMENT{comment_1=" " minor_1="1" ncomments="1" rev_1="3" t_1="1255618191"}%
9 changes: 9 additions & 0 deletions data/System/HierarchyViewTemplate.txt
@@ -0,0 +1,9 @@
%META:TOPICINFO{author="WikiAdmin" date="1258378584" format="1.1" version="1.3"}%
%META:TOPICPARENT{name="WebHome"}%
%TMPL:INCLUDE{"view"}%
%TMPL:DEF{"content"}%
%INCLUDE{"%SYSTEMWEB%.HierarchyViewer" hierarchyweb="%BASEWEB%" hierarchytopic="%BASETOPIC%"}%
%TMPL:END%
%TMPL:DEF{"form"}%%TMPL:END%

%META:REVCOMMENT{comment_1=" " minor_1="1" ncomments="1" rev_1="27" t_1="1255614726"}%

0 comments on commit 812a726

Please sign in to comment.