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
| Visual Studio 2022 | |
| Enterprise : | |
| VHF9H-NXBBB-638P6-6JHCY-88JWH | |
| Professional: | |
| TD244-P4NB7-YQ6XK-Y8MMM-YWV2J |
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
| //Backspace won't work in webpage without form fields | |
| $(document).on("keydown", function (event) { | |
| if (event.keyCode === 8 && !$(event.target).is("input, textarea")) { | |
| event.preventDefault(); | |
| } | |
| }); |
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
| document.onreadystatechange = function(){ | |
| if(document.readyState === 'complete'){ | |
| // Your Code here | |
| } | |
| } |
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
| function mobile_no(val){ | |
| if((/^(017|018|016|015|011|019)\d{8}/).test(val)) { | |
| return true; | |
| else | |
| return false; | |
| } |
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
| //This will print the inner printarea id | |
| function print_div(){ | |
| var printContents = document.getElementById('printarea').innerHTML; | |
| var originalContents = document.body.innerHTML; | |
| document.body.innerHTML = printContents; | |
| window.print(); | |
| document.body.innerHTML = originalContents; | |
| } |
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
| <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/sticky-table-headers/0.1.24/js/jquery.stickytableheaders.js"></script> | |
| <script> | |
| $("#table_name").stickyTableHeaders(); | |
| </script> |
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 | |
| $arr_dist_sro = array( | |
| array('id'=>127, 'district'=>'field_6', 'sro'=>'field_9'), | |
| array('id'=>128, 'district'=>'field_6', 'sro'=>'field_7'), | |
| array('id'=>133, 'district'=>'field_4', 'sro'=>'field_6'), | |
| array('id'=>136, 'district'=>'field_6', 'sro'=>'field_7'), | |
| array('id'=>145, 'district'=>'field_4', 'sro'=>'field_5') | |
| ); | |
| $search_id = 133; |
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 | |
| function download_zip($customer_id=NULL){ | |
| $this->load->library('zip'); | |
| $this->load->helper('file'); | |
| $query = $this->db->query("SELECT * FROM customers WHERE customer_id = $customer_id")->row(); | |
| $path ='customer_files/'; | |
| $arr_file = explode(',', $query->cust_file); | |
| foreach ($arr_file as $a_file) { | |
| $this->zip->read_file($path.$a_file,TRUE); | |
| //$this->zip->read_file($path.$a_file,FALSE); //Folder Directory won't be added |
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 | |
| //Here data is your variable or object or array | |
| echo "<script type='text/javascript'>console.log(".json_encode($data).");</script>"; | |
| ?> |
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 | |
| function convert_number_to_words($number) { | |
| $hyphen = '-'; | |
| $conjunction = ' and '; | |
| $separator = ', '; | |
| $negative = 'negative '; | |
| $decimal = ' point '; | |
| $dictionary = array( | |
| 0 => 'zero', |
OlderNewer