当前位置: 首页>>代码示例>>PHP>>正文


PHP Get::tmpl_path方法代码示例

本文整理汇总了PHP中Get::tmpl_path方法的典型用法代码示例。如果您正苦于以下问题:PHP Get::tmpl_path方法的具体用法?PHP Get::tmpl_path怎么用?PHP Get::tmpl_path使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Get的用法示例。


在下文中一共展示了Get::tmpl_path方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: load

 /**
  * Load css and yui file
  * @return null
  * @param $js Array[optional]
  * @param $css Array[optional]
  */
 public static function load($module_list = false, $noprint = false)
 {
     $module_list = 'base,autocomplete,charts,tabview,table,treeview,colorpicker';
     if (strpos($module_list, 'base') !== false) {
         $module_list = 'base,' . $module_list;
     }
     $list = explode(',', $module_list);
     $js_load = array();
     $css_load = array();
     foreach ($list as $k => $module) {
         if (isset(self::$_css_map[$module])) {
             $css_load = array_unique(array_merge($css_load, self::$_css_map[$module]));
         }
         if (isset(self::$_js_map[$module])) {
             $js_load = array_unique(array_merge($js_load, self::$_js_map[$module]));
         }
     }
     // remove js alredy loaded
     $css_load = array_diff($css_load, self::$_css_loaded);
     $js_load = array_diff($js_load, self::$_js_loaded);
     if (empty($css_load) && empty($js_load)) {
         return '';
     }
     // load new css
     $to_load = '';
     if (!empty($css_load)) {
         $to_load .= '<!-- yui css -->';
         foreach ($css_load as $k => $filename) {
             $to_load .= Util::get_css(Get::tmpl_path('base') . 'yui-skin/' . $filename, true);
         }
     }
     // load new js
     if (!empty($js_load)) {
         $to_load .= '<!-- yui js -->';
         foreach ($js_load as $k => $filename) {
             $to_load .= Util::get_js('/addons/yui/' . $filename);
             if ($filename == 'utilities/utilities.js') {
                 $to_load .= "\n" . '<script type="text/javascript"> YAHOO.util.Connect.initHeader(\'X-Signature\',\'' . Util::getSignature() . '\'); YAHOO.util.Connect.startEvent.subscribe(function() { YAHOO.util.Connect.initHeader(\'X-Signature\',\'' . Util::getSignature() . '\'); });</script>';
             }
             if ($filename == 'charts/charts-min.js') {
                 $to_load .= "\n" . '<script type="text/javascript"> YAHOO.widget.Chart.SWFURL = "' . Get::rel_path('base') . '/addons/yui/charts/assets/charts.swf"; </script>';
             }
         }
         if (Lang::direction() == 'rtl') {
             $to_load .= Util::get_js('/addons/yui/yui-rtl.js');
         }
     }
     // add loaded file to the cache
     if (!empty($css_load)) {
         self::$_css_loaded = array_merge(self::$_css_loaded, $css_load);
     }
     if (!empty($js_load)) {
         self::$_js_loaded = array_merge(self::$_js_loaded, $js_load);
     }
     if (function_exists('cout') && !$noprint) {
         cout($to_load, 'page_head');
     } else {
         return $to_load;
     }
 }
开发者ID:abhinay100,项目名称:forma_app,代码行数:66,代码来源:lib.yuilib.php

示例2: __construct

 public function __construct($id, $initFromSession = false)
 {
     parent::__construct($id);
     $this->jsClassName = 'CourseFolderTree';
     $this->serverUrl = 'ajax.adm_server.php?plf=lms&file=category_tree&sf=folder_tree';
     Util::get_js(Get::rel_path('base') . '/widget/dialog/dialog.js', true, true);
     require_once _base_ . '/lib/lib.dialog.php';
     initDialogs();
     $initialShowedNodes = array();
     if ($initFromSession) {
         if (isset($_SESSION['course_category']['tree_status'])) {
             $tree_status =& $_SESSION['course_category']['tree_status'];
             //if (isset($tree_status['showed_nodes'])) {}
         }
         if (isset($_SESSION['course_category']['filter_status'])) {
             $filter_status =& $_SESSION['course_category']['filter_status'];
             if (isset($filter_status['c_category'])) {
                 $this->setOption('initialSelectedNode', $filter_status['c_category']);
             }
         }
     }
     $lang =& DoceboLanguage::CreateInstance('course', 'lms');
     //$this->setOption('langs', array('_ROOT'=>def('_CATEGORY', 'course', 'lms')));
     $this->addLangKey('_ROOT', $lang->def('_CATEGORY'));
     $this->addLangKey('_YES', $lang->def('_CONFIRM'));
     $this->addLangKey('_NO', $lang->def('_UNDO'));
     $this->addLangKey('_NEW_FOLDER_NAME', $lang->def('_NEW_CATEGORY'));
     $this->addLangKey('_MOD', $lang->def('_MOD'));
     $this->addLangKey('_AREYOUSURE', $lang->def('_AREYOUSURE'));
     $this->addLangKey('_NAME', $lang->def('_NAME'));
     $this->addLangKey('_MOD', $lang->def('_MOD'));
     $this->addLangKey('_DEL', $lang->def('_DEL'));
     //$this->addLangKey('_', $lang->def(''));
     //$selected_node = (isset($_SESSION['course_category']['filter_status']) ? $_SESSION['course_category']['filter_status']['c_category'] : 0); //0 = root node
     $tree_status = $this->_getCourseTreeStatus();
     //0 = root node
     $this->setOption('iconPath', Get::tmpl_path() . 'images/');
     $this->setOption('dragdrop', true);
     //$this->setOption('initNodes', $initialShowedNodes);
     $this->setOption('useCheckboxes', false);
     $this->setOption('addFolderButton', 'add_folder_button');
     //$this->setOption('initialTreeStatus', $tree_status);
     //$this->setOption('options', '');
     //$this->setOption('options', '');
 }
