<?php $effortHtml = $this->loadModel('effort')->createAppendLink('productplan', $plan->id); ?>
<script language='Javascript'>
$('.actions').each(function()
{
    $(this).children('.btn-group:first').children('.btn:first').before(<?php echo json_encode($effortHtml);?>);
});
$(function()
{
    $(".effort").colorbox({width:1024, height:600, iframe:true, transition:'elastic'});
});
</script>
