+ re tag 1.4.

This commit is contained in:
wangchunsheng
2010-12-02 08:38:02 +00:00
2 changed files with 5 additions and 3 deletions

View File

@@ -470,7 +470,8 @@ class project extends control
{
if($projectID)
{
$this->view->tips = $this->fetch('project', 'tips', "projectID=$projectID");
$this->view->tips = $this->fetch('project', 'tips', "projectID=$projectID");
$this->view->projectID = $projectID;
$this->display();
exit;
}
@@ -842,9 +843,7 @@ class project extends control
*/
public function tips($projectID)
{
$url = $this->createLink('project', 'task', "projectID=$projectID");
$this->view->projectID = $projectID;
$this->display('project', 'tips');
echo "<html><head><meta http-equiv='refresh' content='5; url=$url' /></head><body></body></html>";
}
}

View File

@@ -16,9 +16,12 @@
<body style='background:white'>
<script language='Javascript'>
var tips = <?php echo json_encode($tips);?>;
var projectID = <?php echo $projectID;?>;
defaultURL = createLink('project', 'task', 'projectID=' + projectID);
$(document).ready(function()
{
$.fn.colorbox({html:tips, open:true, width:480, height:280});
setTimeout( function() {location.href=defaultURL}, 5000);
});
</script>
</body>