开发者ID:abhinay100,项目名称:forma_app,代码行数:45,代码来源:class.category_tree.php

示例3: run

 public function run()
 {
     if (!$this->id) {
         return false;
     }
     $params = array('id' => $this->id, 'treeClass' => $this->treeClass, 'rel_action' => $this->rel_action);
     if ($this->ajaxUrl && is_string($this->ajaxUrl)) {
         $params['ajaxUrl'] = $this->ajaxUrl;
     }
     if (is_array($this->languages) && count($this->languages) > 0) {
         $params['languages'] = $this->json->encode($this->languages);
     } else {
         $params['languages'] = '{}';
     }
     //other options
     $this->setOption('initialSelectedNode', $this->initialSelectedNode);
     $this->setOption('iconPath', Get::tmpl_path() . 'images/');
     $this->setOption('dragdrop', (bool) $this->dragDrop);
     $this->setOption('useCheckboxes', $this->useCheckboxes);
     $this->setOption('initialSelectorData', $this->initialSelectorData);
     $this->setOption('hiddenSelection', $this->hiddenSelection);
     $this->setOption('canSelectRoot', (bool) $this->canSelectRoot);
     $this->setOption('setSelectedNodeOnServer', (bool) $this->setSelectedNodeOnServer);
     $this->setOption('addFolderButton', $this->id . '_add_folder_button');
     if ($this->rootNodeId !== false) {
         $this->setOption('rootNodeId', $this->rootNodeId);
     }
     if (!empty($this->rootActions) && is_array($this->rootActions)) {
         $this->setOption('rootActions', $this->rootActions);
     }
     $params['options'] = $this->getJsOptions();
     switch ($this->show) {
         case 'explorer':
             $view = "explorer";
             break;
         default:
             $view = "tree";
     }
     $params['runtime'] = (bool) $this->runtime;
     $this->render($view, $params);
 }
开发者ID:abhinay100,项目名称:forma_app,代码行数:41,代码来源:lib.tree.php

示例4: path

 public static function path()
 {
     return Get::tmpl_path('base');
 }
开发者ID:abhinay100,项目名称:forma_app,代码行数:4,代码来源:lib.layout.php

示例5: coursecatalogue

