This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Conecction { | |
| protected static $db_name = 'MyDataBase'; | |
| protected static $user = 'MyUser'; | |
| protected static $passw = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var dialog = []; | |
| dialog['error'] = 'errorDialogBox'; | |
| dialog['exito'] = 'successDialogBox'; | |
| dialog['alerta'] = 'alertDialogBox'; | |
| function displayHtmlInDivId(divResult, dataHtml, conEfecto){ | |
| if(conEfecto){ | |
| $("#"+divResult).html("").html(dataHtml).fadeIn(); | |
| }else{ | |
| $("#"+divResult).html("").html(dataHtml); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('#fileupload').on('fileuploaddone', function(e, data) { | |
| //console.debug(data); | |
| $.each(data.result, function (index, file) { | |
| console.debug(file); | |
| var datos = file[0]; | |
| $.ajax({ | |
| type: "POST", | |
| dataType: "html", | |
| data: datos, | |
| url: "file.php", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| ... | |
| protected function get_file_name($name, $type, $index, $content_range) { | |
| $name = $this->udate('YmdHisu').$name; | |
| return $this->get_unique_filename( | |
| $this->trim_file_name($name, $type, $index, $content_range), | |
| $type, | |
| $index, |
NewerOlder