34 require_once
"../../include/config.inc";
35 require_once
"../datamodel/document.inc";
36 require_once
"../../include/permissions.inc";
37 require_once
"../datamodel/journal.inc";
38 require_once
"../datamodel/region.inc";
39 require_once
"../datamodel/topic.inc";
40 require_once
"../datamodel/setting.inc";
41 require_once
"../datamodel/sample.inc";
42 require_once
"../datamodel/grp.inc";
43 require_once
"../../framework/tree.inc";
45 $regions = query(Region,
"ORDER BY region_id");
48 $grpTopics= groupedQuery(GrpTopicXref,
"WHERE 1=1",
"grp_id");
56 $groupNode =
new TreeNode(
$group->grp_id,
$group->title,
$group->grp_id,
false,
'bare_node_closed',
'bare_node_open',
"");
57 $groupNode->leafStyle =
"bare_node_leaf";
62 foreach($children as $child)
65 $topicNode =
new TreeNode(
'topic_id',
$topics[$child->topic_id]->topic, $child->topic_id,
false,
"bare_node_closed",
"bare_node_open",
"");
66 $topicNode->leafStyle =
"bare_node_leaf";
67 $groupNode->add($topicNode);
74 $script .=
"<link type='text/css' rel='stylesheet' href='/css/tree.css'/>";
78 $samples = query(Sample,
"ORDER BY sample_id");
91 <p>Select as many categories as needed
to narrow your search of the Publications database.</p>
92 <form method=
"GET" action=
"results.php">
96 <td><label>Regions:</label></td>
98 <select name=
'region_id'>
99 <option value=
"">Select region</option><?
103 <option value=
"<?echo $region->region_id ?>"><?echo $region->region ?></option>
123 <tr><td><label>Groups/Topics:</label></td>
131 <tr><td><label>Study
Settings:</label></td>
134 <select name=
'setting_id'>
135 <option value=
"">Select study setting type</option>
140 <option value=
"<?echo $setting->setting_id ?>"><?echo
$setting->setting ?></option>
151 <tr><td><label>Study Samples:</label></td>
154 <select name=
'sample_id'>
155 <option value=
"">Select study sample type</option>
160 <option value=
"<?echo $sample->sample_id ?>"><?echo
$sample->sample ?></option>
171 <tr><td><label>Publication Year:</label></td>
174 <input type=
'text' name=
'publication_year' size=
'4' maxlength=
'4' onkeydown=
'return maskInput(event);'/>
179 <tr><td><label>Journal:</label></td>
181 <select name=
'journal_id'>
182 <option value=
"">Select journal</option>
186 <option value=
"<?echo $journal->journal_id ?>"><?echo ellipsis($journal->title, 80,
true) ?></option>
196 <tr><td><label>Text Search: </label></td>
198 <input type=
'text' name=
'searchText' size=
'60'/>
202 <td><label>Author:</label></td>
203 <td><input type=
"text" name=
"author" size=
"40"/></td>
207 <input type=
"submit" class=
"button" value=
"Search"> <input
class=
"button" type=
"reset" value=
"Clear"></td>
216 <a href=
"publication_form.php" class=
"button"> Add a New Publication </a>
The Settings class provides components with a common API for specifying application settings and conf...
This class maps the topic table.
foreach($groups as $group) $script