Company profile pic issue fixed
This commit is contained in:
parent
6f612fd690
commit
a28b7bb71b
@ -96,9 +96,11 @@ function readURL(input,num) {
|
|||||||
.attr('src', e.target.result)
|
.attr('src', e.target.result)
|
||||||
.width(166)
|
.width(166)
|
||||||
.height(166);
|
.height(166);
|
||||||
|
//alert(e.target.result);
|
||||||
};
|
};
|
||||||
|
|
||||||
reader.readAsDataURL(input.files[0]);
|
reader.readAsDataURL(input.files[0]);
|
||||||
|
$('#ModifyImage').val(input.files[0]['name']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -254,7 +256,8 @@ var reg = /(?=.*[0-9]).{2}(?=.*[A-Z]).{5}(?=.*[0-9]).{4}(?=.*[A-Z]).{1}(?=.*[0-9
|
|||||||
<img id="profilepicture" src="<?php echo base_url().'uploads/images/'.$ProfilePic ; ?>" alt="your image" style="width: 139px;"/><br/>
|
<img id="profilepicture" src="<?php echo base_url().'uploads/images/'.$ProfilePic ; ?>" alt="your image" style="width: 139px;"/><br/>
|
||||||
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this,0);" id="photo" value="<?php echo $ProfilePic ;?>" name="photo"/>
|
<input type='file' input accept=".JPG,.PNG" onchange="readURL(this,0);" id="photo" value="<?php echo $ProfilePic ;?>" name="photo"/>
|
||||||
<label for="photo">Select Company Logo<br/><small>(only .jpg or .png)</small></label>
|
<label for="photo">Select Company Logo<br/><small>(only .jpg or .png)</small></label>
|
||||||
|
<input type="hidden" name="Image" id="Image" value="<?php echo $ProfilePic ; ?>" class="form-control" readonly>
|
||||||
|
<input type="hidden" name="ModifyImage" id="ModifyImage" class="form-control" readonly>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user