Exemple #1
0
    	    });
	    });
	</script>
</head>

<body>

	<div class='content'>
	
		<span class="title"><?php 
echo $detail['desc'];
?>
</span><br><br>
		
		<span class="content"><?php 
echo nl2br($status->format_message($detail, array('creation_time' => $ctime)));
?>
</span>

        <br><br><br><span class="sec_title"><?php 
echo _("Suggested Actions");
?>
</span>
        
        <ul>
        <?php 
foreach ($detail['actions'] as $action) {
    echo "<li>" . $status->format_action_link($action, $component_id) . "</li>";
}
?>
        </ul>
Exemple #2
0
} else {
    $i = 0;
    foreach ($message_list as $msg) {
        $class = $i++ % 2 != 0 ? "odd" : "even";
        $sid = 's_' . $msg['message_id'];
        if ($msg["viewed"] == false) {
            $class .= ' bold';
        }
        echo "<div data-id='" . $msg['message_id'] . "' class='suggestion_message {$class}'>\n                           <div style='padding-right:9px'>" . $msg['description'] . "</div>\n                           <div class='carrot green'></div>\n                      </div>\n                      <div id='{$sid}' class='hidden'>";
        // Get details
        try {
            list($detail) = $status->get_message_detail($msg['message_id']);
        } catch (Exception $e) {
            $detail = array("content" => $e->getMessage(), "actions" => array());
        }
        echo "<div class='suggestion_detail'>" . $status->format_message($detail, $msg) . "</div>\n";
        if (count($detail["actions"])) {
            echo '<ul class="suggestion_action">';
        }
        foreach ($detail["actions"] as $action) {
            echo "<li>" . $status->format_action_link($action, $id) . "</li>\n";
        }
        if (count($detail["actions"])) {
            echo '</ul>';
        }
        echo "</div>";
    }
}
?>
    </div>