OSDN Git Service

NP_PubMed 0.1.6
authorkmorimatsu <kmorimatsu@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Fri, 19 Dec 2008 01:58:06 +0000 (01:58 +0000)
committerkmorimatsu <kmorimatsu@1ca29b6e-896d-4ea0-84a5-967f57386b96>
Fri, 19 Dec 2008 01:58:06 +0000 (01:58 +0000)
git-svn-id: https://svn.sourceforge.jp/svnroot/nucleus-jp/plugin@754 1ca29b6e-896d-4ea0-84a5-967f57386b96

35 files changed:
NP_PubMed/trunk/NP_PubMed.php [new file with mode: 0644]
NP_PubMed/trunk/pubmed/index.php [new file with mode: 0644]
NP_PubMed/trunk/spring/default_left.css [new file with mode: 0644]
NP_PubMed/trunk/spring/default_right.css [new file with mode: 0644]
NP_PubMed/trunk/spring/favicon.ico [new file with mode: 0644]
NP_PubMed/trunk/spring/footer.inc [new file with mode: 0644]
NP_PubMed/trunk/spring/head.inc [new file with mode: 0644]
NP_PubMed/trunk/spring/header.inc [new file with mode: 0644]
NP_PubMed/trunk/spring/images/arrow.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/bg.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/bgcategory.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/bgcomment.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/bgcontainer01.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/bgcontainer02.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/bgedit.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/bgpostedby.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/commentquote01.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/commentquote02.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/corner_br.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/corner_tr.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/dot.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/dotv.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/header2.jpg [new file with mode: 0644]
NP_PubMed/trunk/spring/images/nucleus.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/shadow.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/images/sidetitlebg.gif [new file with mode: 0644]
NP_PubMed/trunk/spring/license.txt [new file with mode: 0644]
NP_PubMed/trunk/spring/navigation.inc [new file with mode: 0644]
NP_PubMed/trunk/spring/nicetitle.css [new file with mode: 0644]
NP_PubMed/trunk/spring/nicetitle.js [new file with mode: 0644]
NP_PubMed/trunk/spring/preview-large.png [new file with mode: 0644]
NP_PubMed/trunk/spring/preview.png [new file with mode: 0644]
NP_PubMed/trunk/spring/readme.html [new file with mode: 0644]
NP_PubMed/trunk/spring/sidebar.inc [new file with mode: 0644]
NP_PubMed/trunk/spring/skinbackup.xml [new file with mode: 0644]

