@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
/
ww_thes
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/new.labinform.ru/ww_thes/edit_clust_form.php
<? include_once "login.php"; if ($usr_id == -1) { header('HTTP/1.0 401 Unauthorized'); die(); } if ($_SESSION[LoginURI]['usertypeid'] == 30) { header('HTTP/1.0 401 Unauthorized'); die(); } $langid = 10; if (isset($_GET['langid'])) $langid = $_GET['langid']; $te = null; $ss_add = ''; $ss_edit = ''; if (isset($_GET['clusterid'])) { $q = "SELECT clusterid, clusterstr, sessionident, sessionid, dt, reqstr, shortcomments FROM clusters WHERE clusterid=" . $_GET['clusterid']; $res = pg_query($conn, $q); if ($row = pg_fetch_array($res)) { $te = $row; $ss_add = get_user_ss_info($conn, $row['sessionident']); $ss_edit = get_user_ss_info($conn, $row['sessionid']); } pg_free_result($res); } else { if (isset($_GET['clusterstr'])) { $q = "SELECT clusterid, clusterstr, sessionident, sessionid, dt, reqstr, shortcomments FROM clusters WHERE clusterstr='" . $_GET['clusterstr'] . "'"; $res = pg_query($conn, $q); if ($row = pg_fetch_array($res)) { $te = $row; $_GET['clusterid_find'] = $te['clusterid']; } pg_free_result($res); } } ?> <div class="dialogtext"> <table border="0" width="100%"> <tr><td width="50%"> <label for="nclusterid" class="label-top">Код:</label> <input id="nclusterid" class="easyui-textbox" data-options="<? echo isset($_GET['clusterid'])?"value: " . $_GET['clusterid'] . ",": (isset($_GET['clusterid_find']) ? "value: " . $_GET['clusterid_find'] . ",": ""); ?>readonly: true" style="width: 100px"> <? if ($ss_add) { ?> </td><td> <label for="te_added" class="label-top">Добавлено:</label> <input id="te_added" class="easyui-textbox" data-options="readonly: true" style="width: 170px" value="<? echo $ss_add; ?>"> </td><td> <label for="te_modified" class="label-top">Изменено:</label> <input id="te_modified" class="easyui-textbox" data-options="readonly: true" style="width: 170px" value="<? echo $ss_edit; ?>"> <? } ?> </td><td align="right"> </td></tr> <tr><td colspan="<? echo ($ss_add) ? 4 : 2; ?>"> <label for="nclusterstr" class="label-top">Сюжет:</label> <? if (isset($_GET['clusterid'])) { ?> <input id="nclusterstr" class="easyui-textbox" style="width: 100%" data-options=" required: true, tipPosition: 'top', loader: ThesConcepts.cluster_loader, mode: 'remote', missingMessage: 'Это поле необходимо заполнить', <? echo "value: '" . str_replace('"', '"', $_GET['clusterstr']) . "',"; ?> " > <!--onChange: te_set_value, --> <? } else { ?> <input id="nclusterstr" class="easyui-combobox" style="width: 100%" data-options="groupField: 'group', required: true, tipPosition: 'top', loader: ThesConcepts.cluster_loader, mode: 'remote', valueField: 'clusterid', textField: 'clusterstr', panelMinHeight: 20, <? echo isset($_GET['clusterid_find'])?"startteid: " . $_GET['clusterid_find'] . ",":""; ?> <? echo isset($_GET['clusterstr'])?"starttestr: '" . str_replace('"', '"', $_GET['clusterstr']) . "',":""; ?> panelMaxHeight: 400, panelHeight: null, missingMessage: 'Это поле необходимо заполнить', onHidePanel: ThesConcepts.clust_set_value, onSelect: ThesConcepts.clust_change_curr_value, groupFormatter: function(group){ return '<span class=\'dropdown-group-header\'>' + group + '</span>'; }" > <? } ?> </td></tr> </table> <div style="margin-bottom:7px"> </div> <div class="new_clust_block <?echo ((!isset($_GET['clusterid'])) || (isset($_GET['clusterid_find'])) ) ? 'new_te_disabled':''; ?>"> <p style="margin: 5px"> <center id="teaction" style="font-weight: bold">Добавление нового сюжета:</center> </p> <p style="margin: 5px"> <input id="nclust_reqstr" class="easyui-textbox" style="width: 100%" data-options="label: 'Запрос', labelPosition: 'top', multiline: true, height: 100" value="<? echo isset($te) ? xml_entities($te['reqstr']) : '';?>"> </p> <p style="margin: 5px"> <input id="nclust_shortcomments" class="easyui-textbox" style="width: 100%" data-options="label: 'Комментарий', labelPosition: 'top', multiline: true, height: 100" value="<? echo isset($te) ? xml_entities($te['shortcomments']) : '';?>"> </p> <p style="margin: 5px"> <input id="nclust_dt" class="easyui-datebox" data-options="label: 'Дата', width: 200, labelWidth: 60, editable: false/*, formatter: function(date){var y = date.getFullYear();var m = date.getMonth()+1;var d = date.getDate();return y + '-' + m + '-' + d;}*/" value="<? echo isset($te) ? xml_entities($te['dt']) : '';?>"> </p> </div> </div> <script type="text/javascript"> $(function () { <? if (isset($_GET['clusterid'])) { ?> $('#nclusterstr').textbox('textbox').attr('maxlength', ThesConcepts.max_textentry_length); textbox_set_f9_conv('#nclusterstr'); <? } else { ?> $('#nclusterstr').combobox('textbox').attr('maxlength', ThesConcepts.max_textentry_length); textbox_set_f9_conv('#nclusterstr'); <? } ?> $('#nclusterstr').textbox('textbox').bind('keyup', function(e){ if ((e.keyCode === 13) && (e.ctrlKey)){ if ($('.new_te_block').hasClass('new_te_disabled')) $('#dd_dialog_ok_btn').focus().focus(); else $('#nclusterstr').textbox('textbox').focus(); } }); $('#dd_dialog_ok_btn').bind('keyup', function(e){ if ((e.keyCode === 37) || (e.keyCode === 39)){ $('#dd_dialog_cancel_btn').focus().focus(); } }); $('#dd_dialog_cancel_btn').bind('keyup', function(e){ if ((e.keyCode === 37) || (e.keyCode === 39)){ $('#dd_dialog_ok_btn').focus().focus(); } }); }); </script>