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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.4/css/bootstrap.min.css"> | |
<script> | |
var rowCount = 1; | |
function addMoreRows(){ | |
var recRow = '<tr id="rowCount'+rowCount+'">' + |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<script type='text/javascript' src='//code.jquery.com/jquery-2.1.0.js'></script> | |
<script>//<![CDATA[ | |
//Add a row in "#addedRows" by cloning '#row' | |
var cloneCount = 1; |
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
<html> | |
<head> | |
<script src="http://code.jquery.com/jquery-1.9.1.js"></script> | |
<script> | |
//Add a row in "#addedRows" by cloning '#row' | |
var cloneCount = 1; //set global var for count clone number | |
function cloneRow(contentRowId, addRowId, removeRowId){ | |
var newRowId = addRowId+ cloneCount++; | |
var newDeleteId = "deleteId-"+newRowId; |
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
package test; | |
import java.io.FileInputStream; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.util.Scanner; | |
import javax.crypto.Cipher; |
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
<img id="previewHolderCustomerSignature" onclick="setImage( this.id, 'fileCustomerSignaturePhoto' );" src="https://placeholdit.imgix.net/~text?txtsize=22&txt=Upload customer signature (225px X 150px)&w=225&h=80&txttrack=0" class="img-thumbnail text-center" style="cursor: pointer"> | |
<input type="file" name="fileCustomerSignaturePhoto" value="" id="fileCustomerSignaturePhoto" class="required borrowerImageFile" style="display: none" > | |
<script> | |
function setImage(imageLinkId, inputFileName){ | |
$("#"+inputFileName).trigger('click').change(function() { | |
if (this.files && this.files[0]) { | |
var reader = new FileReader(); | |
reader.onload = function(e) { | |
$('#'+imageLinkId).attr('src', e.target.result); | |
} |
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
/** | |
* Make capital on input | |
* | |
* @param fieldId | |
* @param thisValue | |
* | |
* Example: onkeypress="return inputCapital(event, this.id, 100);" | |
*/ | |
function inputCapital(fieldId, thisValue){ | |
$('#'+fieldId).val( $('#'+fieldId).val().toUpperCase() ); |
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 | |
/* | |
go=1 (hidden) | |
hp='value from textbox' | |
message='value from texarea' | |
c='captcha image' | |
*/ | |
/**Data generation**/ | |
$vars = array( |
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 | |
//add to composer.json "phpmailer/phpmailer": "~5.2" | |
require_once 'vendor/autoload.php'; | |
$mail = new PHPMailer(); | |
$mail->IsSMTP(); | |
$mail->Mailer = 'smtp'; | |
$mail->SMTPAuth = true; | |
$mail->Host = 'smtp.gmail.com'; // "ssl://smtp.gmail.com" didn't worked |
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 | |
/** | |
* Password policy | |
* | |
* Created by Mahedi Azad. | |
* User: Mahedi Azad | |
* Date: 01-Oct-15 | |
* Time: 9:45 AM | |
*/ |
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
###Query | |
select * from | |
( select temp_table.*, ROWNUM rnum from | |
( <your_query_goes_here, with order by> ) temp_table | |
where ROWNUM <= :MAX_ROW_TO_FETCH ) | |
where rnum >= :MIN_ROW_TO_FETCH; | |
###Instruction | |
:MAX_ROW_TO_FETCH is the maximum limit of row that be displayed |
OlderNewer