function coursecatalogue($id_block, $title, $option = array())
{
    YuiLib::load(array('animation' => 'my_animation', 'container' => 'container-min', 'container' => 'container_core-min'));
    cout(Util::get_js(Get::rel_path('cms') . '/modules/catalog/catalog.js', true), 'page_head');
    if (!isset($_SESSION['chart'])) {
        $_SESSION['chart'] = array();
    }
    $id_course = Get::req('id_course', DOTY_INT, 0);
    $action = Get::req('action', DOTY_STRING, '');
    if ($id_course !== 0 && $action === '') {
        $_SESSION['chart'][$id_course]['idCourse'] = $id_course;
    } else {
        require_once _lms_ . '/lib/lib.subscribe.php';
        $man_subscribe = new CourseSubscribe_Management();
        $man_subscribe->subscribeToCourse(getLogUserId(), $id_course);
    }
    require_once _cms_ . '/lib/lib.catalog.php';
    require_once _base_ . '/lib/lib.navbar.php';
    cout('<link href="./modules/catalog/catalog.css" type="text/css" rel="stylesheet"/>', 'page_head');
    $css_path = Get::tmpl_path('base') . 'yui-skin';
    cout(Util::get_css($css_path . '/tabview.css', true), 'page_head');
    $lang =& DoceboLanguage::CreateInstance('catalogue', 'cms');
    $man_cat = new Man_Catalog();
    $array_id_block = explode('_', $id_block);
    $page = Get::req('page', DOTY_INT, 0);
    if ($page == 0) {
        $page = $this->getBlockPage($array_id_block[0]);
    }
    cout(getTitleArea($title) . '<div class="std_block">');
    $catalogue = $man_cat->getCatalogueForBlock($array_id_block[0]);
    $all_course = false;
    if (array_search(0, $catalogue) !== false) {
        unset($catalogue[array_search(0, $catalogue)]);
        $all_course = true;
    }
    $id_catalogue = Get::req('id_catalogue', DOTY_INT, -2);
    if ($id_catalogue == -2) {
        if (count($catalogue)) {
            if (isset($catalogue[0])) {
                $id_catalogue = $catalogue[0]['id_catalogue'];
            } else {
                $id_catalogue = $catalogue[1]['id_catalogue'];
            }
        } else {
            $id_catalogue = 0;
        }
    }
    $id_category = Get::req('id_cat', DOTY_INT, 0);
    $number_courses = $man_cat->getCourseNumberForBlock($array_id_block[0], $id_catalogue, $id_category, $all_course);
    $nav_bar = new NavBar('ini', Get::sett('visuItem'), $number_courses);
    $nav_bar->setLink('index.php?pag=' . $page . '&amp;id_catalogue=' . $id_catalogue . ($id_category != 0 ? '&amp;id_cat=' . $id_category : ''));
    $ini = $nav_bar->getSelectedPage();
    $limit = ($ini - 1) * Get::sett('visuItem');
    cout($nav_bar->getNavBar() . '<div id="demo" class="yui-navset">' . '<ul class="yui-nav">');
    foreach ($catalogue as $catalogue_info) {
        cout('<li ' . ($catalogue_info['id_catalogue'] == $id_catalogue ? ' class="selected"' : '') . '><a href="index.php?pag=' . $page . '&amp;id_catalogue=' . $catalogue_info['id_catalogue'] . '"><em>' . $catalogue_info['name'] . '</em></a></li>');
    }
    cout('<li ' . ($id_catalogue == 0 ? ' class="selected"' : '') . '><a href="index.php?pag=' . $page . '&amp;id_catalogue=0"><em>' . $lang->def('_ALL_COURSES') . '</em></a></li>' . '<li ' . ($id_catalogue == -1 ? ' class="selected"' : '') . '><a href="index.php?pag=' . $page . '&amp;id_catalogue=-1"><em>' . $lang->def('_CATEGORY') . '</em></a></li>');
    reset($catalogue);
    cout('</ul>');
    cout('<div class="yui-content">');
    if ($number_courses == 0 && $id_catalogue != -1) {
        cout('<p>' . $lang->def('_NO_COURSE_FOR_CATALOG') . '</p>');
    } elseif ($id_catalogue == -1) {
        //Category Visualization
        if ($id_category == 0) {
            $query = "SELECT ca.idCategory, ca.path, ca.lev, ca.iLeft, ca.iRight, COUNT(co.idCourse)" . " FROM " . $GLOBALS['prefix_lms'] . "_category AS ca" . " LEFT JOIN " . $GLOBALS['prefix_lms'] . "_course AS co ON co.idCategory = ca.idCategory" . " WHERE ca.lev = 1" . " GROUP BY ca.idCategory" . " ORDER BY ca.lev, ca.path";
        } else {
            $query = "SELECT iLeft, iRight" . " FROM " . $GLOBALS['prefix_lms'] . "_category" . " WHERE idCategory = " . $id_category;
            list($ileft, $iright) = sql_fetch_row(sql_query($query));
            $query = "SELECT ca.idCategory, ca.path, ca.lev, ca.iLeft, ca.iRight, COUNT(co.idCourse)" . " FROM " . $GLOBALS['prefix_lms'] . "_category AS ca" . " LEFT JOIN " . $GLOBALS['prefix_lms'] . "_course AS co ON co.idCategory = ca.idCategory" . " WHERE ca.iLeft >= " . $ileft . " AND ca.iRight <= " . $iright . " GROUP BY ca.idCategory" . " ORDER BY ca.lev, ca.path";
        }
        $result = sql_query($query);
        $first = true;
        $num_folder = sql_num_rows($result);
        cout('<div class="cat_nav">');
        while (list($id_cat, $path, $lev, $ileft, $iright, $courses) = sql_fetch_row($result)) {
            $cat_name = end(explode('/', $path));
            if ($id_category == $id_cat) {
                cout('<div class="cat_position">' . '<a href="index.php?pag=' . $page . '&id_catalogue=-1">' . $lang->def('_CATEGORY') . '</a>');
                if ($lev > 1) {
                    $query_parent = "SELECT idCategory, path" . " FROM " . $GLOBALS['prefix_lms'] . "_category" . " WHERE iLeft < " . $ileft . " AND iRight > " . $iright . " ORDER BY lev ASC";
                    $result_parent = sql_query($query_parent);
                    while (list($id_cat_pa, $path_pa) = sql_fetch_row($result_parent)) {
                        $pa_name = end(explode('/', $path_pa));
                        cout(' - <a href="index.php?pag=' . $page . '&id_catalogue=-1&amp;id_cat=' . $id_cat_pa . '">' . $pa_name . '</a>');
                    }
                }
                cout(' - ' . $cat_name . '</div>');
            }
            if ($first && $num_folder > 0) {
                $first = false;
                cout('<ul class="cat_nav_list">');
            }
            if ($id_category != $id_cat) {
                $sub_folder = ($iright - $ileft - 1) / 2;
                cout('<li>' . '<a href="index.php?pag=' . $page . '&id_catalogue=-1&amp;id_cat=' . $id_cat . '">' . $cat_name . '<br />' . ($sub_folder > 0 ? '<span class="cat_item_info">' . $lang->def("_CATEGORIES") . ' (' . $sub_folder . ')<br />' : '') . ($courses > 0 ? '<span class="cat_item_info">' . $lang->def("_COURSES") . ' (' . $courses . ')' : '') . '</a>' . '</li>');
            }
        }
        if ($num_folder > 0) {
//.........这里部分代码省略.........
开发者ID:abhinay100,项目名称:forma_app,代码行数:101,代码来源:coursecatalogue.php

示例6: __construct

 public function __construct($id)
 {
     parent::__construct($id);
     $lang =& DoceboLanguage::CreateInstance('course', 'lms');
     if (Docebo::user()->getUserLevelId() == ADMIN_GROUP_PUBLICADMIN) {
         $this->serverUrl = Get::rel_path('lms') . '/ajax.server.php?plf=lms&file=coursetableview&sf=table_view';
         $this->addFormatter("man_subscr", 'courseFormatters.p_man_subscr');
     } else {
         $this->serverUrl = Get::rel_path('lms') . '/ajax.adm_server.php?plf=lms&file=coursetableview&sf=table_view';
         $this->addFormatter("man_subscr", 'courseFormatters.man_subscr');
     }
     $this->addFormatter("classroom", 'courseFormatters.classroom');
     $this->addFormatter("certificate", 'courseFormatters.certificate');
     $this->addFormatter("competence", 'courseFormatters.competence');
     $this->addFormatter("menu", 'courseFormatters.menu');
     $this->addFormatter("mod", 'courseFormatters.mod');
     $array_columns = array();
     if (checkPerm('mod', true, 'course', 'lms') || checkPerm('mod', true, 'public_course_admin', 'lms')) {
         $array_columns[] = array("key" => "code", "label" => $lang->def("_CODE"), "sortable" => true, "className" => 'min-cell', 'editor' => 'new YAHOO.widget.TextboxCellEditor({asyncSubmitter: saveData})');
         $array_columns[] = array("key" => "name", "label" => $lang->def("_COURSE_NAME"), "sortable" => true, 'editor' => 'new YAHOO.widget.TextboxCellEditor({asyncSubmitter: saveData})');
     } else {
         $array_columns[] = array("key" => "code", "label" => $lang->def("_CODE"), "sortable" => true, "className" => 'min-cell');
         $array_columns[] = array("key" => "name", "label" => $lang->def("_COURSE_NAME"), "sortable" => true);
     }
     //if(checkPerm('moderate', true, 'course', 'lms') || checkPerm('moderate', true, 'public_course_admin', 'lms'))
     $array_columns[] = array("key" => "waiting", "label" => $lang->def("_WAITING_USERS"), "className" => 'img-cell');
     if (checkPerm('subscribe', true, 'course', 'lms') || checkPerm('subscribe', true, 'public_course_admin', 'lms')) {
         $array_columns[] = array("key" => "subscriptions", "label" => Get::img('course/subscribe.png', $lang->def('_SUBSCRIBE')), "sortable" => true, "className" => 'img-cell', "formatter" => $this->getCellFormatter("man_subscr"));
     }
     if (checkPerm('mod', true, 'course', 'lms') || checkPerm('mod', true, 'public_course_admin', 'lms')) {
         $array_columns[] = array("key" => "classroom", "label" => Get::img('course/classroom-cal.png', $lang->def('_CLASSROOM')), "className" => 'img-cell');
         $array_columns[] = array("key" => "certificate", "label" => Get::img('course/certificate.png', Lang::t('_CERTIFICATE', 'certificate', 'lms')), "className" => 'img-cell', "formatter" => $this->getCellFormatter("certificate"));
         $array_columns[] = array("key" => "competence", "label" => Get::img('course/competences.png', Lang::t('_COMPETENCES', 'competences', 'lms')), "className" => 'img-cell', "formatter" => $this->getCellFormatter("competence"));
         $array_columns[] = array("key" => "menu", "label" => Get::img('course/menu.png', $lang->def('_ASSIGN_MENU')), "className" => 'img-cell', "formatter" => $this->getCellFormatter("menu"));
     }
     if (checkPerm('add', true, 'course', 'lms') || checkPerm('add', true, 'public_course_admin', 'lms')) {
         $array_columns[] = array("key" => "dup", "label" => Get::img('standard/dup.png', $lang->def('_MAKE_A_COPY')), "className" => 'img-cell');
     }
     if (checkPerm('mod', true, 'course', 'lms') || checkPerm('mod', true, 'public_course_admin', 'lms')) {
         $array_columns[] = array("key" => "mod", "label" => Get::img('standard/edit.png', $lang->def('_MOD')), "className" => 'img-cell', "formatter" => $this->getCellFormatter("mod"));
     }
     if (checkPerm('del', true, 'course', 'lms') || checkPerm('del', true, 'public_course_admin', 'lms')) {
         $array_columns[] = array("key" => "del", "label" => Get::img('standard/delete.png', $lang->def('_DEL')), "className" => 'img-cell', "formatter" => $this->getCellFormatter('delete'));
     }
     $this->columns = $array_columns;
     $this->fields = array("idCourse", "code", "name", "status", "waiting", "subscriptions", "classroom", "certificate", "competence", "menu", "dup", "mod", "del");
     $this->addOption('langs', array('_START' => $lang->def('_START'), '_PREV' => $lang->def('_PREV'), '_NEXT' => $lang->def('_NEXT'), '_END' => $lang->def('_END'), '_OF' => $lang->def('_OF'), 'MSG_EMPTY' => $lang->def('_EMPTY'), 'MSG_ERROR' => $lang->def('_SERVER_CONNECTION_ERROR'), 'MSG_LOADING' => $lang->def('_LOADING'), '_YES' => $lang->def('_CONFIRM'), '_NO' => $lang->def('_UNDO'), '_AREYOUSURE' => $lang->def('_AREYOUSURE'), '_DEL' => $lang->def('_DEL'), '_SERVER_CONNECTION_ERROR' => $lang->def('_SERVER_CONNECTION_ERROR')));
     if (!isset($_SESSION['course_category']['filter_status'])) {
         $_SESSION['course_category']['filter_status'] = array('c_category' => 0, 'c_filter' => '', 'c_flatview' => true, 'c_waiting' => false);
     } else {
         $filter =& $_SESSION['course_category']['filter_status'];
         if (!isset($filter['c_category'])) {
             $_SESSION['course_category']['filter_status']['c_category'] = 0;
         }
         if (!isset($filter['c_filter'])) {
             $_SESSION['course_category']['filter_status']['c_filter'] = '';
         }
         if (!isset($filter['c_flatview'])) {
             $_SESSION['course_category']['filter_status']['c_flatview'] = true;
         }
         if (!isset($filter['c_waiting'])) {
             $_SESSION['course_category']['filter_status']['c_waiting'] = '';
         }
     }
     $filter =& $_SESSION['course_category']['filter_status'];
     $this->addOption('baseUrl', 'index.php');
     $this->addOption('imageUrl', Get::tmpl_path('base') . 'images/');
     $this->addOption('initialFilter', array('c_category' => array('operator' => '', 'value' => $filter['c_category']), 'c_filter' => array('operator' => '', 'value' => $filter['c_filter']), 'c_flatview' => array('operator' => '', 'value' => $filter['c_flatview']), 'c_waiting' => array('operator' => '', 'value' => $filter['c_waiting'])));
     $this->addOption('deleteDialog', array('id' => 'idCourse', 'name' => 'name'));
 }
开发者ID:abhinay100,项目名称:forma_app,代码行数:70,代码来源:class.coursetableview.php

示例7: __construct

 /**
  * Construct the table drawer class
  * @param <type> $max_rows the maximum number of rows per page
  * @param <type> $caption the table caption
  * @param <type> $summary the tabel summary
  */
 public function __construct($max_rows = 10, $caption = '', $summary = '')
 {
     if (!$max_rows) {
         $max_rows = Get::sett('visuItem');
     }
     $this->table_style = 'table-view';
     $this->cols = 0;
     $this->max_rows = $max_rows;
     $this->cols_class = array();
     $this->table_caption = $caption;
     $this->table_summary = $summary;
     $this->table_head = array();
     $this->table_body = array();
     $this->table_foot = array();
     $this->add_action = array();
     $this->hide_over = false;
     $this->nav_bar = NULL;
     /*i need this for the transiction from old to new*/
     $this->rows = 0;
     $this->maxRowsAtTime = $max_rows;
     Util::get_css(Get::tmpl_path('base') . 'yui-skin/datatable.css', true, true);
 }
开发者ID:abhinay100,项目名称:forma_app,代码行数:28,代码来源:lib.table.php

示例8: array

<div class="yui-t6">
	<div class="yui-b">
		<?php 
$this->widget('lms_block', array('zone' => 'right', 'link' => 'elearning/show', 'block_list' => $block_list));
?>
	</div>
	<div id="yui-main">
		<div class="yui-b">

			<div style="margin:1em;">
				<?php 
$this->widget('lms_tab', array('active' => 'elearning', 'close' => false));
echo '<div>';
foreach ($label as $id_common_label => $label_info) {
    echo '<div class="label_container">' . '<a class="no_decoration" href="index.php?r=elearning/show&amp;id_common_label=' . $id_common_label . '">' . '<span class="label_image_cont">' . '<img class="label_image" src="' . ($label_info['image'] !== '' ? $GLOBALS['where_files_relative'] . '/appLms/label/' . $label_info['image'] : Get::tmpl_path('base') . 'images/course/label_image.png') . '" />' . '</span>' . '<span class="label_info_con">' . '<span class="label_title">' . $label_info['title'] . '</span>' . ($label_info['description'] !== '' ? '<br /><span id="label_description_' . $id_common_label . '" class="label_description" title="' . html_entity_decode($label_info['description']) . '">' . $label_info['description'] . '</span>' : '') . '</span>' . '</a>' . '</div>';
}
?>
				</div><!-- Needed to close the label conteiner -->
				</div></div></div><!-- Needed to close the content of the widget manually -->
			</div>
		</div>
	</div>
	<div class="nofloat"></div>
	<div id="label_tooltip"></div>
</div>
<script type="text/javascript">
	var label_elements = YAHOO.util.Selector.query("span[id^=label_description_]");
	var label_tooltip = new YAHOO.widget.Tooltip("label_tooltip",{context: label_elements,width:'250px'});
</script>
开发者ID:abhinay100,项目名称:forma_app,代码行数:29,代码来源:_labels.php

示例9:

?>
';
			smp_menu.style.display = 'none';
			adv_menu.style.display = 'block';
			UserManagement.useAdvancedFilter = true;
		}
	});
});

