本文整理汇总了PHP中DoceboLanguage::createInstance方法的典型用法代码示例。如果您正苦于以下问题:PHP DoceboLanguage::createInstance方法的具体用法?PHP DoceboLanguage::createInstance怎么用?PHP DoceboLanguage::createInstance使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DoceboLanguage
的用法示例。
在下文中一共展示了DoceboLanguage::createInstance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setupJs
function setupJs($tags_id, $private_tags = '')
{
if (!$this->_use_tag) {
return '';
}
$lang =& DoceboLanguage::createInstance('tags', 'framework');
$this->tags_id = $tags_id;
YuiLib::load(array('autocomplete' => 'autocomplete-min.js', 'selector' => 'selector-beta-min.js'), array('assets/skins/sam' => 'autocomplete.css'));
Util::get_js(Get::rel_path('adm') . '/lib/lib.tags.js', true, true);
// setup some thing that we need in the tag editor
$GLOBALS['page']->add('<script type="text/javascript">' . "\n" . 'var tag_params ={
resource_type: "' . $this->resource_type . '",
addr: "' . $GLOBALS['where_framework_relative'] . '/ajax.adm_server.php",
query_append: "file=tags",
query:"' . $tags_id . '",
private_query:"' . $private_tags . '",
popular_tags: "' . addslashes(implode(', ', $this->getPopularTag())) . '",
user_tags: "' . addslashes(implode(', ', $this->getUserPopularTag(getLogUserId()))) . '",
lang: { tags: "' . addslashes($lang->def("_TAGS")) . '",
tips: "' . addslashes($lang->def("_TAGS_TIPS")) . '",
popular_tags: "' . addslashes($lang->def("_POPULAR")) . '",
user_tags: "' . addslashes($lang->def("_YOURS")) . '",
save: "' . addslashes($lang->def("_SAVE")) . '",
undo: "' . addslashes($lang->def("_UNDO")) . '",
add_tags: "' . addslashes($lang->def("_ADD_TAGS")) . '",
update_tags: "' . addslashes($lang->def("_MOD")) . '"
}
};' . "\n" . '</script>', 'scripts');
}
示例2: server_info
function server_info()
{
$lang =& DoceboLanguage::createInstance('configuration', 'framework');
$php_conf = ini_get_all();
$intest = '<div>' . '<div class="label_effect">';
$html = '<div class="conf_line_title">' . $lang->def('_SERVERINFO') . '</div>' . config_line($lang->def('_SERVER_ADDR'), $_SERVER['SERVER_ADDR']) . config_line($lang->def('_SERVER_PORT'), $_SERVER['SERVER_PORT']) . config_line($lang->def('_SERVER_NAME'), $_SERVER['SERVER_NAME']) . config_line($lang->def('_SERVER_ADMIN'), $_SERVER['SERVER_ADMIN']) . config_line($lang->def('_SERVER_SOFTWARE'), $_SERVER['SERVER_SOFTWARE']) . '<br />' . '<div class="conf_line_title">' . $lang->def('_SERVER_MYSQL') . '</div>' . config_line($lang->def('_MYSQL_VERS'), mysql_get_server_info()) . '<br />' . '<div class="conf_line_title">' . $lang->def('_PHPINFO') . '</div>' . config_line($lang->def('_PHPVERSION'), phpversion()) . config_line($lang->def('_SAFEMODE'), $php_conf['safe_mode']['local_value'] ? $lang->def('_ON') : $lang->def('_OFF')) . config_line($lang->def('_REGISTER_GLOBAL'), $php_conf['register_globals']['local_value'] ? $lang->def('_ON') : $lang->def('_OFF')) . config_line($lang->def('_MAGIC_QUOTES_GPC'), $php_conf['magic_quotes_gpc']['local_value'] ? $lang->def('_ON') : $lang->def('_OFF')) . config_line($lang->def('_UPLOAD_MAX_FILESIZE'), $php_conf['upload_max_filesize']['local_value']) . config_line($lang->def('_POST_MAX_SIZE'), $php_conf['post_max_size']['local_value']) . config_line($lang->def('_MAX_EXECUTION_TIME'), $php_conf['max_execution_time']['local_value'] . 's') . config_line($lang->def('_LDAP'), extension_loaded('ldap') ? $lang->def('_ON') : '<span class="font_red">' . $lang->def('_OFF') . ' ' . $lang->def('_USEFULL_ONLY_IF') . '</span>') . config_line($lang->def('_PHP_TIMEZONE'), @date_default_timezone_get());
if (version_compare(phpversion(), "5.0.0") == -1) {
$html .= config_line($lang->def('_DOMXML'), extension_loaded('domxml') ? $lang->def('_ON') : '<span class="font_red">' . $lang->def('_OFF') . ' (' . $lang->def('_NOTSCORM') . ')</span>');
}
if (version_compare(phpversion(), "5.2.0", ">")) {
$html .= config_line($lang->def('_ALLOW_URL_INCLUDE'), $php_conf['allow_url_include']['local_value'] ? '<span class="font_red">' . $lang->def('_ON') . '</span>' : $lang->def('_OFF'));
}
if (Get::cfg('uploadType') == 'ftp') {
if (function_exists("ftp_connect")) {
require_once _base_ . '/lib/lib.upload.php';
$re_con = sl_open_fileoperations();
$html .= config_line($lang->def('_UPLOADFTP'), $re_con ? $lang->def('_FTPOK') : '<span class="font_red">' . $lang->def('_FTPERR') . '</span>');
if ($re_con) {
sl_close_fileoperations();
}
} else {
$html .= config_line($lang->def('_UPLOADFTP'), '<span class="font_red">' . $lang->def('_FTPERR') . '</span>');
}
}
$html .= '<div class="nofloat"></div><br />';
return $html;
}
示例3: tagslist
function tagslist()
{
require_once _base_ . '/lib/lib.table.php';
require_once $GLOBALS['where_framework'] . '/lib/lib.tags.php';
$lang =& DoceboLanguage::createInstance('tags', 'framework');
$id_tag = Get::req('id_tag', DOTY_INT, 0);
$tag_name = Get::req('tag', DOTY_STRING, '');
$filter = Get::req('filter', DOTY_STRING, '');
$nav_bar = new NavBar('ini', Get::sett('visuItem'), 0);
$nav_bar->setLink('index.php?modname=tags&op=tags&id_tag=' . $id_tag);
$ini = $nav_bar->getSelectedElement();
$tags = new Tags('*');
$resources = $tags->getResourceByTags($id_tag, false, false, $ini, Get::sett('visuItem'));
$GLOBALS['page']->add(getTitleArea(array($lang->def('_TAGS')), 'tags') . '<div class="std_block">' . '<div class="tag_list">', 'content');
while (list(, $res) = each($resources['list'])) {
$link = $res['permalink'];
$delim = strpos($link, '?') === false ? '?' : '&';
if (strpos($link, '#') === false) {
$link = $link . $delim . 'sop=setcourse&sop_idc=' . $res['id_course'];
} else {
$link = str_replace('#', $delim . 'sop=setcourse&sop_idc=' . $res['id_course'] . '#', $link);
}
$GLOBALS['page']->add('' . '<h2>' . '<a href="' . $link . '">' . $res['title'] . '</a>' . '</h2>' . '<p>' . $res['sample_text'] . '</p>' . '<div class="tag_cloud">' . '<span>' . $lang->def('_TAGS') . ' : </span>' . '<ul><li>' . implode('</li><li>', $res['related_tags']) . '</li></ul>' . '</div>' . '<br />', 'content');
}
$GLOBALS['page']->add('</div>' . $nav_bar->getNavBar($ini, $resources['count']) . '</div>', 'content');
}
示例4: getBoxContent
function getBoxContent()
{
$html = array();
if (!checkPerm('view_org_chart', true, 'directory', 'framework')) {
return $html;
}
require_once _base_ . '/lib/lib.userselector.php';
$user_dir = new UserSelector();
$user_stats = $user_dir->getUsersStats();
$lang =& DoceboLanguage::createInstance('dashboard', 'framework');
if (Get::sett('welcome_use_feed') == 'on') {
require_once _base_ . '/lib/lib.fsock_wrapper.php';
$fp = new Fsock();
$released_version = $fp->send_request('http://www.formalms.org/versions/release.txt');
if (!$fp) {
$released_version = '<strong class="old_release">' . $lang->def('_UNKNOWN_RELEASE') . '</strong>';
} else {
if ($released_version == false) {
$released_version = '<strong class="ok_release">' . $lang->def('_UNKNOWN_RELEASE') . '</strong>';
}
if ($released_version == Get::sett('core_version')) {
$released_version = '<strong class="ok_release">' . $released_version . '</strong>';
} else {
$released_version = '<strong class="old_release">' . $released_version . ' (' . $lang->def('_NEW_RELEASE_AVAILABLE') . ')</strong>';
}
}
}
$html[] = '<h2 class="inline">' . $lang->def('_USERS_PANEL') . '</h2>' . '<p>' . $lang->def('_TOTAL_USER') . ': <b>' . ($user_stats['all'] - 1) . '</b>;<br />' . $lang->def('_SUSPENDED') . ': <b>' . $user_stats['suspended'] . '</b>;<br />' . (checkPerm('approve_waiting_user', true, 'directory', 'framework') ? $lang->def('_WAITING_USERS') . ': <b>' . $user_stats['waiting'] . '</b>;' : '') . '</p><p>' . $lang->def('_SUPERADMIN_USER') . ': <b>' . $user_stats['superadmin'] . '</b>;<br />' . $lang->def('_ADMIN_USER') . ': <b>' . $user_stats['admin'] . '</b>;<br />' . $lang->def('_PUBLIC_ADMIN_USER') . ': <b>' . $user_stats['public_admin'] . '</b>;' . '</p><p>' . $lang->def('_REG_TODAY') . ': <b>' . $user_stats['register_today'] . '</b>;<br />' . $lang->def('_REG_YESTERDAY') . ': <b>' . $user_stats['register_yesterday'] . '</b>;<br />' . $lang->def('_REG_LASTSEVENDAYS') . ': <b>' . $user_stats['register_7d'] . '</b>;' . '</p><p>' . $lang->def('_INACTIVE_USER') . ': <b>' . $user_stats['inactive_30d'] . '</b>;<br />' . $lang->def('_ONLINE_USER') . ': <b>' . $user_stats['now_online'] . '</b>;' . '</p><p>' . $lang->def('_CORE_VERSION') . ': <b>' . Get::sett('core_version') . '</b>;<br />' . (Get::sett('welcome_use_feed') == 'on' ? $lang->def('_LAST_RELEASED') . ': ' . $released_version . ';' : '') . '</p>';
return $html;
}
示例5: edithtml
function edithtml()
{
checkPerm('mod');
require_once _base_ . '/lib/lib.form.php';
$query = "\r\n\tSELECT textof\r\n\tFROM " . $GLOBALS['prefix_lms'] . "_htmlfront \r\n\tWHERE id_course = '" . $_SESSION['idCourse'] . "'";
$re_htmlfront = sql_query($query);
$error = false;
if (isset($_POST['save'])) {
if (mysql_num_rows($re_htmlfront) > 0) {
$upd_query = "\r\n\t\t\tUPDATE " . $GLOBALS['prefix_lms'] . "_htmlfront \r\n\t\t\tSET textof = '" . $_POST['description'] . "'\r\n\t\t\tWHERE id_course = '" . $_SESSION['idCourse'] . "'";
$re = sql_query($upd_query);
} else {
$ins_query = "\r\n\t\t\tINSERT INTO " . $GLOBALS['prefix_lms'] . "_htmlfront \r\n\t\t\t( id_course, textof) VALUES \r\n\t\t\t( \t'" . $_SESSION['idCourse'] . "',\r\n\t\t\t\t'" . $_POST['description'] . "' )";
$re = sql_query($ins_query);
}
if ($re) {
Util::jump_to('index.php?modname=htmlfront&op=showhtml&saveok=1');
} else {
$error = true;
}
}
$lang =& DoceboLanguage::createInstance('htmlfront', 'lms');
list($textof) = sql_fetch_row($re_htmlfront);
$title_page = array('index.php?modname=htmlfront&op=showhtml' => $lang->def('_HTMLFRONT'), $lang->def('_MOD'));
$GLOBALS['page']->add(getTitleArea($title_page, 'htmlfront') . '<div class="std_block">' . getBackUi('index.php?modname=htmlfront&op=showhtml', $lang->def('_BACK')) . ($error ? getErrorUi($lang->def('_ERROR_IN_SAVE')) : '') . Form::openForm('formnotes', 'index.php?modname=htmlfront&op=edithtml') . Form::openElementSpace() . Form::getTextarea($lang->def('_TEXTOF'), 'description', 'description', importVar('description', false, $textof)) . Form::closeElementSpace() . Form::openButtonSpace() . Form::getButton('save', 'save', $lang->def('_SAVE')) . Form::getButton('undo', 'undo', $lang->def('_UNDO')) . Form::closeButtonSpace() . Form::closeForm() . '</div>', 'content');
}
示例6: Test_Charts
function Test_Charts($idTest, $idUser)
{
//check ids
if ((int) $idTest <= 0 || (int) $idUser <= 0) {
return false;
}
$this->idTest = (int) $idTest;
$this->idUser = (int) $idUser;
//set params
$this->fontPath = $GLOBALS['where_framework_relative'] . '/addons/pchart/Fonts/';
$this->imagePath = $GLOBALS['where_files_relative'] . '/tmp/';
$this->valid = true;
$this->lang =& DoceboLanguage::createInstance('test', 'lms');
$this->_setTestInfo();
$this->table = new TypeOne();
//set rendering properties
$this->settings = new stdClass();
$this->settings->width = 800;
$this->settings->height = 400;
$this->settings->roundThreshold = 2;
$this->settings->roundRadius = 10;
$this->settings->horizontalDistance = 50;
$this->settings->verticalDistance = 30;
$this->settings->lineWidth = 4;
$this->settings->legendWidth = 200;
$this->settings->bgColor = array(230, 230, 230);
//R, G, B
$this->settings->graphColor = array(255, 255, 255);
$this->settings->scaleColor = array(150, 150, 150);
$this->settings->lineColor = array(230, 230, 230);
$this->settings->tresholdColor = array(143, 55, 72);
$this->settings->legendColor = array(255, 255, 255);
$this->settings->titleColor = array(50, 50, 50);
return true;
}
示例7: select_permission
function select_permission()
{
checkPerm('view');
require_once $GLOBALS['where_lms'] . '/lib/lib.middlearea.php';
require_once _base_ . '/lib/lib.userselector.php';
require_once _base_ . '/lib/lib.form.php';
$lang =& DoceboLanguage::createInstance('middlearea', 'lms');
$obj_index = importVar('obj_index', false, '');
// first step load selector
$man_ma = new Man_MiddleArea();
$acl_manager = new DoceboACLManager();
$user_select = new UserSelector();
$user_select->show_user_selector = TRUE;
$user_select->show_group_selector = TRUE;
$user_select->show_orgchart_selector = TRUE;
$user_select->show_orgchart_simple_selector = false;
//$user_select->multi_choice = TRUE;
// try to load previous saved
if (isset($_GET['load'])) {
$selected = $man_ma->getObjIdstList($obj_index);
if (is_array($selected)) {
$user_select->resetSelection($selected);
}
}
if (isset($_POST['okselector'])) {
$selected = $user_select->getSelection($_POST);
$re = $man_ma->setObjIdstList($obj_index, $selected);
Util::jump_to('index.php?modname=middlearea&op=view_area&result=' . ($re ? 'ok' : 'err'));
}
cout(getTitleArea(array('index.php?modname=middlearea&op=view_area' => $lang->def('_MIDDLE_AREA'), Lang::t('_VIEW_PERMISSION', 'standard')), 'middlearea') . '<div class="std_block">');
$user_select->addFormInfo(Form::getHidden('obj_index', 'obj_index', $obj_index));
$user_select->loadSelector('index.php?modname=middlearea&op=select_permission', false, false, true);
cout('</div>');
}
示例8: ioTask_UITab
/**
* Main UI of iotask module. Connectors, Connections and Tasks
* in one tabbed window
* @param Module $module a reference to the iotask module
* @param string $op the op code
**/
function ioTask_UITab(&$module, $op)
{
checkPerm('view');
require_once _base_ . '/lib/lib.tab.php';
$tv = new TabView('iotask_ui', '#');
$lang =& DoceboLanguage::createInstance('iotask', 'framework');
$tv->addTab(new TabElemDefault('connectors', $lang->def('_CONNECTORS'), getPathImage() . 'iotask/connector.gif'));
$tv->addTab(new TabElemDefault('connections', $lang->def('_CONNECTIONS'), getPathImage() . 'iotask/connection.gif'));
$tv->addTab(new TabElemDefault('tasks', $lang->def('_TASKS'), getPathImage() . 'iotask/task.gif'));
$tv->parseInput($_POST, $_POST);
if (isset($_GET['gotab'])) {
$tv->setActiveTab($_GET['gotab']);
} elseif ($tv->getActiveTab() == '') {
$tv->setActiveTab('connections');
}
require_once _base_ . '/lib/lib.form.php';
$form = new Form();
$GLOBALS['page']->add($form->openForm('iotask_ui', 'index.php?modname=iotask&op=display'));
$GLOBALS['page']->add($form->getHidden($tv->_getStateId(), $tv->_getStateId(), $tv->getActiveTab()));
$GLOBALS['page']->add($tv->printTabView_Begin("", FALSE));
switch ($tv->getActiveTab()) {
case 'connectors':
ioTask_UIConnectorsList($module);
break;
case 'connections':
ioTask_UIConnectionsList($module);
break;
case 'tasks':
ioTask_UITaskList($module);
break;
}
$GLOBALS['page']->add($tv->printTabView_End());
$GLOBALS['page']->add($form->closeForm());
}
示例9: loadFormAction
function loadFormAction(&$tree, $op)
{
require_once _base_ . '/lib/lib.form.php';
require_once dirname(__FILE__) . '/tree.org_chart.php';
$lang =& DoceboLanguage::createInstance('organization_chart', 'framework');
$out =& $GLOBALS['page'];
$out->add('<link href="templates/standard/style/base-old-treeview.css" rel="stylesheet" type="text/css">', 'page_head');
$out->setWorkingZone('content');
$out->add(getTitleArea($lang->def('_ORG_CHART'), 'org_chart') . '<div class="std_block">' . Form::openForm('org_chart', 'index.php?modname=org_chart&op=org_chart'));
switch ($op) {
case 'newfolder':
$out->add($tree->loadNewFolder());
break;
case 'deletefolder':
$out->add($tree->loadDeleteFolder());
break;
case 'renamefolder':
$out->add($tree->loadRenameFolder());
break;
case 'movefolder':
$out->add($tree->loadMoveFolder());
break;
case 'assign_field':
$out->add($tree->loadAssignField());
break;
}
$out->add(Form::closeForm() . '</div>');
}
示例10: adminConf
function adminConf()
{
require_once _base_ . '/lib/lib.form.php';
$lang =& DoceboLanguage::createInstance('admin_config', 'scs');
$out =& $GLOBALS['page'];
$out->setWorkingZone('content');
$out->add(getTitleArea($lang->def('_ADMIN_CONF'), 'admin_conf') . '<div class="std_block">');
if (isset($_POST['save'])) {
$query_update = "UPDATE " . $GLOBALS['prefix_scs'] . "_rules_admin SET ";
if (isset($_POST['rules'])) {
while (list($var_name, $new_value) = each($_POST['rules'])) {
$query_update .= " {$var_name} = '" . $new_value . "',";
}
$re = sql_query(substr($query_update, 0, -1));
}
if ($re) {
$out->add(getResultUi($lang->def('_MOD_OK')));
} else {
$out->add(getErrorUi($lang->def('_MOD_ERR')));
}
}
$query_rules_admin = "\r\n\tSELECT server_status, \r\n\t\tenable_recording_function, enable_advice_insert, enable_write, enable_chat_recording, \r\n\t\tenable_private_subroom, enable_public_subroom, \r\n\t\tenable_drawboard_watch, enable_drawboard_write, \r\n\t\tenable_audio, enable_webcam, enable_stream_watch, enable_strem_write, enable_remote_desktop \r\n\tFROM " . $GLOBALS['prefix_scs'] . "_rules_admin";
$re_rules_admin = sql_query($query_rules_admin);
$rules = mysql_fetch_array($re_rules_admin);
$out->add(Form::openForm('rules_admin', 'index.php?modname=admin_configuration&op=conf') . Form::openElementSpace() . Form::getOpenCombo($lang->def('_SERVER_STATUS')) . Form::getInputRadio('rules_server_status_yes', 'rules[server_status]', 'yes', $rules['server_status'] == 'yes', '') . ' ' . Form::getLabel('', $lang->def('_YES'), 'label_padded') . ' ' . Form::getInputRadio('rules_server_status_no', 'rules[server_status]', 'no', $rules['server_status'] == 'no', '') . ' ' . Form::getLabel('', $lang->def('_NO'), 'label_padded') . ' ' . Form::getCloseCombo() . maskMultiple('enable_recording_function', $rules['enable_recording_function']) . maskMultiple('enable_advice_insert', $rules['enable_advice_insert']) . maskMultiple('enable_write', $rules['enable_write']) . maskMultiple('enable_chat_recording', $rules['enable_chat_recording']) . maskMultiple('enable_private_subroom', $rules['enable_private_subroom']) . maskMultiple('enable_public_subroom', $rules['enable_public_subroom']) . maskMultiple('enable_drawboard_watch', $rules['enable_drawboard_watch']) . maskMultiple('enable_drawboard_write', $rules['enable_drawboard_write']) . maskMultiple('enable_audio', $rules['enable_audio']) . maskMultiple('enable_webcam', $rules['enable_webcam']) . maskMultiple('enable_stream_watch', $rules['enable_stream_watch']) . maskMultiple('enable_strem_write', $rules['enable_strem_write']) . maskMultiple('enable_remote_desktop', $rules['enable_remote_desktop']) . Form::closeElementSpace() . Form::openButtonSpace() . Form::getButton('save', 'save', $lang->def('_SAVE')) . Form::getButton('undo', 'undo', $lang->def('_UNDO')) . Form::closeButtonSpace() . Form::closeForm());
$out->add('</div>');
}
示例11:
function &get_lang()
{
if ($this->lang === NULL) {
//require_once(_i18n_.'/lib.lang.php');
$this->lang =& DoceboLanguage::createInstance('iotask', 'framework');
}
return $this->lang;
}
示例12: getSubstitutionTags
function getSubstitutionTags()
{
$lang =& DoceboLanguage::createInstance('certificate', 'lms');
$subs = array();
$subs['[today]'] = $lang->def('_COURSE_TODAY');
$subs['[year]'] = $lang->def('_COURSE_YEAR');
return $subs;
}
示例13: getFbRegisterBox
function getFbRegisterBox()
{
$res = '';
$lang =& DoceboLanguage::createInstance('login', 'cms');
$res = '<div class="container-feedback"><span class="ico-sprite fd_info"><span></span></span>
<b>' . $lang->def('_REGISTER_WITH_FACEBOOK') . '</b>:
<a href="index.php?modname=login&op=reg_with_fb">' . Get::img('social/bt_fConnect.png', $lang->def('_REGISTER_WITH_FACEBOOK')) . '</a></div>';
return $res;
}
示例14: moditem
function moditem($object_item)
{
//checkPerm('view', false, 'storage');
require_once _base_ . '/lib/lib.form.php';
$lang =& DoceboLanguage::createInstance('item');
$back_coded = htmlentities(urlencode($object_item->back_url));
list($title, $description) = sql_fetch_row(sql_query("\r\n\tSELECT title, description \r\n\tFROM " . $GLOBALS['prefix_lms'] . "_materials_lesson \r\n\tWHERE author = " . getLogUserId() . " AND idLesson = '" . $object_item->getId() . "'"));
$GLOBALS['page']->add(getTitleArea($lang->def('_SECTIONNAME_ITEM'), 'item') . '<div class="std_block">' . getBackUi(Util::str_replace_once('&', '&', $object_item->back_url) . '&mod_result=0', $lang->def('_BACK')) . Form::openForm('itemform', 'index.php?modname=item&op=upitem', 'std_form', 'post', 'multipart/form-data') . Form::openElementSpace() . Form::getHidden('idItem', 'idItem', $object_item->getId()) . Form::getHidden('back_url', 'back_url', htmlentities(urlencode($object_item->back_url))) . Form::getTextfield($lang->def('_TITLE'), 'title', 'title', 100, $title) . Form::getFilefield($lang->def('_FILE_MOD'), 'file', 'attach') . Form::getTextarea($lang->def('_DESCRIPTION'), 'description', 'description', $description) . Form::closeElementSpace() . Form::openButtonSpace() . Form::getButton('additem', 'additem', $lang->def('_SAVE')) . Form::closeButtonSpace() . Form::closeForm() . '</div>', 'content');
}
示例15: getReportNameById
function getReportNameById($id)
{
$qry = "SELECT filter_name, author FROM %lms_report_filter WHERE id_filter={$id}";
$row = sql_fetch_row(sql_query($qry));
if ($row[1]) {
return $row[0];
} else {
$lang =& DoceboLanguage::createInstance('report', 'framework');
return $lang->def($row[0]);
}
}