add colorbox support

This commit is contained in:
wlx 2011-11-08 09:43:34 +00:00
parent 0a4254ae1c
commit b515f8a0e0
1 changed files with 10 additions and 5 deletions

View File

@ -5,9 +5,11 @@
$this->headTitle()->setSeparator(' - '); $this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/mdreview.css'); $this->headLink()->appendStylesheet('/css/mdreview.css');
$this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css'); $this->headLink()->appendStylesheet('/static/js/uploadify/uploadify.css');
$this->headScript()->appendFile('/js/jquery-1.6.4.min.js'); $this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->headScript()->appendFile('/static/js/uploadify/swfobject.js'); $this->headScript()->appendFile('/static/js/uploadify/swfobject.js');
$this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js'); $this->headScript()->appendFile('/static/js/uploadify/jquery.uploadify.v2.1.4.min.js');
$this->headScript()->appendFile('/js/jquery.colorbox-min.js');
$this->headLink()->appendStylesheet('/css/colorbox.css');
$this->breadcrumb('<a href="/">首页</a>'); $this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>'); $this->breadcrumb('<a href="/review">'.$this->config->title->review.'</a>');
$this->breadcrumb('评审元数据'); $this->breadcrumb('评审元数据');
@ -20,8 +22,10 @@
</h1> </h1>
<div id="left"> <div id="left">
<div id="abstract"> <div id="abstract">
<p> <p>
<img src="/service/thumb/id/<?php echo $md['id'];?>" class="thumb" /> <a class="colorbox" href="/service/bigthumb/id/<?php echo $md['id'];?>" title="<?php echo $md['title'];?>">
<img src="/service/thumb/id/<?php echo $md['id'];?>" class="thumb" />
</a>
<?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?> <?php echo str_replace(array("\r\n", "\n", "\r"),'</p><p>',$md['description']);?>
</p> </p>
<p> <p>
@ -262,7 +266,8 @@ $(document).ready(function() {
} }
}); });
}); });
$(document).ready(function(){$(".colorbox").colorbox({photo:"true"});});
</script> </script>
<?php else: ?> <?php else: ?>