UserManagement.init({
	baseUrl: "<?php 
echo $this->link;
?>
",
	templatePath: "<?php 
echo Get::tmpl_path();
?>
",
	selectedOrgBranch: <?php 
echo (int) $selected_orgchart;
?>
,
	showDescendants: <?php 
echo $show_descendants ? 'true' : 'false';
?>
,
	showSuspended: <?php 
echo $show_suspended ? 'true' : 'false';
?>
,
	filterText: "<?php 
开发者ID:abhinay100,项目名称:forma_app,代码行数:31,代码来源:show.php

示例10: fatal

 /**
  * Display a fatal app message
  * @param <string> $msg  the errore message
  */
 public static function fatal($msg)
 {
     // empty output buffer
     @ob_end_clean();
     if (defined("IS_AJAX")) {
         // ajax request, json response
         $value = array('fatal' => $msg);
         require_once _base_ . '/lib/lib.json.php';
         $json = new Services_JSON();
         $msg = $json->encode($value);
     } else {
         // Browser request, html response
         $msg = '<p style="">' . '<p style="margin:4em auto;text-align:center;width:50%;padding: 14px 12px 14px 42px;font-weight: bold;font-size: 100%;background: url(' . Get::tmpl_path() . '/images/standard/error_32.png) no-repeat 8px 50% #FFFFDD;border:4px solid red;">' . $msg . '</p>' . '</p>';
     }
     die($msg);
 }
开发者ID:abhinay100,项目名称:forma_app,代码行数:20,代码来源:lib.utils.php

示例11: Man_Message

 if ($ma->currentCanAccessObj('mo_message')) {
     require_once $GLOBALS['where_framework'] . '/lib/lib.message.php';
     $msg = new Man_Message();
     $unread_num = $msg->getCountUnreaded(getLogUserId(), array(), '', true);
     $menu['all'][] = array('index.php?modname=message&amp;op=message&amp;sop=unregistercourse', Lang::t('_MESSAGES', 'menu_over') . ($unread_num ? ' <b class="num_notify">' . $unread_num . '</b>' : ''), false);
     $menu_i++;
 }
 // Customer help
 if ($ma->currentCanAccessObj('mo_help')) {
     $help_email = trim(Get::sett('customer_help_email', ''));
     $can_send_emails = !empty($help_email) ? true : false;
     $can_admin_settings = checkRole('/framework/admin/setting/view', true);
     if ($can_send_emails) {
         cout(Util::get_js(Get::rel_path('base') . '/lib/js_utils.js', true), 'scripts');
         cout(Util::get_js(Get::rel_path('lms') . '/modules/customer_help/customer_help.js', true), 'scripts');
         cout('<script type="text/javascript">' . ' var CUSTOMER_HELP_AJAX_URL = "ajax.server.php?mn=customer_help&plf=lms&op=getdialog"; ' . ' var ICON_LOADING = "' . Get::tmpl_path() . 'images/standard/loadbar.gif"; ' . ' var LANG = new LanguageManager({' . '	_CONFIRM: "' . Lang::t('_CONFIRM') . '",' . '	_UNDO: "' . Lang::t('_UNDO') . '",' . '	_COURSE_NAME: "' . Lang::t('_COURSE_NAME', 'course') . '",' . '	_VAL_COURSE_NAME: "' . (isset($GLOBALS['course_descriptor']) ? $GLOBALS['course_descriptor']->getValue('name') : "") . '",' . '	_DLG_TITLE: "' . Lang::t('_CUSTOMER_HELP', 'customer_help') . '",' . '	_LOADING: "' . Lang::t('_LOADING') . '"' . '}); ' . '</script>', 'scripts');
         $menu['all'][] = array('#', Lang::t('_CUSTOMER_HELP', 'customer_help'), false);
         $customer_help = ++$menu_i;
         $setup_menu .= " oMenuBar.getItem({$customer_help}).subscribe('click', CustomerHelpShowPopUp);";
     } else {
         if ($can_admin_settings) {
             $menu['all'][] = array('../appCore/index.php?r=adm/setting/show', '<i>(' . Lang::t('_CUSTOMER_HELP', 'customer_help') . ': ' . Lang::t('_SET', 'standard') . ')</i>', false);
         }
     }
 }
 // Menu for the public admin
 if ($user_level == ADMIN_GROUP_PUBLICADMIN && !empty($menu['public_admin'])) {
     $menu['all'][] = array('#', Lang::t('_PUBLIC_ADMIN_AREA', 'menu_over'), 'public_admin');
     $menu_i++;
 }
 // Link for the administration
开发者ID:abhinay100,项目名称:forma_app,代码行数:31,代码来源:menu_over.php

示例12:

"
				alt="<?php 
        echo Util::purge($course['name']);
        ?>
" />
		</div>
		<?php 
    }
    ?>
		<?php 
    if ($course['use_logo_in_courselist'] && !$course['img_course']) {
        ?>
		<div class="logo_container">
			<img class="clogo cnologo"
				 src="<?php 
        echo Get::tmpl_path() . 'images/course/course_nologo.png';
        ?>
"
				alt="<?php 
        echo Util::purge($course['name']);
        ?>
" />
		</div>
		<?php 
    }
    ?>

		<div class="info_container">
		<h2>
			<?php 
    if ($course['can_enter']['can']) {
开发者ID:abhinay100,项目名称:forma_app,代码行数:31,代码来源:courselist.php

示例13: session_start

            $sn = "docebo_core";
            $user_session = 'admin_area';
        }
        break;
}
/* session_name($sn);
session_start();

// load regional setting

// load current user from session
require_once(_base_.'/lib/lib.user.php');
$GLOBALS['current_user'] =& DoceboUser::createDoceboUserFromSession($user_session); */
// Utils and so on
//require_once($GLOBALS['where_framework'].'/lib/lib.php');
// load standard language module and put it global
$glang =& DoceboLanguage::createInstance('standard', 'framework');
$glang->setGlobal();
/*require_once(_base_.'/lib/lib.platform.php');*/
// create instance of StdPageWriter
StdPageWriter::createInstance();
//require_once($GLOBALS['where_framework'].'/lib/lib.preoperation.php');
$GLOBALS["template_path"] = Get::tmpl_path() . 'style/';
$GLOBALS["img_path"] = Get::tmpl_path() . 'images/chat/';
$GLOBALS['page']->add('<link href="' . $GLOBALS["template_path"] . 'chat.css" rel="stylesheet" type="text/css" />' . "\n", 'page_head');
$out =& $GLOBALS["page"];
$out->setWorkingZone("content");
$lang =& DoceboLanguage::createInstance('htmlframechat', 'scs');
require_once $GLOBALS["where_scs"] . '/lib/lib.html_chat_common.php';
require_once dirname(__FILE__) . '/functions.php';
$GLOBALS["chat_emo"] = new HtmlChatEmoticons_FrameChat();
开发者ID:abhinay100,项目名称:forma_app,代码行数:31,代码来源:header.php

示例14: initDialogs

function initDialogs()
{
    require_once _base_ . '/lib/lib.json.php';
    Util::get_js(Get::rel_path('base') . '/widget/dialog/dialog.js', true, true);
    $json = new Services_JSON();
    $script = 'YAHOO.dialogConstants.setProperties({' . 'CONFIRM: ' . $json->encode(Lang::t('_CONFIRM', 'standard')) . ', ' . 'UNDO: ' . $json->encode(Lang::t('_UNDO', 'standard')) . ', ' . 'CLOSE: ' . $json->encode(Lang::t('_CLOSE', 'standard')) . ', ' . 'LOADING: ' . $json->encode(Lang::t('_LOADING', 'standard')) . ', ' . 'ERROR: ' . $json->encode(Lang::t('_OPERATION_FAILURE', 'standard')) . ', ' . 'SERVER_ERROR: ' . $json->encode(Lang::t('_CONNECTION_ERROR', 'standard')) . ', ' . 'loadingIcon: ' . $json->encode(Get::tmpl_path() . 'images/standard/loadbar.gif') . ', ' . 'smallLoadingIcon: ' . $json->encode(Get::tmpl_path() . 'images/standard/loading_circle.gif') . ', ' . 'authentication: "' . Util::getSignature() . '" ' . '});' . "\n";
    cout('<script type="text/javascript">' . $script . '</script>', 'scripts');
}
开发者ID:abhinay100,项目名称:forma_app,代码行数:8,代码来源:lib.dialog.php

