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
<style> | |
.circular { | |
width: 150px; | |
height: 150px; | |
border-radius: 50%; | |
position: relative; | |
overflow: hidden; | |
margin: 0 auto; | |
} | |
.circular img { |
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
<input jqdaterangepicker type="text" class="form-control" ng-model="daterange" ng-change="onDateRangeChange()" /> | |
<input | |
jqdatepicker | |
type="text" | |
name="dueStartDate" | |
datetime="dd-MM-yyyy" | |
data-date-format="dd-mm-yyyy" | |
class="form-control" | |
placeholder="Due Date (From)" | |
ng-model="selectedEdit.field" /> |
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> | |
<form ng-submit="SubmitAssignment()" enctype="multipart/form-data"> | |
<div class="form-group"> | |
<label class="control-label">Upload File</label> | |
<input type="file" file-model="myFile" /> | |
</div> | |
<button class="btn btn-info" type="submit">Submit</button> | |
</form> |
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
<div class="info"> | |
Showing {{entryLimit*(currentPage-1)+1}} to {{entryLimit*(currentPage-1)+entryLimit}} of {{totalItems}} entries | |
</div> | |
<div ng-repeat="data in filtered = (activity) | startFrom:(currentPage-1)*entryLimit | limitTo:entryLimit"> | |
<td>{{entryLimit *(currentPage-1)+$index+1}}</td> | |
</div> | |
<div | |
pagination |
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
SELECT id, ( 3959 * acos( cos( radians(37) ) * cos( radians( lat ) ) | |
* cos( radians( lng ) - radians(-122) ) + sin( radians(37) ) * sin(radians(lat)) ) ) AS distance | |
FROM markers | |
HAVING distance < 25 | |
ORDER BY distance | |
LIMIT 0 , 20; |
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
$http({ | |
method: 'POST', | |
url: 'ws/ws_assignment_post.php', | |
data: $.param(reqdata), | |
headers: {'Content-Type': 'application/x-www-form-urlencoded'} | |
}).then(function (response) { | |
var data = response.data; | |
if (data.status === 0) { | |
window.location.href = "/assignments.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
<select | |
class="form-control" | |
ng-options="sub.employee_id as [sub.employee_name_first,sub.employee_name_last].join(' ') for sub in selectedSubject.teacher" | |
ng-model="selectedTeacher"> | |
</select> |
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
$scope.selectedInterval = 30; | |
$scope.updateTimeInterval = function() | |
{ | |
var startTime = 8; | |
var endTime = 13; | |
var tt = startTime*60; // start at 8am | |
var ap = ['AM', 'PM']; | |
//loop to increment the time and push results in 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
public function uploadFile() | |
{ | |
$qfilesCount = count($_FILES['quesFiles']['name']); | |
$afilesCount = count($_FILES['ansFiles']['name']); | |
$quesImg = array(); | |
$ansImg = array(); | |
for($i = 0; $i < $qfilesCount; $i++) | |
{ | |
if(!empty($_FILES['quesFiles']['name'][$i])) |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |