@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
/
thesweb.ru
/
thes_test
/
Path :
Upload File :
New :
File
Dir
/var/www/www-root/data/www/thesweb.ru/thes_test/edit_clust_fr_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['fragmentid'])) { $q = "SELECT clusterid, fragmentid, fragmentstr, textinfo, sessionid, sessionident FROM cluster_frags WHERE fragmentid=" . $_GET['fragmentid']; $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="nfragmentid" class="label-top">Код:</label> <input id="nfragmentid" class="easyui-textbox" data-options="<? echo isset($_GET['fragmentid'])?"value: " . $_GET['fragmentid'] . ",": (isset($_GET['fragmentid_find']) ? "value: " . $_GET['fragmentid_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="nfragmentstr" class="label-top">Текст:</label> <input id="nfragmentstr" class="easyui-textbox" style="width: 100%" data-options=" required: true, tipPosition: 'top', multiline: true, height: 200, missingMessage: 'Это поле необходимо заполнить', <? echo "value: '" . str_replace('"', '"', isset($_GET['fragmentid']) ? $te['fragmentstr'] : '') . "',"; ?> " > <!--onChange: te_set_value, --> </td></tr> </table> <div style="margin-bottom:7px"> </div> <p style="margin: 5px"> <input id="nfragment_textinfo" class="easyui-textbox" style="width: 100%" data-options="label: 'Информация', labelPosition: 'top', multiline: true, height: 140," value="<? echo isset($te) ? xml_entities($te['textinfo']) : '';?>"> </p> </div> <script type="text/javascript"> $(function () { <? if (isset($_GET['clusterid'])) { ?> $('#nfragmentstr').textbox('textbox').attr('maxlength', 510); textbox_set_f9_conv('#nfragmentstr'); <? } else { ?> $('#nfragmentstr').combobox('textbox').attr('maxlength', 510); textbox_set_f9_conv('#nfragmentstr'); <? } ?> $('#nfragment_textinfo').combobox('textbox').attr('maxlength', 510); $('#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>