@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/rubdes.php
<? if (isset($_POST['code']) && ($_POST['code'] == 'LoadLstWithOutLogin') && (($_GET['action'] == 'lst') || ($_GET['action'] == 'clear_tmp'))) { include_once "config.php"; } else { include_once "login.php"; if ($_SESSION[LoginURI]['usertypeid'] == 30) { header('HTTP/1.0 401 Unauthorized'); die(); } } if ($usr_id == -1) { header('HTTP/1.0 401 Unauthorized'); die(); } $rubcator_prefix = ''; function run_exec($s) { //echo $s; $command = escapeshellcmd($s); $res = shell_exec($command); //exec($command); //system ($command); //$res = iconv("windows-1251", "utf-8", $res); // $res = iconv("UTF-8", "cp1251//IGNORE", $res); if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') { $res = iconv("cp866", "cp1251//IGNORE", $res); $res = iconv("cp1251", "UTF-8//IGNORE", $res); } return $res; } if (isset($_POST['rubricatorid'])) { $rubcator_prefix = get_rubricator_prefix($conn, $_POST['rubricatorid']); } else if (isset($_GET['rubricatorid'])) { $rubcator_prefix = get_rubricator_prefix($conn, $_GET['rubricatorid']); } if (isset($_GET['action'])) { /*********** UPDATE SESSION ************/ $q = 'UPDATE session SET dateend = current_date, timeend = current_time WHERE sessionid = ' . $ssid; $res = pg_query ($conn, $q); pg_free_result ($res); /*********** UPDATE SESSION ************/ if (!isset($_GET['codepage'])) $_GET['codepage'] = ''; if ($_GET['codepage'] == 'utf-8') $_GET['codepage'] = ' --utf-8'; else $_GET['codepage'] = ''; $res = array(); header('Content-type: application/json; charset=utf-8'); $res['errno'] = 0; $res['error'] = 'OK'; if ($_GET['action'] == 'calcrevry') { $res['debug'] = array(); //echo '/var/www/webr4/thes/revrybld/revrybld2 --rubricator_id "' . $_GET['rubricatorid'] . '" --rubricator_prefix "' . $rubcator_prefix . '"' . ( isset($_GET['conjunctid']) ? '--conjunct_id "' . $_GET['conjunctid'] . '"' : '' ); $s = run_exec($revrybld2file . ' --rubricator_id "' . $_GET['rubricatorid'] . '" --rubricator_prefix "' . $rubcator_prefix . '"' . ( isset($_GET['conjunctid']) ? ' --conjunct_id "' . $_GET['conjunctid'] . '"' : '' )); //echo $s; $res['debug']['log'] = $s; //file_put_contents($revrybld2file . '.lastlog', $s); $res['debug']['cmd'] = /*$revrybld2file .*/' --rubricator_id "' . $_GET['rubricatorid'] . '" --rubricator_prefix "' . $rubcator_prefix . '"' . (isset($_GET['conjunctid']) ? ' --conjunct_id "' . $_GET['conjunctid'] . '"' : '' ); //echo file_get_contents('http://localhost:1089/?rubcator_prefix=' . $rubcator_prefix . '&rubricator_id=' . $_GET['rubricatorid'] . ( isset($_GET['conjunctid']) ? '&conjunct_id=' . $_GET['conjunctid'] : '' )); $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'clear_tmp') { unlink($lstblddir . substr($_GET['tmp'], 4)); rmdir($lstblddir . dirname(substr($_GET['tmp'], 4))); } else if (($_GET['action'] == 'lst') || ($_GET['action'] == 'prkrvzlst')) { $res['debug'] = array(); $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, $dt->format('md').'lst'); unlink($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); //echo '/var/www/webr4/thes/revrybld/revrybld2 --rubricator_id "' . $_GET['rubricatorid'] . '" --rubricator_prefix "' . $rubcator_prefix . '"' . ( isset($_GET['conjunctid']) ? '--conjunct_id "' . $_GET['conjunctid'] . '"' : '' ); $res['debug']['rr'] = $lstbldfile . " --lst" . ($_GET['action'] == 'prkrvzlst' ? ' --fullrels' : '') . $_GET['codepage'] . " --db $db --host $myServer --login $uid --password \"$pwd\" --out \"" . $lstblddir_tmp . '"' . ($_GET['ids'] ? ' --rids "' . $_GET['ids'] . '"' : '') . ' --plus_domain "' . $_GET['plus_domain'] . '" --plus_domain_bit "' . $_GET['plus_domain_bit'] . '" --minus_domain "' . $_GET['minus_domain'] . '" --minus_domain_bit "' . $_GET['minus_domain_bit'] . '"'; $s = run_exec($lstbldfile . " --lst" . ($_GET['action'] == 'prkrvzlst' ? ' --fullrels' : '') . $_GET['codepage'] . " --db $db --host $myServer --login $uid --password \"$pwd\" --out \"" . $lstblddir_tmp . '"' . ($_GET['ids'] ? ' --rids "' . $_GET['ids'] . '"' : '') . ' --plus_domain "' . $_GET['plus_domain'] . '" --plus_domain_bit "' . $_GET['plus_domain_bit'] . '" --minus_domain "' . $_GET['minus_domain'] . '" --minus_domain_bit "' . $_GET['minus_domain_bit'] . '"'); if ($lstcode) $s1 = run_exec($lstcode . " $lstblddir_tmp"); //$s2 = run_exec("zip -mj1 \"$lstblddir_tmp/theman.lst.zip\" \"$lstblddir_tmp/*.lst\""); //$res['debug']['rr2'] = "zip -mj1 \"$lstblddir_tmp/theman.lst.zip\" \"$lstblddir_tmp/*.lst\""; //$res['debug']['rr2'] = "find $lstblddir_tmp/ -name \"*.lst\" -print | zip -mj1 $lstblddir_tmp/theman.lst.zip -@"; $res['debug']['rr2'] = "zip -rmj1 \"$lstblddir_tmp/theman.lst.zip\" \"$lstblddir_tmp/\""; $s2 = run_exec($res['debug']['rr2']); //zip -mj1 "/var/www/www-root/data/www/thesweb.ru/sci_thes/lsts/1123lstjlIIR9/theman.lst.zip" "/var/www/www-root/data/www/thesweb.ru/sci_thes/lsts/1123lstjlIIR9/*.lst" $res['debug']['log'] = $s . ' = ' . /*$s1 .*/ ' = ' . $s2; //$res['debug']['cmd'] = $lstbldfile . " --lst --db $db --host $myServer --login $uid --password \"$pwd\" --out \"" . $lstblddir_tmp . '"'; //$res['debug']['cmd'] = $lstcode . " $lstblddir_tmp"; $res['file'] = "lsts/" . basename($lstblddir_tmp) . "/theman.lst.zip"; //echo file_get_contents('http://localhost:1089/?rubcator_prefix=' . $rubcator_prefix . '&rubricator_id=' . $_GET['rubricatorid'] . ( isset($_GET['conjunctid']) ? '&conjunct_id=' . $_GET['conjunctid'] : '' )); $rs = json_encode($res); echo $rs; exit(); } else if (($_GET['action'] == 'json')|| ($_GET['action'] == 'json_te_rus')|| ($_GET['action'] == 'json_rubrics') || ($_GET['action'] == 'json_rubrics_rubdes') || ($_GET['action'] == 'json_rubrics_revry') || ($_GET['action'] == 'json_rubrics_revryte') ) { $res['debug'] = array(); $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, $dt->format('md').'json'); unlink($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); if (($_GET['action'] == 'json')||($_GET['action'] == 'json_te_rus')) { $explang = 0; if ($_GET['action'] == 'json_te_rus') $explang = 1; $run = $jsonbldfile . " --pgdb=$db --pgserver=$myServer --pguser=$uid --pgpass=\"$pwd\" --concepts_file=\"" . $lstblddir_tmp . '/concepts.json"' . ' --domain_plus="' . $_GET['plus_domain'] . '" --domain_plus_b="' . $_GET['plus_domain_bit'] . '" --domain_minus="' . $_GET['minus_domain'] . '" --domain_minus_b="' . $_GET['minus_domain_bit'] . '"' . ' --lang=' . $explang; $res['file'] = "lsts/" . basename($lstblddir_tmp) . "/concepts.json"; } else { $exptype = 0; if ($_GET['action'] == 'json_rubrics_rubdes') $exptype = 1; else if ($_GET['action'] == 'json_rubrics_revry') $exptype = 2; else if ($_GET['action'] == 'json_rubrics_revryte') $exptype = 3; $run = $jsonbldfile . " --pgdb=$db --pgserver=$myServer --pguser=$uid --pgpass=\"$pwd\" --rubrics_file=\"" . $lstblddir_tmp . '/rubrs.json"' . (($_GET['ids'] && ($_GET['ids'] != -1)) ? ' --rubricator_ids="' . $_GET['ids'] . '"' : '') . ' --rubrics_export_type=' . $exptype; $res['file'] = "lsts/" . basename($lstblddir_tmp) . "/rubrs.json"; } $res['debug']['rr'] = $run; $res['debug']['log'] = run_exec($run); $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'trth') { $res['debug'] = array(); $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, $dt->format('md').'lst'); unlink($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); //echo '/var/www/webr4/thes/revrybld/revrybld2 --rubricator_id "' . $_GET['rubricatorid'] . '" --rubricator_prefix "' . $rubcator_prefix . '"' . ( isset($_GET['conjunctid']) ? '--conjunct_id "' . $_GET['conjunctid'] . '"' : '' ); $s = run_exec($lstbldfile . " --trth --db $db --host $myServer --login $uid --password \"$pwd\" --out \"" . $lstblddir_tmp . '"' . $_GET['codepage']); //echo $s; $res['debug']['log'] = $s; //$res['debug']['cmd'] = $lstbldfile . " --lst --db $db --host $myServer --login $uid --password \"$pwd\" --out \"" . $lstblddir_tmp . '"'; //$res['debug']['cmd'] = $lstcode . " $lstblddir_tmp"; $res['file'] = "lsts/" . basename($lstblddir_tmp) . "/_trth.dat"; //echo file_get_contents('http://localhost:1089/?rubcator_prefix=' . $rubcator_prefix . '&rubricator_id=' . $_GET['rubricatorid'] . ( isset($_GET['conjunctid']) ? '&conjunct_id=' . $_GET['conjunctid'] : '' )); $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'rubr_fact') { $res['debug'] = array(); $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, $dt->format('md').'lst'); unlink($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); include_once ("module19.php"); module19_save_rubr_facts2file($conn, $lstblddir_tmp . '/rubr_facts.fct'); //$s = ''; //$res['debug']['log'] = $s; $res['file'] = "lsts/" . basename($lstblddir_tmp) . "/rubr_facts.fct"; $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'rubr_reqs') { $res['debug'] = array(); $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, $dt->format('md').'lst'); unlink($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); include_once ("module19.php"); module19_save_rubr_reqs2file($conn, $lstblddir_tmp . '/rubr_reqs.fct'); //$s = ''; //$res['debug']['log'] = $s; $res['file'] = "lsts/" . basename($lstblddir_tmp) . "/rubr_reqs.fct"; $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'cn_te') { $res['debug'] = array(); $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, $dt->format('md').'lst'); unlink($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); //echo '/var/www/webr4/thes/revrybld/revrybld2 --rubricator_id "' . $_GET['rubricatorid'] . '" --rubricator_prefix "' . $rubcator_prefix . '"' . ( isset($_GET['conjunctid']) ? '--conjunct_id "' . $_GET['conjunctid'] . '"' : '' ); $s = run_exec($lstbldfile . " --te_cn --db $db --host $myServer --login $uid --password \"$pwd\" --out \"" . $lstblddir_tmp . '"' . $_GET['codepage']); //echo $s; $res['debug']['log'] = $s; //$res['debug']['cmd'] = $lstbldfile . " --lst --db $db --host $myServer --login $uid --password \"$pwd\" --out \"" . $lstblddir_tmp . '"'; //$res['debug']['cmd'] = $lstcode . " $lstblddir_tmp"; $res['file'] = "lsts/" . basename($lstblddir_tmp) . "/_cn_te.dat"; //echo file_get_contents('http://localhost:1089/?rubcator_prefix=' . $rubcator_prefix . '&rubricator_id=' . $_GET['rubricatorid'] . ( isset($_GET['conjunctid']) ? '&conjunct_id=' . $_GET['conjunctid'] : '' )); $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'fulltree') { $res['debug'] = array(); $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, $dt->format('md').'lst'); unlink($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); $s = run_exec($lstbldfile . " --fulltree --db $db --host $myServer --login $uid --password \"$pwd\" --out \"" . $lstblddir_tmp . '"' . $_GET['codepage']); //echo $s; $res['debug']['log'] = $s; $res['file'] = "lsts/" . basename($lstblddir_tmp) . "/_fulltree.txt"; $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'onetreejson') { $res['debug'] = array(); $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, 'db'); unlink($lstblddir_tmp); $lstblddir_tmp = $lstblddir . "\\" . $dt->format('Ymd_Hms_') . basename($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); //$res['debug']['run'] = $lstbldfile . " --onetreejson " . $_GET['id'] . " --db \"$db\" --host \"$myServer\" --login \"$uid\" --password \"$pwd\" --out \"" . $lstblddir_tmp . '"'; $s = run_exec($lstbldfile . " --onetreejson " . $_GET['id'] . " --db \"$db\" --host \"$myServer\" --login \"$uid\" --password \"$pwd\" --out \"" . $lstblddir_tmp . '"'); //echo $s; $res['debug']['log'] = $s; $res['tree'] = json_decode(file_get_contents($lstblddir_tmp . "/_bldtree.json"), true); unlink($lstblddir_tmp . "/_bldtree.json"); rmdir($lstblddir_tmp); $res['file'] = "lsts/" . basename($lstblddir_tmp) . "/_bldtree.json"; $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'domain4tree') { function set_domain4tree($conn, $tree, $action_set, $dm, $onlylow, $withroot, $level) { $cnt = 0; if (($level > 0) || ($withroot)) { $cnt ++; if ($action_set == '1') $q = 'UPDATE concepts SET domainmask = domainmask | ' . $dm . ' WHERE conceptid = ' . $tree['conceptid'] . ';'; else $q = 'UPDATE concepts SET domainmask = domainmask - ' . $dm . ' WHERE conceptid = ' . $tree['conceptid'] . ' AND domainmask & 524288 = 524288;'; //echo $q . "\n"; exec_sql($conn, $q); } if (isset($tree['children']) && (count($tree['children']))) { foreach($tree['children'] as $e) { if (($onlylow == '0') || ($e['rel'] == 'НИЖЕ')) $cnt += set_domain4tree($conn, $e, $action_set, $dm, $onlylow, $withroot, $level + 1); } } return $cnt; }; //print_r($conn); $res['debug'] = array(); $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, 'db'); unlink($lstblddir_tmp); $lstblddir_tmp = $lstblddir . "\\" . $dt->format('Ymd_Hms_') . basename($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); $res['debug']['run'] = $lstbldfile . " --onetreejson " . $_GET['id'] . " --db \"$db\" --host \"$myServer\" --login \"$uid\" --password \"$pwd\" --out \"" . $lstblddir_tmp . '"'; $s = run_exec($lstbldfile . " --onetreejson " . $_GET['id'] . " --db \"$db\" --host \"$myServer\" --login \"$uid\" --password \"$pwd\" --out \"" . $lstblddir_tmp . '"'); //echo $s; $res['debug']['log'] = $s; $res['tree'] = json_decode(file_get_contents($lstblddir_tmp . "/_bldtree.json"), true); unlink($lstblddir_tmp . "/_bldtree.json"); rmdir($lstblddir_tmp); if (count($res['tree'])) $res['set_count'] = set_domain4tree($conn, $res['tree'][0], $_GET['set'], $_GET['dm'], $_GET['onlylow'], $_GET['withroot'], 0); $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'fulltreedb') { $res['debug'] = array(); //$res['debug']['run'] = $lstbldfile . " --fulltreedb --db $db --host $myServer --login $uid --password \"$pwd\" "; $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, 'db'); unlink($lstblddir_tmp); $lstblddir_tmp = $lstblddir . "\\" . $dt->format('Ymd_Hms_') . basename($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); $res['debug']['run'] = $lstbldfile . " --fulltreedb --db \"$db\" --host \"$myServer\" --login \"$uid\" --password \"$pwd\" --out \"" . $lstblddir_tmp . '"' . $_GET['codepage']; $s = run_exec($res['debug']['run']); rmdir($lstblddir_tmp); //echo $s; $res['msg'] = 'Деревья построены.'; $res['debug']['log'] = $s; $rs = json_encode($res); echo $rs; exit(); } else if ($_GET['action'] == 'prkrvzbld') { /*calc_33_67_prerekvizit($conn); $res['msg'] = 'Данные обновлены.'; $res['debug']['log'] = 'OK'; $rs = json_encode($res); echo $rs; exit();*/ $res['debug'] = array(); //$res['debug']['run'] = $lstbldfile . " --fulltreedb --db $db --host $myServer --login $uid --password \"$pwd\" "; $dt = date_create('now'); $lstblddir_tmp = tempnam($lstblddir, 'prkv'); unlink($lstblddir_tmp); $lstblddir_tmp = $lstblddir . "\\" . $dt->format('Ymd_Hms_') . basename($lstblddir_tmp); mkdir ($lstblddir_tmp); session_write_close(); $s = run_exec($lstbldfile . " --prerekvizit --db \"$db\" --host \"$myServer\" --login \"$uid\" --password \"$pwd\" --out \"" . $lstblddir_tmp . '"' . $_GET['codepage']); rmdir($lstblddir_tmp); //echo $s; $res['msg'] = 'Данные обновлены.'; $res['debug']['log'] = $s; $rs = json_encode($res); echo $rs; exit(); } else /********* set_rubric ********/ if ($_GET['action'] == 'addrubdes') { if (!isset($_POST['rubdesid'])) $_POST['rubdesid'] = -1; if ($_POST['rubdesid'] == -1) { //$res['newid'] = get_data_one_val($conn, 'SELECT MAX(rubdesid) + 1 FROM ' . $rubcator_prefix . 'rubdes '); $cc = get_data_one_val($conn, 'SELECT count(*) FROM ' . $rubcator_prefix . 'rubdes WHERE rubricatorid = ' . $_GET['rubricatorid'] . ' AND rubricid = ' . $_GET['rubricid'] . ' AND disjunctid = ' . $_GET['disjunctid'] . ' AND conjunctid = ' . $_GET['conjunctid'] . ' AND conceptid = ' . $_POST['conceptid']); if ($cc > 0) { $res['errno'] = 1000; $res['error'] = 'Концепт уже присутствует в списке опорных!'; } else { $res['newid'] = get_data_one_val($conn, "SELECT nextval('" . $rubcator_prefix . "sequence_rubdes') AS val"); $q = 'INSERT INTO ' . $rubcator_prefix .'rubdes (rubdesid, rubricatorid, rubricid, disjunctid, conjunctid, orderid, ' . 'conceptid, concrubrtypeid, expandtype, enabled, confirmid, sessionid, sessionident, ves)' . ' VALUES (' . $res['newid'] . ', ' . $_GET['rubricatorid'] . ', ' . $_GET['rubricid'] . ', ' . $_GET['disjunctid'] . ', ' . $_GET['conjunctid'] . ', ' . '100' . ', ' . $_POST['conceptid'] . ', ' . $_POST['concrubrtypeid'] . ', \'' . $_POST['expandtype'] . '\', B\'1\', ' . $_POST['confirmid'] . ', ' . $_SESSION[LoginURI]['ssid'] . ', ' . $_SESSION[LoginURI]['ssid'] . ', NULL)'; } } else { $q = 'UPDATE ' . $rubcator_prefix . 'rubdes ' . ' SET ' . (isset($_POST['concrubrtypeid']) ? 'concrubrtypeid = \'' . pg_escape_string($_POST['concrubrtypeid']) . '\', ' : '') . (isset($_POST['expandtype']) ? 'expandtype = \'' . pg_escape_string($_POST['expandtype']) . '\', ' : '') . (isset($_POST['confirmid']) ? 'confirmid = \'' . pg_escape_string($_POST['confirmid']) . '\', ' : '') . (isset($_POST['enabled']) ? 'enabled = B\'' . $_POST['enabled'] . '\', ' : '') . ' sessionid = ' . $_SESSION[LoginURI]['ssid'] . ' WHERE rubdesid = ' . $_POST['rubdesid']; } //echo $q; exec_sql($conn, $q); /********* set_conj **********/ } else if ($_GET['action'] == 'delrubdes') { $q = 'DELETE FROM ' . $rubcator_prefix .'rubdes WHERE rubdesid = ' . $_POST['rubdesid']; exec_sql($conn, $q); } else { $res['errno'] = 1000; $res['error'] = 'Неизвестная операция "' . $_GET['action'] . '"'; } $rs = json_encode($res); echo $rs; exit; } ?> <div id="rubdes-main-layout" class="easyui-layout" data-options="fit:true"> <div data-options="region: 'north', border: false, split: true, height: '70%'"> <div id="rubdes-top-layout" class="easyui-layout" data-options="fit:true"> <div data-options="region: 'west', border: false, split: true, width: '50%'"> <div id="rubdes-conc-layout" class="easyui-layout" data-options="fit:true"> <!-- concepts --> <div data-options="region: 'north', border: false, split: true" style="height:70%"> <table id="rubdesconcepts" 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: '#rubdes_conc_filter', rel_grid: '#rubdes_rel_concepts', te_grid: '#rubdestextentrys', conc_eng_name: '', toolbar:'#rubdes_conc_toolbar', loadMsg: '', onSelect: ThesConcepts.select_concept, 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', width: '90%'">Имя концепта</th> <th data-options="field:'conceptid', width: '10%'">ID</th> </tr> </thead> <tbody> </tbody> </table> <div id="rubdes_conc_toolbar" style="padding:2px 5px;"> <input class="easyui-textbox" id="rubdes_conc_filter" panelHeight="auto" style="width:200px" data-options="prompt: 'Название концепта', grid: '#rubdesconcepts', icons:[{ iconCls:'icon-clear', handler: function(e){ $('#conc_filter').textbox('clear'); ThesConcepts.conc_filter_change('#rubdes_conc_filter', '', '', 'conc'); } }]"/> </div> </div> <!-- textentr --> <div data-options="region: 'center', border: false"> <table id="rubdestextentrys" class="easyui-datagrid" data-options=" striped: true, border:false, singleSelect: true, method: 'get', con_grid: '#rubdesconcepts', pagination: false, pageSize:50, showHeader: false, loadMsg: '', fit: true, onLoadSuccess: ThesConcepts.load_textentrys"> <thead> <tr> <th data-options="field:'textentrycutstr', width: '90%'">Наименование</th> <th data-options="field:'textentryid', width: '10%'">ID</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div> <!-- rel_concepts --> <div data-options="region: 'center', border: false"> <table id="rubdes_rel_concepts" class="easyui-datagrid" data-options=" striped: true, border:false, singleSelect: true, method: 'get', fit: true, pagination: false, pageSize:50, te_grid: '', toolbar: '#rubdes_rel_conc_toolbar', loadMsg: '', onSelect: ThesConcepts.select_rel_concept, onDblClickRow: ThesConcepts.dblclick_rel_concept, onBeforeLoad: ThesConcepts.before_load_rel_concept, fitColumns: true, 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: 'concept2id', width: '80'">ID</th> </tr> </thead> <tbody> </tbody> </table> <div id="rubdes_rel_conc_toolbar" style="padding:2px 5px;"> <a href="#" id="goto_btn" class="easyui-linkbutton" iconCls="icon-undo" plain="false" data-options="onClick: function() { ThesConcepts.relation_goto_conc('#rubdesconcepts', $('#rubdes_rel_concepts').datagrid('getSelected')); }">Перейти</a> </div> </div> </div> </div> <!-- rubdes --> <div data-options="region: 'center', border: false"> <!--div data-options="region: 'center', border: false"--> <table id="rubdes_rubdes" class="easyui-datagrid" data-options=" striped: true, border:false, singleSelect: true, method: 'get', fit: true, pagination: false, toolbar: '#rubdes_rubdes_toolbar', loadMsg: '', fitColumns: true, url: 'json/getjson.php?type=rubdes&rubricid=<? echo $_GET['rubricid'] ?>&disjunctid=<? echo $_GET['disjunctid'] ?>&conjunctid=<? echo $_GET['conjunctid'] ?>&rubricatorid=<? echo $_GET['rubricatorid'] ?>', "> <thead> <tr> <th data-options="field: 'orderid', width: '40'">Сорт.</th> <th data-options="field: 'conceptstr', width: '300'">Опорные концепты</th> <th data-options="field: 'concrubrtypestr', width: '40'">Знак</th> <th data-options="field: 'enabled', width: '40'">Вкл.</th> <th data-options="field: 'expandtype', width: '40'">Тип расширения</th> <th data-options="field: 'confirmstr', width: '60'">Подтв.</th> </tr> </thead> <tbody> </tbody> </table> <div id="rubdes_rubdes_toolbar" style="padding:2px 5px;"> <select id="rubdes_concrubrtype" class="easyui-combobox" data-options="width: 40, panelHeight: 'auto'"> <!--option value="0">AVTO</option--> <option value="1">+</option> <option value="2">−</option> </select> <select id="rubdes_confirm" class="easyui-combobox" data-options="width: 250, panelWidth: 'auto', panelHeight: 'auto'"> <option value="0">[A−] Не подтверждать автоматически</option> <option value="1">[M−] Не подтверждать вручную</option> <option value="2">[A+] Автоматическое подтверждение</option> <option value="3">[M+] Ручное подтверждение</option> </select> <select id="rubdes_expandtype" class="easyui-combobox" data-options="width: 40, panelHeight: 'auto'"> <option value="E">E</option> <option value="N">N</option> <option value="W">W</option> <option value="L">L</option> <option value="V">V</option> </select> <a href="#" id="goto_btn" class="easyui-linkbutton" iconCls="icon-add" plain="false" data-options="onClick: function() { ThesRubricator.rubdes_add_conc(); }">Добавить</a> <a href="#" id="goto_btn" class="easyui-linkbutton" iconCls="icon-remove" plain="false" data-options="onClick: function() { ThesRubricator.rubdes_del_conc(); }">Удалить</a> <a href="#" id="goto_btn" class="easyui-menubutton" plain="false" data-options="menu:'#editrubdesmm1',iconCls:'icon-edit'">Изменить</a> <a href="#" id="goto_btn" class="easyui-linkbutton" iconCls="icon-ok" plain="false" data-options="onClick: function() { ThesRubricator.rubdes_copy_fromconj(); }">Перенести</a> </div> <!--/div--> <div id="editrubdesmm1"> <div> <span>Подтверждение</span> <div> <div onclick="ThesRubricator.rubdes_edit_conc({confirmid: 0 });">[A−] Не подтверждать автоматически</div> <div onclick="ThesRubricator.rubdes_edit_conc({confirmid: 1 });">[M−] Не подтверждать вручную</div> <div onclick="ThesRubricator.rubdes_edit_conc({confirmid: 2 });">[A+] Автоматическое подтверждение</div> <div onclick="ThesRubricator.rubdes_edit_conc({confirmid: 3 });">[M+] Ручное подтверждение</div> </div> </div> <div> <span>Знак</span> <div> <div onclick="ThesRubricator.rubdes_edit_conc({concrubrtypeid: 1 });">+</div> <div onclick="ThesRubricator.rubdes_edit_conc({concrubrtypeid: 2 });">−</div> </div> </div> <div> <span>Тип расширения</span> <div> <div onclick="ThesRubricator.rubdes_edit_conc({expandtype: 'E' });">E</div> <div onclick="ThesRubricator.rubdes_edit_conc({expandtype: 'N' });">N</div> <div onclick="ThesRubricator.rubdes_edit_conc({expandtype: 'W' });">W</div> <div onclick="ThesRubricator.rubdes_edit_conc({expandtype: 'L' });">L</div> <div onclick="ThesRubricator.rubdes_edit_conc({expandtype: 'V' });">V</div> </div> </div> <div> <span>Включено</span> <div> <div onclick="ThesRubricator.rubdes_edit_conc({enabled: 1 });">Да</div> <div onclick="ThesRubricator.rubdes_edit_conc({enabled: 0 });">Нет</div> </div> </div> </div> <!--form action="rubdes.php" id="rubdeseditform" method="post" enctype="multipart/form-data"> </form--> </div> </div> <script type="text/javascript"> ThesRubricator.rubdes_usedformparam = '&rubricid=<? echo $_GET['rubricid'] ?>&disjunctid=<? echo $_GET['disjunctid'] ?>&conjunctid=<? echo $_GET['conjunctid'] ?>&rubricatorid=<? echo $_GET['rubricatorid'] ?>'; $(document).ready(function () { $('#rubdes_conc_filter').textbox('textbox').bind('keyup', function(e){ if ((e.keyCode === 38) || (e.keyCode === 40)) return; var str = $(this).val(); setTimeout(function(){ ThesConcepts.conc_filter_change('#rubdes_conc_filter', str, '', 'conc'); }, 500); }); }); </script>