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 include("phpmailer/PHPMailerAutoload.php"); | |
$mail = new PHPMailer; | |
$mail->isSMTP(); | |
$mail->Host = 'smtp.sendgrid.net'; | |
$mail->SMTPAuth = true; | |
$mail->Username = 'takmeel'; // SMTP username | |
$mail->Password = 'shineE065'; // SMTP password | |
$mail->SMTPSecure = 'tls'; // Enable TLS encryption, `ssl` also accepted | |
$mail->Port = 25; // TCP port to connect to |
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 app=angular.module('starter', ['ionic', 'ui.router']); | |
app.controller('linksCtrl', function ($scope,$http) { | |
$http.get("papers.com.pk/API/api/json_files/03-08-2015.json") | |
.success(function (response) { | |
$scope.ads = response; | |
}); | |
}); |
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
<!-- View File --> | |
<div id="data"> | |
<div class="container-fluid max-width"> | |
<div class="row"> | |
<div class="project-detail clearfix"> | |
<div class="col-md-4 portfolio_view"> | |
<h2><?php echo CHtml::encode( $model->address ); ?> | |
<?php if ( $model->city ): ?> | |
, <?php echo CHtml::encode( $model->city->name ); ?> |
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 data-role="page" id="page2"> | |
<div data-role="header"> | |
<div class="row"> | |
<div class="container"> | |
<div class="col-xs-4 back_button"> | |
<a href="#" data-role="button" data-direction="reverse" data-icon="arrow-l" data-iconpos="left" data-theme="b" data-rel="back">Back</a> | |
</div> | |
<div class="col-xs-4"> | |
<img src="img/logo.png"> |
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://www.fourfront.us/blog/store-html-table-data-to-javascript-array | |
http://jsfiddle.net/cnsnk/377/ |
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 src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
var count = 0; | |
var value = $('#cart').text(); | |
//console.log(value); | |
$(".checkbox").click(function(){ | |
var counts = $("[type='checkbox']:checked").length; | |
if(counts > 0){ | |
$('#cart').html(value + '(' + counts +')'); |
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 | |
session_start(); | |
$xmlStr = file_get_contents("test.txt"); | |
$modified_time = filemtime("test.txt"); | |
$twenty_minutes = strtotime("+1 minutes", $modified_time); // Add 20 minutes to the modified time | |
$current_time = time(); | |
if (file_exists("test.txt") && $current_time < $twenty_minutes) { ?> | |
<html> |
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 | |
$obj = json_encode($task_list ,TRUE); | |
// $xml = $obj['task_list']['id']; | |
//var_dump($obj); | |
//foreach($obj as $doc) { | |
// $xml = simplexml_load_string($obj); | |
var_dump($xml); | |
// } |
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 get_assigned_task_list($email,$password) { | |
if(!empty($email) && !empty($password)) { | |
if(isset($email) && isset($password)) { | |
$this->loadModel('User'); | |
$user = $this->User->findByEmailAndPassword($email,$password); | |
if($user) { // If Password and email matched |
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> | |
.tablemain{ | |
font-family: Helvetica, Arial, sans-serif; | |
font-size:14px; | |
width:100% | |
} | |
.tablemain td{ | |
padding:10px 5px; |
NewerOlder