Esempio n. 1
0
<div style="margin:1em;">
	<?php 
$w = $this->widget('lms_tab', array('active' => 'elearning', 'close' => false));
// draw search
$_model = new ElearningLms();
$_auxiliary = Form::getInputDropdown('', 'course_search_filter_year', 'filter_year', $_model->getFilterYears(Docebo::user()->getIdst()), 0, '');
$this->widget('tablefilter', array('id' => 'course_search', 'filter_text' => "", 'auxiliary_filter' => Lang::t('_SEARCH', 'standard') . ":&nbsp;&nbsp;&nbsp;" . $_auxiliary, 'js_callback_set' => 'course_search_callback_set', 'js_callback_reset' => 'course_search_callback_reset', 'css_class' => 'tabs_filter'));
$w->endWidget();
?>
</div>

<?php 
$prop = array('id' => 'self_unsubscribe_dialog', 'dynamicContent' => true, 'ajaxUrl' => 'this.href', 'dynamicAjaxUrl' => true, 'callEvents' => array());
$this->widget('dialog', $prop);
?>

<script type="text/javascript">
	var tabView = new YAHOO.widget.TabView();

	function unsubscribeClick() {
		var nodes = YAHOO.util.Selector.query('a[id^=self_unsubscribe_link_]');
		YAHOO.util.Event.on(nodes, 'click', function (e) {
			YAHOO.util.Event.preventDefault(e);
			CreateDialog("self_unsubscribe_dialog", {
				width: "700px",
				modal: true,
				close: true,
				visible: false,
				fixedcenter: false,
				constraintoviewport: false,
				draggable: true,