本文整理汇总了PHP中Get::title方法的典型用法代码示例。如果您正苦于以下问题:PHP Get::title方法的具体用法?PHP Get::title怎么用?PHP Get::title使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Get
的用法示例。
在下文中一共展示了Get::title方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
Get::title(array('index.php?r=adm/publicadminmanager/show' => Lang::t('_PUBLIC_ADMIN_MANAGER', 'menu'), Lang::t('_ASSIGN_USERS', 'adminmanager') . ' : ' . $model->getAdminFullname($id_user)));
?>
<div class="std_block">
<?php
echo Form::openForm('main_selector_form', 'index.php?r=adm/publicadminmanager/users&id_user=' . $id_user . '&');
$this->widget('userselector', array('id' => 'main_selector', 'show_user_selector' => true, 'show_group_selector' => true, 'show_orgchart_selector' => true, 'show_fncrole_selector' => true, 'initial_selection' => $user_alredy_subscribed, 'admin_filter' => true));
echo Form::openButtonSpace() . Form::getButton('okselector', 'okselector', Lang::t('_NEXT', 'standard')) . Form::getButton('cancelselector', 'cancelselector', Lang::t('_UNDO', 'standard')) . Form::closeButtonSpace();
echo Form::closeForm();
?>
</div>
示例2: getBackUi
<?php
Get::title(array('index.php?r=' . $base_link_course . '/show' => Lang::t('_COURSE', 'course'), Lang::t('_CLASSROOM', 'course') . ' : ' . $course_name));
?>
<div class="std_block">
<?php
echo getBackUi('index.php?r=' . $base_link_course . '/show', Lang::t('_BACK', 'course'));
$_columns = array(array('key' => 'code', 'label' => Lang::t('_CODE', 'course'), 'sortable' => true), array('key' => 'name', 'label' => Lang::t('_NAME', 'course'), 'sortable' => true), array('key' => 'status', 'label' => Lang::t('_STATUS', 'course'), 'sortable' => true, 'formatter' => 'statusFormatter'), array('key' => 'date_begin', 'label' => Lang::t('_DATE_BEGIN', 'course'), 'sortable' => true), array('key' => 'date_end', 'label' => Lang::t('_DATE_END', 'course'), 'sortable' => true), array('key' => 'classroom', 'label' => Lang::t('_CLASSROOM', 'course')), array('key' => 'students', 'label' => Lang::t('_STUDENTS', 'coursereport'), 'className' => 'img-cell'));
if ($permissions['subscribe']) {
$_columns[] = array('key' => 'subscription', 'label' => Get::sprite('subs_users', Lang::t('_SUBSCRIPTION', 'course')), 'className' => 'img-cell');
Docebo::user()->preference->getAdminPreference('admin_rules.course_presence_admin') === 'on' && Docebo::user()->getUserLevelId() !== ADMIN_GROUP_GODADMIN || Docebo::user()->getUserLevelId() === ADMIN_GROUP_GODADMIN ? $_columns[] = array('key' => 'presence', 'label' => Lang::t('_ATTENDANCE', 'course'), 'className' => 'img-cell') : '';
}
if ($permissions['mod']) {
$_columns[] = array('key' => 'mod', 'label' => Get::img('standard/edit.png', Lang::t('_MOD', 'course')), 'className' => 'img-cell');
}
if ($permissions['del'] && !Get::cfg('demo_mode')) {
$_columns[] = array('key' => 'del', 'label' => Get::img('standard/delete.png', Lang::t('_DEL', 'course')), 'formatter' => 'doceboDelete', 'className' => 'img-cell');
}
$_params = array('id' => 'classroom_edition_table', 'ajaxUrl' => 'ajax.adm_server.php?r=' . $base_link_classroom . '/getclassroomedition&id_course=' . $model->getIdCourse() . '&', 'rowsPerPage' => Get::sett('visuItem', 25), 'startIndex' => 0, 'results' => Get::sett('visuItem', 25), 'sort' => 'name', 'dir' => 'asc', 'columns' => $_columns, 'fields' => array('id_date', 'code', 'name', 'status', 'date_begin', 'date_end', 'classroom', 'students', 'num_subscribe', 'subscription', 'presence', 'mod', 'del'), 'show' => 'table', 'editorSaveEvent' => '');
if ($permissions['add']) {
$_params['rel_actions'] = '<a class="ico-wt-sprite subs_add" href="index.php?r=' . $base_link_classroom . '/addclassroom&id_course=' . $model->getIdCourse() . '"><span>' . Lang::t('_ADD', 'subscribe') . '</span></a>';
}
$this->widget('table', $_params);
echo getBackUi('index.php?r=' . $base_link_course . '/show', Lang::t('_BACK', 'course'));
?>
</div>
<script type="text/javascript">
var StatusList = {
<?php
$conds = array();
$list = $this->model->getStatusForDropdown();
示例3: trim
<?php
Get::title(array('index.php?r=' . $this->link_course . '/show' => Lang::t('_COURSES', 'admin_course_managment'), 'index.php?r=' . $this->link . '/show&id_course=' . (int) $id_course . ($id_edition ? '&id_edition=' . (int) $id_edition : '') . ($id_date ? '&id_date=' . (int) $id_date : '') => Lang::t('_SUBSCRIBE', 'subscribe') . ' : ' . $course_name, Lang::t('_ADD', 'subscribe')));
?>
<div class="std_block">
<?php
echo Form::openForm('main_selector_form', 'index.php?r=' . $this->link . '/add&id_course=' . $model->getIdCourse() . '&id_edition=' . $model->getIdEdition() . '&id_date=' . $model->getIdDate() . '&jump=1');
echo Lang::t('_CHOOSE_SUBSCRIBE', 'subscribe') . ': <b>' . (trim($course_info['code']) ? '[' . trim($course_info['code']) . '] ' : '') . $course_info['name'] . '</b><br/><br/>';
?>
<a id="advanced_options" class="advanced_search" href="javascript:;"><?php
echo Lang::t("_MORE_ACTIONS", 'standard');
?>
</a>
<div id="advanced_subs_options" class="advanced_search_options" style="display: none;">
<?php
echo Form::getDropdown(Lang::t('_LEVEL', 'subscribe'), 'select_level_mode', 'select_level_mode', array('manual' => Lang::t('_MANUAL', 'subscribe'), 'students' => Lang::t('_LEVEL_3', 'levels')), 'manual');
echo Form::getDatefield(Lang::t('_DATE_BEGIN_VALIDITY', 'subscribe'), 'set_date_begin_validity', 'set_date_begin_validity', '', false, false, '', '', Form::getInputCheckbox('sel_date_begin_validity', 'sel_date_begin_validity', 1, false, ''));
echo Form::getDatefield(Lang::t('_DATE_EXPIRE_VALIDITY', 'subscribe'), 'set_date_expire_validity', 'set_date_expire_validity', '', false, false, '', '', Form::getInputCheckbox('sel_date_expire_validity', 'sel_date_expire_validity', 1, false, ''));
?>
</div>
<script type="text/javascript">
var E = YAHOO.util.Event;
E.onDOMReady(function() {
E.addListener("set_date_begin_validity", "change", function() {});
E.addListener("set_date_expire_validity", "change", function() {});
E.addListener("advanced_options", "click", function(e) {
var el = YAHOO.util.Dom.get("advanced_subs_options");
if (el.style.display != 'block') {
el.style.display = 'block'
示例4:
<?php
Get::title(array(Lang::t('_WIRE_INFO', 'cart')));
?>
<div class="std_block">
<h3><?php
echo Lang::t('_ORDER_NUMBER', 'cart') . ' ' . $transaction_info['id_trans'];
?>
</h3>
<br/>
<?php
echo Lang::t('_TOTAL', 'cart');
?>
: <?php
echo $total_price;
?>
<?php
echo Get::sett('currency_symbol') !== '' ? Get::sett('currency_symbol') : '&eur;';
?>
<br/>
<br/>
<?php
echo Lang::t('_WIRE_PAYMENT_DETAILS', 'cart');
?>
</div>
示例5: function
<?php
Get::title(array('index.php?r=adm/lang/show' => Lang::t('_LANGUAGE', 'admin_lang'), Lang::t('_TRANSLATELANG', 'admin_lang')));
?>
<div class="std_block">
<div class="container-back"><a href="index.php?r=adm/lang/show"><span><?php
echo Lang::t('_BACK', 'standard');
?>
</span></a></div>
<script type="text/javascript">
var requestBuilder = function (oState, oSelf) {
var sort, dir, startIndex, results;
oState = oState || {pagination: null, sortedBy: null};
startIndex = (oState.pagination) ? oState.pagination.recordOffset : 0;
results = (oState.pagination) ? oState.pagination.rowsPerPage : null;
sort = (oState.sortedBy) ? oState.sortedBy.key : oSelf.getColumnSet().keys[0].getKey();
dir = (oState.sortedBy && oState.sortedBy.dir === YAHOO.widget.DataTable.CLASS_DESC) ? "desc" : "asc";
return "&results=" + results +
"&startIndex=" + startIndex +
"&sort=" + sort +
"&dir=" + dir+
"&la_module=" + YAHOO.util.Dom.get('la_module').value +
"&la_text=" + YAHOO.util.Dom.get('la_text').value +
"&lang_code=" + YAHOO.util.Dom.get('lang_code').value +
"&lang_code_diff=" + YAHOO.util.Dom.get('lang_code_diff').value +
"&only_empty=" + YAHOO.util.Dom.get('only_empty').checked;
}
var saveTranslation = function(callback, newData) {
示例6: locationclassroom
<?php
Get::title(Lang::t('_LOCATION', 'classroom'));
?>
<div class="std_block">
<?php
$rel_action = array();
if ($this->perm['mod']) {
$rel_action = array('<a id="addlocation_top" href="ajax.adm_server.php?r=alms/location/addmask" class="ico-wt-sprite subs_add" title="' . Lang::t('_ADD', 'standard') . '"><span>' . Lang::t('_ADD', 'standard') . '</span></a>', '<a id="addlocation_bottom" href="ajax.adm_server.php?r=alms/location/addmask" class="ico-wt-sprite subs_add" title="' . Lang::t('_ADD', 'standard') . '"><span>' . Lang::t('_ADD', 'standard') . '</span></a>');
}
$this->widget('table', array('id' => 'locationlist', 'ajaxUrl' => 'ajax.adm_server.php?r=alms/location/getlocation', 'sort' => 'location', 'columns' => array(array('key' => 'location', 'label' => Lang::t('_LOCATION', 'lms'), 'sortable' => true), array('key' => 'location_classroom', 'label' => '<span class="ico-sprite subs_elem"><span>' . Lang::t('_CLASSROOM', 'classroom') . '</span></span>', 'formatter' => 'locationclassroom', 'className' => 'img-cell'), array('key' => 'location_mod', 'label' => '<span class="ico-sprite subs_mod"><span>' . Lang::t('_MOD', 'standard') . '</span></span>', 'formatter' => 'stdModify', 'className' => 'img-cell'), array('key' => 'location_del', 'label' => '<span class="ico-sprite subs_del"><span>' . Lang::t('_DEL', 'standard') . '</span></span>', 'formatter' => 'stdDelete', 'className' => 'img-cell')), 'fields' => array('id_location', 'location', 'can_manage_classrooms', 'location_mod', 'location_del'), 'delDisplayField' => 'location', 'rel_actions' => $rel_action));
$this->widget('dialog', array('id' => 'location_add', 'dynamicContent' => true, 'ajaxUrl' => 'ajax.adm_server.php?r=alms/location/addmask', 'callback' => 'function() { this.destroy(); DataTable_locationlist.refresh(); }', 'callEvents' => array(array('caller' => 'addlocation_top', 'event' => 'click'), array('caller' => 'addlocation_bottom', 'event' => 'click'))));
?>
<script type="text/javascript">
function locationclassroom(elLiner, oRecord, oColumn, oData) {
if (oRecord.getData("can_manage_classrooms") <= 0) {
elLiner.innerHTML = '';
} else {
var id_location = oRecord.getData("id_location");
elLiner.innerHTML = '<a href="index.php?r=alms/location/show_classroom&id_location='+id_location+'" '
+'class="ico-sprite subs_elem" title="<?php
echo Lang::t('_CLASSROOM', 'classroom');
?>
">'
+'<span><?php
echo Lang::t('_CLASSROOM', 'classroom');
?>
</span></a>';
}
示例7: changeBeginHours
<?php
Get::title(array('index.php?r=' . $base_link_course . '/show' => Lang::t('_COURSE', 'course'), 'index.php?r=' . $base_link_classroom . '/classroom&id_course=' . $model->getIdCourse() => Lang::t('_CLASSROOM', 'course'), Lang::t('_MOD', 'course') . ': ' . $date_info['name'] . ' (' . Format::date($date_info['date_begin']) . ')'));
?>
<div class="std_block">
<script type="text/javascript">
var i;
function changeBeginHours()
{
i = 0;
var selected = YAHOO.util.Dom.get('b_hours').selectedIndex;
for(i; i < num_day;i++)
YAHOO.util.Dom.get('b_hours_' + i).selectedIndex = selected;
}
function changeBeginMinutes()
{
i = 0;
var selected = YAHOO.util.Dom.get('b_minutes').selectedIndex;
for(i; i < num_day;i++)
YAHOO.util.Dom.get('b_minutes_' + i).selectedIndex = selected;
}
function changePBeginHours()
示例8: getBackUi
<?php
Get::title(array('index.php?r=alms/location/show' => Lang::t('_LOCATION', 'classroom'), 'index.php?r=alms/location/show_classroom&id_location=' . ($_is_editing ? $info->location_id : $id_location) => Lang::t('_CLASSROOM', 'classroom'), Lang::t($_is_editing ? '_MOD' : '_ADD', 'standard')));
?>
<div class="std_block">
<?php
echo getBackUi('index.php?r=alms/location/show_classroom&id_location=' . ($_is_editing ? $info->location_id : $id_location), Lang::t('_BACK'));
echo Form::openForm('classroom_form', $_is_editing ? 'index.php?r=alms/location/saveclassroom' : 'index.php?r=alms/location/insertclassroom');
echo Form::getTextfield(Lang::t('_NAME', 'classroom'), 'name', 'name', 255, $_is_editing ? $info->name : "");
echo Form::getTextarea(Lang::t('_DESCRIPTION', 'classroom'), 'description', 'description', $_is_editing ? $info->description : "");
if (!$_is_editing) {
echo Form::getHidden('id_location', 'id_location', (int) $id_location);
}
if ($_is_editing) {
echo Form::getHidden('id_classroom', 'id_classroom', $info->idClassroom);
}
if ($_is_editing) {
echo Form::getHidden('id_location', 'id_location', $info->location_id);
}
echo Form::getTextfield(Lang::t('_BUILDING_ROOM', 'classroom'), 'room', 'room', 255, $_is_editing ? $info->room : "");
echo Form::getTextfield(Lang::t('_CAPACITY', 'classroom'), 'capacity', 'capacity', 255, $_is_editing ? $info->capacity : "");
echo Form::getTextfield(Lang::t('_RESPONSABLE', 'classroom'), 'responsable', 'responsable', 255, $_is_editing ? $info->responsable : "");
echo Form::getTextfield(Lang::t('_STREET', 'classroom'), 'street', 'street', 255, $_is_editing ? $info->street : "");
echo Form::getTextfield(Lang::t('_CITY', 'classroom'), 'city', 'city', 255, $_is_editing ? $info->city : "");
echo Form::getTextfield(Lang::t('_STATE', 'classroom'), 'state', 'state', 255, $_is_editing ? $info->state : "");
echo Form::getTextfield(Lang::t('_ZIP_CODE', 'classroom'), 'zip_code', 'zip_code', 255, $_is_editing ? $info->zip_code : "");
echo Form::getTextfield(Lang::t('_PHONE', 'classroom'), 'phone', 'phone', 255, $_is_editing ? $info->phone : "");
echo Form::getTextfield(Lang::t('_FAX', 'classroom'), 'fax', 'fax', 255, $_is_editing ? $info->fax : "");
echo Form::getTextarea(Lang::t('_DISPOSITION', 'classroom'), 'disposition', 'disposition', $_is_editing ? $info->disposition : "");
echo Form::getTextarea(Lang::t('_INSTRUMENT', 'classroom'), 'instrument', 'instrument', $_is_editing ? $info->instrument : "");
echo Form::getTextarea(Lang::t('_AVAILABLE_INSTRUMENT', 'classroom'), 'available_instrument', 'available_instrument', $_is_editing ? $info->available_instrument : "");
示例9: TranslateFormatter
<?php
Get::title(Lang::t('_LANGUAGE', 'admin_lang'));
?>
<div class="std_block">
<?php
$this->widget('table', array('id' => 'langlist', 'ajaxUrl' => 'ajax.adm_server.php?r=adm/lang/getlang', 'sort' => 'lang_code', 'columns' => array(array('key' => 'lang_code', 'label' => Lang::t('_LANGUAGE', 'admin_lang'), 'sortable' => true), array('key' => 'lang_description', 'label' => Lang::t('_DESCRIPTION', 'admin_lang'), 'sortable' => true), array('key' => 'lang_direction', 'label' => Lang::t('_ORIENTATION', 'admin_lang'), 'className' => 'min-cell', 'sortable' => true), array('key' => 'lang_stats', 'label' => Lang::t('_STATISTICS', 'admin_lang'), 'className' => 'img-cell', 'sortable' => true), array('key' => 'lang_translate', 'label' => '<span class="ico-sprite subs_elem"><span>' . Lang::t('_TRANSLATELANG', 'admin_lang') . '</span></span>', 'formatter' => 'TranslateFormatter', 'className' => 'img-cell'), array('key' => 'lang_export', 'label' => '<span class="ico-sprite subs_download"><span>' . Lang::t('_EXPORT_XML', 'admin_lang') . '</span></span>', 'formatter' => 'ExportFormatter', 'className' => 'img-cell'), array('key' => 'lang_mod', 'label' => '<span class="ico-sprite subs_mod"><span>' . Lang::t('_MOD', 'admin_lang') . '</span></span>', 'formatter' => 'stdModify', 'className' => 'img-cell'), array('key' => 'lang_del', 'label' => '<span class="ico-sprite subs_del"><span>' . Lang::t('_DEL', 'admin_lang') . '</span></span>', 'formatter' => 'stdDelete', 'className' => 'img-cell')), 'fields' => array('lang_code', 'lang_description', 'lang_direction', 'lang_stats', 'lang_translate', 'lang_export', 'lang_mod', 'lang_del'), 'delDisplayField' => 'lang_code', 'rel_actions' => array('<a id="addlang_top" href="ajax.adm_server.php?r=adm/lang/addmask" class="ico-wt-sprite subs_add" title="' . Lang::t('_ADD', 'standard') . '"><span>' . Lang::t('_ADD', 'standard') . '</span></a>' . '<a href="index.php?r=adm/lang/import" class="ico-wt-sprite subs_import" title="' . Lang::t('_IMPORT', 'standard') . '"><span>' . Lang::t('_IMPORT', 'standard') . '</span></a>', '<a id="addlang_bottom" href="ajax.adm_server.php?r=adm/lang/addmask" class="ico-wt-sprite subs_add" title="' . Lang::t('_ADD', 'standard') . '"><span>' . Lang::t('_ADD', 'standard') . '</span></a>' . '<a href="index.php?r=adm/lang/import" class="ico-wt-sprite subs_import" title="' . Lang::t('_IMPORT', 'standard') . '"><span>' . Lang::t('_IMPORT', 'standard') . '</span></a>')));
$this->widget('dialog', array('id' => 'lang_add', 'dynamicContent' => true, 'ajaxUrl' => 'ajax.adm_server.php?r=adm/lang/addmask', 'callback' => 'function() { this.destroy(); DataTable_langlist.refresh(); }', 'callEvents' => array(array('caller' => 'addlang_top', 'event' => 'click'), array('caller' => 'addlang_bottom', 'event' => 'click'))));
?>
<script type="text/javascript">
function TranslateFormatter(elLiner, oRecord, oColumn, oData) {
var id = this.getTableEl().parentNode.id+'_translate_'+oRecord.getData("id");
if(oData) elLiner.innerHTML = '<a id="'+id+'" href="'+oData+'" class="ico-sprite subs_elem" title="<?php
echo Lang::t('_TRANSLATELANG', 'admin_lang');
?>
"><span></span></a>';
else elLiner.innerHTML = '';
}
function ExportFormatter(elLiner, oRecord, oColumn, oData) {
var id = this.getTableEl().parentNode.id+'_translate_'+oRecord.getData("id");
if(oData) elLiner.innerHTML = '<a id="'+id+'" href="'+oData+'" class="ico-sprite subs_download" title="<?php
echo Lang::t('_EXPORT', 'admin_lang');
?>
"><span></span></a>';
else elLiner.innerHTML = '';
}
</script>
</div>
示例10: getBackUi
<?php
$_back_url = 'index.php?r=alms/location/show';
$_add_url = 'index.php?r=alms/location/addclassroom&id_location=' . (int) $id_location;
Get::title(array($_back_url => Lang::t('_LOCATION', 'classroom'), Lang::t('_CLASSROOM', 'classroom')));
?>
<div class="std_block">
<?php
echo getBackUi('index.php?r=alms/location/show', Lang::t('_BACK'));
$this->widget('table', array('id' => 'classroomlist', 'ajaxUrl' => 'ajax.adm_server.php?r=alms/location/getclassroom&location_id=' . (int) $id_location, 'sort' => 'classroom', 'columns' => array(array('key' => 'classroom', 'label' => Lang::t('_CLASSROOM', 'lms'), 'sortable' => true), array('key' => 'classroom_schedule', 'label' => '<span class="ico-sprite subs_wait"><span>' . Lang::t('_SCHEDULE', 'standard') . '</span></span>', 'formatter' => 'Schedule.SchedFormatter', 'className' => 'img-cell'), array('key' => 'classroom_mod', 'label' => '<span class="ico-sprite subs_mod"><span>' . Lang::t('_MOD', 'standard') . '</span></span>', 'formatter' => 'Classroom.modFormatter', 'className' => 'img-cell'), array('key' => 'classroom_del', 'label' => '<span class="ico-sprite subs_del"><span>' . Lang::t('_DEL', 'standard') . '</span></span>', 'formatter' => 'stdDelete', 'className' => 'img-cell')), 'fields' => array('id_classroom', 'classroom', 'classroom_mod', 'classroom_del'), 'delDisplayField' => 'classroom', 'rel_actions' => array('<a id="addclassroom_top" href="' . $_add_url . '" class="ico-wt-sprite subs_add" title="' . Lang::t('_ADD', 'standard') . '"><span>' . Lang::t('_ADD', 'standard') . '</span></a>', '<a id="addclassroom_bottom" href="' . $_add_url . '" class="ico-wt-sprite subs_add" title="' . Lang::t('_ADD', 'standard') . '"><span>' . Lang::t('_ADD', 'standard') . '</span></a>')));
echo getBackUi('index.php?r=alms/location/show', Lang::t('_BACK'));
?>
<script type="text/javascript">
var Classroom = {
modFormatter: function(elLiner, oRecord, oColumn, oData) {
var id = oRecord.getData("id_classroom");
elLiner.innerHTML = '<a href="index.php?r=alms/location/modclassroom&id_classroom='+id+'" '
+'class="ico-sprite subs_mod" title="<?php
echo Lang::t('_MOD', 'standard');
?>
">'
+'<span><?php
echo Lang::t('_MOD', 'standard');
?>
</span></a>';}
};
var Schedule = {
SchedFormatter: function(elLiner, oRecord, oColumn, oData) {
var id = oRecord.getData("id_classroom");
示例11: getBackUi
<?php
Get::title(array('index.php?r=alms/location/show' => Lang::t('_LOCATION', 'classroom'), 'index.php?r=alms/location/show_classroom&id_location=' . $info->location_id => Lang::t('_CLASSROOM', 'classroom'), Lang::t('_CALENDAR', 'classroom')));
?>
<div class="std_block">
<?php
echo getBackUi('index.php?r=alms/location/show_classroom&id_location=' . $info->location_id, Lang::t('_BACK'));
?>
<div id="classroom_calendar"></div>
<div class="nofloat"></div>
<script type="text/javascript">
var datecount = 0;
YAHOO.util.Event.onDOMReady(function() {
cal1 = new YAHOO.widget.CalendarGroup("cal1","classroom_calendar", {PAGES:3});
cal1.cfg.setProperty("DATE_FIELD", "/");
cal1.cfg.setProperty("DATE_RANGE_DELIMITER", ".");
cal1.cfg.setProperty("DATE_FIELD_DELIMITER", "-");
cal1.cfg.setProperty("MDY_YEAR_POSITION", 1);
cal1.cfg.setProperty("MDY_MONTH_POSITION", 2);
cal1.cfg.setProperty("MDY_DAY_POSITION", 3);
<?php
if ($date_list) {
while (list(, $value) = each($date_list)) {
?>
cal1.addRenderer("<?php
echo $value;
?>
示例12: array
<?php
Get::title(array(Lang::t('_CART', 'cart')));
?>
<div class="std_block">
<?php
$empty_cart = '<a class="ico-wt-sprite subs_cancel" href="javascript:;" onclick="emptyCart();"><span>' . Lang::t('_EMPTY_CART', 'cart') . '</span></a>';
$del_sel = '<a class="ico-wt-sprite subs_del" href="javascript:;" onclick="delSelectedElement();"><span>' . Lang::t('_DEL_SELECTED_ELEMENT', 'cart') . '</span></a>';
$rel_action = $empty_cart . ' ' . $del_sel;
$this->widget('table', array('id' => 'cart_table', 'ajaxUrl' => 'ajax.server.php?r=cart/getCartList', 'rowsPerPage' => 0, 'startIndex' => 0, 'results' => 0, 'sort' => 'name', 'dir' => 'asc', 'columns' => array(array('key' => 'code', 'label' => Lang::t('_CODE', 'cart'), 'sortable' => true), array('key' => 'name', 'label' => Lang::t('_NAME', 'cart'), 'sortable' => true), array('key' => 'type', 'label' => Lang::t('_COURSE_TYPE', 'cart'), 'sortable' => true), array('key' => 'date_begin', 'label' => Lang::t('_DATE_BEGIN', 'cart'), 'sortable' => true), array('key' => 'date_end', 'label' => Lang::t('_DATE_END', 'cart'), 'sortable' => true), array('key' => 'price', 'label' => Lang::t('_COURSE_PRIZE', 'cart'), 'sortable' => true)), 'fields' => array('id', 'code', 'name', 'type', 'date_begin', 'date_end', 'price', 'action'), 'show' => 'table', 'use_paginator' => false, 'print_table_below' => false, 'rel_actions' => $rel_action, 'stdSelection' => true));
?>
<?php
$paypal_return_url = Get::sett('url') . _folder_lms_ . '/paypal.php?op=ok';
$paypal_notify_url = Get::sett('url') . _folder_lms_ . '/paypal.php';
?>
<div class="total_container">
<p class="total_price cart_right"><?php
echo Lang::t('_TOTAL', 'cart');
?>
: <span id="price"><?php
echo $total_price;
?>
</span> <?php
echo Get::sett('currency_symbol') !== '' ? Get::sett('currency_symbol') : '&eur;';
?>
</p>
<div class="nofloat"></div>
示例13: getBackUi
<?php
Get::title(array('index.php?r=alms/enrollrules/show' => Lang::t('_ENROLLRULES', 'enrollrules'), 'index.php?r=alms/enrollrules/rule&' . $rule->id_rule => Lang::t('_MANAGE', 'enrollrules') . ': ' . $rule->title, $rule->rule_type_text));
?>
<div class="std_block">
<?php
echo getBackUi('index.php?r=alms/enrollrules/rule&' . $rule->id_rule, Lang::t('_BACK', 'standard'));
echo Form::openForm('enrollrule_form', 'index.php?r=alms/enrollrules/addentity') . Form::getHidden('id_rule', 'id_rule', $rule->id_rule);
$this->widget('userselector', array('id' => 'entity_selection', 'admin_filter' => true, 'can_select_root' => false, 'show_user_selector' => false, 'show_fncrole_selector' => $fncrole, 'show_orgchart_selector' => $orgchart, 'show_group_selector' => $group, 'initial_selection' => $init_selection));
echo Form::openButtonSpace() . Form::getButton('save', 'save', Lang::t('_SAVE', 'standard')) . Form::getButton('undo', 'undo', Lang::t('_UNDO', 'standard')) . Form::closeButtonSpace() . Form::closeForm();
?>
</div>
示例14: change_rules_status
<?php
Get::title(Lang::t('_ENROLLRULES', 'enrollrules'));
?>
<div class="std_block">
<script type="text/javascript">
var RulesActiveFormatter = function(elLiner, oRecord, oColumn, oData) {
var id = 'rule_change_'+oRecord.getData("id_rule");
try{
if(oData.indexOf('1') == -1) elLiner.innerHTML = '<a id="'+id+'" href="ajax.adm_server.php?r=alms/enrollrules/activate&id_rule='+oRecord.getData("id_rule")+'" class="ico-sprite subs_noac" title="<?php
echo Lang::t('_ACTIVATE', 'enrollrules');
?>
"><span><?php
echo Lang::t('_ACTIVATE', 'enrollrules');
?>
</span></a>';
else elLiner.innerHTML = '<a id="'+id+'" href="ajax.adm_server.php?r=alms/enrollrules/activate&id_rule='+oRecord.getData("id_rule")+'" class="ico-sprite subs_actv" title="<?php
echo Lang::t('_DEACTIVATE', 'enrollrules');
?>
"><span><?php
echo Lang::t('_DEACTIVATE', 'enrollrules');
?>
</span></a>';
}catch(e) {}
}
function change_rules_status(e) {
YAHOO.util.Event.preventDefault(e);
YAHOO.util.Connect.asyncRequest("POST", this.href, {
success:function(o) {
if( YAHOO.util.Dom.hasClass(o.argument[0], 'subs_noac') ) {
YAHOO.util.Dom.replaceClass(o.argument[0], 'subs_noac', 'subs_actv');
示例15:
<?php
Get::title(array('index.php?r=adm/lang/show' => Lang::t('_LANGUAGE', 'admin_lang'), Lang::t('_IMPORT', 'admin_lang')));
?>
<div class="std_block">
<?php
echo Form::openForm('import_lang', 'index.php?r=adm/lang/doimport', false, 'post', 'multipart/form-data') . Form::getFilefield(Lang::t('_FILE', 'admin_lang'), 'lang_file', 'lang_file') . Form::getCheckbox(Lang::t('_OVERWRITE_EXISTENT', 'admin_lang'), 'overwrite', 'overwrite', '1') . Form::getCheckbox(Lang::t('_DO_NOT_ADD_MISS', 'admin_lang'), 'noadd_miss', 'noadd_miss', '1') . Form::openButtonSpace() . Form::getButton('save', 'save', Lang::t('_SAVE', 'admin_lang')) . Form::getButton('undo', 'undo', Lang::t('_UNDO', 'admin_lang')) . Form::closeButtonSpace() . Form::closeForm();
?>
</div>