diff --git a/NP_PubMed/trunk/NP_PubMed.php b/NP_PubMed/trunk/NP_PubMed.php
new file mode 100644 (file)
index 0000000..cf48a3c
--- /dev/null
@@ -0,0 +1,404 @@
+<?php \r
+class NP_PubMed extends NucleusPlugin { \r
+       function getName() { return 'NP_PubMed'; }\r
+       function getMinNucleusVersion() { return 330; }\r
+       function getAuthor()  { return 'Katsumi'; }\r
+       function getVersion() { return '0.1.6'; }\r
+       function getURL() {return 'http://hp.vector.co.jp/authors/VA016157/';}\r
+       function getDescription() {\r
+               return $this->getName().' plugin<br />'.\r
+                       'This plugin uses the query service of "Entrez Programming Utilities".<br />'.\r
+                       'For detail, visit: <br />'.\r
+                       'http://eutils.ncbi.nlm.nih.gov/entrez/query/static/eutils_help.html';\r
+       }\r
+       function supportsFeature($what) { return ($what=='SqlTablePrefix')?1:0; }\r
+       function getEventList() { return array('PreAddItem','PreUpdateItem','QuickMenu','EditItemFormExtras'); }\r
+       function getTableList() { return array(sql_table('plugin_pubmed_references'), sql_table('plugin_pubmed_manuscripts')); }\r
+       function install(){\r
+               global $member;\r
+               $this->createOption('droptable','Drop table when uninstall?','yesno','no');\r
+               $this->createOption('lastquerytime','hidden option','text','0','access=hidden');\r
+               $this->createOption('email','E-mail address to be sent to PubMed search site (set blank if not use):','text',$member->getEmail());\r
+               sql_query('CREATE TABLE IF NOT EXISTS '.sql_table('plugin_pubmed_references').' ('.\r
+                       ' id int(11) not null auto_increment,'.\r
+                       ' manuscriptid int(11) not null default 0,'.\r
+                       ' itemid int(11) not null default 0,'.\r
+                       ' sort int(11) not null default 0, '.\r
+                       ' PRIMARY KEY id(id),'.\r
+                       ' UNIQUE KEY manuscriptid(manuscriptid,itemid) '.\r
+                       ') TYPE=MyISAM;');\r
+               sql_query('CREATE TABLE IF NOT EXISTS '.sql_table('plugin_pubmed_manuscripts').' ('.\r
+                       ' manuscriptid int(11) not null auto_increment,'.\r
+                       ' userid int(11) not null default 0,'.\r
+                       ' manuscriptname varchar(200) not null default "New Manuscript",'.\r
+                       ' templatename varchar(200) not null default "default.template",'.\r
+                       ' sortmethod varchar(40) not null default "author",'.\r
+                       ' PRIMARY KEY manuscriptid(manuscriptid) '.\r
+                       ') TYPE=MyISAM;');\r
+       }\r
+       function uninstall(){\r
+               if ($this->getOption('droptable')=='yes') {\r
+                       foreach($this->getTableList() as $table) sql_query('DROP TABLE IF EXISTS '.$table);\r
+               }\r
+       }\r
+       function event_QuickMenu(&$data) {\r
+               global $member,$CONF;\r
+               $blogid=$CONF['DefaultBlog'];\r
+               // only show to admins\r
+               if (!($this->isAdmin($blogid))) return;\r
+               array_push(\r
+                       $data['options'], \r
+                       array(\r
+                               'title' => 'PubMed search',\r
+                               'url' => $this->getAdminURL().'?blogid='.(int)$blogid,\r
+                               'tooltip' => 'NP_PubMed'\r
+                       )\r
+               );\r
+               array_push(\r
+                       $data['options'], \r
+                       array(\r
+                               'title' => 'Manuscript management',\r
+                               'url' => $this->getAdminURL().'?blogid='.(int)$blogid.'&action=manuscriptlist',\r
+                               'tooltip' => 'NP_PubMed'\r
+                       )\r
+               );\r
+       }\r
+       function event_PreUpdateItem(&$data){\r
+               $ret=$this->event_PreAddItem(&$data);\r
+               $this->_updateManuscriptData($data['itemid']);\r
+               return $ret;\r
+       }\r
+       function event_PreAddItem(&$data){\r
+               global $CONF;\r
+               $title=&$data['title'];\r
+               $body=&$data['body'];\r
+               $more=&$data['more'];\r
+               $itemid=(int)@$data['itemid'];\r
+               if ($title||$more) return;\r
+               if (!preg_match('/^[\s]*PMID:[\s]*([0-9]+)[\s]*$/i',$body,$matches)) return;\r
+               $pmid=$matches[1];\r
+               if ($founditemid=quickQuery('SELECT inumber as result FROM '.sql_table('item').\r
+                               ' WHERE ibody LIKE "%<!--PMID: '.(int)$pmid.'-->%"'.\r
+                               ' AND (NOT inumber='.(int)$itemid.')')) {\r
+                       $html='An item for PMID: '.(int)$pmid.' already exists<br />';\r
+                       $html.='<a href="'.$CONF['IndexURL'].'?itemid='.(int)$founditemid.'">Go to the item</a>&nbsp;&nbsp;&nbsp;';\r
+                       $html.='<a href="'.$CONF['AdminURL'].'?action=itemedit&amp;itemid='.(int)$founditemid.'">Edit the item</a>';\r
+                       doError($html);\r
+                       exit;\r
+               }\r
+               $fhandle=@$this->_url_open('http://eutils.ncbi.nlm.nih.gov/entrez/eutils/efetch.fcgi?db=pubmed&amp;retmode=xml&amp;id='.\r
+                       (int)$pmid,'r');\r
+               if (!$fhandle) return;\r
+               $contents='';\r
+               while(true) {\r
+                       $data = fread($fhandle, 8192);\r
+                       if (!strlen($data)) break;\r
+                       $contents .= $data;\r
+               }\r
+               fclose($fhandle);\r
+               if (!preg_match('!<PubmedArticle[^>]*>([\s\S]+)</PubmedArticle>!',$contents,$matches)) return;\r
+               $more=$matches[1];\r
+               if (!preg_match('!<Article[^>]*>([\s\S]+)</Article>!',$more,$matches)) return;\r
+               $article=$matches[1];\r
+               $body='<!--PMID: '.(int)$pmid.'-->';\r
+               $body.='<a href="<%PubMed(pubmedurl,'.(int)$pmid.')%>" class="np_pubmed_pmidlink">PMID: '.(int)$pmid.'</a>';\r
+               if (preg_match_all('!<LastName[^>]*>([^<]+)</LastName>!',$article,$matches,PREG_SET_ORDER)){\r
+                       switch(count($matches)){\r
+                       case 1:\r
+                               $authors=htmlspecialchars($matches[0][1]);\r
+                               break;\r
+                       case 2:\r
+                               $authors=htmlspecialchars($matches[0][1].' and '.$matches[1][1]);\r
+                               break;\r
+                       default:\r
+                               $authors=htmlspecialchars($matches[0][1].' et al.');\r
+                               break;\r
+                       }\r
+                       $allauthors='';\r
+                       if (count($matches)==1) $allauthors=$authors;\r
+                       else for ($i=0;$i<count($matches);$i++) {\r
+                               if ($i==count($matches)-1) $allauthors.=', and ';\r
+                               else if ($i>0) $allauthors.=', ';\r
+                               if ($i<10 || $i==count($matches)-1) $allauthors.=htmlspecialchars($matches[$i][1]);\r
+                               else if ($i==10) $allauthors.='... ';\r
+                       }\r
+               } else $authors='???';\r
+               $year=$this->_getXmlData($article,'Year');\r
+               $journal=$this->_getXmlData($article,'ISOAbbreviation');\r
+               $atitle=$this->_getXmlData($article,'ArticleTitle');\r
+               $abstract=$this->_getXmlData($article,'AbstractText');\r
+               $volume=$this->_getXmlData($article,'Volume');\r
+               $pages=$this->_getXmlData($article,'MedlinePgn');\r
+               $title=htmlspecialchars($authors.' ('.$year.') '.$journal);\r
+               $body='<!--'.(int)$year.'-->'.$body.\r
+                       "<br />\n<span class=\"np_pubmed_authors\">".htmlspecialchars($allauthors.' ('.$year.') ')."</span><br />\n".\r
+                       '<span class="np_pubmed_article"><i>'.htmlspecialchars($journal).'</i> <b>'.htmlspecialchars($volume).'</b> '.htmlspecialchars($pages)."</span><br />\n".\r
+                       '<span class="np_pubmed_title">'.htmlspecialchars($atitle).'</span>';\r
+               $more='<span class="np_pubmed_abstract">'.htmlspecialchars($abstract)."</span><span style=\"display:none;\"><![CDATA[<br />\n".$more."<br />\n]]></span>";\r
+               setcookie($CONF['CookiePrefix'] .'NP_PubMed_defcatid',(int)postVar('catid'),time()+86400,$CONF['CookiePath'],$CONF['CookieDomain'],$CONF['CookieSecure']);\r
+               $search=array('&amp;amp;','&amp;quot;','&amp;lt;','&amp;gt;','&amp;#039;');\r
+               $replace=array('&amp;','&quot;','&lt;','&gt;','&#039;');\r
+               $body=str_replace($search,$replace,$body);\r
+               $more=str_replace($search,$replace,$more);\r
+       }\r
+       function _getXmlData(&$xml,$tag,$default='???'){\r
+               if (preg_match('!<'.$tag.'[^>]*>([^<]+)</'.$tag.'>!',$xml,$matches)){\r
+                       return $matches[1];\r
+               } else return $default;\r
+       }\r
+       function _updateManuscriptData($itemid){\r
+               global $member,$manager;\r
+               $mid=$member->getID();\r
+               $request=requestArray('np_pubmed_manuscript');\r
+               $res=sql_query('SELECT manuscriptid FROM '.sql_table('plugin_pubmed_manuscripts').\r
+                       ' WHERE userid='.(int)$mid);\r
+               $manuscripts=array();\r
+               while($row=mysql_fetch_row($res)) $manuscripts[$row[0]]=0;\r
+               if (is_array($request)) foreach($request as $key=>$value) $manuscripts[$key]=(int)$value;\r
+               $res=sql_query('SELECT r.manuscriptid as manuscriptid, r.sort as sort FROM '.\r
+                       sql_table('plugin_pubmed_manuscripts').' as m,'.\r
+                       sql_table('plugin_pubmed_references').' as r'.\r
+                       ' WHERE m.manuscriptid=r.manuscriptid'.\r
+                       ' AND m.userid='.(int)$mid.\r
+                       ' AND itemid="'.(int)$itemid.'"');\r
+               $itemdata=array();\r
+               while($row=mysql_fetch_assoc($res)) $itemdata[$row['manuscriptid']]=$row;\r
+               foreach($manuscripts as $key=>$value) {\r
+                       if ($value && !$itemdata[$key]) {\r
+                               sql_query('INSERT INTO '.sql_table('plugin_pubmed_references').' SET'.\r
+                                       ' itemid='.(int)$itemid.','.\r
+                                       ' manuscriptid='.(int)$key);\r
+                       } elseif($itemdata[$key] && !$value) {\r
+                               sql_query('DELETE FROM '.sql_table('plugin_pubmed_references').\r
+                                       ' WHERE itemid='.(int)$itemid.\r
+                                       ' AND manuscriptid='.(int)$key);\r
+                       }\r
+               }\r
+       }\r
+       function doItemVar(&$item,$mode,$p1=''){\r
+               switch(strtolower($mode)){\r
+               case 'pubmedurl':\r
+               default:\r
+                       $url='http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=Retrieve&amp;db=PubMed&amp;dopt=Citation&amp;list_uids=';\r
+                       echo $url.(int)$p1;\r
+                       return;\r
+               }\r
+       }\r
+       function doSkinVar($skintype,$mode,$p1='',$p2=''){\r
+               global $CONF,$manager,$blog;\r
+               switch($mode=strtolower($mode)){\r
+               case 'searchlink':\r
+                       if (!$this->isAdmin()) return;\r
+                       if (!$blog) return;\r
+                       $blogid=$blog->getID();\r
+                       echo '<a href="'.$this->getAdminURL().'?blogid='.(int)$blogid.'">'.\r
+                               htmlspecialchars(strlen($p1)?$p1:'PubMed Search',ENT_QUOTES).'</a>';\r
+                       break;\r
+               case 'createnew':\r
+                       if (!$this->isAdmin()) return;\r
+                       if (!$blog) return;\r
+                       $blogid=$blog->getID();\r
+                       $defcatid=(int)cookieVar($CONF['CookiePrefix'] . 'NP_PubMed_defcatid');\r
+                       if (!$defcatid) $defcatid=$blog->getDefaultCategory();\r
+                       $categories='<select name="catid" class="np_pubmed_form"><option value="newcat-'.(int)$blogid.'">New category</option>';\r
+                       $res=sql_query('SELECT * FROM '.sql_table('category').\r
+                               ' WHERE cblog='.(int)$blogid.' ORDER BY cname ASC');\r
+                       while($row=mysql_fetch_assoc($res)){\r
+                               if ($row['catid']==$defcatid) $categories.='<option value="'.(int)$row['catid'].'" selected="selected">';\r
+                               else $categories.='<option value="'.(int)$row['catid'].'">';\r
+                               $categories.=htmlspecialchars(strip_tags($row['cname'])).'</option>';\r
+                       }\r
+                       $categories.='</select>';\r
+                       \r
+?>\r
+<form method="post" action="<?php echo $CONF['AdminURL']; ?>" class="np_pubmed_form">\r
+<input type="hidden" name="action" value="additem" />\r
+<input name="blogid" value="<?php echo (int)$blogid; ?>" type="hidden" />\r
+<input type="hidden" name="draftid" value="0" />\r
+<?php $manager->addTicketHidden(); ?>\r
+<input type="hidden" name="title" value="" />\r
+<input type="hidden" name="more" value="" />\r
+<input type="hidden" name="closed" value="0" />\r
+<input type="hidden" name="actiontype" value="addnow" />\r
+<input type="text" name="body" value="PMID:" class="np_pubmed_form" />\r
+<?php echo $categories; ?>\r
+<input type="submit" value="<?php echo htmlspecialchars(strlen($p1)?$p1:'Create'); ?>" class="np_pubmed_form" />\r
+</form>\r
+<?php\r
+                       break;\r
+               case 'pubmedlink':\r
+                       echo '<a href="http://www.ncbi.nlm.nih.gov/PubMed/" onclick="window.open(this.href,\'PubMed\');return false;">'.\r
+                               htmlspecialchars(strlen($p1)?$p1:'PubMed',ENT_QUOTES).'</a>';\r
+                       break;\r
+               case 'parse': case 'pageswitch':\r
+                       if (!$blog) return;\r
+                       global $startpos;\r
+                       $startpos=(int)$startpos;\r
+                       $limit=(int)$p2;\r
+                       $template=addslashes($p1);\r
+                       $query=$blog->getSqlBlog('');\r
+                       $query=preg_replace('/ORDER[\s]+BY[\s][\s\.a-z0-9_]*(ASC|DESC)$/i','ORDER BY i.ititle ASC',$query);\r
+                       switch($mode){\r
+                       case 'pageswitch':\r
+                               $ps=&$manager->getPlugin('NP_PageSwitch');\r
+                               $ps->setQuery($query);\r
+                               break;\r
+                       case 'parse':\r
+                       default:\r
+                               $blog->showUsingQuery($template, $query.' LIMIT '.$startpos.','.$limit, '', 1, 1);\r
+                               break;\r
+                       }\r
+               default:\r
+                       break;\r
+               }\r
+       }\r
+       function doTemplateVar(&$item,$type,$p1='') {\r
+               global $CONF,$member,$DIR_MEDIA;\r
+               switch($type=strtolower($type)){\r
+               case 'pdf':\r
+               default:\r
+                       if (!$member->isLoggedIn()) return;\r
+                       if (!preg_match('/<!--[\s]*(PMID|pmid)[\s]*:[\s]*([0-9]+)[\s]*-->/',$item->body,$matches)) return;\r
+                       $pmid=(int)$matches[2];\r
+                       $filename=$DIR_MEDIA.'pubmed/'.$pmid.'.pdf';\r
+                       if (!file_exists($filename)) return;\r
+                       switch($p1){\r
+                       case 'pmid':\r
+                               $filename=$pmid;\r
+                               break;\r
+                       case 'author':\r
+                       default:\r
+                               $filename=rawurlencode(strip_tags($item->title));\r
+                               break;\r
+                       }\r
+                       echo '<a href="'.htmlspecialchars($CONF['ActionURL'].'/'.$filename.'.pdf'.\r
+                               '?action=plugin&name=PubMed&type=pdf&file='.\r
+                               $pmid.'.pdf').\r
+                               '" onclick="window.open(this.href);return false;">'.\r
+                               ($p1?htmlspecialchars($p1):'Read pdf').'</a>';\r
+                       break;\r
+               }\r
+       }\r
+       function doAction($type){\r
+               global $member,$DIR_MEDIA;\r
+               switch($type=strtolower($type)){\r
+               case 'pdf':\r
+               default:\r
+                       if (!$member->isLoggedIn()) return 'Login is required to download pdf file.';\r
+                       $filename=realpath($DIR_MEDIA.'pubmed/'.getVar('file'));\r
+                       if (!file_exists($filename)) return 'File not found.';\r
+                       if (strpos($filename,realpath($DIR_MEDIA.'pubmed/'))!==0) return 'Error:'.__LINE__;\r
+                       header('Content-type: application/pdf; filename="test1.pdf"');\r
+                       readfile($filename);\r
+                       return;\r
+               }\r
+       }\r
+       function doIf($p1='',$p2=''){\r
+               if (preg_match('/^([^=]*)=([.]*)$/',$p2,$matches)) list($p2,$name,$value)=$matches;\r
+               else list($name,$value)=array('','');\r
+               switch($mode=strtolower($p1)){\r
+               case 'getvar': case 'postvar': case 'cookievar':\r
+                       return (call_user_func($mode,$name)==$value);\r
+               default:\r
+                       return false;\r
+               }\r
+       }\r
+       function isAdmin($blogid=''){\r
+               global $member,$blog;\r
+               if ($blogid) return $member->blogAdminRights($blogid);\r
+               if (!($member->isLoggedIn() && $blog)) return false;\r
+               return $member->blogAdminRights($blog->getID());\r
+       }\r
+       function _url_open($myUrl){\r
+               //wait at least 3 seconds from the previous access.\r
+               for($i=0;$i<3 && time()<=$this->getOption('lastquerytime')+3;$i++) sleep(1);\r
+               $this->setOption('lastquerytime',time());\r
+               //check URL and resolve host, port and URI\r
+               if (substr($myUrl,0,7)!='http://') return false;\r
+               $myUri=substr($myUrl,7);\r
+               if (($i=strpos($myUri,'/',0))===false) return false;\r
+               $myPort=80;\r
+               $myHost=substr($myUri,0,$i);\r
+               $j=strpos($myUri,':',0);\r
+               if ((!($j===false)) && ($j<$i)){\r
+                       $myPort=(int)substr($myUri,$j+1,$i-$j-1);\r
+                       $myHost=substr($myUri,0,$j);\r
+               }\r
+               $myUri=substr($myUri,$i);\r
+       \r
+               //get header information from browser\r
+               $headers = apache_request_headers();\r
+               while (list($header, $value) = each ($headers)) {\r
+                       switch (strtolower($header)) {\r
+                       case 'accept':\r
+                                       $accept=$value;\r
+                                       break;\r
+                       case 'accept-language':\r
+                                       $acceptlanguage=$value;\r
+                                       break;\r
+                       case 'user-agent':\r
+                                       $useragent=$value;\r
+                                       break;\r
+                       default:\r
+                                       break;\r
+                       }\r
+               }\r
+       \r
+               //create header for HTTP request\r
+               $t="GET $myUri HTTP/1.0\r\n";\r
+               $t=$t."Conection: Close\r\n";\r
+               $t=$t."Accept: $accept\r\n";\r
+               $t=$t."Accept-Language: $acceptlanguage\r\n";\r
+               $t=$t."User-Agant: $useragent\r\n";\r
+               $t=$t."Host: $myHost\r\n";\r
+               $t=$t."\r\n";\r
+       \r
+               //Connect\r
+               $myStatus=0;\r
+               if (!($fp = @fsockopen($myHost,$myPort, $errno, $errstr, 30))) return false;\r
+               fwrite($fp,$t);\r
+               return $fp;\r
+       }\r
+       function event_EditItemFormExtras(&$data){\r
+               global $member,$manager;\r
+               $itemid=$data['itemid'];\r
+               $mid=$member->getID();\r
+?>\r
+<script type="text/javascript">\r
+//<![CDATA[\r
+//if((document.location+'').indexOf('#pubmed')>0) window.onload=function(){flipBlock('options');};\r
+var np_pubmed_timer;\r
+var np_pubmed_timer_count=0;\r
+function np_pubmed_timer_func(){\r
+  try { flipBlock('options'); } catch(e) { return; }\r
+  if (10<np_pubmed_timer_count++) clearInterval(np_pubmed_timer);\r
+}\r
+if((document.location+'').indexOf('#pubmed')>0) np_pubmed_timer=setInterval("np_pubmed_timer_func()",100);\r
+//]]>\r
+</script>\r
+<table>\r
+<tr><th><a name="pubmed" id="pubmed">Manuscript management (NP_PubMed)</a></th></tr>\r
+<?php\r
+               $res=sql_query('SELECT r.manuscriptid as manuscriptid, r.sort as sort FROM '.\r
+                       sql_table('plugin_pubmed_manuscripts').' as m,'.\r
+                       sql_table('plugin_pubmed_references').' as r'.\r
+                       ' WHERE m.manuscriptid=r.manuscriptid'.\r
+                       ' AND m.userid='.(int)$mid.\r
+                       ' AND itemid="'.(int)$itemid.'"');\r
+               $itemdata=array();\r
+               while($row=mysql_fetch_assoc($res)) $itemdata[$row['manuscriptid']]=$row;\r
+               $res=sql_query('SELECT * FROM '.sql_table('plugin_pubmed_manuscripts').\r
+                       ' WHERE userid='.(int)$mid);\r
+               while($row=mysql_fetch_assoc($res)) {\r
+                       $checked=$itemdata[$row['manuscriptid']]?'checked="checked"':'';\r
+                       echo '<tr><td>';\r
+                       echo '<input type="checkbox" name="np_pubmed_manuscript['.(int)$row['manuscriptid'].']" value="1" '.$checked.' />';\r
+                       echo htmlspecialchars($row['manuscriptname']);\r
+                       echo "</td></tr>\n";\r
+               }\r
+?>\r
+</table>\r
+<?php\r
+       }\r
+}\r
+?>
\ No newline at end of file
diff --git a/NP_PubMed/trunk/pubmed/index.php b/NP_PubMed/trunk/pubmed/index.php
new file mode 100644 (file)
index 0000000..1f4c042
--- /dev/null
@@ -0,0 +1,408 @@
+<?php\r
+\r
+$strRel = '../../../';\r
+require($strRel . 'config.php');\r
+$pbadmin=new PubMedAdmin;\r
+exit;\r
+\r
+class PubMedAdmin {\r
+       var $oPluginAdmin;\r
+       var $blogid;\r
+       function PubMedAdmin(){\r
+               global $DIR_LIBS,$manager,$member,$CONF;\r
+               include($DIR_LIBS . 'PLUGINADMIN.php');\r
+               \r
+               $this->oPluginAdmin  = new PluginAdmin('PubMed');\r
+               if (!($this->blogid=intPostVar('blogid'))) $this->blogid=intGetVar('blogid');\r
+               $CONF['ItemURL']=quickQuery('SELECT burl as result FROM '.sql_table('blog'). ' WHERE bnumber='.(int)$this->blogid);\r
+               \r
+               if (!$member->isLoggedIn() || !$member->teamRights($this->blogid) || !$manager->existsBlogID($this->blogid))\r
+               {\r
+                       $this->oPluginAdmin->start();\r
+                       echo '<p>' . _ERROR_DISALLOWED . '</p>';\r
+                       $this->oPluginAdmin->end();\r
+                       exit;\r
+               }\r
+               \r
+               if (!isset($_POST)) $_POST=&$HTTP_POST_VARS;\r
+               if (count($_POST) && !$manager->checkTicket()) {\r
+                       $this->oPluginAdmin->start();\r
+                       echo '<p class="error">Error: ' . _ERROR_BADTICKET . '</p>';\r
+                       $this->oPluginAdmin->end();\r
+                       exit;\r
+               }\r
+\r
+               if (!($action=postVar('action'))) {\r
+                       if (!($action=getVar('action'))) $action='searchform';\r
+               }\r
+               \r
+               if (substr($action,0,1)=='_' || !method_exists($this,$action)) exit('Error: '.__LINE__);\r
+\r
+               $this->oPluginAdmin->start();\r
+               switch(getVar('action')) {\r
+               case 'manuscriptlist':\r
+                       echo "<h2>" . 'Manuscript management' . "</h2>\n";\r
+                       break;\r
+               default:\r
+                       echo "<h2>" . 'PubMed search' . "</h2>\n";\r
+               }\r
+               call_user_func(array(&$this,$action));\r
+               $this->oPluginAdmin->end();\r
+       }\r
+/* Pubmed Search */\r
+       function searchform(){\r
+               global $manager;\r
+?>\r
+<form method="post" action="">\r
+<?php $manager->addTicketHidden(); ?>\r
+<input type="hidden" name="action" value="searchquery" />\r
+<input type="hidden" name="blogid" value="<?php echo (int)$this->blogid; ?>" />\r
+<input type="text" name="query" value="<?php htmlspecialchars(postVar('query')); ?>" size="60" />\r
+<input type="submit" value="Search" /><br />\r
+<a href="http://www.ncbi.nlm.nih.gov/sites/entrez?db=PubMed" onclick="window.open(this.href);return false;">Goto the NIH PubMed site</a>\r
+</form>\r
+<?php\r
+       }\r
+       function searchquery(){\r
+               global $manager,$CONF;\r
+               $this->searchform();\r
+               // Get PubMed ids as the result\r
+               $start=intPostVar('retstart');\r
+               if (!($max=intPostVar('retmax'))) $max=20;\r
+               $fhandle=$this->_url_open('http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esearch.fcgi?'.\r
+                       'db=pubmed&retmode=xml'.\r
+                       '&retstart='.(int)$start.'&retmax='.(int)$max.\r
+                       '&term='.urlencode(postVar('query')));\r
+               if (!$fhandle) exit('Error: '.__LINE__);\r
+               $contents='';\r
+               while(true) {\r
+                       $data = fread($fhandle, 8192);\r
+                       if (!strlen($data)) break;\r
+                       $contents .= $data;\r
+               }\r
+               fclose($fhandle);\r
+               // Get query results\r
+               $result=array();\r
+               $result['max']=$this->_getXmlData($contents,'RetMax');\r
+               $result['start']=$this->_getXmlData($contents,'RetStart');\r
+               $result['count']=$this->_getXmlData($contents,'Count');\r
+               $result['querykey']=$this->_getXmlData($contents,'QueryKey');\r
+               $result['webenv']=$this->_getXmlData($contents,'WebEnv');\r
+               // Get id information\r
+               if (!($contents=$this->_getNestedXmlData($contents,'IdList',''))) {\r
+                       echo '<table><tr><th>Summaries</th></tr>';\r
+                       echo '<tr><td>No result</td></tr>';\r
+                       echo '</table>';\r
+                       return;\r
+               }\r
+               $contents=explode('<Id>',$contents);\r
+               $ids='';\r
+               $likes='';\r
+               foreach($contents as $value){\r
+                       if (!($value=(int)$value)) continue;\r
+                       $ids.='&id='.$value;\r
+                       $likes.=' OR ibody LIKE "%<!--PMID: '.(int)$value.'-->%"';\r
+               }\r
+               // Check if there are records for the articles\r
+               $dataexists=array();\r
+               $res=sql_query('SELECT ibody,inumber FROM '.sql_table('item').\r
+                       ' WHERE (0 '.$likes.') AND iblog='.(int)$this->blogid);//$likes is clean (see few lines above).\r
+               while ($row=mysql_fetch_assoc($res)){\r
+                       if (!preg_match('/<!\-\-PMID:[\s]*([0-9]+)\-\->/i',$row['ibody'],$matches)) continue;\r
+                       $dataexists[(int)$matches[1]]=(int)$row['inumber'];\r
+               }\r
+               // Get summary\r
+               $fhandle=$this->_url_open('http://eutils.ncbi.nlm.nih.gov/entrez/eutils/esummary.fcgi?'.\r
+                       'db=pubmed'.$ids);\r
+               if (!$fhandle) exit('Error: '.__LINE__);\r
+               $contents='';\r
+               while(true) {\r
+                       $data = fread($fhandle, 8192);\r
+                       if (!strlen($data)) break;\r
+                       $contents .= $data;\r
+               }\r
+               fclose($fhandle);//exit($result['start']+$result['max'].'|'.$result['count']);\r
+               // Get summaries\r
+               // Header\r
+               foreach($result as $key=>$value) $result[$key]=htmlspecialchars($value,ENT_QUOTES);\r
+               echo '<table>';\r
+               ob_start();\r
+?>\r
+<tr><th style="width:70%">Summaries</th><th>\r
+<?php if ($result['start']) { ?>\r
+       <form method="post" action="">\r
+       <?php $manager->addTicketHidden(); ?>\r
+       <input type="hidden" name="action" value="searchquery" />\r
+       <input type="hidden" name="blogid" value="<?php echo (int)$this->blogid; ?>" />\r
+       <input type="hidden" name="query" value="<?php echo htmlspecialchars(postVar('query')); ?>" />\r
+       <input type="hidden" name="retstart" value="<?php echo $result['start']-$max; ?>" />\r
+       <input type="hidden" name="retmax" value="<?php echo (int)$max; ?>" />\r
+       <input type="submit" value="Previous Page" />\r
+       </form>\r
+<?php } ?>\r
+</th><th style="white-space: nowrap;"><?php echo 'page '.(int)(1+($result['start']/$max)).' of '.(int)(1+($result['count']-1)/$max); ?></th><th>\r
+<?php if ($result['start']+$max<=$result['count']) { ?>\r
+       <form method="post" action="">\r
+       <?php $manager->addTicketHidden(); ?>\r
+       <input type="hidden" name="action" value="searchquery" />\r
+       <input type="hidden" name="blogid" value="<?php echo (int)$this->blogid; ?>" />\r
+       <input type="hidden" name="query" value="<?php echo htmlspecialchars(postVar('query')); ?>" />\r
+       <input type="hidden" name="retstart" value="<?php echo $result['start']+$max; ?>" />\r
+       <input type="hidden" name="retmax" value="<?php echo (int)$max; ?>" />\r
+       <input type="submit" value="Next Page" />\r
+       </form>\r
+<?php } ?>\r
+</tr>\r
+<?php\r
+               $tableth=ob_get_contents();\r
+               ob_end_flush();\r
+               // Prepare before showing results\r
+               $template='<tr onmouseover="focusRow(this);" onmouseout="blurRow(this);"><td colspan="4"><a href="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi'.\r
+                               '?cmd=Retrieve&amp;db=PubMed&amp;dopt=Citation&amp;list_uids=<%pmid%>"'.\r
+                               ' onclick="window.open(this.href);return false;"><%authors%></a><br />'.\r
+                       '<%title%><br />'.\r
+                       '<i><%journal%></i> (<%date%>) <b><%volume%></b> <%pages%><br />'.\r
+                       'PMID: <%pmid%>'.\r
+                       '<div style="text-align:right;"><%addbutton%></div></td></tr>';\r
+               $defcatid=(int)cookieVar($CONF['CookiePrefix'] . 'NP_PubMed_defcatid');\r
+               if (!$defcatid) $defcatid=quickQuery('SELECT bdefcat as result FROM '.sql_table('blog').' WHERE bnumber='.(int)$CONF['DefaultBlog']);\r
+               $categories='<select name="catid" class="np_pubmed_form"><option value="newcat-'.(int)$this->blogid.'">New category</option>';\r
+               $res=sql_query('SELECT * FROM '.sql_table('category').\r
+                       ' WHERE cblog='.(int)$this->blogid.' ORDER BY cname ASC');\r
+               while($row=mysql_fetch_assoc($res)){\r
+                       if ($row['catid']==$defcatid) $categories.='<option value="'.(int)$row['catid'].'" selected="selected">';\r
+                       else $categories.='<option value="'.(int)$row['catid'].'">';\r
+                       $categories.=htmlspecialchars(strip_tags($row['cname'])).'</option>';\r
+               }\r
+               $categories.='</select>';\r
+               if (!($contents=$this->_getNestedXmlData($contents,'eSummaryResult',''))) exit('Error: '.__LINE__);\r
+               // Show the results\r
+               $contents=explode('<DocSum>',$contents);\r
+               foreach($contents as $summary){\r
+                       if (strpos($summary,'</DocSum>')===false) continue;\r
+                       $data=array();\r
+                       $data['date']=$this->_getXmlData($summary,'Item','???','Name="PubDate"');\r
+                       $data['journal']=$this->_getXmlData($summary,'Item','???','Name="Source"');\r
+                       $data['title']=$this->_getXmlData($summary,'Item','???','Name="Title"');\r
+                       $data['volume']=$this->_getXmlData($summary,'Item','???','Name="Volume"');\r
+                       $data['pages']=$this->_getXmlData($summary,'Item','???','Name="Pages"');\r
+                       $data['pmid']=$this->_getXmlData($summary,'Id','???');\r
+                       $data['authors']='???';\r
+                       if ($num=preg_match_all('!<Item[\s]+Name="Author"[^>]*>([^<]+)</Item>!',$summary,$matches,PREG_SET_ORDER)){\r
+                               for ($i=0;$i<$num;$i++) {\r
+                                       switch($i){\r
+                                       case 0:\r
+                                               $data['authors']=htmlspecialchars($matches[$i][1]);\r
+                                               break;\r
+                                       case 1:case 2:case 3:case 4:\r
+                                       case ($num-1):\r
+                                               $data['authors'].=', '.htmlspecialchars($matches[$i][1]);\r
+                                               break;\r
+                                       case 5:\r
+                                               $data['authors'].=', ... ';\r
+                                       default:\r
+                                               break;\r
+                                       }\r
+                               }\r
+                       }\r
+                       foreach($data as $key=>$value) $data[$key]=htmlspecialchars($value,ENT_QUOTES);\r
+                       if (array_key_exists((int)$data['pmid'],$dataexists)) {\r
+                               $url=createItemLink($dataexists[(int)$data['pmid']], '');\r
+                               $data['addbutton']='(<a href="'.$url.'" onclick="window.open(this.href);return false;">Data exists for this article</a>)';\r
+                       } else {\r
+                               ob_start();\r
+?>\r
+<form method="post" action="<?php echo $CONF['AdminURL']; ?>" class="np_pubmed_form">\r
+<input type="hidden" name="action" value="additem" />\r
+<input name="blogid" value="<?php echo (int)$blogid; ?>" type="hidden" />\r
+<input type="hidden" name="draftid" value="0" />\r
+<?php $manager->addTicketHidden(); ?>\r
+<input type="hidden" name="title" value="" />\r
+<input type="hidden" name="more" value="" />\r
+<input type="hidden" name="closed" value="0" />\r
+<input type="hidden" name="actiontype" value="addnow" />\r
+<input type="hidden" name="body" value="PMID:<?php echo (int)$data['pmid']; ?>" class="np_pubmed_form" />\r
+<input type="submit" value="Add this:" class="np_pubmed_form" />\r
+<?php echo $categories; ?>\r
+</form>\r
+<?php\r
+                               $data['addbutton']=ob_get_contents();\r
+                               ob_end_clean();\r
+                       }\r
+                       echo TEMPLATE::fill($template,$data);\r
+               }\r
+               // Footer\r
+               echo $tableth;\r
+               echo '</table>';\r
+       }\r
+       function _getXmlData(&$xml,$tag,$default='???',$extra=''){\r
+               if (preg_match('!<'.$tag.'[^>]*'.$extra.'[^>]*>([^<]+)</'.$tag.'>!',$xml,$matches)){\r
+                       return $matches[1];\r
+               } else return $default;\r
+       }\r
+       function _getNestedXmlData(&$xml,$tag,$default='???'){\r
+               if (preg_match('!<'.$tag.'[^>]*>([\s\S]+)</'.$tag.'>!',$xml,$matches)){\r
+                       return $matches[1];\r
+               } else return $default;\r
+       }\r
+       function _url_open($url){\r
+               return $this->oPluginAdmin->plugin->_url_open($url);\r
+       }\r
+\r
+/* Manunscript Management */\r
+       function manuscriptlist(){\r
+               global $member,$manager;\r
+               $mid=$member->getID();\r
+               echo '<a href="'.$this->oPluginAdmin->plugin->getAdminURL().'?blogid='.(int)$this->blogid.'&amp;action=manuscriptlist">Refresh</a><br />';\r
+               echo '<table><tr><th>manuscript</th><th>template</th><th>sort method</th><th colspan="2">&nbsp;</th></tr>';\r
+               $res=sql_query('SELECT * FROM '.sql_table('plugin_pubmed_manuscripts').\r
+                       ' WHERE userid='.(int)$mid);\r
+               while($row=mysql_fetch_assoc($res)){\r
+                       echo '<tr>';\r
+                       echo '<td>'.htmlspecialchars($row['manuscriptname']).'</td>';\r
+                       echo '<td>'.htmlspecialchars($row['templatename']).'</td>';\r
+                       echo '<td>'.htmlspecialchars($row['sortmethod']).'</td>';\r
+?>\r
+<td><form method="post" action="">\r
+<input type="hidden" name="action" value="deletemanuscript" />\r
+<input type="hidden" name="manuscriptid" value="<?php echo (int)$row['manuscriptid']; ?>" />\r
+<?php $manager->addTicketHIdden() ?>\r
+<input type="submit" value="Delete" />\r
+</form></td>\r
+<td><form method="post" action="">\r
+<input type="hidden" name="action" value="editmanuscript" />\r
+<input type="hidden" name="manuscriptid" value="<?php echo (int)$row['manuscriptid']; ?>" />\r
+<?php $manager->addTicketHIdden() ?>\r
+<input type="submit" value="Edit" />\r
+</form></td>\r
+<?php\r
+                       echo "</tr>\n";\r
+               }\r
+               echo "</table>\n";\r
+?>\r
+<form method="post" action="">\r
+<input type="hidden" name="action" value="createmanuscript" />\r
+<?php $manager->addTicketHIdden() ?>\r
+<input type="hidden" name="blogid" value="<?php echo (int)$this->blogid; ?>" />\r
+New manuscript:\r
+<input type="text" name="manuscriptname" value="" />\r
+<input type="submit" value="Create" />\r
+</form>\r
+<?php\r
+       }\r
+       \r
+       function deletemanuscript(){\r
+               global $member,$manager;\r
+               $mid=$member->getID();\r
+               $manuscriptid=intPostVar('manuscriptid');\r
+               $mname=quickQuery('SELECT manuscriptname as result FROM '.sql_table('plugin_pubmed_manuscripts').\r
+                       ' WHERE manuscriptid='.(int)$manuscriptid.\r
+                       ' AND userid='.(int)$mid);\r
+               if (!$mname) exit('Invalid manuscriptid!');\r
+               if (postVar('sure')=='yes') {\r
+                       sql_query('DELETE r.* FROM '.sql_table('plugin_pubmed_references').' as r, '.\r
+                               sql_table('plugin_pubmed_manuscripts').' as m'.\r
+                               ' WHERE m.manuscriptid='.(int)$manuscriptid.\r
+                               ' AND m.userid='.(int)$mid.\r
+                               ' AND m.manuscriptid=r.manuscriptid');\r
+                       sql_query('DELETE FROM '.sql_table('plugin_pubmed_manuscripts').\r
+                               ' WHERE manuscriptid='.(int)$manuscriptid.\r
+                               ' AND userid='.(int)$mid);\r
+                       echo "<b>The manuscript, '".htmlspecialchars($mname)."' was deleted.</b><br />\n";\r
+                       return $this->manuscriptlist();\r
+               }\r
+               echo "<b>The manuscript, '".htmlspecialchars($mname)."' will be deleted.</b><br /><br />\n";\r
+?>\r
+<form method="post" action="">\r
+<input type="hidden" name="action" value="deletemanuscript" />\r
+<input type="hidden" name="sure" value="yes" />\r
+<input type="hidden" name="manuscriptid" value="<?php echo (int)$manuscriptid; ?>" />\r
+<?php $manager->addTicketHIdden() ?>\r
+Are you sure?&nbsp;&nbsp;\r
+<input type="submit" value="Yes. Delete it." />&nbsp;&nbsp;\r
+<a href="javascript:history.go(-1);">No I'm not.</a>\r
+</form>\r
+<?php\r
+       }\r
+       \r
+       function createmanuscript(){\r
+               global $member,$manager;\r
+               $mid=$member->getID();\r
+               $mname=$this->_checkmanuscriptname(postVar('manuscriptname'));\r
+               if ($mname) sql_query('INSERT INTO '.sql_table('plugin_pubmed_manuscripts').' SET'.\r
+                               ' userid='.(int)$mid.','.\r
+                               ' manuscriptname="'.addslashes($mname).'"');\r
+               return $this->manuscriptlist();\r
+       }\r
+       \r
+       function _checkmanuscriptname($mname,$id=0){\r
+               global $member;\r
+               $mid=$member->getID();\r
+               $mname=preg_replace('/[^0-9a-zA-Z\._\-]+/','',$mname);\r
+               $mname=preg_replace('/[\s]+/',' ',$mname);\r
+               $query='SELECT COUNT(*) as result FROM '.sql_table('plugin_pubmed_manuscripts').\r
+                       ' WHERE userid='.(int)$mid.\r
+                       ' AND manuscriptname="'.addslashes($mname).'"';\r
+               if ($id) $query.=' AND NOT (manuscriptid='.(int)$id.')';\r
+               if (!$mname) echo "<b>Manuscript name is empty.</b><br />\n";\r
+               elseif (quickQuery($query)) echo "<b>The same manuscript exists.</b><br />\n";\r
+               else return $mname;\r
+               return false;\r
+       }\r
+       \r
+       function editmanuscript(){\r
+               global $member,$manager;\r
+               $mid=$member->getID();\r
+               $manuscriptid=intPostVar('manuscriptid');\r
+               $res=sql_query('SELECT * FROM '.sql_table('plugin_pubmed_manuscripts').\r
+                       ' WHERE manuscriptid='.(int)$manuscriptid.\r
+                       ' AND userid='.(int)$mid.\r
+                       ' LIMIT 1');\r
+               $row=mysql_fetch_assoc($res);\r
+               if (!$row) exit('Invalid manuscriptid!');\r
+               $mname=postVar('manuscriptname');\r
+               if (!$mname) $mname=$row['manuscriptname'];\r
+               $mname=$this->_checkmanuscriptname($mname,$manuscriptid);\r
+               if (!$mname) return $this->manuscriptlist();\r
+               switch($sort=postVar('sortmethod')){\r
+               case 'author':\r
+               case 'manual':\r
+                       break;\r
+               default:\r
+                       $sort=$row['sortmethod'];\r
+               }\r
+               $template='default.template';\r
+               if (postVar('sure')=='yes') {\r
+                       sql_query('UPDATE '.sql_table('plugin_pubmed_manuscripts').' SET'.\r
+                               ' manuscriptname="'.addslashes($mname).'",'.\r
+                               ' templatename="'.addslashes($template).'",'.\r
+                               ' sortmethod="'.addslashes($sort).'"'.\r
+                               ' WHERE manuscriptid='.(int)$manuscriptid.\r
+                               ' AND userid='.(int)$mid);\r
+                       return $this->manuscriptlist();\r
+               }\r
+               \r
+?>\r
+<form method="post" action="">\r
+<input type="hidden" name="action" value="editmanuscript" />\r
+<?php $manager->addTicketHIdden() ?>\r
+<input type="hidden" name="sure" value="yes" />\r
+<input type="hidden" name="manuscriptid" value="<?php echo (int)$manuscriptid; ?>" />\r
+<input type="hidden" name="blogid" value="<?php echo (int)$this->blogid; ?>" />\r
+<table>\r
+<tr><td>Manuscript name:</td>\r
+<td><input type="text" name="manuscriptname" value="<?php echo htmlspecialchars($mname); ?>" /></td></tr>\r
+<tr><td>Template:</td>\r
+<td><input type="text" name="tamplatename" value="<?php echo htmlspecialchars($template); ?>" /></td></tr>\r
+<tr><td>Sort method:</td>\r
+<td><select name="sortmethod">\r
+<option value="author" <?php if ($sort=='author') echo 'selected="selected"'; ?> >author</option>\r
+<option value="manual" <?php if ($sort=='manual') echo 'selected="selected"'; ?> >manual</option>\r
+</select></td>\r
+</tr></table>\r
+<input type="submit" value="Edit" />\r
+</form>\r
+<?php\r
+       }\r
+}\r
+?>
\ No newline at end of file
diff --git a/NP_PubMed/trunk/spring/default_left.css b/NP_PubMed/trunk/spring/default_left.css
new file mode 100644 (file)
index 0000000..279d2c0
--- /dev/null
@@ -0,0 +1,495 @@
+/*-------------------------------------------------\r
+  Nucleus CMS Spring Skin Stylesheet\r
+  Based on the Stanch skin by Ivan Fong\r
+  Mods by hcgtv and moraes\r
+  Further mods by Katsumi\r
+-------------------------------------------------*/\r
+\r
+/*-------------------------------------------------\r
+  General layout\r
+-------------------------------------------------*/\r
+body\r
+{\r
+       background: #505050 url(images/bg.gif);\r
+       color: #002020;\r
+       font-family: "Times New Roman", "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Trebuchet, Arial, sans-serif;\r
+       font-size: 12px;\r
+       padding: 15px 0;\r
+       margin: 0;\r
+}\r
+img\r
+{\r
+       border: 0;\r
+}\r
+form\r
+{\r
+       margin: 0;\r
+}\r
+\r
+/* Headings */\r
+h1,h2,h3,h4,h5,h6\r
+{\r
+    font-family: "Georgia", "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Trebuchet, Arial, sans-serif;\r
+       font-weight: normal;\r
+       margin: 0;\r
+}\r
+\r
+/* Lists */\r
+ul\r
+{\r
+       list-style: none;\r
+       padding: 0;\r
+       margin: 0;\r
+}\r
+li\r
+{\r
+       background: url(images/arrow.gif) left 5px no-repeat;\r
+       padding: 0 0 0 10px;\r
+       margin: 0 20px;\r
+}\r
+\r
+/* Links */\r
+a:link, a:visited\r
+{\r
+       color: #004080;\r
+       text-decoration: none;\r
+}\r
+a:hover, a:active\r
+{\r
+       color: black;\r
+}\r
+#header a:link, #header a:visited\r
+{\r
+       color: #20E0E0;\r
+}\r
+#header a:hover, #header a:active\r
+{\r
+       color: #737373;\r
+}\r
+#copyrights a:link, #copyrights a:visited\r
+{\r
+       color: #474747;\r
+}\r
+#copyrights a:hover, #copyrights a:active\r
+{\r
+       color: #737373;\r
+}\r
+\r
+/* Basic classes */\r
+.hidden\r
+{\r
+       display: none;\r
+}\r
+.centerize\r
+{\r
+       text-align: center;\r
+}\r
+.clearing\r
+{\r
+       width: 754px;\r
+       height: 0;\r
+       clear: both;\r
+}\r
+\r
+/*-------------------------------------------------\r
+  Header\r
+-------------------------------------------------*/\r
+#header\r
+{\r
+       position: relative;\r
+       width: 754px;\r
+       height: 168px;\r
+       /* large header image is defined below */\r
+       background: white url(images/header2.jpg) no-repeat;\r
+       /* background: white; */\r
+       border-width: 2px 2px 0;\r
+       border-style: solid;\r
+       border-color: #E0E0E0;\r
+       margin: auto;\r
+}\r
+#header h1\r
+{\r
+       /* small header image specific lines \r
+       height: 168px;\r
+       width: 692px;\r
+       background: white url(images/header_sm.jpg) repeat-x 0 6px;\r
+       margin: 0 6px;\r
+          end small header image specific lines */\r
+       font-size: 38px;\r
+       text-align: center;\r
+       line-height: 160px;\r
+}\r
+\r
+/*-------------------------------------------------\r
+  Content wrappers\r
+-------------------------------------------------*/\r
+#mainwrapper\r
+{\r
+       width: 754px;\r
+       background: white;\r
+       border-width: 0 2px;\r
+       border-style: solid;\r
+       border-color: #E0E0E0;\r
+       margin: auto;\r
+}\r
+#wrapper\r
+{\r
+       width: 754px;\r
+       background: white url(images/bgcontainer01.gif) repeat-y;\r
+       margin: auto;\r
+}\r
+\r
+/*-------------------------------------------------\r
+  Main content\r
+-------------------------------------------------*/\r
+#container\r
+{\r
+       width: 754px;\r
+       height: 1%;\r
+       overflow: visible;\r
+       float: right;\r
+       padding: 4px 0 0 0;\r
+       margin-left: -154px;\r
+}\r
+.content\r
+{\r
+       padding: 0;\r
+       margin: 7px 20px 30px 174px;\r
+}\r
+\r
+/*-------------------------------------------------\r
+  Item styles\r
+-------------------------------------------------*/\r
+.contenttitle h2\r
+{\r
+       clear: both;\r
+       background: url(images/dot.gif) bottom repeat-x;\r
+       font-size: 18px;\r
+       padding: 0 0 6px 0;\r
+       margin: 0;\r
+}\r
+.contentbody\r
+{\r
+       font-size:14px;\r
+       text-align: justify;\r
+       padding: 0 0 16px 0;\r
+}\r
+\r
+/*-------------------------------------------------\r
+  Item info\r
+-------------------------------------------------*/\r
+.contentitemcategory\r
+{\r
+       background: url(images/bgcategory.gif) center left no-repeat;\r
+       font-size: 10px;\r
+       line-height: 12px;\r
+       padding: 0 10px 0 14px;\r
+}\r
+.contentitempostedby\r
+{\r
+       background: url(images/bgpostedby.gif) center left no-repeat;\r
+       font-size: 10px;\r
+       line-height: 12px;\r
+       padding: 0 10px 0 12px;\r
+}\r
+.contentitemcomments\r
+{\r
+       background: url(images/bgcomment.gif) center left no-repeat;\r
+       font-size: 10px;\r
+       line-height: 12px;\r
+       padding: 0 10px 0 13px;\r
+}\r
+.contentitemedit\r
+{\r
+       background: url(images/bgedit.gif) center left no-repeat;\r
+       font-size: 10px;\r
+       line-height: 12px;\r
+       padding: 0 10px 0 11px;\r
+}\r
+.contentitem\r
+{\r
+       padding: 3px 0 0 0;\r
+       margin: 0 0 16px 0;\r
+}\r
+.contentitem1\r
+{\r
+       display: inline;\r
+}\r
+.contentitem2\r
+{\r
+       display: inline;\r
+       background: url(images/dotv.gif) left repeat-y;\r
+       padding: 0 0 0 10px;\r
+}\r
+.contentitem3\r
+{\r
+       display: inline;\r
+       background: url(images/dotv.gif) left repeat-y;\r
+       padding: 0 0 0 10px;\r
+}\r
+.contentitem4\r
+{\r
+       display: inline;\r
+       padding: 0 0 0 10px;\r
+       background: url(images/dotv.gif) left repeat-y;\r
+}\r
+\r
+/*-------------------------------------------------\r
+  Comments\r
+-------------------------------------------------*/\r
+.itemcomment\r
+{\r
+       background: url(images/commentquote01.gif) no-repeat;\r
+       background-position: 6px 9px;\r
+       padding: 6px 42px;\r
+       border: 1px solid white;\r
+       margin: 10px 0 0 0;\r
+}\r
+.itemcomment:hover\r
+{\r
+       background: #F9F9F9 url(images/commentquote02.gif) no-repeat;\r
+       background-position: 6px 9px;\r
+       border: 1px solid #CCCCCC;\r
+}\r
+.id1 /*This is to give the admin a special comment style, to distinguish him/her from the rest of the commentors*/\r
+{\r
+       background: #F9F9F9 url(images/commentquote02.gif) no-repeat;\r
+       background-position: 6px 9px;\r
+       border: 1px solid #B3C492;\r
+}\r
+.id1:hover\r
+{\r
+       background: #F9F9F9 url(images/commentquote02.gif) no-repeat;\r
+       background-position: 6px 9px;\r
+       border: 1px solid #B3C492;\r
+}\r
+.itemcomment h3\r
+{\r
+       font-size: 12px;\r
+}\r
+\r
+/*-------------------------------------------------\r
+  Menu\r
+-------------------------------------------------*/\r
+#sidebarcontainer\r
+{\r
+       float: left;\r
+       width: 154px;\r
+       padding: 2px 0 0 0;\r
+}\r
+.sidebar\r
+{\r
+       color: #21262A;\r
+       margin: 0 0 4px 6px;\r
+}\r
+\r
+/* Menu lists */\r
+.sidebardl\r
+{\r
+       padding: 0 0 10px 0;\r
+       margin: 0;\r
+}\r
+.sidebardl dt\r
+{\r
+       background: #FFC0C0 url(images/sidetitlebg.gif);\r
+       color: #3A3523;\r
+       font-size: 12px;\r
+       font-weight: bold;\r
+    font-family: "Georgia", "Lucida Grande", "Lucida Sans Unicode", Arial, "Trebuchet MS", sans-serif;\r
+       padding: 4px 10px;\r
+}\r
+.sidebardl dd\r
+{\r
+       background: #EEEEEE;\r
+       padding: 2px 10px;\r
+       margin: 1px 0 0 0;\r
+}\r
+.sidebardl dd:hover\r
+{\r
+       background: #E7E7E7;\r
+       padding: 2px 10px;\r
+       margin: 1px 0 0 0;\r
+}\r
+.sidebardl dd a:link, .sidebardl dd a:visited\r
+{\r
+       background: url(images/arrow.gif) left center no-repeat;\r
+       padding: 0 0 0 10px;\r
+}\r
+\r
+/*-------------------------------------------------\r
+  Footer\r
+-------------------------------------------------*/\r
+#footer\r
+{\r
+       width: 754px;\r
+       background: #8080E0;\r
+       text-align: center;\r
+       padding: 10px 0 10px 0;\r
+       border-width: 0px 2px 2px 2px;\r
+       border-style: solid;\r
+       border-color: #E0E0E0;\r
+       margin: 0 auto;\r
+}\r
+\r
+#copyrights\r
+{\r
+       color: #474747;\r
+}\r
+\r
+/*-------------------------------------------------\r
+  Forms\r
+-------------------------------------------------*/\r
+.loginform, .searchform\r
+{\r
+       margin: 5px 0;\r
+}\r
+.commentform, .mailform\r
+{\r
+       margin-top: 10px;\r
+    padding: 10px;\r
+    background: #EEEEEE;\r
+    /* Rounded borders, for Mozilla browsers */\r
+    /* -moz-border-radius: 10px; */\r
+}\r
+.commentform img{\r
+    margin: 5px 0 0 0;\r
+}\r
+.formfield\r
+{\r
+       display:block;\r
+       font-size: 11px;\r
+       background: white;\r
+       color: #494949;\r
+       border-top: 1px solid #868686;\r
+       border-left: 1px solid #868686;\r
+       border-bottom: 1px solid #D4D2CF;\r
+       border-right: 1px solid #D4D2CF;\r
+       margin: 1px 0 0 0;\r
+}\r
+.formbutton\r
+{\r
+       font-size: 11px;\r
+       background: white;\r
+       color: #494949;\r
+       border-top: 1px solid #D4D2CF;\r
+       border-left: 1px solid #D4D2CF;\r
+       border-bottom: 1px solid #868686;\r
+       border-right: 1px solid #868686;\r
+       margin: 1px 0 0 0;\r
+}\r
+.commentform .formfield, .commentform .formbutton, .loginform .formbutton {\r
+       display: block;\r
+}\r
+.searchform .formfield\r
+{\r
+       width: 130px;\r
+    font-family: Arial, Tahoma, Trebuchet MS, Verdana, sans-serif;\r
+       padding: 2px 0;\r
+       margin: 0 2px 2px 0;\r
+}\r
+.searchform .formbutton\r
+{\r
+       width: 60px;\r
+    font-family: Tahoma, Arial, Trebuchet MS, Verdana, sans-serif;\r
+       padding: 2px 2px;\r
+}\r
+.loginform .formfield\r
+{\r
+       width: 130px;\r
+    font-family: Arial, Tahoma, Trebuchet MS, Verdana, sans-serif;\r
+       padding: 2px 0;\r
+       margin: 0 2px 2px 0;\r
+}\r
+.loginform .formbutton\r
+{\r
+       width: 60px;\r
+    font-family: Tahoma, Arial, Trebuchet MS, Verdana, sans-serif;\r
+       padding: 2px 2px;\r
+}\r
+.mainform .formfield\r
+{\r
+       width: 280px;\r
+    font-family: Arial, Tahoma, Trebuchet MS, Verdana, sans-serif;\r
+       padding: 2px 0;\r
+       margin: 0 2px 2px 0;\r
+}\r
+.mailform .formbutton\r
+{\r
+       width: 100px;\r
+    font-family: Tahoma, Arial, Trebuchet MS, Verdana, sans-serif;\r
+       padding: 2px 2px;\r
+}\r
+#nucleus_cf_name, #nucleus_cf_mail, #nucleus_cf_email\r
+{\r
+    width: 300px;\r
+    margin-right: 105px;\r
+    font-family: Arial, Trebuchet MS, Verdana, sans-serif;\r
+}\r
+.commentform textarea, .commentform .formfield, .mailform textarea, .mailform .formfield\r
+{\r
+    width: 300px;\r
+}\r
+.commentform .formbutton\r
+{\r
+       width: 100px;\r
+       height: 22px;\r
+    font-family: Tahoma, Arial, Trebuchet MS, Verdana, sans-serif;\r
+}\r
+.error\r
+{\r
+       color: red;\r
+       font-weight: bold;\r
+}\r
+\r
+\r
+/*-------------------------------------------------\r
+  Miscelaneous\r
+-------------------------------------------------*/\r
+/* VBlog image onion skin shadow - From AListApart.com*/\r
+.wrap1, .wrap2, .wrap3\r
+{\r
+       display:inline-table;\r
+       /* \*/display:block;/**/\r
+}\r
+.wrap1\r
+{\r
+       float:left;\r
+       background:url(images/shadow.gif) right bottom no-repeat;\r
+       margin: 0 5px 3px 0;\r
+}\r
+.wrap2\r
+{\r
+       background:url(images/corner_br.gif) left bottom no-repeat;\r
+}\r
+.wrap3\r
+{\r
+       background:url(images/corner_tr.gif) right top no-repeat;\r
+       padding:0 5px 5px 0;\r
+}\r
+.wrap3 img\r
+{\r
+       display:block;\r
+       border: 3px solid white;\r
+}\r
+\r
+/* Search highlight color */\r
+.highlight\r
+{\r
+       background: #DEFFA9;\r
+}\r
+\r
+/* Leftbox and Rightbox toolbar buttons */\r
+.leftbox, .rightbox {\r
+       margin: 3px;\r
+       padding: 3px;\r
+       font-size: larger;\r
+       width: 20%;\r
+}\r
+.leftbox {\r
+       float: left;\r
+       border-right: 2px solid #ccc;\r
+}\r
+.rightbox {\r
+       float: right;\r
+       border-left: 2px solid #ccc;\r
+}\r
diff --git a/NP_PubMed/trunk/spring/default_right.css b/NP_PubMed/trunk/spring/default_right.css
new file mode 100644 (file)
index 0000000..10a4644
--- /dev/null
@@ -0,0 +1,495 @@
+/*-------------------------------------------------
+  Nucleus CMS Spring Skin Stylesheet
+  Based on the Stanch skin by Ivan Fong
+  Mods by hcgtv and moraes
+  Further mods by Katsumi
+-------------------------------------------------*/
+
+/*-------------------------------------------------
+  General layout
+-------------------------------------------------*/
+body
+{
+       background: #505050 url(images/bg.gif);
+       color: #002020;
+       font-family: "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Trebuchet, Arial, sans-serif;
+       font-size: 11px;
+       padding: 15px 0;
+       margin: 0;
+}
+img
+{
+       border: 0;
+}
+form
+{
+       margin: 0;
+}
+
+/* Headings */
+h1,h2,h3,h4,h5,h6
+{
+    font-family: "Georgia", "Lucida Grande", "Lucida Sans Unicode", "Trebuchet MS", Trebuchet, Arial, sans-serif;
+       font-weight: normal;
+       margin: 0;
+}
+
+/* Lists */
+ul
+{
+       list-style: none;
+       padding: 0;
+       margin: 0;
+}
+li
+{
+       background: url(images/arrow.gif) left 5px no-repeat;
+       padding: 0 0 0 10px;
+       margin: 0 20px;
+}
+
+/* Links */
+a:link, a:visited
+{
+       color: #004080;
+       text-decoration: none;
+}
+a:hover, a:active
+{
+       color: black;
+}
+#header a:link, #header a:visited
+{
+       color: #20E0E0;
+}
+#header a:hover, #header a:active
+{
+       color: #737373;
+}
+#copyrights a:link, #copyrights a:visited
+{
+       color: #474747;
+}
+#copyrights a:hover, #copyrights a:active
+{
+       color: #737373;
+}
+
+/* Basic classes */
+.hidden
+{
+       display: none;
+}
+.centerize
+{
+       text-align: center;
+}
+.clearing
+{
+       width: 754px;
+       height: 0;
+       clear: both;
+}
+
+/*-------------------------------------------------
+  Header
+-------------------------------------------------*/
+#header
+{
+       position: relative;
+       width: 754px;
+       height: 168px;
+       /* large header image is defined below */
+       background: white url(images/header2.jpg) no-repeat;
+       /* background: white; */
+       border-width: 2px 2px 0;
+       border-style: solid;
+       border-color: #E0E0E0;
+       margin: auto;
+}
+#header h1
+{
+       /* small header image specific lines 
+       height: 168px;
+       width: 692px;
+       background: white url(images/header_sm.jpg) repeat-x 0 6px;
+       margin: 0 6px;
+          end small header image specific lines */
+       font-size: 38px;
+       text-align: center;
+       line-height: 160px;
+}
+
+/*-------------------------------------------------
+  Content wrappers
+-------------------------------------------------*/
+#mainwrapper
+{
+       width: 754px;
+       background: white;
+       border-width: 0 2px;
+       border-style: solid;
+       border-color: #E0E0E0;
+       margin: auto;
+}
+#wrapper
+{
+       width: 754px;
+       background: white url(images/bgcontainer02.gif) repeat-y right;
+       margin: auto;
+}
+
+/*-------------------------------------------------
+  Main content
+-------------------------------------------------*/
+#container
+{
+       width: 754px;
+       height: 1%;
+       overflow: visible;
+       float: left;
+       padding: 4px 0 0 0;
+       margin-right: -154px;
+}
+.content
+{
+       padding: 0;
+       margin: 7px 174px 30px 20px;
+}
+
+/*-------------------------------------------------
+  Item styles
+-------------------------------------------------*/
+.contenttitle h2
+{
+       clear: both;
+       background: url(images/dot.gif) bottom repeat-x;
+       font-size: 18px;
+       padding: 0 0 6px 0;
+       margin: 0;
+}
+.contentbody
+{
+       font-size:13px;
+       text-align: justify;
+       padding: 0 0 16px 0;
+}
+
+/*-------------------------------------------------
+  Item info
+-------------------------------------------------*/
+.contentitemcategory
+{
+       background: url(images/bgcategory.gif) center left no-repeat;
+       font-size: 10px;
+       line-height: 12px;
+       padding: 0 10px 0 14px;
+}
+.contentitempostedby
+{
+       background: url(images/bgpostedby.gif) center left no-repeat;
+       font-size: 10px;
+       line-height: 12px;
+       padding: 0 10px 0 12px;
+}
+.contentitemcomments
+{
+       background: url(images/bgcomment.gif) center left no-repeat;
+       font-size: 10px;
+       line-height: 12px;
+       padding: 0 10px 0 13px;
+}
+.contentitemedit
+{
+       background: url(images/bgedit.gif) center left no-repeat;
+       font-size: 10px;
+       line-height: 12px;
+       padding: 0 10px 0 11px;
+}
+.contentitem
+{
+       padding: 3px 0 0 0;
+       margin: 0 0 16px 0;
+}
+.contentitem1
+{
+       display: inline;
+}
+.contentitem2
+{
+       display: inline;
+       background: url(images/dotv.gif) left repeat-y;
+       padding: 0 0 0 10px;
+}
+.contentitem3
+{
+       display: inline;
+       background: url(images/dotv.gif) left repeat-y;
+       padding: 0 0 0 10px;
+}
+.contentitem4
+{
+       display: inline;
+       padding: 0 0 0 10px;
+       background: url(images/dotv.gif) left repeat-y;
+}
+
+/*-------------------------------------------------
+  Comments
+-------------------------------------------------*/
+.itemcomment
+{
+       background: url(images/commentquote01.gif) no-repeat;
+       background-position: 6px 9px;
+       padding: 6px 42px;
+       border: 1px solid white;
+       margin: 10px 0 0 0;
+}
+.itemcomment:hover
+{
+       background: #F9F9F9 url(images/commentquote02.gif) no-repeat;
+       background-position: 6px 9px;
+       border: 1px solid #CCCCCC;
+}
+.id1 /*This is to give the admin a special comment style, to distinguish him/her from the rest of the commentors*/
+{
+       background: #F9F9F9 url(images/commentquote02.gif) no-repeat;
+       background-position: 6px 9px;
+       border: 1px solid #B3C492;
+}
+.id1:hover
+{
+       background: #F9F9F9 url(images/commentquote02.gif) no-repeat;
+       background-position: 6px 9px;
+       border: 1px solid #B3C492;
+}
+.itemcomment h3
+{
+       font-size: 12px;
+}
+
+/*-------------------------------------------------
+  Menu
+-------------------------------------------------*/
+#sidebarcontainer
+{
+       float: right;
+       width: 154px;
+       padding: 2px 0 0 0;
+}
+.sidebar
+{
+       color: #21262A;
+       margin: 0 6px 4px 0;
+}
+
+/* Menu lists */
+.sidebardl
+{
+       padding: 0 0 10px 0;
+       margin: 0;
+}
+.sidebardl dt
+{
+       background: #FFC0C0 url(images/sidetitlebg.gif);
+       color: #3A3523;
+       font-size: 12px;
+       font-weight: bold;
+    font-family: "Georgia", "Lucida Grande", "Lucida Sans Unicode", Arial, "Trebuchet MS", sans-serif;
+       padding: 4px 10px;
+}
+.sidebardl dd
+{
+       background: #EEEEEE;
+       padding: 2px 10px;
+       margin: 1px 0 0 0;
+}
+.sidebardl dd:hover
+{
+       background: #E7E7E7;
+       padding: 2px 10px;
+       margin: 1px 0 0 0;
+}
+.sidebardl dd a:link, .sidebardl dd a:visited
+{
+       background: url(images/arrow.gif) left center no-repeat;
+       padding: 0 0 0 10px;
+}
+
+/*-------------------------------------------------
+  Footer
+-------------------------------------------------*/
+#footer
+{
+       width: 754px;
+       background: #8080E0;
+       text-align: center;
+       padding: 10px 0 10px 0;
+       border-width: 0px 2px 2px 2px;
+       border-style: solid;
+       border-color: #E0E0E0;
+       margin: 0 auto;
+}
+
+#copyrights
+{
+       color: #474747;
+}
+
+/*-------------------------------------------------
+  Forms
+-------------------------------------------------*/
+.loginform, .searchform
+{
+       margin: 5px 0;
+}
+.commentform, .mailform
+{
+       margin-top: 10px;
+    padding: 10px;
+    background: #EEEEEE;
+    /* Rounded borders, for Mozilla browsers */
+    /* -moz-border-radius: 10px; */
+}
+.commentform img{
+    margin: 5px 0 0 0;
+}
+.formfield
+{
+       display:block;
+       font-size: 11px;
+       background: white;
+       color: #494949;
+       border-top: 1px solid #868686;
+       border-left: 1px solid #868686;
+       border-bottom: 1px solid #D4D2CF;
+       border-right: 1px solid #D4D2CF;
+       margin: 1px 0 0 0;
+}
+.formbutton
+{
+       font-size: 11px;
+       background: white;
+       color: #494949;
+       border-top: 1px solid #D4D2CF;
+       border-left: 1px solid #D4D2CF;
+       border-bottom: 1px solid #868686;
+       border-right: 1px solid #868686;
+       margin: 1px 0 0 0;
+}
+.commentform .formfield, .commentform .formbutton, .loginform .formbutton {
+       display: block;
+}
+.searchform .formfield
+{
+       width: 130px;
+    font-family: Arial, Tahoma, Trebuchet MS, Verdana, sans-serif;
+       padding: 2px 0;
+       margin: 0 2px 2px 0;
+}
+.searchform .formbutton
+{
+       width: 60px;
+    font-family: Tahoma, Arial, Trebuchet MS, Verdana, sans-serif;
+       padding: 2px 2px;
+}
+.loginform .formfield
+{
+       width: 130px;
+    font-family: Arial, Tahoma, Trebuchet MS, Verdana, sans-serif;
+       padding: 2px 0;
+       margin: 0 2px 2px 0;
+}
+.loginform .formbutton
+{
+       width: 60px;
+    font-family: Tahoma, Arial, Trebuchet MS, Verdana, sans-serif;
+       padding: 2px 2px;
+}
+.mainform .formfield
+{
+       width: 280px;
+    font-family: Arial, Tahoma, Trebuchet MS, Verdana, sans-serif;
+       padding: 2px 0;
+       margin: 0 2px 2px 0;
+}
+.mailform .formbutton
+{
+       width: 100px;
+    font-family: Tahoma, Arial, Trebuchet MS, Verdana, sans-serif;
+       padding: 2px 2px;
+}
+#nucleus_cf_name, #nucleus_cf_mail, #nucleus_cf_email
+{
+    width: 300px;
+    margin-right: 105px;
+    font-family: Arial, Trebuchet MS, Verdana, sans-serif;
+}
+.commentform textarea, .commentform .formfield, .mailform textarea, .mailform .formfield
+{
+    width: 300px;
+}
+.commentform .formbutton
+{
+       width: 100px;
+       height: 22px;
+    font-family: Tahoma, Arial, Trebuchet MS, Verdana, sans-serif;
+}
+.error
+{
+       color: red;
+       font-weight: bold;
+}
+
+
+/*-------------------------------------------------
+  Miscelaneous
+-------------------------------------------------*/
+/* VBlog image onion skin shadow - From AListApart.com*/
+.wrap1, .wrap2, .wrap3
+{
+       display:inline-table;
+       /* \*/display:block;/**/
+}
+.wrap1
+{
+       float:left;
+       background:url(images/shadow.gif) right bottom no-repeat;
+       margin: 0 5px 3px 0;
+}
+.wrap2
+{
+       background:url(images/corner_br.gif) left bottom no-repeat;
+}
+.wrap3
+{
+       background:url(images/corner_tr.gif) right top no-repeat;
+       padding:0 5px 5px 0;
+}
+.wrap3 img
+{
+       display:block;
+       border: 3px solid white;
+}
+
+/* Search highlight color */
+.highlight
+{
+       background: #DEFFA9;
+}
+
+/* Leftbox and Rightbox toolbar buttons */
+.leftbox, .rightbox {
+       margin: 3px;
+       padding: 3px;
+       font-size: larger;
+       width: 20%;
+}
+.leftbox {
+       float: left;
+       border-right: 2px solid #ccc;
+}
+.rightbox {
+       float: right;
+       border-left: 2px solid #ccc;
+}
diff --git a/NP_PubMed/trunk/spring/favicon.ico b/NP_PubMed/trunk/spring/favicon.ico
new file mode 100644 (file)
index 0000000..5762dbc
Binary files /dev/null and b/NP_PubMed/trunk/spring/favicon.ico differ
diff --git a/NP_PubMed/trunk/spring/footer.inc b/NP_PubMed/trunk/spring/footer.inc
new file mode 100644 (file)
index 0000000..3bb784e
--- /dev/null
@@ -0,0 +1,17 @@
+<div class="clearing">&nbsp;</div>
+</div>
+</div>
+<!-- end wrapper divs -->
+
+<!-- page footer, copyrights, etc. -->
+<div id="footer">
+<div id="copyrights">
+       <small>Copyright | <a href="http://nucleuscms.org"><%version%></a> | 
+       <a href="http://validator.w3.org/check?uri=referer">Valid XHTML 1.0 Strict</a> | 
+       <a href="http://jigsaw.w3.org/css-validator/">Valid CSS</a> | 
+       <a href="#top">Back to top</a></small>
+</div>
+</div>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/NP_PubMed/trunk/spring/head.inc b/NP_PubMed/trunk/spring/head.inc
new file mode 100644 (file)
index 0000000..f53360a
--- /dev/null
@@ -0,0 +1,36 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\r
+"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+\r
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja-JP" lang="ja-JP">\r
+<head>\r
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />\r
+\r
+<!-- meta information for search engines -->\r
+<meta name="generator" content="<%version%>" />\r
+<meta name="name" content="<%if(skintype,error)%><%sitevar(name)%><%else%><%blogsetting(name)%><%endif%>" />\r
+<meta name="description" content="<%if(skintype,error)%><%sitevar(name)%><%else%><%blogsetting(desc)%><%endif%>" />\r
+\r
+<!-- prevent caching (can be removed) -->\r
+<meta http-equiv="Pragma" content="no-cache" />\r
+<meta http-equiv="Cache-Control" content="no-cache, must-revalidate" />\r
+<meta http-equiv="Expires" content="-1" />\r
+\r
+<!-- site stylesheet (site colors and layout definitions) -->\r
+<link rel="stylesheet" type="text/css" href="<%skinfile(default_left.css)%>" />\r
+\r
+<!-- tooltips & stylesheet (activated by title="" on links) -->\r
+<link rel="stylesheet" type="text/css" href="<%skinfile(nicetitle.css)%>" />\r
+<script type="text/javascript" src="<%skinfile(nicetitle.js)%>"></script>\r
+\r
+<!-- RSS 2.0 feed -->\r
+<link rel="alternate" type="application/rss+xml" title="RSS" href="xml-rss2.php" />\r
+\r
+<!-- RSD support -->\r
+<link rel="EditURI" type="application/rsd+xml" title="RSD" href="rsd.php" />\r
+\r
+<!-- favorite icon -->\r
+<link rel="shortcut icon" href="/favicon.ico" />\r
+<link rel="icon" href="/favicon.ico" />\r
+\r
+<!-- navigation & page titles -->\r
+<%parsedinclude(navigation.inc)%>\r
diff --git a/NP_PubMed/trunk/spring/header.inc b/NP_PubMed/trunk/spring/header.inc
new file mode 100644 (file)
index 0000000..725a60e
--- /dev/null
@@ -0,0 +1,20 @@
+<body>
+
+<!-- page header -->
+<div id="header"><a name="top"></a>
+<h1>
+       <%if(skintype,error)%>
+               <a href="<%sitevar(url)%>" accesskey="1"><%sitevar(name)%></a>
+       <%else%>
+       <%if(skintype,member)%>
+               <a href="<%sitevar(url)%>" accesskey="1"><%sitevar(name)%></a>
+       <%else%>
+               <a href="<%blogsetting(url)%>" accesskey="1"><%blogsetting(name)%></a>
+       <%endif%>
+       <%endif%>
+</h1>
+</div>
+
+<!-- begin wrapper divs -->
+<div id="mainwrapper">
+<div id="wrapper">
\ No newline at end of file
diff --git a/NP_PubMed/trunk/spring/images/arrow.gif b/NP_PubMed/trunk/spring/images/arrow.gif
new file mode 100644 (file)
index 0000000..529db30
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/arrow.gif differ
diff --git a/NP_PubMed/trunk/spring/images/bg.gif b/NP_PubMed/trunk/spring/images/bg.gif
new file mode 100644 (file)
index 0000000..49dc034
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/bg.gif differ
diff --git a/NP_PubMed/trunk/spring/images/bgcategory.gif b/NP_PubMed/trunk/spring/images/bgcategory.gif
new file mode 100644 (file)
index 0000000..343961f
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/bgcategory.gif differ
diff --git a/NP_PubMed/trunk/spring/images/bgcomment.gif b/NP_PubMed/trunk/spring/images/bgcomment.gif
new file mode 100644 (file)
index 0000000..602bcf3
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/bgcomment.gif differ
diff --git a/NP_PubMed/trunk/spring/images/bgcontainer01.gif b/NP_PubMed/trunk/spring/images/bgcontainer01.gif
new file mode 100644 (file)
index 0000000..3d0b54b
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/bgcontainer01.gif differ
diff --git a/NP_PubMed/trunk/spring/images/bgcontainer02.gif b/NP_PubMed/trunk/spring/images/bgcontainer02.gif
new file mode 100644 (file)
index 0000000..4adeae9
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/bgcontainer02.gif differ
diff --git a/NP_PubMed/trunk/spring/images/bgedit.gif b/NP_PubMed/trunk/spring/images/bgedit.gif
new file mode 100644 (file)
index 0000000..2599ce9
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/bgedit.gif differ
diff --git a/NP_PubMed/trunk/spring/images/bgpostedby.gif b/NP_PubMed/trunk/spring/images/bgpostedby.gif
new file mode 100644 (file)
index 0000000..ee367a2
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/bgpostedby.gif differ
diff --git a/NP_PubMed/trunk/spring/images/commentquote01.gif b/NP_PubMed/trunk/spring/images/commentquote01.gif
new file mode 100644 (file)
index 0000000..5effd26
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/commentquote01.gif differ
diff --git a/NP_PubMed/trunk/spring/images/commentquote02.gif b/NP_PubMed/trunk/spring/images/commentquote02.gif
new file mode 100644 (file)
index 0000000..3d8531c
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/commentquote02.gif differ
diff --git a/NP_PubMed/trunk/spring/images/corner_br.gif b/NP_PubMed/trunk/spring/images/corner_br.gif
new file mode 100644 (file)
index 0000000..3c90eae
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/corner_br.gif differ
diff --git a/NP_PubMed/trunk/spring/images/corner_tr.gif b/NP_PubMed/trunk/spring/images/corner_tr.gif
new file mode 100644 (file)
index 0000000..04505ae
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/corner_tr.gif differ
diff --git a/NP_PubMed/trunk/spring/images/dot.gif b/NP_PubMed/trunk/spring/images/dot.gif
new file mode 100644 (file)
index 0000000..14a2426
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/dot.gif differ
diff --git a/NP_PubMed/trunk/spring/images/dotv.gif b/NP_PubMed/trunk/spring/images/dotv.gif
new file mode 100644 (file)
index 0000000..7168124
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/dotv.gif differ
diff --git a/NP_PubMed/trunk/spring/images/header2.jpg b/NP_PubMed/trunk/spring/images/header2.jpg
new file mode 100644 (file)
index 0000000..5a6ce0e
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/header2.jpg differ
diff --git a/NP_PubMed/trunk/spring/images/nucleus.gif b/NP_PubMed/trunk/spring/images/nucleus.gif
new file mode 100644 (file)
index 0000000..1cdf680
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/nucleus.gif differ
diff --git a/NP_PubMed/trunk/spring/images/shadow.gif b/NP_PubMed/trunk/spring/images/shadow.gif
new file mode 100644 (file)
index 0000000..d8b6f7d
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/shadow.gif differ
diff --git a/NP_PubMed/trunk/spring/images/sidetitlebg.gif b/NP_PubMed/trunk/spring/images/sidetitlebg.gif
new file mode 100644 (file)
index 0000000..ff434e8
Binary files /dev/null and b/NP_PubMed/trunk/spring/images/sidetitlebg.gif differ
diff --git a/NP_PubMed/trunk/spring/license.txt b/NP_PubMed/trunk/spring/license.txt
new file mode 100644 (file)
index 0000000..13a56b1
--- /dev/null
@@ -0,0 +1,340 @@
+                   GNU GENERAL PUBLIC LICENSE\r
+                      Version 2, June 1991\r
+\r
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.\r
+                       59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
+ Everyone is permitted to copy and distribute verbatim copies\r
+ of this license document, but changing it is not allowed.\r
+\r
+                           Preamble\r
+\r
+  The licenses for most software are designed to take away your\r
+freedom to share and change it.  By contrast, the GNU General Public\r
+License is intended to guarantee your freedom to share and change free\r
+software--to make sure the software is free for all its users.  This\r
+General Public License applies to most of the Free Software\r
+Foundation's software and to any other program whose authors commit to\r
+using it.  (Some other Free Software Foundation software is covered by\r
+the GNU Library General Public License instead.)  You can apply it to\r
+your programs, too.\r
+\r
+  When we speak of free software, we are referring to freedom, not\r
+price.  Our General Public Licenses are designed to make sure that you\r
+have the freedom to distribute copies of free software (and charge for\r
+this service if you wish), that you receive source code or can get it\r
+if you want it, that you can change the software or use pieces of it\r
+in new free programs; and that you know you can do these things.\r
+\r
+  To protect your rights, we need to make restrictions that forbid\r
+anyone to deny you these rights or to ask you to surrender the rights.\r
+These restrictions translate to certain responsibilities for you if you\r
+distribute copies of the software, or if you modify it.\r
+\r
+  For example, if you distribute copies of such a program, whether\r
+gratis or for a fee, you must give the recipients all the rights that\r
+you have.  You must make sure that they, too, receive or can get the\r
+source code.  And you must show them these terms so they know their\r
+rights.\r
+\r
+  We protect your rights with two steps: (1) copyright the software, and\r
+(2) offer you this license which gives you legal permission to copy,\r
+distribute and/or modify the software.\r
+\r
+  Also, for each author's protection and ours, we want to make certain\r
+that everyone understands that there is no warranty for this free\r
+software.  If the software is modified by someone else and passed on, we\r
+want its recipients to know that what they have is not the original, so\r
+that any problems introduced by others will not reflect on the original\r
+authors' reputations.\r
+\r
+  Finally, any free program is threatened constantly by software\r
+patents.  We wish to avoid the danger that redistributors of a free\r
+program will individually obtain patent licenses, in effect making the\r
+program proprietary.  To prevent this, we have made it clear that any\r
+patent must be licensed for everyone's free use or not licensed at all.\r
+\r
+  The precise terms and conditions for copying, distribution and\r
+modification follow.\r
+\r
+                   GNU GENERAL PUBLIC LICENSE\r
+   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\r
+\r
+  0. This License applies to any program or other work which contains\r
+a notice placed by the copyright holder saying it may be distributed\r
+under the terms of this General Public License.  The "Program", below,\r
+refers to any such program or work, and a "work based on the Program"\r
+means either the Program or any derivative work under copyright law:\r
+that is to say, a work containing the Program or a portion of it,\r
+either verbatim or with modifications and/or translated into another\r
+language.  (Hereinafter, translation is included without limitation in\r
+the term "modification".)  Each licensee is addressed as "you".\r
+\r
+Activities other than copying, distribution and modification are not\r
+covered by this License; they are outside its scope.  The act of\r
+running the Program is not restricted, and the output from the Program\r
+is covered only if its contents constitute a work based on the\r
+Program (independent of having been made by running the Program).\r
+Whether that is true depends on what the Program does.\r
+\r
+  1. You may copy and distribute verbatim copies of the Program's\r
+source code as you receive it, in any medium, provided that you\r
+conspicuously and appropriately publish on each copy an appropriate\r
+copyright notice and disclaimer of warranty; keep intact all the\r
+notices that refer to this License and to the absence of any warranty;\r
+and give any other recipients of the Program a copy of this License\r
+along with the Program.\r
+\r
+You may charge a fee for the physical act of transferring a copy, and\r
+you may at your option offer warranty protection in exchange for a fee.\r
+\r
+  2. You may modify your copy or copies of the Program or any portion\r
+of it, thus forming a work based on the Program, and copy and\r
+distribute such modifications or work under the terms of Section 1\r
+above, provided that you also meet all of these conditions:\r
+\r
+    a) You must cause the modified files to carry prominent notices\r
+    stating that you changed the files and the date of any change.\r
+\r
+    b) You must cause any work that you distribute or publish, that in\r
+    whole or in part contains or is derived from the Program or any\r
+    part thereof, to be licensed as a whole at no charge to all third\r
+    parties under the terms of this License.\r
+\r
+    c) If the modified program normally reads commands interactively\r
+    when run, you must cause it, when started running for such\r
+    interactive use in the most ordinary way, to print or display an\r
+    announcement including an appropriate copyright notice and a\r
+    notice that there is no warranty (or else, saying that you provide\r
+    a warranty) and that users may redistribute the program under\r
+    these conditions, and telling the user how to view a copy of this\r
+    License.  (Exception: if the Program itself is interactive but\r
+    does not normally print such an announcement, your work based on\r
+    the Program is not required to print an announcement.)\r
+\r
+These requirements apply to the modified work as a whole.  If\r
+identifiable sections of that work are not derived from the Program,\r
+and can be reasonably considered independent and separate works in\r
+themselves, then this License, and its terms, do not apply to those\r
+sections when you distribute them as separate works.  But when you\r
+distribute the same sections as part of a whole which is a work based\r
+on the Program, the distribution of the whole must be on the terms of\r
+this License, whose permissions for other licensees extend to the\r
+entire whole, and thus to each and every part regardless of who wrote it.\r
+\r
+Thus, it is not the intent of this section to claim rights or contest\r
+your rights to work written entirely by you; rather, the intent is to\r
+exercise the right to control the distribution of derivative or\r
+collective works based on the Program.\r
+\r
+In addition, mere aggregation of another work not based on the Program\r
+with the Program (or with a work based on the Program) on a volume of\r
+a storage or distribution medium does not bring the other work under\r
+the scope of this License.\r
+\r
+  3. You may copy and distribute the Program (or a work based on it,\r
+under Section 2) in object code or executable form under the terms of\r
+Sections 1 and 2 above provided that you also do one of the following:\r
+\r
+    a) Accompany it with the complete corresponding machine-readable\r
+    source code, which must be distributed under the terms of Sections\r
+    1 and 2 above on a medium customarily used for software interchange; or,\r
+\r
+    b) Accompany it with a written offer, valid for at least three\r
+    years, to give any third party, for a charge no more than your\r
+    cost of physically performing source distribution, a complete\r
+    machine-readable copy of the corresponding source code, to be\r
+    distributed under the terms of Sections 1 and 2 above on a medium\r
+    customarily used for software interchange; or,\r
+\r
+    c) Accompany it with the information you received as to the offer\r
+    to distribute corresponding source code.  (This alternative is\r
+    allowed only for noncommercial distribution and only if you\r
+    received the program in object code or executable form with such\r
+    an offer, in accord with Subsection b above.)\r
+\r
+The source code for a work means the preferred form of the work for\r
+making modifications to it.  For an executable work, complete source\r
+code means all the source code for all modules it contains, plus any\r
+associated interface definition files, plus the scripts used to\r
+control compilation and installation of the executable.  However, as a\r
+special exception, the source code distributed need not include\r
+anything that is normally distributed (in either source or binary\r
+form) with the major components (compiler, kernel, and so on) of the\r
+operating system on which the executable runs, unless that component\r
+itself accompanies the executable.\r
+\r
+If distribution of executable or object code is made by offering\r
+access to copy from a designated place, then offering equivalent\r
+access to copy the source code from the same place counts as\r
+distribution of the source code, even though third parties are not\r
+compelled to copy the source along with the object code.\r
+\r
+  4. You may not copy, modify, sublicense, or distribute the Program\r
+except as expressly provided under this License.  Any attempt\r
+otherwise to copy, modify, sublicense or distribute the Program is\r
+void, and will automatically terminate your rights under this License.\r
+However, parties who have received copies, or rights, from you under\r
+this License will not have their licenses terminated so long as such\r
+parties remain in full compliance.\r
+\r
+  5. You are not required to accept this License, since you have not\r
+signed it.  However, nothing else grants you permission to modify or\r
+distribute the Program or its derivative works.  These actions are\r
+prohibited by law if you do not accept this License.  Therefore, by\r
+modifying or distributing the Program (or any work based on the\r
+Program), you indicate your acceptance of this License to do so, and\r
+all its terms and conditions for copying, distributing or modifying\r
+the Program or works based on it.\r
+\r
+  6. Each time you redistribute the Program (or any work based on the\r
+Program), the recipient automatically receives a license from the\r
+original licensor to copy, distribute or modify the Program subject to\r
+these terms and conditions.  You may not impose any further\r
+restrictions on the recipients' exercise of the rights granted herein.\r
+You are not responsible for enforcing compliance by third parties to\r
+this License.\r
+\r
+  7. If, as a consequence of a court judgment or allegation of patent\r
+infringement or for any other reason (not limited to patent issues),\r
+conditions are imposed on you (whether by court order, agreement or\r
+otherwise) that contradict the conditions of this License, they do not\r
+excuse you from the conditions of this License.  If you cannot\r
+distribute so as to satisfy simultaneously your obligations under this\r
+License and any other pertinent obligations, then as a consequence you\r
+may not distribute the Program at all.  For example, if a patent\r
+license would not permit royalty-free redistribution of the Program by\r
+all those who receive copies directly or indirectly through you, then\r
+the only way you could satisfy both it and this License would be to\r
+refrain entirely from distribution of the Program.\r
+\r
+If any portion of this section is held invalid or unenforceable under\r
+any particular circumstance, the balance of the section is intended to\r
+apply and the section as a whole is intended to apply in other\r
+circumstances.\r
+\r
+It is not the purpose of this section to induce you to infringe any\r
+patents or other property right claims or to contest validity of any\r
+such claims; this section has the sole purpose of protecting the\r
+integrity of the free software distribution system, which is\r
+implemented by public license practices.  Many people have made\r
+generous contributions to the wide range of software distributed\r
+through that system in reliance on consistent application of that\r
+system; it is up to the author/donor to decide if he or she is willing\r
+to distribute software through any other system and a licensee cannot\r
+impose that choice.\r
+\r
+This section is intended to make thoroughly clear what is believed to\r
+be a consequence of the rest of this License.\r
+\r
+  8. If the distribution and/or use of the Program is restricted in\r
+certain countries either by patents or by copyrighted interfaces, the\r
+original copyright holder who places the Program under this License\r
+may add an explicit geographical distribution limitation excluding\r
+those countries, so that distribution is permitted only in or among\r
+countries not thus excluded.  In such case, this License incorporates\r
+the limitation as if written in the body of this License.\r
+\r
+  9. The Free Software Foundation may publish revised and/or new versions\r
+of the General Public License from time to time.  Such new versions will\r
+be similar in spirit to the present version, but may differ in detail to\r
+address new problems or concerns.\r
+\r
+Each version is given a distinguishing version number.  If the Program\r
+specifies a version number of this License which applies to it and "any\r
+later version", you have the option of following the terms and conditions\r
+either of that version or of any later version published by the Free\r
+Software Foundation.  If the Program does not specify a version number of\r
+this License, you may choose any version ever published by the Free Software\r
+Foundation.\r
+\r
+  10. If you wish to incorporate parts of the Program into other free\r
+programs whose distribution conditions are different, write to the author\r
+to ask for permission.  For software which is copyrighted by the Free\r
+Software Foundation, write to the Free Software Foundation; we sometimes\r
+make exceptions for this.  Our decision will be guided by the two goals\r
+of preserving the free status of all derivatives of our free software and\r
+of promoting the sharing and reuse of software generally.\r
+\r
+                           NO WARRANTY\r
+\r
+  11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY\r
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW.  EXCEPT WHEN\r
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES\r
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED\r
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF\r
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS\r
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE\r
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,\r
+REPAIR OR CORRECTION.\r
+\r
+  12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING\r
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR\r
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,\r
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING\r
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED\r
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY\r
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER\r
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE\r
+POSSIBILITY OF SUCH DAMAGES.\r
+\r
+                    END OF TERMS AND CONDITIONS\r
+\r
+           How to Apply These Terms to Your New Programs\r
+\r
+  If you develop a new program, and you want it to be of the greatest\r
+possible use to the public, the best way to achieve this is to make it\r
+free software which everyone can redistribute and change under these terms.\r
+\r
+  To do so, attach the following notices to the program.  It is safest\r
+to attach them to the start of each source file to most effectively\r
+convey the exclusion of warranty; and each file should have at least\r
+the "copyright" line and a pointer to where the full notice is found.\r
+\r
+    <one line to give the program's name and a brief idea of what it does.>\r
+    Copyright (C) <year>  <name of author>\r
+\r
+    This program is free software; you can redistribute it and/or modify\r
+    it under the terms of the GNU General Public License as published by\r
+    the Free Software Foundation; either version 2 of the License, or\r
+    (at your option) any later version.\r
+\r
+    This program is distributed in the hope that it will be useful,\r
+    but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
+    GNU General Public License for more details.\r
+\r
+    You should have received a copy of the GNU General Public License\r
+    along with this program; if not, write to the Free Software\r
+    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA\r
+\r
+\r
+Also add information on how to contact you by electronic and paper mail.\r
+\r
+If the program is interactive, make it output a short notice like this\r
+when it starts in an interactive mode:\r
+\r
+    Gnomovision version 69, Copyright (C) year name of author\r
+    Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.\r
+    This is free software, and you are welcome to redistribute it\r
+    under certain conditions; type `show c' for details.\r
+\r
+The hypothetical commands `show w' and `show c' should show the appropriate\r
+parts of the General Public License.  Of course, the commands you use may\r
+be called something other than `show w' and `show c'; they could even be\r
+mouse-clicks or menu items--whatever suits your program.\r
+\r
+You should also get your employer (if you work as a programmer) or your\r
+school, if any, to sign a "copyright disclaimer" for the program, if\r
+necessary.  Here is a sample; alter the names:\r
+\r
+  Yoyodyne, Inc., hereby disclaims all copyright interest in the program\r
+  `Gnomovision' (which makes passes at compilers) written by James Hacker.\r
+\r
+  <signature of Ty Coon>, 1 April 1989\r
+  Ty Coon, President of Vice\r
+\r
+This General Public License does not permit incorporating your program into\r
+proprietary programs.  If your program is a subroutine library, you may\r
+consider it more useful to permit linking proprietary applications with the\r
+library.  If this is what you want to do, use the GNU Library General\r
+Public License instead of this License.\r
diff --git a/NP_PubMed/trunk/spring/navigation.inc b/NP_PubMed/trunk/spring/navigation.inc
new file mode 100644 (file)
index 0000000..169f70a
--- /dev/null
@@ -0,0 +1,56 @@
+<!-- archive: page title and extra navigational links -->
+<%if(skintype,archive)%>
+<title><%blogsetting(name)%> &raquo; Archive</title>
+<link rel="archives" title="Archives" href="<%archivelink%>" />
+<link rel="top" title="Today" href="<%sitevar(url)%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<%endif%>
+
+<!-- archivelist: page title and extra navigational links -->
+<%if(skintype,archivelist)%>
+<title><%blogsetting(name)%> &raquo; Archive List</title>
+<link rel="archives" title="Archives" href="<%archivelink%>" />
+<link rel="top" title="Today" href="<%sitevar(url)%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<%endif%>
+
+<!-- error: page title and extra navigational links -->
+<%if(skintype,error)%>
+<title><%sitevar(name)%> &raquo; Error!</title>
+<link rel="top" title="Today" href="<%todaylink%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<%endif%>
+
+<!-- index: page title and extra navigational links -->
+<%if(skintype,index)%>
+<title><%blogsetting(name)%></title>
+<link rel="bookmark" title="Nucleus" href="http://nucleuscms.org/" />
+<link rel="archives" title="Archives" href="<%archivelink%>" />
+<link rel="top" title="Today" href="<%todaylink%>" />
+<%endif%>
+
+<!-- item: page title and extra navigational links -->
+<%if(skintype,item)%>
+<title><%blogsetting(name)%> &raquo; <%itemtitle(attribute)%></title>
+<link rel="archives" title="Archives" href="<%archivelink%>" />
+<link rel="top" title="Today" href="<%sitevar(url)%>" />
+<link rel="next" href="<%nextlink%>" title="Next Item" />
+<link rel="prev" href="<%prevlink%>" title="Previous Item" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<%endif%>
+
+<!-- member: page title and extra navigational links -->
+<%if(skintype,member)%>
+<title><%blogsetting(name)%> &raquo; Member Details</title>
+<link rel="top" title="Today" href="<%todaylink%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<%endif%>
+
+<!-- search: page title and extra navigational links -->
+<%if(skintype,search)%>
+<title><%blogsetting(name)%> &raquo; Search</title>
+<link rel="archives" title="Archives" href="<%archivelink%>" />
+<link rel="top" title="Today" href="<%sitevar(url)%>" />
+<link rel="up" href="<%todaylink%>" title="Today" />
+<%endif%>
+</head>
\ No newline at end of file
diff --git a/NP_PubMed/trunk/spring/nicetitle.css b/NP_PubMed/trunk/spring/nicetitle.css
new file mode 100644 (file)
index 0000000..4f76da2
--- /dev/null
@@ -0,0 +1,31 @@
+/*Nice Titles*/
+.nicetitle {
+       font-weight: bold;
+       color: #3C3C3C;
+       text-align: left;
+       position: absolute;
+       left: 0;
+       top: 0;
+       width: 25em;
+       z-index: 20;
+       max-width: 50%;
+}
+.nicetitle-content{
+       overflow: hidden;
+       background: white;
+       border: 1px solid #333;
+       padding: 5px;
+       opacity: 0.9;
+}
+.nicetitle p{
+       margin: 0;
+       line-height: 120%;
+}
+.nicetitle p.destination {
+       font-weight: normal;
+       font-size: 10px;
+       color: #5E7743;
+}
+div.nicetitle p span.accesskey {
+       color: #FF7200;
+}
\ No newline at end of file
diff --git a/NP_PubMed/trunk/spring/nicetitle.js b/NP_PubMed/trunk/spring/nicetitle.js
new file mode 100644 (file)
index 0000000..7180820
--- /dev/null
@@ -0,0 +1,448 @@
+// from http://www.kryogenix.org
+// by Scott Andrew - http://scottandrew.com
+// add an eventlistener to browsers that can do it somehow.
+function addEvent(obj, evType, fn)
+       {
+       if (obj.addEventListener)
+               {
+               obj.addEventListener(evType, fn, false);
+               return true;
+               }
+       else if (obj.attachEvent)
+               {
+               var r = obj.attachEvent('on'+evType, fn);
+               return r;
+               }
+       else
+               {
+               return false;
+               }
+       }
+
+function floatImages()
+       {
+       // adapted from http://www.dithered.com/javascript/browser_detect/
+       //**************************************************************//
+       // sniff user agent
+       var userAgent = navigator.userAgent.toLowerCase();
+
+       // if Mozilla 1.4 then quit
+       if ((userAgent.indexOf('gecko') != -1) && (userAgent.indexOf('gecko/') + 14 == userAgent.length) && (parseFloat(userAgent.substring(userAgent.indexOf('rv:') + 3)) == '1.4')) return;
+
+       // if Opera then quit
+       if (document.all && window.Event) return;
+       //**************************************************************//
+
+       // check this browser can cope with what we want to do
+       if (!document.getElementById) return;
+       var blogDiv = document.getElementById('blog');
+       if (!blogDiv) return;
+       if (!blogDiv.offsetWidth) return;
+
+       blogDiv.className = (blogDiv.offsetWidth >= 500) ? "float-images" : "block-images";
+       }
+
+// Blockquote citations
+
+// Simon Willison's work:
+// http://simon.incutio.com/archive/2002/12/20/#blockquoteCitations
+
+// Also Dunstan Orchard's work:
+// http://1976design.com/blog/archive/2003/11/10/updates/
+function blockquoteCite()
+       {
+       if (!document.createElementNS)
+               {
+               document.createElementNS = function(ns, elt)
+                       {
+                       return document.createElement(elt);
+                       }
+               }
+       quotes = document.getElementsByTagName('blockquote');
+       for (i = 0; i < quotes.length; i++)
+               {
+               var cite = quotes[i].getAttribute('cite');
+               // value of cite attribute should only contain URI, not any other
+               if ((cite) && (cite != ''))
+                       {
+                       newlink = document.createElementNS('http://www.w3.org/1999/xhtml', 'a');
+                       newlink.setAttribute('href', cite);
+                       newlink.className = 'cite-link';
+                       newlink.appendChild(document.createTextNode(cite));
+                       newdiv = document.createElementNS('http://www.w3.org/1999/xhtml', 'cite');
+                       newdiv.className = 'blockquote-cite';
+                       newdiv.appendChild(document.createTextNode('Source: '));
+                       newdiv.appendChild(newlink);
+                       quotes[i].appendChild(newdiv);
+                       quotes[i].removeAttribute('cite');
+                       }
+               }
+       }
+
+// Ins and Del tags citations
+function insdelCite()
+       {
+       if (!document.createElementNS)
+               {
+               document.createElementNS = function(ns, elt)
+                       {
+                       return document.createElement(elt);
+                       }
+               }
+       var insdel = new Array(2);
+       insdel[0] = document.getElementsByTagName('ins');
+       insdel[1] = document.getElementsByTagName('del');
+       for (var i=0; i<insdel.length; i++)
+               {
+               if (insdel[i])
+                       {
+                       for (var id=0; id<insdel[i].length; id++)
+                               {
+                               var isdl = insdel[i][id].getAttribute('cite');
+                               if ((isdl) && (isdl != ""))
+                                       {
+                                       idlink = document.createElementNS('http://www.w3.org/1999/xhtml', 'a');
+                                       idlink.setAttribute('href', isdl);
+                                       idlink.className = 'cite-link ' + (i == 0 ? 'ins-cite' : 'del-cite');
+                                       idlink.setAttribute('title','citation of ' + (i == 0 ? 'added' : 'deleted') + ' text');
+                                       idlink.appendChild(document.createTextNode('#'));
+                                       insdel[i][id].appendChild(idlink);
+                                       insdel[i][id].removeAttribute('cite');
+                                       }
+                               }
+                       }
+               }
+       }
+
+// Force IE not to show alternate text as tooltip
+function noAltTooltip()
+       {
+       images = document.getElementsByTagName('img');
+       for (var i = 0; i < images.length; i++)
+               {
+               var title = images[i].getAttribute('title');
+               var alt = images[i].getAttribute('alt');
+               if ((document.all) && (alt) && (!title))
+                       {
+                       images[i].setAttribute('title', '');
+                       }
+               }
+       }
+
+// Nice Titles
+
+// original code by Stuart Langridge 2003-11
+// with additions to the code by other good people
+// http://www.kryogenix.org/code/browser/nicetitle/
+// thank you, sir
+
+// modified by Peter Janes 2003-03-25
+// http://peterjanes.ca/blog/archives/2003/03/25/nicetitles-for-ins-and-del
+// added in ins and del tags
+
+// modified by Dunstan Orchard 2003-11-18
+// http://1976design.com/blog/
+// added in accesskey information
+// tried ever-so-hard, but couldn't work out how to do what Ethan did
+
+// final genius touch by by Ethan Marcotte 2003-11-18
+// http://www.sidesh0w.com/
+// worked out how to delay showing the popups to make them more like the browser's own
+
+// set the namespace
+var XHTMLNS = 'http://www.w3.org/1999/xhtml';
+var CURRENT_NICE_TITLE;
+
+// browser sniff
+var browser = new Browser();
+
+// determine browser and version.
+function Browser()
+       {
+       var ua, s, i;
+
+       this.isIE = false;
+       this.isNS = false;
+       this.version = null;
+
+       ua = navigator.userAgent;
+
+       s = 'MSIE';
+       if ((i = ua.indexOf(s)) >= 0)
+               {
+               this.isIE = true;
+               this.version = parseFloat(ua.substr(i + s.length));
+               return;
+               }
+
+       s = 'Netscape6/';
+       if ((i = ua.indexOf(s)) >= 0)
+               {
+               this.isNS = true;
+               this.version = parseFloat(ua.substr(i + s.length));
+               return;
+               }
+
+       // treat any other 'Gecko' browser as NS 6.1.
+       s = 'Gecko';
+       if ((i = ua.indexOf(s)) >= 0)
+               {
+               this.isNS = true;
+               this.version = 6.1;
+               return;
+               }
+       }
+
+// 2003-11-19 sidesh0w
+// set delay vars to emulate normal hover delay
+var delay;
+var interval = 0.60;
+
+// this function runs on window load
+// it runs through all the links on the page as starts listening for actions
+function makeNiceTitles()
+       {
+       if (!document.createElement || !document.getElementsByTagName) return;
+       if (!document.createElementNS)
+               {
+               document.createElementNS = function(ns, elt)
+                       {
+                       return document.createElement(elt);
+                       }
+               }
+
+       // do regular links
+       if (!document.links)
+               {
+               document.links = document.getElementsByTagName('a');
+               }
+       for (var ti=0; ti<document.links.length; ti++)
+               {
+               var lnk = document.links[ti];
+               // * I added specific class names here..
+               if (lnk.title)
+                       {
+                       lnk.setAttribute('nicetitle', lnk.title);
+                       lnk.removeAttribute('title');
+                       addEvent(lnk, 'mouseover', showDelay);
+                       addEvent(lnk, 'mouseout', hideNiceTitle);
+                       addEvent(lnk, 'focus', showDelay);
+                       addEvent(lnk, 'blur', hideNiceTitle);
+                       }
+               }
+
+       // 2003-03-25 Peter Janes
+       // do ins and del tags
+       var tags = new Array(2);
+       tags[0] = document.getElementsByTagName('ins');
+       tags[1] = document.getElementsByTagName('del');
+       for (var tt=0; tt<tags.length; tt++)
+               {
+               if (tags[tt])
+                       {
+                       for (var ti=0; ti<tags[tt].length; ti++)
+                               {
+                               var tag = tags[tt][ti];
+                               if (tag.dateTime)
+                                       {
+                                       var strDate = tag.dateTime;
+                                       // HTML/ISO8601 date: yyyy-mm-ddThh:mm:ssTZD (Z, -hh:mm, +hh:mm)
+                                       var month = strDate.substring(5,7);
+                                       var day = strDate.substring(8,10);
+                                       if (month[0] == '0')
+                                               {
+                                               month = month[1];
+                                               }
+                                       if (day[0] == '0')
+                                               {
+                                               day = day[1];
+                                               }
+                                       var dtIns = new Date(strDate.substring(0,4), month-1, day, strDate.substring(11,13), strDate.substring(14,16), strDate.substring(17,19));
+                                       tag.setAttribute('nicetitle', (tt == 0 ? 'Added' : 'Deleted') + ' on ' + dtIns.toString());
+                                       addEvent(tag, 'mouseover', showDelay);
+                                       addEvent(tag, 'mouseout', hideNiceTitle);
+                                       addEvent(tag, 'focus', showDelay);
+                                       addEvent(tag, 'blur', hideNiceTitle);
+                                       }
+                               }
+                       }
+               }
+       }
+
+function findPosition(oLink)
+       {
+       if (oLink.offsetParent)
+               {
+               for (var posX = 0, posY = 0; oLink.offsetParent; oLink = oLink.offsetParent)
+                       {
+                       posX += oLink.offsetLeft;
+                       posY += oLink.offsetTop;
+                       }
+               return [posX, posY];
+               }
+       else
+               {
+               return [oLink.x, oLink.y];
+               }
+       }
+
+function getParent(el, pTagName)
+       {
+       if (el == null)
+               {
+               return null;
+               }
+       // gecko bug, supposed to be uppercase
+       else if (el.nodeType == 1 && el.tagName.toLowerCase() == pTagName.toLowerCase())
+               {
+               return el;
+               }
+       else
+               {
+               return getParent(el.parentNode, pTagName);
+               }
+       }
+
+// 2003-11-19 sidesh0w
+// trailerpark wrapper function
+function showDelay(e)
+       {
+    if (window.event && window.event.srcElement)
+               {
+        lnk = window.event.srcElement
+               }
+       else if (e && e.target)
+               {
+        lnk = e.target
+               }
+    if (!lnk) return;
+
+       // lnk is a textnode or an elementnode that's not ins/del
+    if (lnk.nodeType == 3 || (lnk.nodeType == 1 && lnk.tagName.toLowerCase() != 'ins' && lnk.tagName.toLowerCase() != 'del'))
+               {
+               // ascend parents until we hit a link
+               lnk = getParent(lnk, 'a');
+               }
+
+       delay = setTimeout("showNiceTitle(lnk)", interval * 1000);
+       }
+
+// build and show the nice titles
+function showNiceTitle(link)
+       {
+    if (CURRENT_NICE_TITLE) hideNiceTitle(CURRENT_NICE_TITLE);
+    if (!document.getElementsByTagName) return;
+
+    nicetitle = lnk.getAttribute('nicetitle');
+
+    var d = document.createElementNS(XHTMLNS, 'div');
+    d.className = 'nicetitle';
+    var dc = document.createElementNS(XHTMLNS, 'div');
+    dc.className = 'nicetitle-content';
+    d.appendChild(dc);
+    tnt = document.createTextNode(nicetitle);
+    pat = document.createElementNS(XHTMLNS, 'p');
+    pat.className = 'titletext';
+    pat.appendChild(tnt);
+
+       // 2003-11-18 Dunstan Orchard
+       // added in accesskey info
+       if (lnk.accessKey)
+               {
+        axs = document.createTextNode(' [' + lnk.accessKey + ']');
+               axsk = document.createElementNS(XHTMLNS, 'span');
+        axsk.className = 'accesskey';
+        axsk.appendChild(axs);
+               pat.appendChild(axsk);
+               }
+    dc.appendChild(pat);
+
+    if (lnk.href)
+               {
+        tnd = document.createTextNode(lnk.href);
+        pad = document.createElementNS(XHTMLNS, 'p');
+        pad.className = 'destination';
+        pad.appendChild(tnd);
+        dc.appendChild(pad);
+               }
+
+    STD_WIDTH = 300;
+
+       if (lnk.href)
+               {
+        h = lnk.href.length;
+               }
+       else
+               {
+               h = nicetitle.length;
+               }
+
+    if (nicetitle.length)
+               {
+               t = nicetitle.length;
+               }
+
+    h_pixels = h*6;
+       t_pixels = t*10;
+
+    if (h_pixels > STD_WIDTH)
+               {
+        w = h_pixels;
+               }
+       else if ((STD_WIDTH>t_pixels) && (t_pixels>h_pixels))
+               {
+        w = t_pixels;
+               }
+       else if ((STD_WIDTH>t_pixels) && (h_pixels>t_pixels))
+               {
+        w = h_pixels;
+               }
+       else
+               {
+        w = STD_WIDTH;
+               }
+
+    d.style.width = w + 'px';
+
+    mpos = findPosition(lnk);
+    mx = mpos[0];
+    my = mpos[1];
+
+    d.style.left = (mx+15) + 'px';
+    d.style.top = (my+35) + 'px';
+
+    if (window.innerWidth && ((mx+w) > window.innerWidth))
+               {
+        d.style.left = (window.innerWidth - w - 25) + 'px';
+               }
+    if (document.body.scrollWidth && ((mx+w) > document.body.scrollWidth))
+               {
+        d.style.left = (document.body.scrollWidth - w - 25) + 'px';
+               }
+
+    document.getElementsByTagName('body')[0].appendChild(d);
+
+    CURRENT_NICE_TITLE = d;
+       }
+
+function hideNiceTitle(e)
+       {
+       // 2003-11-19 sidesh0w
+       // clearTimeout
+       if (delay) clearTimeout(delay);
+       if (!document.getElementsByTagName) return;
+       if (CURRENT_NICE_TITLE)
+               {
+               document.getElementsByTagName('body')[0].removeChild(CURRENT_NICE_TITLE);
+               CURRENT_NICE_TITLE = null;
+               }
+       }
+
+addEvent(window, "load", floatImages);
+addEvent(window, "resize", floatImages);
+addEvent(window, "load", blockquoteCite);
+addEvent(window, "load", insdelCite);
+addEvent(window, "load", noAltTooltip);
+addEvent(window, "load", makeNiceTitles);
+
+// I'm very poor in JavaScript. Please correct me if I'm wrong.
\ No newline at end of file
diff --git a/NP_PubMed/trunk/spring/preview-large.png b/NP_PubMed/trunk/spring/preview-large.png
new file mode 100644 (file)
index 0000000..8360d9d
Binary files /dev/null and b/NP_PubMed/trunk/spring/preview-large.png differ
diff --git a/NP_PubMed/trunk/spring/preview.png b/NP_PubMed/trunk/spring/preview.png
new file mode 100644 (file)
index 0000000..4b3a958
Binary files /dev/null and b/NP_PubMed/trunk/spring/preview.png differ
diff --git a/NP_PubMed/trunk/spring/readme.html b/NP_PubMed/trunk/spring/readme.html
new file mode 100644 (file)
index 0000000..fc975b8
--- /dev/null
@@ -0,0 +1,53 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
+<head>
+       <title>Nucleus CMS 3.2 - default skin</title>
+       <link rel="stylesheet" type="text/css" href="../../nucleus/styles/manual.css" />
+</head>
+<body>
+       <h1>Nucleus CMS 3.2 - default skin</h1>
+
+       <p>Default Nucleus CMS 3.2 skin based on the Stanch skin contributed by <a href="http://www.stanch.net/">Stanch</a> with assistance from <a href="http://roelg.nl/">roel</a>.</p>
+
+       <p>Default skin's skin/templates/includes tweaked by <a href="http://nupusi.com/">hcgtv</a>, CSS color scheme by <a href="http://smalltalking.com/">moraes</a>.</p>
+
+       <br />
+       <p>This skin has been tested on major modern browsers, such as Firefox 1.0, Internet Explorer 6.0, Opera 7.54 and Netscape 7.2. The skin is coded using valid XHTML 1.0 and valid CSS.</p>
+
+       <p>If you want drop shadow effect for your images when you blog, you have to add 3 div's surrounding the image. Start with &lt;div class="wrap1"&gt;, followed by &lt;div class="wrap2"&gt;, and then &lt;div class="wrap3"&gt;. Remember to close them with &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;. Please note also that the drop shadow has float:left style applied to it.</p>
+
+       <p>On the comments page, you will notice that the owner (Nucleus administrator) has a different kind of styling to his/her comments, as opposed to the comments made by visitors. This is made possible using CSS. I have included short comments in the CSS file, I'm sure it is easy to understand, in case you want to remove this styling or you want to add styling for different members.</p>
+
+       <br />
+       <p>Default skin files:</p>
+       <p>default_left.css - left side menu CSS code, change it in head.inc</p>
+       <p>default_right.css - right side menu CSS code, default CSS in head.inc</p>
+       <p>skinbackup.xml - backup of default skin, can be reimported just in case</p>
+       <p>/images - background, header, footer and misc images</p>
+
+       <br />
+       <p>This skin makes use of includes for skin abstraction:</p>
+       <p>head.inc - html header</p>
+       <p>navigation.inc - navigation & page titles</p>
+       <p>header.inc - page header</p>
+       <p>sidebar.inc - page menu</p>
+       <p>footer.inc - page footer</p>
+
+       <br />
+       <p>Extra files:</p>
+       <p>nicetitles.js - tooltips javascript code, triggered by title="" attribute in links</p>
+       <p>nicetitle.css - tooltips color and layout code</p>
+       <p>favicon.ico - sample favorite icon, copy to site's root directory</p>
+
+       <br />
+       <p>The <a href="http://wiki.gednet.com/NPSkinFiles">NP_SkinFiles plugin</a> is recommended for maintenance of includes.</a></p>
+       <p>Note: chmod 666 the .inc files in the /skins/default directory.</p>
+
+       <br />
+       <p>Tooltips courtesy of <a href="http://neo.dzygn.com/code/nicetitles">NiceTitles</a></p>
+
+       <br />
+       <h1>Nucleus CMS 3.2 - to stop the flow of tears</h1>
+
+</body>
+</html>
\ No newline at end of file
diff --git a/NP_PubMed/trunk/spring/sidebar.inc b/NP_PubMed/trunk/spring/sidebar.inc
new file mode 100644 (file)
index 0000000..5ae8f65
--- /dev/null
@@ -0,0 +1,73 @@
+<!-- search form -->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>Search</dt>\r
+<dd><%searchform%></dd>\r
+</dl>\r
+</div>\r
+\r
+<!-- page menu -->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>Navigation</dt>\r
+<dd><a href="http://www.ncbi.nlm.nih.gov/sites/entrez?db=PubMed" onclick="window.open(this.href);return false;">NIH PubMed site</a></dd>\r
+<!-- admin link, only visible if logged in -->\r
+<%if(loggedin)%>\r
+<dd><a href="<%adminurl%>plugins/pubmed/?blogid=<%blogsetting(id)%>">PubMed search</a></dd>\r
+<dd><a href="<%adminurl%>" title="Admin Area">Admin</a></dd>\r
+<%endif%>\r
+</dl>\r
+</div>\r
+\r
+<!-- category list, not on error or member page -->\r
+<%if(skintype,error)%><%else%>\r
+<%if(skintype,member)%><%else%>\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>Categories</dt>\r
+<%categorylist(spring/index)%>\r
+</dl>\r
+</div>\r
+<%endif%><%endif%>\r
+\r
+<!-- bloglist-->\r
+<!--\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>Blogs</dt>\r
+<%bloglist(spring/index)%>\r
+</dl>\r
+</div>\r
+-->\r
+\r
+<!-- login form -->\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>Login</dt>\r
+<dd><%loginform%></dd>\r
+</dl>\r
+</div>\r
+\r
+\r
+<!-- links -->\r
+<!--\r
+<div class="sidebar">\r
+<dl class="sidebardl">\r
+<dt>Links</dt>\r
+<dd><a href="http://nucleuscms.org" title="Nucleus CMS Home">nucleuscms.org</a></dd>\r
+<dd><a href="http://docs.nucleuscms.org/" title="Nucleus CMS Documentation">docs.nucleuscms.org</a></dd>\r
+<dd><a href="http://forum.nucleuscms.org" title="Nucleus CMS Support Forum">forum.nucleuscms.org</a></dd>\r
+<dd><a href="http://wiki.nucleuscms.org/" title="Nucleus CMS Wiki">wiki.nucleuscms.org</a></dd>\r
+<dd><a href="http://skins.nucleuscms.org/" title="Nucleus CMS Skins">skins.nucleuscms.org</a></dd>\r
+<dd><a href="http://wiki.nucleuscms.org/plugin" title="Nucleus CMS Plugins">plugins.nucleuscms.org</a></dd>\r
+<dd><a href="http://dev.nucleuscms.org/" title="Nucleus Developer Network">dev.nucleuscms.org</a></dd>\r
+</dl>\r
+</div>\r
+-->\r
+\r
+<!-- Powered by -->\r
+<div class="sidebar">\r
+<div class="sidebardl centerize">\r
+<%nucleusbutton(images/nucleus.gif,85,31)%>\r
+</div>\r
+</div>
\ No newline at end of file
diff --git a/NP_PubMed/trunk/spring/skinbackup.xml b/NP_PubMed/trunk/spring/skinbackup.xml
new file mode 100644 (file)
index 0000000..737995a
--- /dev/null
@@ -0,0 +1,440 @@
+<nucleusskin>
+       <meta>
+               <skin name="spring" />
+               <template name="spring/index" />
+               <template name="spring/item" />
+       </meta>
+
+
+       <skin name="spring" type="text/html" includeMode="skindir" includePrefix="spring/">
+               <description>Nucleus CMS spring skin</description>
+               <part name="archive"><![CDATA[<%parsedinclude(head.inc)%>\r
+\r
+<!-- page header -->\r
+<%parsedinclude(header.inc)%>\r
+\r
+<!-- page content -->\r
+<div id="container">\r
+<div class="content">\r
+<div class="contenttitle">\r
+<h2>Archives</h2>\r
+</div>\r
+You are currently viewing archive for <%archivedate%>\r
+</div>\r
+<div class="content">\r
+<%archive(default/index)%>\r
+</div>\r
+</div>\r
+\r
+<!-- page menu -->\r
+<h2 class="hidden">Sidebar</h2>\r
+<div id="sidebarcontainer">\r
+<%parsedinclude(sidebar.inc)%>\r
+</div>\r
+\r
+<!-- page footer -->\r
+<%parsedinclude(footer.inc)%>]]></part>
+
+               <part name="archivelist"><![CDATA[<%parsedinclude(head.inc)%>\r
+\r
+<!-- page header -->\r
+<%parsedinclude(header.inc)%>\r
+\r
+<!-- page content -->\r
+<div id="container">\r
+<div class="content">\r
+<div class="contenttitle">\r
+<h2>Archives</h2>\r
+</div>\r
+<dl>\r
+<dt>Monthly Archives</dt>\r
+<%archivelist(default/index)%>\r
+</dl>\r
+</div>\r
+</div>\r
+\r
+<!-- page menu -->\r
+<h2 class="hidden">Sidebar</h2>\r
+<div id="sidebarcontainer">\r
+<%parsedinclude(sidebar.inc)%>\r
+</div>\r
+\r
+<!-- page footer -->\r
+<%parsedinclude(footer.inc)%>]]></part>
+
+               <part name="error"><![CDATA[<%parsedinclude(head.inc)%>\r
+\r
+<!-- page header -->\r
+<%parsedinclude(header.inc)%>\r
+\r
+<!-- page content -->\r
+<div id="container">\r
+<div class="content">\r
+<div class="contenttitle">\r
+<h2>Error!</h2>\r
+</div>\r
+<%errormessage%><br /><br />\r
+<a href="javascript:history.go(-1);">Go back</a>\r
+</div>\r
+</div>\r
+\r
+<!-- page menu -->\r
+<h2 class="hidden">Sidebar</h2>\r
+<div id="sidebarcontainer">\r
+<%parsedinclude(sidebar.inc)%>\r
+</div>\r
+\r
+<!-- page footer -->\r
+<%parsedinclude(footer.inc)%>]]></part>
+
+               <part name="imagepopup"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+
+<html>
+<head>
+<title><%imagetext%></title>
+<style type="text/css">
+img { border: none; }
+body { margin: 0px; }
+</style>
+</head>
+
+<!-- image content -->
+<body onblur="window.close()">
+<a href="javascript:window.close();"><%image%></a>
+</body>
+
+</html>]]></part>
+
+               <part name="index"><![CDATA[<%parsedinclude(head.inc)%>\r
+\r
+<!-- page header -->\r
+<%parsedinclude(header.inc)%>\r
+\r
+<!-- page content -->\r
+<div id="container">\r
+<div class="content">\r
+<%PubMed(SearchLink)%><br /><br />\r
+<%PubMed(CreateNew)%>\r
+\r
+<%if(PubMed,getVar,manuscriptid=)%>\r
+\r
+<%if(PageSwitch,limit,10)%>\r
+<div style="text-align:right;">Pages:\r
+<%PageSwitch(prev,prev)%>\r
+<%PageSwitch(index,2)%>\r
+<%PageSwitch(next,next)%>\r
+Page <%PageSwitch(num)%> of <%PageSwitch(total)%>\r
+</div>\r
+<%endif%>\r
+\r
+<%MultipleCategories(spring/index,10)%>\r
+\r
+<%if(PageSwitch,limit,10)%>\r
+<div style="text-align:right;">Pages:\r
+<%PageSwitch(prev,prev)%>\r
+<%PageSwitch(index,2)%>\r
+<%PageSwitch(next,next)%>\r
+Page <%PageSwitch(num)%> of <%PageSwitch(total)%>\r
+</div>\r
+<%endif%>\r
+\r
+<%else%>\r
+<%PubMed(PageSwitch,,50)%>\r
+<%if(PageSwitch,limit,50)%>\r
+<div style="text-align:right;">Pages:\r
+<%PageSwitch(prev,prev)%>\r
+<%PageSwitch(index,2)%>\r
+<%PageSwitch(next,next)%>\r
+Page <%PageSwitch(num)%> of <%PageSwitch(total)%>\r
+</div>\r
+<%endif%>\r
+\r
+<%PubMed(parse,spring/index,50)%>\r
+<%endif%>\r
+\r
+</div>\r
+</div>\r
+\r
+<!-- page menu -->\r
+<h2 class="hidden">Sidebar</h2>\r
+<div id="sidebarcontainer">\r
+<%parsedinclude(sidebar.inc)%>\r
+</div>\r
+\r
+<!-- page footer -->\r
+<%parsedinclude(footer.inc)%>]]></part>
+
+               <part name="item"><![CDATA[<%parsedinclude(head.inc)%>\r
+\r
+<!-- page header -->\r
+<%parsedinclude(header.inc)%>\r
+\r
+<!-- page content -->\r
+<div id="container">\r
+<div class="content">\r
+<%item(spring/item)%>\r
+</div>\r
+<div class="content">\r
+<div class="contenttitle">\r
+<h2>Comments</h2>\r
+</div>\r
+<a name="c"></a>\r
+<%comments(spring/item)%>\r
+</div>\r
+<div class="content">\r
+<div class="contenttitle">\r
+<h2>Add Comment</h2>\r
+</div>\r
+<%commentform%>\r
+</div>\r
+</div>\r
+\r
+<!-- page menu -->\r
+<h2 class="hidden">Sidebar</h2>\r
+<div id="sidebarcontainer">\r
+<%parsedinclude(sidebar.inc)%>\r
+</div>\r
+\r
+<!-- page footer -->\r
+<%parsedinclude(footer.inc)%>]]></part>
+
+               <part name="member"><![CDATA[<%parsedinclude(head.inc)%>\r
+\r
+<!-- page header -->\r
+<%parsedinclude(header.inc)%>\r
+\r
+<!-- page content -->\r
+<div id="container">\r
+<div class="content">\r
+<div class="contenttitle">\r
+<h2>Info about <%member(name)%></h2>\r
+</div>\r
+Real name: <%member(realname)%>\r
+<br /><br />\r
+Website: <a href="<%member(url)%>"><%member(url)%></a>\r
+</div>\r
+<div class="content">\r
+<div class="contenttitle">\r
+<h2>Send message</h2>\r
+</div>\r
+<%membermailform%>\r
+</div>\r
+</div>\r
+\r
+<!-- page menu -->\r
+<h2 class="hidden">Sidebar</h2>\r
+<div id="sidebarcontainer">\r
+<%parsedinclude(sidebar.inc)%>\r
+</div>\r
+\r
+<!-- page footer -->\r
+<%parsedinclude(footer.inc)%>]]></part>
+
+               <part name="search"><![CDATA[<%parsedinclude(head.inc)%>\r
+\r
+<!-- page header -->\r
+<%parsedinclude(header.inc)%>\r
+\r
+<!-- page content -->\r
+<div id="container">\r
+<div class="content">\r
+<div class="contenttitle">\r
+<h2>Search Results</h2>\r
+</div>\r
+<%searchform%>\r
+<a \r
+href="http://www.ncbi.nlm.nih.gov/sites/entrez?db=PubMed&EntrezSystem2.PEntrez.DbConnector.TermToSearch=<%query%>"\r
+onclick="window.open(this.href);return false;"\r
+>Search in NIH Pubmed site</a>\r
+</div>\r
+<div class="content">\r
+\r
+<%if(PageSwitch,limit,10)%>\r
+<div style="text-align:right;">Pages:\r
+<%PageSwitch(prev,prev)%>\r
+<%PageSwitch(index,2)%>\r
+<%PageSwitch(next,next)%>\r
+Page <%PageSwitch(num)%> of <%PageSwitch(total)%>\r
+</div>\r
+<%endif%>\r
+\r
+<%searchresults(spring/index,10)%>\r
+\r
+<%if(PageSwitch,limit,10)%>\r
+<div style="text-align:right;">Pages:\r
+<%PageSwitch(prev,prev)%>\r
+<%PageSwitch(index,2)%>\r
+<%PageSwitch(next,next)%>\r
+Page <%PageSwitch(num)%> of <%PageSwitch(total)%>\r
+</div>\r
+<%endif%>\r
+\r
+</div>\r
+</div>\r
+\r
+<!-- page menu -->\r
+<h2 class="hidden">Sidebar</h2>\r
+<div id="sidebarcontainer">\r
+<%parsedinclude(sidebar.inc)%>\r
+</div>\r
+\r
+<!-- page footer -->\r
+<%parsedinclude(footer.inc)%>]]></part>
+
+       </skin>
+
+
+       <template name="spring/index">
+               <description>Nucleus CMS spring index template</description>
+               <part name="ARCHIVELIST_LISTITEM"><![CDATA[<dd>\r
+<a href="<%archivelink%>" title="Archive for %B, %Y">%Y-%m</a>\r
+</dd>]]></part>
+
+               <part name="BLOGLIST_LISTITEM"><![CDATA[<dd>\r
+<a href="<%bloglink%>" title="<%blogdesc%>"><%blogname%></a>\r
+</dd>]]></part>
+
+               <part name="CATLIST_HEADER"><![CDATA[<dd>\r
+<a href="<%blogurl%>" title="All categories">All</a>\r
+</dd>]]></part>
+
+               <part name="CATLIST_LISTITEM"><![CDATA[<dd>\r
+<a href="<%catlink%>" title="Category: <%catname%>"><%catname%></a>\r
+</dd>]]></part>
+
+               <part name="COMMENTS_MANY"><![CDATA[つのコメント]]></part>
+
+               <part name="COMMENTS_NONE"><![CDATA[<div class="contentitem3">\r
+<small class="contentitemcomments">\r
+<a href="<%itemlink%>#c" rel="bookmark" title="Add comment on &#39;<%itemtitle(attribute)%>&#39;">Add comment</a>\r
+</small>\r
+</div>]]></part>
+
+               <part name="COMMENTS_ONE"><![CDATA[つのコメント]]></part>
+
+               <part name="COMMENTS_TOOMUCH"><![CDATA[<div class="contentitem3">\r
+<small class="contentitemcomments">\r
+<a href="<%itemlink%>#c" rel="bookmark" title="Add comment on &#39;<%itemtitle(attribute)%>&#39;"><%commentcount%> <%commentword%></a>\r
+</small>\r
+</div>]]></part>
+
+               <part name="EDITLINK"><![CDATA[<div class="contentitem4">\r
+<small class="contentitemedit">\r
+<a href="<%editlink%>#pubmed" title="Make changes to your entry" onclick="<%editpopupcode%>" >edit</a>\r
+</small>\r
+</div>]]></part>
+
+               <part name="FORMAT_DATE"><![CDATA[%m/%d]]></part>
+
+               <part name="FORMAT_TIME"><![CDATA[%X]]></part>
+
+               <part name="IMAGE_CODE"><![CDATA[<%image%>]]></part>
+
+               <part name="ITEM"><![CDATA[<div class="contenttitle">\r
+<h2><!-- <%date%>: --><a href="<%itemlink%>" title="Read entry: <%title(attribute)%>"><%title(raw)%></a></h2>\r
+</div>\r
+<div class="contentitem">\r
+<div class="contentitem1">\r
+<small class="contentitemcategory">\r
+Category: <a href="<%categorylink%>" title="Category: <%Category%>"><%Category%></a>\r
+</small>\r
+</div>\r
+<%edit%>\r
+</div>\r
+<div class="contentbody">\r
+<%body%>\r
+<br /><%PubMed(pdf)%><br /><br />\r
+<%morelink%>\r
+</div>]]></part>
+
+               <part name="LOCALE"><![CDATA[en]]></part>
+
+               <part name="MEDIA_CODE"><![CDATA[<%media%>]]></part>
+
+               <part name="MORELINK"><![CDATA[<div id="summary_link_<%itemid%>">&raquo;\r
+<a href="<%itemlink%>#more" title="Read more on &#39;<%title(attribute)%>&#39;" onclick="\r
+document.getElementById('summary_link_<%itemid%>').style.display='none';\r
+document.getElementById('summary_body_<%itemid%>').style.display='block';\r
+return false;\r
+">Summary</a>\r
+</div>\r
+<div id="summary_body_<%itemid%>" style="display:none;">&raquo;\r
+<a href="<%itemlink%>#more" title="Read more on &#39;<%title(attribute)%>&#39;" onclick="\r
+document.getElementById('summary_link_<%itemid%>').style.display='block';\r
+document.getElementById('summary_body_<%itemid%>').style.display='none';\r
+return false;\r
+">Hide Summary</a><br /><br />\r
+<%more%>\r
+</div>\r
+]]></part>
+
+               <part name="POPUP_CODE"><![CDATA[<%popuplink%>]]></part>
+
+               <part name="SEARCH_HIGHLIGHT"><![CDATA[<span class=highlight>\0</span>]]></part>
+
+               <part name="SEARCH_NOTHINGFOUND"><![CDATA[No search results found for <b><%query%></b>]]></part>
+
+       </template>
+
+
+       <template name="spring/item">
+               <description>Nucleus CMS spring item template</description>
+               <part name="COMMENTS_BODY"><![CDATA[<div class="itemcomment id<%memberid%>">\r
+<h3><a href="<%userlinkraw%>"\r
+title="<%ip%> | Click to visit <%user%>'s website or send an email">\r
+<%user%></a> wrote:</h3>\r
+<div class="commentbody">\r
+<%body%>\r
+</div>\r
+<div class="commentinfo">\r
+<%date%> <%time%>\r
+</div>\r
+</div>]]></part>
+
+               <part name="COMMENTS_MANY"><![CDATA[comments]]></part>
+
+               <part name="COMMENTS_NONE"><![CDATA[<div class="comments">No comments yet</div>]]></part>
+
+               <part name="COMMENTS_ONE"><![CDATA[comment]]></part>
+
+               <part name="EDITLINK"><![CDATA[<div class="contentitem4">\r
+<small class="contentitemedit">\r
+<a href="<%editlink%>" title="Make changes to your entry" onclick="<%editpopupcode%>" >edit</a>\r
+</small>\r
+</div>]]></part>
+
+               <part name="FORMAT_DATE"><![CDATA[%m/%d]]></part>
+
+               <part name="FORMAT_TIME"><![CDATA[%X]]></part>
+
+               <part name="IMAGE_CODE"><![CDATA[<%image%>]]></part>
+
+               <part name="ITEM"><![CDATA[<div class="contenttitle">\r
+<h2><!--<%date%>: --><%title(raw)%></h2>\r
+</div>\r
+<div class="contentitem">\r
+<div class="contentitem1">\r
+<small class="contentitemcategory">\r
+Category: <a href="<%categorylink%>" title="Category: <%category%>"><%category%></a>\r
+</small>\r
+</div>\r
+<%edit%>\r
+</div>\r
+<div class="contentbody">\r
+<%body%><br />\r
+<%PubMed(pdf)%><br /><br />\r
+<a name="more"></a><%more%><br />\r
+</div>]]></part>
+
+               <part name="LOCALE"><![CDATA[en]]></part>
+
+               <part name="MEDIA_CODE"><![CDATA[<%media%>]]></part>
+
+               <part name="POPUP_CODE"><![CDATA[<%popuplink%>]]></part>
+
+               <part name="SEARCH_HIGHLIGHT"><![CDATA[<span class="highlight">\0</span>]]></part>
+
+       </template>
+
+
+</nucleusskin>
\ No newline at end of file