@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
/
lii_args
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/new.labinform.ru/lii_args/relcheck.php
<table id="relcheckrep" class="easyui-datagrid" width="100%" data-options="url: 'json/getjson.php?type=relcheck', fit:true, pagination: true, pageSize: 50, border: true, height: 300, queryParams: {}, singleSelect: true, toolbar: '#relcheck_tool'"> <thead> <tr> <th data-options="field:'concept1id', width: 90">ID конц. 1</th> <th data-options="field:'concept1str', width: 300">Концепт 1</th> <th data-options="field:'relstr', width: 100">Связь</th> <th data-options="field:'concept2id', width: 90">ID конц. 2</th> <th data-options="field:'concept2str', width: 300">Наименование 2</th> <th data-options="field:'relstr2', width: 150">Обратная связь</th> </tr> </thead> </table> <div id="relcheck_tool"> <a class="easyui-linkbutton" iconCls="icon-reload" onclick=" $('#relcheckrep').datagrid('reload'); ">Обновить список</a> <a class="easyui-linkbutton" iconCls="icon-cancel" onclick=" var sel = $('#relcheckrep').datagrid('getSelected'); if (!sel) { $.messager.show({title:'Ошибка', msg: 'Не выбрана запись!', border:'thin', cls:'c3', timeout: 10000, showType:'slide' }); return; } $.messager.confirm({ cls:'c5', width: 420, title: 'Удаление ошибочной связи', ok: 'Да', cancel: 'Нет', msg: '<div style=\'display: inline-block\'>Вы действительно хотите удалить связь между выбранными концептами?</div>', fn: function(r){ if (r){ $.ajax( { type: 'POST', url: 'json/action.php', data: jQuery.param({ action: 'relation_del', concept1id: sel.concept1id, concept2id: sel.concept2id, relationid: 'any', auto: 0 }), async: true, cache: false }).done(function(data) { $('#relcheckrep').datagrid('reload'); }); } }}); ">Удалить связь</a> <a class="easyui-linkbutton" iconCls="icon-edit" onclick=" var sel = $('#relcheckrep').datagrid('getSelected'); if (!sel) { $.messager.show({title:'Ошибка', msg: 'Не выбрана запись!', border:'thin', cls:'c3', timeout: 10000, showType:'slide' }); return; } $('#dd').dialog({onLoad: function() { $('#nrelconcept').combobox('textbox').focus().focus(); }, title: 'Исправление отношения :: ' + sel.concept1str, resizable:true, width: 600, height: 260, closed: false, cache: false, href: 'edit_rel_form.php?concept1id=' + sel.concept1id + '&concept2id=' + sel.concept2id + '&relationid=' + sel.relationid + '&editconc=0', border:'thin',cls:'c6', modal: true, buttons: [{ id: 'dd_rel_dialog_ok_btn', text:'Изменить', width: 100, iconCls:'icon-ok', handler: function(){ $.ajax( { type: 'POST', url: 'json/action.php', data: jQuery.param({ action: 'relation_del', concept1id: sel.concept1id, concept2id: sel.concept2id, relationid: 'any', auto: 0 }), async: true, cache: false }).done(function(data) { var rel = $('#nrelation').combobox('getValue'); var asp = $('#naspect').combobox('getValue'); var isarg = $('#nisarguable').prop('checked'); $.ajax( { type: 'POST', url: 'json/action.php', data: jQuery.param({action: 'relation_add', concept1id: sel.concept1id, concept2id: sel.concept2id, relationid: rel, aspect : asp, isarguable: isarg }), }).done(function(data) { $('#dd').dialog('close'); $('#relcheckrep').datagrid('reload'); }); }) } },{ id: 'dd_rel_dialog_cancel_btn', text:'Отмена', width: 100, iconCls:'icon-cancel', handler: function(){ $('#dd').dialog('close'); } }] }).dialog('center'); ">Задать правильную связь</a> </div>