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
using System.Data; | |
using System.IO; | |
using System.Xml; | |
using System.Xml.Xsl; | |
namespace xmltodb | |
{ | |
internal static class Program | |
{ |
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
/****** Object: UserDefinedFunction [dbo].[CSVToTable] Script Date: 06/29/2014 12:40:43 ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
CREATE FUNCTION [dbo].[CSVToTable] (@InStr VARCHAR(MAX)) | |
RETURNS @TempTab TABLE | |
(ContainerNumber varchar(max) not null) | |
AS |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | |
<title>Your Message Subject or Title</title> | |
<style type="text/css"> | |
/* Based on The MailChimp Reset INLINE: Yes. */ | |
/* Client-specific Styles */ | |
#outlook a {padding:0;} /* Force Outlook to provide a "view in browser" menu link. */ |
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
<!--[if (gte mso 9)|(IE)]> | |
<table width="425" align="left" cellpadding="0" cellspacing="0" border="0"> | |
<tr> | |
<td> | |
<![endif]--> | |
This is conditional tag for IE rendering engine | |
<!--[if (gte mso 9)|(IE)]> | |
</td> | |
</tr> | |
</table> |
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
passing a php variable to the javascript | |
<?php | |
$phpdata=array('key1'=>'some value','key2'=>'another value'); | |
$jsondata=json_encode($phpdata); | |
echo "var mydata=".$jsondata.";"; | |
?> | |
This will give you javascript that looks like this: |
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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
class Mail extends CI_Controller { | |
function __construct() | |
{ | |
parent::__construct(); | |
//Do your magic here | |
$this->load->model('membership_model'); | |
$config = 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 if (function_exists('date_default_timezone_set')) | |
{ | |
date_default_timezone_set('Asia/Kolkata'); | |
} echo date("h:i:s"); ?> |
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 getUrlParams() { | |
var paramMap = {}; | |
if (location.search.length == 0) { | |
return paramMap; | |
} | |
var parts = location.search.substring(1).split("&"); | |
for (var i = 0; i < parts.length; i ++) { | |
var component = parts[i].split("="); |
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
<ENVELOPE> | |
<HEADER> | |
<VERSION></VERSION> | |
<TALLYREQUEST></TALLYREQUEST> | |
<TYPE></TYPE> | |
<SUBTYPE></SUBTYPE> | |
<ID></ID> | |
</HEADER> | |
<BODY> |
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 index() | |
{ | |
$config = Array( | |
'protocol' => 'smtp', | |
'smtp_host' => 'smtp3.netcore.co.in', | |
'smtp_port' => 25, | |
'smtp_user' => '[email protected]', | |
'smtp_pass' => 'Supp0rt', | |
'mailtype' => 'html', | |
'charset' => 'utf-8', |