Server : Apache/2.4.18 (Ubuntu) System : Linux canvaswebdesign 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 User : oppastar ( 1041) PHP Version : 7.0.33-0ubuntu0.16.04.15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Directory : /usr/share/phpmyadmin/templates/database/structure/ |
Upload File : |
<?php $requested_sort = 'table'; $requested_sort_order = $future_sort_order = $initial_sort_order; // If the user requested a sort if (isset($_REQUEST['sort'])) { $requested_sort = $_REQUEST['sort']; if (isset($_REQUEST['sort_order'])) { $requested_sort_order = $_REQUEST['sort_order']; } } $order_img = ''; $order_link_params = array(); $order_link_params['title'] = __('Sort'); // If this column was requested to be sorted. if ($requested_sort == $sort) { if ($requested_sort_order == 'ASC') { $future_sort_order = 'DESC'; // current sort order is ASC $order_img = ' ' . PMA_Util::getImage( 's_asc.png', __('Ascending'), array('class' => 'sort_arrow', 'title' => '') ); $order_img .= ' ' . PMA_Util::getImage( 's_desc.png', __('Descending'), array('class' => 'sort_arrow hide', 'title' => '') ); // but on mouse over, show the reverse order (DESC) $order_link_params['onmouseover'] = "$('.sort_arrow').toggle();"; // on mouse out, show current sort order (ASC) $order_link_params['onmouseout'] = "$('.sort_arrow').toggle();"; } else { $future_sort_order = 'ASC'; // current sort order is DESC $order_img = ' ' . PMA_Util::getImage( 's_asc.png', __('Ascending'), array('class' => 'sort_arrow hide', 'title' => '') ); $order_img .= ' ' . PMA_Util::getImage( 's_desc.png', __('Descending'), array('class' => 'sort_arrow', 'title' => '') ); // but on mouse over, show the reverse order (ASC) $order_link_params['onmouseover'] = "$('.sort_arrow').toggle();"; // on mouse out, show current sort order (DESC) $order_link_params['onmouseout'] = "$('.sort_arrow').toggle();"; } } $_url_params = array( 'db' => $_REQUEST['db'], ); $url = 'db_structure.php' . PMA_URL_getCommon($_url_params); // We set the position back to 0 every time they sort. $url .= "&pos=0&sort=$sort&sort_order=$future_sort_order"; if (! empty($_REQUEST['tbl_type'])) { $url .= "&tbl_type=" . $_REQUEST['tbl_type']; } if (! empty($_REQUEST['tbl_group'])) { $url .= "&tbl_group=" . $_REQUEST['tbl_group']; } echo PMA_Util::linkOrButton( $url, $title . $order_img, $order_link_params );