@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux www.thesweb.ru 4.19.0-22-amd64 #1 SMP Debian 4.19.260-1 (2022-09-29) x86_64
Current Path :
/
var
/
www
/
www-root
/
data
/
www
/
new.labinform.ru
/
oent_thes
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/new.labinform.ru/oent_thes/concepts.php
<? $userCopyThesInst = copyThesInst_get4user($copyThesInst, $_SESSION[LoginURI]['username']); $big = isset($_SESSION[LoginURI]['bigdata']) && $_SESSION[LoginURI]['bigdata']; ?> <div id="conc_layout_main" class="easyui-layout" fit="true" style="width: 100%" > <? include "thes_network.php"?> <div data-options="region:'center', border: false, "> <div id="conc_layout" class="easyui-layout" fit="true" style="width: 100%" > <? if (isset($_SESSION[LoginURI]['version']) && ($_SESSION[LoginURI]['version'] >= 20220819)) { ?> <!-- Кластеры концепты --> <div data-options="region:'south', border: false, collapsed: true, collapsible: true, height: '40%', tools: '#cl_toolbar', split: true " title="Сюжеты/Тексты/Тезисы"> <div class="easyui-layout" data-options="fit:true, border: false"> <div data-options="region:'west', border: true, width: '50%', split: true"> <table id="conc_clusters" class="easyui-datagrid" data-options=" striped: true, border:false,singleSelect: true, method: 'get',pagination: false,pageSize:50, showHeader: false, loadMsg: '', fit: true, frag_grid: '#conc_cluster_frags', onSelect: ThesConcepts.select_conc_cluster, onLoadSuccess: ThesConcepts.load_conc_clusters"> <thead> <tr> <th data-options="field:'clusterstr', width: '100%'">Наименование</th> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <th data-options="field:'clusterid', width: '10%', hidden: <? echo ($debug ? 'false' : 'true') ?>">ID</th> <? } ?> </tr> </thead> <tbody> </tbody> </table> <!--toolbar:te_toolbar, --> <div id="cl_toolbar" style="padding:2px 5px;"> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <div id="cl_toolbar1" style="width: 55vw; display: inline-block"> <a href="#" class="icon-add" plain="true" onclick="ThesConcepts.conc_cluster_add()" style="margin-right: 14px;"></a> <a href="#" class="icon-edit" plain="true" onclick="ThesConcepts.conc_cluster_edit()" style="margin-right: 14px"></a> <a href="#" class="icon-remove" plain="true" onclick="ThesConcepts.conc_cluster_del()" style="margin-right: 14px"></a> </div> <a href="#" class="icon-add" plain="true" onclick="ThesConcepts.conc_cluster_frag_add()" style="margin-right: 14px"></a> <a href="#" class="icon-edit" plain="true" onclick="ThesConcepts.conc_cluster_frag_edit()" style="margin-right: 14px"></a> <a href="#" class="icon-remove" plain="true" onclick="ThesConcepts.conc_cluster_frag_del()" style="margin-right: 64px"></a> <a href="#" class="icon-add" plain="true" onclick="ThesConcepts.conc_cluster_frag_thesis_add()" style="margin-right: 14px"></a> <a href="#" class="icon-edit" plain="true" onclick="ThesConcepts.conc_cluster_frag_thesis_edit()" style="margin-right: 14px"></a> <a href="#" class="icon-remove" plain="true" onclick="ThesConcepts.conc_cluster_frag_thesis_del()" style="margin-right: 14px"></a> <!--a href="#" class="easyui-menubutton" data-options="showEvent: 'click', menu:'#cl_main_menu', plain: true" style="width: 60px; height: 16px; font-weight: bold">Еще...</a--> <?PHP } ?> </div> </div> <div data-options="region:'center', border: true,"> <div id="frag_layout3" class="easyui-layout" fit="true" style="width: 100%" data-options="border: false" > <div data-options="region:'north', border: false, collapsed: false, collapsible: false, height: '50%', split: true "> <table id="conc_cluster_frags" class="easyui-datagrid" data-options=" striped: true, border:false,singleSelect: true, method: 'get',pagination: false,pageSize:50, showHeader: false, loadMsg: '', fit: true, thesis_grid: '#conc_cluster_frag_thesis', onSelect: ThesConcepts.select_conc_cluster_frags, onLoadSuccess: ThesConcepts.load_conc_cluster_frags"> <thead> <tr> <th data-options="field:'fragmentstr', width: '100%'">Текст</th> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <th data-options="field:'fragmentid', width: '10%', hidden: <? echo ($debug ? 'false' : 'true') ?>">ID</th> <? } ?> </tr> </thead> <tbody> </tbody> </table> </div> <div data-options="region:'center', border: false"> <table id="conc_cluster_frag_thesis" class="easyui-datagrid" data-options=" striped: true, border:false,singleSelect: true, method: 'get',pagination: false, pageSize:50, showHeader: false, loadMsg: '', fit: true, onLoadSuccess: ThesConcepts.load_conc_cluster_frag_thesis"> <thead> <tr> <th data-options="field:'thesisstr', width: '100%'">Тезиз</th> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <th data-options="field:'fragmentid', width: '10%', hidden: <? echo ($debug ? 'false' : 'true') ?>">ID</th> <? } ?> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> </div> </div> <? } //if (isset($_SESSION[LoginURI]['version']) && ($_SESSION[LoginURI]['version'] >= 20220819)) ?> <!-- концепты --> <div data-options="region:'center', border: true, tools:'#conc_toolbar0'," title="Концепты"> <div class="easyui-layout" data-options="fit:true"> <div id="concepts_region" data-options="region:'north',split:true, border: false, bodyCls: 'conc_top_block_downline'" style="height:50%" > <table id="concepts" class="easyui-datagrid" data-options=" striped: true, border: false, singleSelect: true, method: 'get', url: 'json/getjson.php?type=conclist', fit: true, pagination: true, pageSize:50, height: '90%', conc_filter: '#conc_filter', rel_grid: '#rel_concepts', te_grid: '#textentrys', <? if (isset($_SESSION[LoginURI]['version']) && ($_SESSION[LoginURI]['version'] >= 20220819)) { ?> conc_clusters_grid: '#conc_clusters', <? } ?> conc_eng_name: '#conc_eng_name', rel_show_type: '#rel_show_type', domainconc: '#domainconc', toolbar:'#conc_toolbar', footer:'#conc_footbar', <? echo $big ? '' : 'loadMsg: \'\', '; ?> onSelect: ThesConcepts.select_concept_timeout, onUnselect: ThesConcepts.unselect_concept, onBeforeLoad: ThesConcepts.before_load_concept, beforePageText: 'Стр', showHeader: false, displayMsg: 'Показано с {from} по {to} из {total} найденых', afterPageText: 'из {pages}', onLoadSuccess: ThesConcepts.load_concepts"> <thead> <tr> <th data-options="field:'extconceptstr', formatter: function(value,row,index){ return value + ((row.isabstract == 1) ? ' <b title=\'Абстрактный\' class=\'cn_abs cn_blk\'>A</b>' : '');}, width: '100%'">Имя концепта</th> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <th data-options="field:'conceptid', width: '10%', hidden: <? echo ($debug ? 'false' : 'true') ?>">ID</th> <?PHP } ?> </tr> </thead> <tbody> </tbody> </table> <div id="conc_toolbar" style="padding:2px 5px;"> <!-- <b>Фильтр: </b> <input class="easyui-textbox" id="conc_filter" panelHeight="auto" style="width:200px" data-options="prompt: 'Название концепта', grid: '#concepts', icons:[{ iconCls:'icon-clear', handler: function(e){ $(this).textbox('clear'); conc_filter_change('#conc_filter', '', ''); } }]"/> --> <!-- <b>Фильтр: </b> --> <input class="easyui-searchbox conc-filter-textbox" id="conc_filter" panelHeight="auto" style="width:100%;" data-options="prompt: 'Фильтр концептов', menu: '#concepts_searchmm', grid: '#concepts', showEvent: 'click', icons:[{ iconCls:'icon-clear', handler: function(e){ $(this).textbox('clear'); ThesConcepts.conc_filter_change('#conc_filter', '', ''); } }] "> <div id="concepts_searchmm" data-options=""> <div title="Поиск по названиям концептов" data-options="name:'conc'<? echo (isset($_SESSION[LoginURI]['bigdata']) && $_SESSION[LoginURI]['bigdata'] ? ', selected: true' : ''); ?>" onclick="javascript:ThesConcepts.conc_filter_change('#conc_filter', $('#conc_filter').textbox('getValue'), '', 'conc');">По Терм</div> <div title="Поиск по названиям текстовых входов входящих в концепт" data-options="name:'te'" onclick="javascript:ThesConcepts.conc_filter_change('#conc_filter', $('#conc_filter').textbox('getValue'), '', 'te');">По ТЕ</div> <div title="Поиск по названиям концептов и входящих в него текстовых входов" data-options="name:'conc_te'<? echo (isset($_SESSION[LoginURI]['bigdata']) && $_SESSION[LoginURI]['bigdata'] ? '' : ', selected: true'); ?>" onclick="javascript:ThesConcepts.conc_filter_change('#conc_filter', $('#conc_filter').textbox('getValue'), '', 'conc_te');">Терм или ТЕ</div> <div title="Поиск по названиям концептов - подстрока" data-options="name:'conc_like'" onclick="javascript:ThesConcepts.conc_filter_change('#conc_filter', $('#conc_filter').textbox('getValue'), '', 'conc_like');">По *Терм</div> <div title="Поиск по названиям концептов и входящих в него текстовых входов - подстрока" data-options="name:'conc_te_like'" onclick="javascript:ThesConcepts.conc_filter_change('#conc_filter', $('#conc_filter').textbox('getValue'), '', 'conc_te_like');">*Терм или *ТЕ</div> </div> <!-- --> </div> <div id="conc_toolbar0" style="padding:2px 5px;"> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <a id="conc_add" href="#" class="icon-add" plain="true" onclick="javascript:ThesConcepts.concept_add()" style="margin-right: <?PHP echo ($usr_id == 93 ? '35' : '14') ?>px"></a> <a id="conc_edit" href="#" class="icon-edit" plain="true" onclick="javascript:ThesConcepts.concept_edit()" style="margin-right: <?PHP echo ($usr_id == 93 ? '35' : '14')?>px"></a> <a id="conc_remove" href="#" class="icon-remove" plain="true" onclick="javascript:ThesConcepts.concept_del()" style="margin-right: 14px"></a> <a href="#" class="easyui-menubutton" data-options="showEvent: 'click', menu:'#conc_menu', plain: true" style="width: 60px; height: 16px; font-weight: bold">Еще...</a> <div id="conc_menu" > <div data-options="iconCls:'icon-redo'" onclick="javascript:ThesConcepts.union_two_concepts()">Выбрать концепт и все его отношения и синонимы добавить к текущему</div> <div class="menu-sep"></div> <div data-options="iconCls:'icon-edit'" onclick="javascript:ThesConcepts.change_translate()">Изменить перевод</div> <div data-options="iconCls:'icon-info'" onclick="javascript:ThesConcepts.show_down_tree()">Посмотреть дерево вниз</div> <div class="menu-sep"></div> <div data-options="iconCls:'icon-info'" onclick="javascript:ThesConcepts.show_user_hist()">История просмотров</div> <?PHP if (count($userCopyThesInst)) { ?> <div class="menu-sep"></div> <div data-options="iconCls:'icon-info'" onclick="javascript:ThesConcepts.copy_concept2other_thes()">Перенести концепт в другой Тезаурус</div> <?PHP } ?> </div> <?PHP } ?> </div> <div id="conc_footbar" style="padding:2px 5px;"> <input class="easyui-textbox" id="conc_eng_name" panelHeight="auto" style="width:45%" data-options="readonly:false, editable: false<?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?>, buttonAlign:'right', buttonIcon:'icon-undo', onClickButton:function(){ThesConcepts.set_concept_ruseng_name();} <? } ?>" > <input class="easyui-tagbox domain-show-box" id="domainconc" value="" style="width:50%" data-options="limitToList: true, tagStyler: ThesConcepts.domainStyler, tagFormatter: ThesConcepts.domainFormatter, multiline:false, onBeforeRemoveTag: function(value) { return false; }"> </div> </div> <!-- Синонимы концептов --> <div id="concepts_te_region" data-options="region:'center', border: false, headerCls: 'conc_bottom_te_header', title: 'Синонимы', tools: '#te_toolbar'/*[ {iconCls:'icon-add', handler: ThesConcepts.synonym_add}, '-', {iconCls:'icon-edit', handler: ThesConcepts.synonym_edit}, '-', {iconCls:'icon-remove', handler: ThesConcepts.synonym_del}, '-']*/"> <table id="textentrys" class="easyui-datagrid" data-options=" striped: true, border:false, singleSelect: true, method: 'get', pagination: false, pageSize:50, showHeader: false, loadMsg: '', fit: true, onLoadSuccess: ThesConcepts.load_textentrys"> <thead> <tr> <th data-options="field:'textentrycutstr', formatter: function(value, row, index) { var str = ((row.isambig == 1) ? ' <b title=\'Омонимия\' class=\'cn_abs\'>O</b>' : '') + ((row.conc_count > 1) ? '<a href=\'javascript:;\' onclick=\'javascript:ThesConcepts.show_textentry_m_concepts(this, ' + row.textentryid + ');\' class=\'cn_mcnt\'>M' + (row.conc_count) + '</a>' : ''); return value + ((str != '') ? '<b class=\'cn_blk\'>' + str + '</b>' : ''); }, width: '100%'">Наименование</th> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <th data-options="field:'textentryid', width: '10%', hidden: <? echo ($debug ? 'false' : 'true') ?>">ID</th> <? } ?> </tr> </thead> <tbody> </tbody> </table> <!--toolbar:te_toolbar, --> <div id="te_toolbar" style="padding:2px 5px;"> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <?PHP IF($usr_id == 93) { ?> <a href="#" class="icon-front" plain="true" onclick="ThesConcepts.synonym_move12()" style="margin-right: 34px"></a> <a href="#" class="icon-edit" plain="true" onclick="ThesConcepts.synonym_edit()" style="margin-right: 14px"></a> <a href="#" class="icon-remove" plain="true" onclick="ThesConcepts.synonym_del()" style="margin-right: 54px"></a> <a href="#" class="icon-add" plain="true" onclick="ThesConcepts.synonym_add()" style="margin-right: 14px"></a> <a href="#" class="easyui-menubutton" data-options="showEvent: 'click', menu:'#te_main_menu', plain: true" style="width: 60px; height: 16px; font-weight: bold">Еще...</a> <?PHP } else {?> <a href="#" class="icon-front" plain="true" onclick="ThesConcepts.synonym_move12()" style="margin-right: 90px"></a> <a href="#" class="icon-add" plain="true" onclick="ThesConcepts.synonym_add()" style="margin-right: 14px"></a> <a href="#" class="icon-edit" plain="true" onclick="ThesConcepts.synonym_edit()" style="margin-right: 14px"></a> <a href="#" class="icon-remove" plain="true" onclick="ThesConcepts.synonym_del()" style="margin-right: 14px"></a> <a href="#" class="easyui-menubutton" data-options="showEvent: 'click', menu:'#te_main_menu', plain: true" style="width: 60px; height: 16px; font-weight: bold">Еще...</a> <?PHP }?> <?PHP } ?> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <div id="te_main_menu" > <div data-options="iconCls:'icon-redo'" onclick="javascript:ThesConcepts.set_concept_ruseng_name()">Изменить русское/иностранное имя концепта по имени текущего синонима</div> <!--div class="menu-sep"></div> <div data-options="iconCls:'icon-down'" onclick="javascript:ThesConcepts.change_te_ruseng_name()">Перенести синоним в другой язык и удалить в текущем</div--> </div> <?PHP } ?> </div> </div> </div> </div> <!-- Отношения --> <div data-options="region:'east', split:true, collapsible: true, border: true, hideCollapsedContent:false" title="Отношения" style="width:50%;"> <div class="easyui-layout" data-options="fit:true"> <div id="relconcepts_region" data-options="region: 'north', border: false, split: true, bodyCls: 'conc_top_block_downline'" style="height:50%"> <table id="rel_concepts" class="easyui-datagrid" data-options="striped: true, border:false, singleSelect: true, method: 'get', fit: true, pagination: false, pageSize:50, conc_grid: '#concepts', te_grid: '#rel_textentrys', conc_eng_name: '#rel_conc_eng_name', domainconc: '#rel_domainconc', toolbar: rel_conc_toolbar, footer: rel_conc_footbar, <? echo $big ? '' : 'loadMsg: \'\', '; ?> onSelect: ThesConcepts.select_rel_concept, onDblClickRow: ThesConcepts.dblclick_rel_concept<? echo $big ? '_big' : ''; ?>, onBeforeLoad: ThesConcepts.before_load_rel_concept, fitColumns: true, rowStyler: function(index,row){ if (row.auto == 2){ return 'color:#aaa; '; }}, onLoadSuccess: ThesConcepts.load_rel_concepts"> <!--table id="rel_concepts" class="easyui-treegrid" data-options="idField: 'concept2id', treeField: 'extconcept2str', striped: true, border:false, singleSelect: true, method: 'get', fit: true, pagination: false, pageSize:50, toolbar:rel_conc_toolbar, footer: rel_conc_footbar, loadMsg: '', onSelect: select_rel_concept, onBeforeLoad: before_load_rel_concept, fitColumns: true, onLoadSuccess: load_rel_concepts"--> <thead> <tr> <th data-options="field: 'relationstr', width: '80'">Отношение</th> <th data-options="field: 'aspect', width: '40'">Асп.</th> <th data-options="field: 'extconcept2str', width: '600'">Наименование концепта</th> <th data-options="field: 'autoval', width: '40'">Авто</th> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <th data-options="field: 'concept2id', width: '80', hidden: <? echo ($debug ? 'false' : 'true') ?>">ID</th> <?PHP } ?> </tr> </thead> <tbody> </tbody> </table> <div id="rel_conc_toolbar" style="padding:2px 5px;"> <!-- Поиск: <input class="easyui-textbox" id="conc_filter" panelHeight="auto" style="width:200px" data-options="" style="text-transform:uppercase"/> onChange: conc_filter_change--> Действия: <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <a href="#" id="rel_add" class="easyui-linkbutton" iconCls="icon-add" plain="false" data-options="onClick: ThesConcepts.relation_add"></a> <a href="#" id="rel_edit" class="easyui-linkbutton" iconCls="icon-edit" plain="false" data-options="onClick: ThesConcepts.relation_edit"></a> <a href="#" id="rel_remove" class="easyui-linkbutton" iconCls="icon-remove" plain="false" data-options="onClick: ThesConcepts.relation_del"></a> <?PHP } ?> <a href="#" id="goto_btn" class="easyui-linkbutton" iconCls="icon-undo" plain="false" data-options="onClick: function() { ThesConcepts.relation_goto_conc<? echo $big ? '_big' : ''; ?>('#concepts', $('#rel_concepts').datagrid('getSelected')); }">Перейти</a> <div style="float: right; margin-top: 1px;"> <b style="font-family: 'u2800'; font-weight: bold; vertical-align: middle;font-size: 14pt; color: #277494;">⮮</b> <input id="rel_show_type" class="easyui-switchbutton" data-options="onText:'Все', offText: 'Базовые', checked: <? echo $big ? 'true' : 'false'; ?>, onChange: function() { ThesConcepts.select_concept(-1, $('#concepts').datagrid('getSelected'), '#concepts') }, height: 24, width: 80"> </div> </div> <div id="rel_conc_footbar" style="padding:2px 5px;"> <input class="easyui-textbox" id="rel_conc_eng_name" panelHeight="auto" style="width:45%" data-options="readonly:false, editable: false<?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?>, buttonAlign:'right', buttonIcon:'icon-undo', onClickButton:function(){ThesConcepts.set_rel_concept_ruseng_name();} <? } ?>" > <input class="easyui-tagbox domain-show-box" id="rel_domainconc" value="" style="width:50%" data-options="limitToList: true, tagStyler: ThesConcepts.domainStyler, tagFormatter: ThesConcepts.domainFormatter, multiline:false, onBeforeRemoveTag: function(value) { return false; }"> </div> </div> <!-- Синонимы отношений --> <div id="relconcepts_te_region" data-options="region:'center', border: false, tools: '#rel_te_toolbar', headerCls: 'conc_bottom_te_header'" title="Синонимы"> <table id="rel_textentrys" class="easyui-datagrid" data-options="striped: true, border:false, singleSelect: true, method: 'get', pagination: false, pageSize:50, loadMsg: '', fit: true, showHeader: false, onLoadSuccess: ThesConcepts.load_rel_textentrys, "> <thead> <!-- toolbar:rel_te_toolbar, --> <tr> <th data-options="field:'textentrycutstr', formatter: function(value, row, index) { var str = ((row.isambig == 1) ? ' <b title=\'Омонимия\' class=\'cn_abs\'>O</b>' : '') + ((row.conc_count > 1) ? '<a href=\'javascript:;\' onclick=\'javascript:ThesConcepts.show_textentry_m_concepts(this, ' + row.textentryid + ');\' class=\'cn_mcnt\'>M' + (row.conc_count) + '</a>' : ''); return value + ((str != '') ? '<b class=\'cn_blk\'>' + str + '</b>' : ''); }, width: '100%'">Наименование</th> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <th data-options="field:'textentryid', width: '10%', hidden: <? echo ($debug ? 'false' : 'true') ?>">ID</th> <?PHP } ?> </tr> </thead> <tbody> </tbody> </table> <div id="rel_te_toolbar" style="padding:2px 5px;"> <?PHP if ($_SESSION[LoginURI]['usertypeid'] != 30) { ?> <a href="#" class="icon-back" plain="true" onclick="ThesConcepts.synonym_move21()" style="margin-right: 34px"></a> <a href="#" class="icon-add" plain="true" onclick="ThesConcepts.rel_synonym_add()" style="margin-right: 14px"></a> <a href="#" class="icon-edit" plain="true" onclick="ThesConcepts.rel_synonym_edit()" style="margin-right: 14px"></a> <a href="#" class="icon-remove" plain="true" onclick="ThesConcepts.rel_synonym_del()" style="margin-right: 14px"></a> <?PHP } ?> </div> </div> </div> </div> </div> </div> </div> <div id="dd" style="display: none"></div> <div id="dd2" style="display: none"></div> <div id="dd3" style="display: none"></div> <script type="text/javascript"> $(document).ready(function () { $('#domain_filter').combobox('options').domainmask = 0; //$('#conc_filter').textbox('textbox').bind('keyup', function(e){ $('#conc_filter').searchbox('textbox').bind('keyup', function(e){ if ((e.keyCode === 38) || (e.keyCode === 40)) return; var str = $(this).val(); var tp = $('#conc_filter').searchbox('getName'); setTimeout(function(){ ThesConcepts.conc_filter_change('#conc_filter', str, '', tp); }, 500); //return false; //conc_filter_change($(this).val(), ''); }); $('#conc_filter').searchbox('button').menubutton({showEvent: 'click'}); $('#concepts').datagrid('getPanel').panel('panel').attr('tabindex',1).bind('keydown',function(e){ switch(e.keyCode){ case 38: // up var c = $('#concepts'); var selected = c.datagrid('getSelected'); if (selected){ var index = c.datagrid('getRowIndex', selected); if (index > 0) c.datagrid('selectRow', index-1); else if ((c.datagrid("options").select_conc_index === undefined) && (c.datagrid("getPager").pagination('options').pageNumber > 1)) { c.datagrid("options").select_conc_index = c.datagrid("getPager").pagination('options').pageSize; c.datagrid("getPager").pagination('select', c.datagrid("getPager").pagination('options').pageNumber - 1); } } else { c.datagrid('selectRow', 0); } break; case 40: // down var c = $('#concepts'); var selected = c.datagrid('getSelected'); if (selected){ var index = c.datagrid('getRowIndex', selected); if (index+1 < c.datagrid("getPager").pagination('options').pageSize) c.datagrid('selectRow', index+1); else if ((c.datagrid("options").select_conc_index === undefined) && (c.datagrid("getPager").pagination('options').pageNumber < Math.ceil(c.datagrid("getPager").pagination('options').total / c.datagrid("getPager").pagination('options').pageSize))) { c.datagrid("options").select_conc_index = 0; c.datagrid("getPager").pagination('select', c.datagrid("getPager").pagination('options').pageNumber + 1); } } else { c.datagrid('selectRow', 0); } break; } }); if (($('#domain_filter').length > 0) && (($('#domain_filter').combobox('getData') == null) || ($('#domain_filter').combobox('getData').total == 0))) { $('#domain_filter').combobox('reload'); } if (($('#concepts').length > 0) && (($('#concepts').datagrid('getData') == null) || ($('#concepts').datagrid('getData').total == 0))) { $('#concepts').datagrid('reload'); } textbox_set_f9_conv('#conc_filter'); }); </script>