Server IP : 80.241.246.6 / Your IP : 216.73.216.188 Web Server : Apache/2.4.25 (Debian) System : Linux kharagauli 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64 User : www-data ( 33) PHP Version : 7.0.33-0+deb9u12 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, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/kharagauli1/moduls/individual/templates/ |
Upload File : |
<?php /* @author suxoza <suxoza@gmail.com> */ header("Content-type: text/html; Charset=utf-8"); session_start(); mb_internal_encoding("UTF-8"); error_reporting(E_ALL); date_default_timezone_set("Asia/Tbilisi"); require_once '../../clases/Central.php'; $_ = new Central; $language = $_SESSION['language']; ?> <form action="/add_new_category" method="post" id="add_new_category_form"> <table> <input type="hidden" name="menu_pos" value="0"/> <input type="hidden" name="parent" value="0"/> <?php require_once 'add_new_category_inline.php';?> <tr> <td>დასახელება: </td> <td> <input type="text" name="name"/> </td> </tr> <tr> <td> </td> <td> <input type="button" value="send" onclick="add_new_category()"/> </td> </tr> </table> </form> <script> var zuzuna = false; $('form[action$="add_new_category"]').submit(function(){ return zuzuna; }); function add_new_category(){ var ret = true; var select = $('#add_new_category_form select[name="category"]'); var inp = ($('#add_new_category_form input:text[name="name"]').length)?$('#add_new_category_form input:text[name="name"]').val():'saxli'; if(inp.length && parseInt($('option:selected',select).val()) == $('option:selected',select).val()){ $('#add_new_category_form select').each(function(){ if($(this).is(':visible')){ if(parseInt($(this).val()) != $(this).val()){ ret = false; } } }); if($('#add_new_category_form input:text[name="href_url"]').is(':visible')){ if(!learnRegExp($('#add_new_category_form input:text[name="href_url"]').val()))ret = false; } if(ret){ $('#add_new_category_form select,input:text').each(function(){ if(!$(this).is(':visible'))$(this).remove(); }); zuzuna = true; $('#add_new_category_form').submit(); } } } var loca_array = { general_top :0, general_left :1, general_right :2, general_bottom :3 }; var location_href_menu = (location.hash && location.hash.indexOf('#general_') != -1)?loca_array[location.hash.substr(1)]:loca_array.general_top; $('#add_new_category_form input:hidden[name="menu_pos"]').val(location_href_menu); function select_next_step_1(a){ var th = $(a); if(th.val() == 0) $('.second_step').show(); else{ $('.second_step').hide(); $('.third_step').hide(); $('.fourth_step').hide(); } } function select_next_step_2(a){ var th = $(a); if(th.val() == 1) $('.third_step').show(); else $('.third_step').hide(); if(th.val() == 2) $('.fourth_step').show(); else $('.fourth_step').hide(); } function learnRegExp(s) { var regexp = /(ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/; return regexp.test(s); } </script>