[Slashdotjp-dev 481] CVS update: slashjp/plugins/SearchToo/templates

Back to archive index

Tatsuki SUGIURA sugi****@users*****
2006年 7月 12日 (水) 20:41:57 JST


Index: slashjp/plugins/SearchToo/templates/commentsearch;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/commentsearch;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/commentsearch;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,38 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+commentsearch
+__template__
+[% IF constants.search_too_class == 'Slash::SearchToo::Classic' %]
+<p>This search covers only subjects of comments that are posted.</p>
+[% END %]
+
+[% FOREACH comment=results.records %]
+	[% user_email = Slash.db.getUser(comment.uid, ['fakeemail', 'nickname']) %]
+	<b><a href="[% gSkin.rootdir %]/comments.pl?cid=[% comment.cid %]&amp;sid=[% comment.did %]">[% comment.subject %]</a></b>
+
+	by <a href="mailto:[% user_email.fakeemail | strip_paramattr_nonhttp %]">[% user_email.nickname | strip_literal %]</a> on [% Slash.timeCalc(comment.date) %]<br>
+	
+	Attached to:  <a href="[% comment.url %]">[% comment.title %]</a> posted on [% Slash.timeCalc(comment.ts) %]<br>
+	[% IF comment.score %]
+		Score: [% comment.score %]<br>
+	[% END %]
+	
+	<p>
+[% END %]
+[% PROCESS pagination %]
+<p>
+
+
+__seclev__
+100
+__version__
+$Id: commentsearch;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/data;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/data;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/data;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,83 @@
+__section__
+default
+__description__
+Repository for random data elements.
+
+* value = the name of the data element to retrieve
+
+Each data element may have any number of other variables.
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+data
+__template__
+[% SWITCH value %]
+
+[% CASE 'nousers' %]
+	[% returnme.data_constant = 1 %]
+	No usernames were found that match your query.
+
+[% CASE 'nostories' %]
+	[% returnme.data_constant = 1 %]
+	No stories were found that match your query.
+
+[% CASE 'nocomments' %]
+	[% returnme.data_constant = 1 %]
+	No comments were found that match your query.
+
+[% CASE 'nopolls' %]
+	[% returnme.data_constant = 1 %]
+	No poll questions were found that match your query.
+
+[% CASE 'nojournals' %]
+	[% returnme.data_constant = 1 %]
+	No journals were found to match your query.
+
+[% CASE 'nosubmissions' %]
+	[% returnme.data_constant = 1 %]
+	No submissions were found to match your query.
+
+[% CASE 'norss' %]
+	[% returnme.data_constant = 1 %]
+	No rss entries were found to match your query.
+
+[% CASE 'all_sections' %]
+	[% returnme.data_constant = 1 %]
+	All Sections
+
+[% CASE 'all_topics' %]
+	[% returnme.data_constant = 1 %]
+	All Topics
+
+[% CASE 'all_authors' %]
+	[% returnme.data_constant = 1 %]
+	All Authors
+
+[% CASE 'all_subsections' %]
+	[% returnme.data_constant = 1 %]
+	All Subsections
+
+[% CASE 'search_titlebar_title' %]
+	[% IF text.length > 0 %]
+		Searching For: [% text %]
+	[% ELSE %]
+		Search [% constants.sitename %]
+	[% END %]
+
+[% CASE 'search_header_title' %]
+	[% IF text.length > 0 %]
+		Search '[% text %]'
+	[% ELSE %]
+		Search [% constants.sitename %]
+	[% END %]
+
+[% END %]
+
+__seclev__
+10000
+__version__
+$Id: data;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/journalsearch;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/journalsearch;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/journalsearch;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,32 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+journalsearch
+__template__
+[% FOREACH journal=results.records %]
+	<b><a href="[% gSkin.rootdir %]/~[% journal.nickname | strip_paramattr %]/journal/[% journal.id %]">[% journal.description %]</a></b><br>
+	On [% Slash.timeCalc(journal.date) %]<br>
+	[% shorten( Slash.strip_notags(journal.article) ) %]<br>
+	
+	Author: <a href="[% gSkin.rootdir %]/~[% journal.nickname | strip_paramattr %]/">[% journal.nickname | strip_literal %]</a>
+	[% IF journal.score %]<br>
+	Score: ([% journal.score %])
+	[% END %]
+	
+	<p>
+[% END %]
+[% PROCESS pagination %]
+<p>
+
+__seclev__
+100
+__version__
+$Id: journalsearch;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/nosearch;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/nosearch;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/nosearch;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,29 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+nosearch
+__template__
+<blockquote>
+<p>Sorry, search is down at the moment.
+Until it's back up, you may wish to search
+[% constants.sitename %] through Google:<br>
+<form method="get" action="http://www.google.com/search">
+	<input type="text" name="query" value="[% form.query | strip_attribute %]" size="20">
+	<input type="hidden" name="as_sitesearch" value="[% gSkin.basedomain %]">
+	<input type="submit" value="Google [% constants.sitename %]">
+</form>
+</blockquote>
+<p>
+
+__seclev__
+100
+__version__
+$Id: nosearch;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/pagination;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/pagination;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/pagination;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,35 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+pagination
+__template__
+[% IF (results.records_start > 0);
+	back = results.records_start - results.records_max;
+	IF back < 0;  back = 0;  END;
+
+	last = results.records_max;
+	IF last > results.records_start; last = results.records_start; END;
+%]
+<a href="[% gSkin.rootdir %][% env.script_name %]?[% args %]&amp;start=[% back %]">&lt;Last [% last %] matches</a>
+[% END;
+
+   IF ( (results.records_start > 0) && results.records_next );
+%] | [%
+   END;
+
+   IF results.records_next;
+%]
+<a href="[% gSkin.rootdir %][% env.script_name %]?[% args %]&amp;start=[% results.records_next %]">Next [% results.records_max %] matches&gt;</a>
+[% END %]
+__seclev__
+100
+__version__
+$Id: pagination;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/pollsearch;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/pollsearch;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/pollsearch;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,33 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+pollsearch
+__template__
+[% FOREACH poll = results.records %]
+	[% skin = Slash.db.getSkin(poll.skin) %]
+	[% link = skin.url ? skin.url : gSkin.rootdir %]
+	<b><a href="[% link %]/pollBooth.pl?qid=[% poll.qid %]">[% poll.question %]</a></b><br>
+	
+	On [% Slash.timeCalc(poll.date) %]<br>
+	Voters: [% poll.voters %]<br>
+	[% IF poll.score %]
+			Score: [% poll.score %]
+	[% END %]
+	
+	<p>
+[% END %]
+[% PROCESS pagination %]
+<p>
+
+__seclev__
+100
+__version__
+$Id: pollsearch;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/searchform;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/searchform;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/searchform;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,154 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+searchform
+__template__
+[% IF op == 'comments' || op == 'stories' || op == 'submissions' || op == 'polls';
+	tref = Slash.db.getTopic(form.tid);
+   END;
+   IF op == 'stories' || op == 'submissions';
+	sections = 1;
+	topics   = 1;
+   END;
+%]
+
+<table width="100%" cellpadding="3" cellspacing="0" border="0"><tr><td>
+
+[% IF tref.image %]
+	<img src="[% constants.imagedir %]/topics/[% tref.image %]"
+	align="RIGHT" border="0" alt="[% tref.alttext %]"
+	hspace="30" vspace="10" width="[% tref.width %]"
+	height="[% tref.height %]">
+[% END %]
+
+<form action="[% gSkin.rootdir %][% env.script_name %]" method="get">
+	<br>
+	<input type="hidden" name="tid" value="[% form.tid %]">
+	<input type="text" size="40" name="query" value="[% form.query %]">
+	[% IF op == 'stories';
+		authors = Slash.db.getDescriptions("all-authors");
+		newauthors = { "" => Slash.getData("all_authors") };
+		FOREACH author = authors.keys;
+			newauthors.$author = authors.$author;
+		END;
+		Slash.createSelect("author", newauthors, form.author, 1, 0, 1);
+	END %]
+
+	[% sort = Slash.db.getDescriptions('sortorder');
+	   Slash.createSelect("sort", sort, form.sort, 1)
+	%]
+
+	<input type="submit" value="Search"><br>
+
+	<input type="radio" name="op" value="stories"[% IF op == 'stories'; constants.markup_checked_attribute; END %]> Stories
+	<input type="radio" name="op" value="comments"[% IF op == 'comments'; constants.markup_checked_attribute; END %]> Comments
+	<input type="radio" name="op" value="users"[% IF op == 'users'; constants.markup_checked_attribute; END %]> Users
+	<input type="radio" name="op" value="polls"[% IF op == 'polls'; constants.markup_checked_attribute; END %]> Polls
+	[% IF constants.search_journal_enabled %]
+		<input type="radio" name="op" value="journals"[% IF op == 'journals'; constants.markup_checked_attribute; END %]> Journals
+	[% END %]
+	[% IF constants.rss_store %]
+		[% IF constants.search_rss_enabled || user.is_admin %]
+			<input type="radio" name="op" value="rss"[% IF op == 'rss'; constants.markup_checked_attribute; END %]> RSS Headlines
+		[% END %]
+	[% END %]
+	[% IF constants.submiss_view || user.is_admin %]
+		<input type="radio" name="op" value="submissions"[% IF op == 'submissions'; constants.markup_checked_attribute; END %]> Submissions
+	[% END %]
+	<br>
+
+	[% IF op == 'users' %]
+	<input type="checkbox" name="journal_only" value="1"[% IF form.journal_only == '1'; constants.markup_checked_attribute; END %]> Users with Journals
+	[% END %]
+
+	[% IF op == 'submissions';
+		submission_notes = Slash.db.getDescriptions('submission-notes');
+		Slash.createSelect("note", submission_notes, form.note, 1, 0, 1);
+	END %]
+
+	[% IF op == 'comments';
+		formats = Slash.db.getDescriptions('threshcodes');
+		threshold_select = Slash.createSelect('threshold', formats, form.threshold, 1);
+	%]
+		Threshold [% threshold_select %]
+		<input type="hidden" name="sid" value="[% form.sid %]">
+	[% END %]
+	<p>
+</form>
+
+[% IF sections || topics %]
+</td></tr><tr><td>
+[%
+   topics = Slash.db.getTopicTree();
+
+   listnames = {};
+   IF form.tid;
+      topic_children = Slash.db.getAllChildrenTids(form.tid);
+   ELSE;
+      topic_children = topics.${constants.mainpage_nexus_tid}.children;
+   END;
+
+   FOREACH t = topic_children;
+      NEXT IF !topics.$t.searchable;
+      listnames.${topics.$t.textname} = t;
+   END;
+   
+   listcount = listnames.size / 3;
+   listex = listnames.size mod 3;
+   i = 0;
+%]
+<b><a href="[% gSkin.rootdir %][% env.script_name %]">[% constants.sitename %]</a>
+[% IF !topics.${form.tid}.nexus && topics.${form.tid}.parent;
+   thisparent = topics.${form.tid}.parent.keys.nsort.0;
+   IF thisparent == constants.mainpage_nexus_tid;
+      thisparent = topics.${form.tid}.parent.keys.nsort.1;
+   END;
+   IF thisparent %]
+:: <a href="[% gSkin.rootdir %][% env.script_name %]?tid=[% thisparent %]">[% topics.$thisparent.textname %]</a>
+[% END; END; IF form.tid %]
+:: <a href="[% gSkin.rootdir %][% env.script_name %]?tid=[% form.tid %]">[% topics.${form.tid}.textname %]</a>
+[% END; IF listnames.size %]
+Topics</b>
+[% END %]
+</td></tr><tr><td>
+
+[% IF listnames.size %]
+<table cellpadding="10" width="100%">
+<tr><td valign="top">
+
+<ul>
+[% FOREACH s = listnames.keys.sort -%]
+<li><a href="[% gSkin.rootdir %][% env.script_name %]?tid=[% listnames.$s %]">[% s %]</a>[%
+   IF user.is_admin %] [<a href="[% gSkin.rootdir %]/admin.pl?op=topics&amp;nexttid=[% listnames.$s %]">edit</a>] [%
+END %]</li>
+[%- i = i + 1;
+    IF i == listcount.int || i == 0;
+       IF i == listcount.int && listex;
+          listext = listex = 1;
+          i = -1;
+          NEXT;
+       END;
+%]</ul></td>
+<td valign="top">
+
+<ul>[% END; END # FOREACH %]
+</td></tr>
+</table>
+[% END # IF listnames.size %]
+
+[% END # IF sections || topics %]
+</td></tr></table>
+
+
+__seclev__
+100
+__version__
+$Id: searchform;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/searchrss;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/searchrss;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/searchrss;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,127 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+searchrss
+__template__
+[%
+rss.image = 1;
+rss.items = [];
+rss.channel = {
+	title       => "$constants.sitename Search",
+	description => "$constants.sitename Search",
+	link        => "$gSkin.absolutedir$env.script_name",
+};
+
+IF op == 'stories';
+	FOREACH entry = results.records;
+		thisurl  = Slash.db.getSkin(entry.primaryskid).url || gSkin.absolutedir;
+		thislink = thisurl _ '/article.pl?sid=' _ entry.sid;
+		rss.items.push({
+			title		=> entry.title,
+			description	=> entry.introtext,
+			link		=> thislink,
+			time		=> entry.time,
+			creator		=> Slash.db.getUser(entry.uid, 'nickname'),
+		});
+	END;
+	rss.channel.title       = '$constants.sitename Story Search';
+	rss.channel.description = '$constants.sitename Story Search';
+	rss.rdfitemdesc         = constants.search_rdfitemdesc;
+	rss.rdfitemdesc_html    = constants.search_rdfitemdesc_html;
+
+ELSIF op == 'comments';
+	FOREACH entry = results.records;
+		thislink = gSkin.absolutedir _ '/comments.pl?sid=' _ entry.did _ '&cid=' _ entry.cid;
+		thistime = Slash.timeCalc(entry.date);
+		rss.items.push({
+			title		=> "$entry.subject ($thistime)",
+			link		=> thislink,
+			time		=> entry.date,
+			creator		=> Slash.db.getUser(entry.uid, 'nickname'),
+		});
+	END;
+	rss.channel.title       = '$constants.sitename Comment Search';
+	rss.channel.description = '$constants.sitename Comment Search';
+
+ELSIF op == 'users';
+	FOREACH entry = results.records;
+		thisnick = entry.nickname | fixparam;
+		thislink = gSkin.absolutedir _ '/~' _ thisnick;
+		rss.items.push({
+			title		=> entry.nickname,
+			link		=> thislink,
+			time		=> entry.journal_last_entry_date,
+		});
+	END;
+	rss.channel.title       = '$constants.sitename User Search';
+	rss.channel.description = '$constants.sitename User Search';
+
+ELSIF op == 'polls';
+	FOREACH entry = results.records;
+		thisurl  = Slash.db.getSkin(entry.primaryskid).url || gSkin.absolutedir;
+		thislink = thisurl _ '/pollBooth.pl?qid=' _ entry.qid;
+		thistime = Slash.timeCalc(entry.date);
+		rss.items.push({
+			title		=> entry.nickname,
+			link		=> thislink,
+			time		=> entry.date,
+		});
+	END;
+	rss.channel.title       = '$constants.sitename Poll Search';
+	rss.channel.description = '$constants.sitename Poll Search';
+
+ELSIF op == 'journals';
+	FOREACH entry = results.records;
+		thisnick = entry.nickname | fixparam;
+		thislink = gSkin.absolutedir _ '/~' _ thisnick _ '/journal/' _ entry.id;
+		thistime = Slash.timeCalc(entry.date);
+		rss.items.push({
+			title		=> "$entry.description ($thistime)",
+			link		=> thislink,
+			time		=> entry.date,
+			creator		=> entry.nickname,
+		});
+	END;
+	rss.channel.title       = '$constants.sitename Journal Search';
+	rss.channel.description = '$constants.sitename Journal Search';
+
+ELSIF op == 'submissions';
+	FOREACH entry = results.records;
+		thislink = gSkin.absolutedir _ '/submit.pl?subid=' _ entry.subid;
+		thistime = Slash.timeCalc(entry.date);
+		rss.items.push({
+			title		=> "$entry.subj ($thistime)",
+			description	=> entry.story,
+			link		=> thislink,
+			time		=> entry.time,
+		});
+	END;
+	rss.channel.title       = '$constants.sitename Submission Search';
+	rss.channel.description = '$constants.sitename Submission Search';
+	rss.rdfitemdesc         = constants.search_rdfitemdesc;
+	rss.rdfitemdesc_html    = constants.search_rdfitemdesc_html;
+
+ELSIF op == 'test';
+	FOREACH entry = results.records;
+		rss.items.push({
+			title		=> entry,
+			link		=> gSkin.absolutedir _ '/search.pl?op=test'
+		});
+	END;
+	rss.channel.title       = '$constants.sitename Test Search';
+	rss.channel.description = '$constants.sitename Test Search';
+
+END;
+%]
+__seclev__
+100
+__version__
+$Id: searchrss;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/storysearch;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/storysearch;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/storysearch;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,48 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+storysearch
+__template__
+[% FOREACH story=results.records %]
+	[% skin = Slash.db.getSkin(story.skid);
+	   storylinks = Slash.linkStory({
+		section	=> skin.name,
+		tid	=> story.tid,
+		tids	=> story.tids,
+		sid	=> story.sid,
+		'link'	=> story.title
+	}) 
+	%]
+<a href="[% storylinks.0 | strip_attribute %]"[% IF storylinks.2 %] TITLE="[% storylinks.2 | strip_attribute %]"[% END %]>[% storylinks.1 | strip_html %]</a>
+[% IF user.is_admin %][ <a href="[% gSkin.rootdir %]/admin.pl?op=edit&amp;sid=[% story.sid %]">Edit</a> ][% END %]
+	<br>
+	On [% Slash.timeCalc(story.time, '%B %o, %Y') %] with [% story.commentcount %] comments<br>
+	[% shorten( Slash.strip_notags(story.introtext) ) %]<br>
+	
+		[% IF skin.name == 'mainpage' %]<a href="[% constants.real_rootdir %]/">Main</a>[% ELSE %]<a href="[% skin.url ? skin.url : "$gSkin.rootdir$env.script_name?section=$skin.name" %]">[% skin.title %]</a>[% END %] &gt;
+		[% FOREACH tid = story.tids %]
+			[% topic = Slash.db.getTopic(tid) %]
+			<a href="[% gSkin.rootdir %][% env.script_name %]?tid=[% tid %]">[% topic.textname %]</a>[% ",&nbsp;" UNLESS loop.last %]
+		[% END %]
+		<br>
+		[% IF story.score %]
+			Score: [% story.score %]<br>
+		[% END %] 
+	
+	<p>
+[% END %]
+[% PROCESS pagination %]
+<p>
+
+__seclev__
+100
+__version__
+$Id: storysearch;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/subsearch;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/subsearch;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/subsearch;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,44 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+subsearch
+__template__
+<p>
+[% FOREACH entry = results.records %]
+		<b><a href="[% gSkin.rootdir %]/submit.pl?op=viewsub&subid=[% entry.subid %]">[% entry.subj %]</a></b><br>
+		On [% Slash.timeCalc(entry.time) %]<br>
+		[% shorten( Slash.strip_notags(entry.story) ) %]<br>
+		
+		[% submission_state = Slash.db.getDescriptions('submission-state') %]
+		[% skin = Slash.db.getSkin(entry.skid) %]
+		Section: [% IF skin.name == 'mainpage' %]<a href="[% constants.real_rootdir %]/submit.pl?op=list">Main</a>[% ELSE %]<a href="[% skin.url ? skin.url : gSkin.rootdir %]/submit.pl?section=[% entry.skin %]&amp;op=list">[% skin.title %]</a>[% END %] &gt;
+		[% FOREACH tid = entry.tid %]
+			[% topic = Slash.db.getTopic(tid) %]
+			<a href="[% gSkin.rootdir %][% env.script_name %]?tid=[% tid %]">[% topic.textname %]</a>[% ",&nbsp;" UNLESS loop.last %]
+		[% END %]<br>
+		State: [% del = entry.del; submission_state.$del %]<br>
+		[% IF entry.note %]
+		Note: [% entry.note %]<br>
+		[% END %]
+		[% IF entry.score %]
+			Score: [% entry.score %]<br>
+		[% END %]
+		
+		<p>
+[% END %]
+<p>
+[% PROCESS pagination %]
+<p>
+
+__seclev__
+100
+__version__
+$Id: subsearch;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $
Index: slashjp/plugins/SearchToo/templates/usersearch;searchtoo;default
diff -u /dev/null slashjp/plugins/SearchToo/templates/usersearch;searchtoo;default:1.1
--- /dev/null	Wed Jul 12 20:41:57 2006
+++ slashjp/plugins/SearchToo/templates/usersearch;searchtoo;default	Wed Jul 12 20:41:57 2006
@@ -0,0 +1,53 @@
+__section__
+default
+__description__
+
+__title__
+
+__page__
+searchtoo
+__lang__
+en_US
+__name__
+usersearch
+__template__
+<table width="90%" border="0" cellpadding="2" cellspacing="0">
+	[% FOREACH thisuser=results.records %]
+		<tr>
+		[% IF thisuser.score %]
+			<td valign="TOP">
+				[% thisuser.score %]
+			</td>
+		[% END %]
+		<td valign="TOP">
+			<a href="[% gSkin.rootdir %]/~[% thisuser.nickname | strip_paramattr %]/">[% thisuser.nickname | strip_literal %]</a> &nbsp;
+			[% IF thisuser.fakeemail %]
+				([% thisuser.uid %]) email: <a href="mailto:[% thisuser.fakeemail | strip_paramattr_nonhttp %]">[% thisuser.fakeemail | strip_literal %]</a> <br>
+			[% ELSE %]
+				([% thisuser.uid %])<br>
+			[% END %]
+		</td>
+		[% IF thisuser.journal_last_entry_date %]
+			<td valign="TOP">
+				<a href="[% gSkin.rootdir %]/~[% thisuser.nickname | strip_paramattr %]/journal/"><b><em> Last Journal entry [% Slash.timeCalc(thisuser.journal_last_entry_date) %]</em></a>
+			</td>
+		[% ELSE %]
+			<td valign="TOP">
+				&nbsp;
+			</td>
+		[% END %]
+		[% UNLESS user.is_anon %]
+			<td valign="TOP">
+				[% PROCESS zoo_icons person=thisuser.uid %]
+			</td>
+		[% END %]
+		</tr>
+	[% END %]
+</table>
+[% PROCESS pagination %]
+<p>
+
+__seclev__
+100
+__version__
+$Id: usersearch;searchtoo;default,v 1.1 2006/07/12 11:41:57 sugi Exp $


Slashdotjp-dev メーリングリストの案内
Back to archive index