示例15: header

             $keepalivetmo = $gc_maxlifetime - 60;
         } else {
             $keepalivetmo = $gc_maxlifetime - 15;
             // second
         }
     }
 }
 header("Content-Type: text/html; charset=utf-8");
 echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 Strict//EN"' . "\n";
 echo '    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">' . "\n";
 echo '<html xmlns="http://www.w3.org/1999/xhtml">' . "\n";
 echo '<head>';
 echo '	<title>' . $lo_title . '</title>';
 echo '	<link href="' . Get::tmpl_path() . '/style/lms-scormplayer.css" rel="stylesheet" type="text/css" />';
 if (trim($playertemplate) != '') {
     echo '	<link href="' . Get::tmpl_path() . '/player_scorm/' . $playertemplate . '/def_style.css" rel="stylesheet" type="text/css" />';
 }
 echo '<SCRIPT type="text/javascript" src="' . Get::rel_path('lms') . '/modules/scorm/prototype.js"></SCRIPT>' . "\n";
 echo '<SCRIPT type="text/javascript" src="' . Get::rel_path('lms') . '/modules/scorm/ScormTypes.js"></SCRIPT>' . "\n";
 echo '<SCRIPT type="text/javascript" src="' . Get::rel_path('lms') . '/modules/scorm/ScormCache.js"></SCRIPT>' . "\n";
 echo '<SCRIPT type="text/javascript" src="' . Get::rel_path('lms') . '/modules/scorm/ScormApi.js"></SCRIPT>' . "\n";
 echo '<SCRIPT type="text/javascript" src="' . Get::rel_path('lms') . '/modules/scorm/player.js"></SCRIPT>' . "\n";
 echo '<SCRIPT type="text/javascript" src="' . Get::rel_path('lms') . '/modules/scorm/StdPlayer.js"></SCRIPT>' . "\n";
 echo '<SCRIPT type="text/javascript" >' . "\n";
 echo '<!--' . "\n";
 echo "var playerConfig = {\n";
 echo " autoplay: '{$autoplay}',\n";
 echo " backurl: '{$back_url}',\n";
 echo " xmlTreeUrl: '{$xmlTreeUrl}',\n";
 echo " host: '{$_SERVER['HTTP_HOST']}',\n";
 echo " lms_url: '{$lms_url}',\n";
开发者ID:abhinay100,项目名称:forma_app,代码行数:31,代码来源:scorm_frameset.php


注:本文中的Get::tmpl_path方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。