function mini_print_announcements()
{
// format the announcement list in pretty divs
        $o  = "<div class='heading'>Announcements</div>";
        $o .= "<div class='divider'></div><div class='box'>";
        $o .= "<div id='announcements'>";
        $o .= get_announcements();
        $o .= "</div>";
        $o .= "</div>";
        echo $o;
}
Beispiel #2
0
 /**
  * Function to get the Announcement
  * @return Vtiger_Base_Model - Announcement
  */
 function getAnnouncement()
 {
     global $log;
     //$announcement = Vtiger_Cache::get('announcement', 'value');
     $model = new Vtiger_Base_Model();
     //if(!$announcement) {
     $announcement = get_announcements();
     //Vtiger_Cache::set('announcement', 'value', $announcement);
     //}
     return $model->set('announcement', $announcement);
 }
$smarty_obj->assign("QCMODULE", $qc_modules);
$smarty_obj->assign("APP", $app_strings);
$cnt = count($qc_modules);
$smarty_obj->assign("CNT", $cnt);
$smarty_obj->assign("PRINT_URL", "phprint.php?jt=" . session_id() . $GLOBALS['request_string']);
$smarty_obj->assign("MODULE_NAME", $currentModule);
$date = new DateTimeField(null);
$smarty_obj->assign("DATE", $date->getDisplayDateTimeValue());
$smarty_obj->assign("CURRENT_USER_MAIL", $current_user->email1);
$smarty_obj->assign("CURRENT_USER", $current_user->user_name);
$smarty_obj->assign("CURRENT_USER_ID", $current_user->id);
$smarty_obj->assign("MODULELISTS", $app_list_strings['moduleList']);
$smarty_obj->assign("CATEGORY", getParentTab());
$smarty_obj->assign("CALC", get_calc($image_path));
$smarty_obj->assign("MENUSTRUCTURE", getMenuStructure($currentModule));
$smarty_obj->assign("ANNOUNCEMENT", get_announcements());
$smarty_obj->assign("USE_ASTERISK", get_use_asterisk($current_user->id));
if (is_admin($current_user)) {
    $smarty_obj->assign("ADMIN_LINK", "<a href='index.php?module=Settings&action=index'>" . $app_strings['LBL_SETTINGS'] . "</a>");
}
$module_path = "modules/" . $currentModule . "/";
require_once 'include/Menu.php';
//Assign the entered global search string to a variable and display it again
if ($_REQUEST['query_string'] != '') {
    $smarty_obj->assign("QUERY_STRING", htmlspecialchars($_REQUEST['query_string'], ENT_QUOTES, $default_charset));
} else {
    $smarty_obj->assign("QUERY_STRING", "{$app_strings['LBL_SEARCH_STRING']}");
}
global $module_menu;
require_once 'data/Tracker.php';
$tracFocus = new Tracker();
?>

<body>

<?php 
include_once 'inc/header.php';
?>

<div class="content">
<div class="container">

	<div class="row row-margin">
		<div class="col-md-8">
		    <h1>Announcements</h1>
			<?php 
get_announcements(5);
?>
		</div>
	</div>

</div>
</div>

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.supercal.js"></script>
<script type="text/javascript">
$(document).ready(function() {
	$('.calendar').supercal({
		transition: 'carousel-vertical'
	});
});
Beispiel #5
0
<div class="container">

	<div class="row row-margin">
		<div class="col-md-4 clearfix user-info">
			<h2>Student Info</h2>
			<div class="well well-small">
				<?php 
$id = $_GET['user'];
get_single_user($id);
?>
			</div>
		</div>
		<div class="col-md-4">
			<h2>Announcements</h2>
			<?php 
echo get_announcements();
?>
		</div>
		<div class="col-md-4">
			<h2>Calendar</h2>
			<div class="calendar"></div>
		</div>
	</div>

</div>


<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.supercal.js"></script>
<script type="text/javascript">
$(document).ready(function() {
Beispiel #6
0
?>
								</ol>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="row row-margin">
		<div class="col-md-4 clearfix user-info">
			<a type="button" class="close" href="announcements.php"><span class="glyphicon glyphicon-eye-open"></span> View All</a>
			<h2>Announcements</h2>
			<?php 
$entry = get_announcements(2);
$output = "<ul id=\"announcements\" class=\"list-unstyled\">";
while ($message = mysqli_fetch_assoc($entry)) {
    $date = date_create($message['publish_date']);
    $output .= "<li>";
    $output .= "<h4>" . $message['title'] . "</h4>";
    $output .= "<p>" . date_format($date, 'm/d/y') . "</p>";
    $output .= "<p class=\"message\">" . substr($message['body'], 0, 150) . "...</p>";
    $output .= "</li>";
}
$output .= "</ul>";
echo $output;
?>
		</div>
		<div class="col-md-4">
			<h2>My Class Times</h2>