new
This commit is contained in:
parent
0920e3aa9b
commit
564771da7a
@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace Config;
|
namespace Config;
|
||||||
|
|
||||||
use CodeIgniter\Config\BaseConfig;
|
use CodeIgniter\Config\BaseConfig;
|
||||||
|
|
||||||
class Email extends BaseConfig
|
class Email extends BaseConfig
|
||||||
@ -54,13 +53,16 @@ class Email extends BaseConfig
|
|||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
|
// Enter your email id from where you send email
|
||||||
public $SMTPUser = 'celine.forworkinphp96@gmail.com';
|
public $SMTPUser = 'celine.forworkinphp96@gmail.com';
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SMTP Password
|
* SMTP Password
|
||||||
*
|
*
|
||||||
* @var string
|
* @var string
|
||||||
*/
|
*/
|
||||||
|
// Enter your email's password
|
||||||
public $SMTPPass = 'phpmailer96';
|
public $SMTPPass = 'phpmailer96';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -167,5 +169,4 @@ class Email extends BaseConfig
|
|||||||
* @var boolean
|
* @var boolean
|
||||||
*/
|
*/
|
||||||
public $DSN = false;
|
public $DSN = false;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -41,6 +41,16 @@ class Dashboard extends BaseController
|
|||||||
session()->destroy();
|
session()->destroy();
|
||||||
return redirect()->to(base_url());
|
return redirect()->to(base_url());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fetch_donor_id()
|
||||||
|
{
|
||||||
|
echo $this->MyModel->fetch_donor_id();
|
||||||
|
}
|
||||||
|
function fetch_cause_name()
|
||||||
|
{
|
||||||
|
echo $this->dcModel->fetch_cause_name();
|
||||||
|
}
|
||||||
|
|
||||||
public function receipts()
|
public function receipts()
|
||||||
{
|
{
|
||||||
$data = [];
|
$data = [];
|
||||||
@ -56,18 +66,7 @@ class Dashboard extends BaseController
|
|||||||
echo view('receipts');
|
echo view('receipts');
|
||||||
echo view('templates/footer');
|
echo view('templates/footer');
|
||||||
}
|
}
|
||||||
function fetch_donor_id()
|
|
||||||
{
|
|
||||||
|
|
||||||
echo $this->MyModel->fetch_donor_id();
|
|
||||||
|
|
||||||
}
|
|
||||||
function fetch_cause_name()
|
|
||||||
{
|
|
||||||
|
|
||||||
echo $this->dcModel->fetch_cause_name();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function generate_receipts()
|
public function generate_receipts()
|
||||||
{
|
{
|
||||||
@ -85,13 +84,11 @@ class Dashboard extends BaseController
|
|||||||
'receipt_details' =>$this->request->getVar('receipt_details'),
|
'receipt_details' =>$this->request->getVar('receipt_details'),
|
||||||
'cause_name' =>$this->request->getVar('cause_name'),
|
'cause_name' =>$this->request->getVar('cause_name'),
|
||||||
'remarks' =>$this->request->getVar('remarks'),
|
'remarks' =>$this->request->getVar('remarks'),
|
||||||
|
|
||||||
|
|
||||||
];
|
];
|
||||||
$model->save($receiptData);
|
$model->save($receiptData);
|
||||||
|
|
||||||
return redirect()->to(base_url().'/Dashboard/last_receipt/');
|
return redirect()->to(base_url().'/Dashboard/last_receipt/');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function all_receipt()
|
public function all_receipt()
|
||||||
{
|
{
|
||||||
$data = [];
|
$data = [];
|
||||||
@ -99,8 +96,6 @@ class Dashboard extends BaseController
|
|||||||
{
|
{
|
||||||
return redirect()->to(base_url());
|
return redirect()->to(base_url());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
$data['receiptdata']=$this->rModel->all_receipt();
|
$data['receiptdata']=$this->rModel->all_receipt();
|
||||||
echo view('templates/header',$data);
|
echo view('templates/header',$data);
|
||||||
echo view('receipts_table');
|
echo view('receipts_table');
|
||||||
@ -258,9 +253,6 @@ class Dashboard extends BaseController
|
|||||||
{
|
{
|
||||||
return redirect()->to(base_url());
|
return redirect()->to(base_url());
|
||||||
}
|
}
|
||||||
|
|
||||||
$name= session()->get('logged_user');
|
|
||||||
//$data['userdata']=$this->dModel->getLoggedInUserData($name);
|
|
||||||
echo view('templates/header');
|
echo view('templates/header');
|
||||||
echo view('donation_data');
|
echo view('donation_data');
|
||||||
echo view('templates/footer');
|
echo view('templates/footer');
|
||||||
@ -279,7 +271,6 @@ class Dashboard extends BaseController
|
|||||||
'mode_of_payment' =>$this->request->getVar('mode_of_payment'),
|
'mode_of_payment' =>$this->request->getVar('mode_of_payment'),
|
||||||
'ref_1' =>$this->request->getVar('ref_1'),
|
'ref_1' =>$this->request->getVar('ref_1'),
|
||||||
'donation_ref' =>$this->request->getVar('donation_ref'),
|
'donation_ref' =>$this->request->getVar('donation_ref'),
|
||||||
|
|
||||||
];
|
];
|
||||||
$model->save($donationData);
|
$model->save($donationData);
|
||||||
return redirect()->to(base_url().'/Dashboard');
|
return redirect()->to(base_url().'/Dashboard');
|
||||||
@ -342,11 +333,10 @@ class Dashboard extends BaseController
|
|||||||
}
|
}
|
||||||
$model = new Donation_cause();
|
$model = new Donation_cause();
|
||||||
$donationCause=[
|
$donationCause=[
|
||||||
|
|
||||||
'cause_name' =>$this->request->getVar('cause_name'),
|
'cause_name' =>$this->request->getVar('cause_name'),
|
||||||
'from_date' =>$this->request->getVar('from_date'),
|
'from_date' =>$this->request->getVar('from_date'),
|
||||||
'to_date' =>$this->request->getVar('to_date'),
|
'to_date' =>$this->request->getVar('to_date'),
|
||||||
|
'status' =>1,
|
||||||
];
|
];
|
||||||
$model->save($donationCause);
|
$model->save($donationCause);
|
||||||
return redirect()->to(base_url()."/Dashboard/donation_cause");
|
return redirect()->to(base_url()."/Dashboard/donation_cause");
|
||||||
|
|||||||
@ -17,9 +17,9 @@ class Sendmail extends Controller
|
|||||||
|
|
||||||
$email = \Config\Services::email();
|
$email = \Config\Services::email();
|
||||||
|
|
||||||
$email->setTo($to);
|
|
||||||
$email->setFrom('gowtham.manavalan.la@gmail.com', 'Confirm Registration');
|
|
||||||
|
|
||||||
|
$email->setFrom('celine.forworkinphp96@gmail.com', 'Gowtham');
|
||||||
|
$email->setTo($to);
|
||||||
$email->setSubject($subject);
|
$email->setSubject($subject);
|
||||||
$email->setMessage($message);
|
$email->setMessage($message);
|
||||||
|
|
||||||
|
|||||||
@ -6,25 +6,23 @@ class Donation_cause extends Model
|
|||||||
{
|
{
|
||||||
protected $table = 'donation_cause';
|
protected $table = 'donation_cause';
|
||||||
protected $primaryKey = 'id';
|
protected $primaryKey = 'id';
|
||||||
|
protected $allowedFields = ['cause_name', 'from_date','to_date','status'];
|
||||||
protected $allowedFields = ['cause_name', 'from_date','to_date'];
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function all_donation_cause()
|
function all_donation_cause()
|
||||||
{
|
{
|
||||||
|
|
||||||
$builder = $this->db->table('donation_cause');
|
$builder = $this->db->table('donation_cause');
|
||||||
|
$builder->where('status',1);
|
||||||
$result = $builder->get();
|
$result = $builder->get();
|
||||||
$output = $result->getResultArray();
|
$output = $result->getResultArray();
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
function fetch_cause_name()
|
function fetch_cause_name()
|
||||||
{
|
{
|
||||||
|
|
||||||
$builder = $this->db->table('donation_cause');
|
$builder = $this->db->table('donation_cause');
|
||||||
|
$builder->where('status',1);
|
||||||
$query = $builder->get();
|
$query = $builder->get();
|
||||||
//print_r($query);die();
|
|
||||||
$output = '<option value="">Select Cause Name</option>';
|
$output = '<option value="">Select Cause Name</option>';
|
||||||
foreach($query->getResult() as $row)
|
foreach($query->getResult() as $row)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -6,14 +6,12 @@ class Receipt_model extends Model
|
|||||||
{
|
{
|
||||||
protected $table = 'receipts';
|
protected $table = 'receipts';
|
||||||
protected $primaryKey = 'receipt_id';
|
protected $primaryKey = 'receipt_id';
|
||||||
|
|
||||||
protected $allowedFields = ['receipt_no', 'date','donor_id','amount', 'mode_of_receipt','receipt_details','cause_name', 'remarks'];
|
protected $allowedFields = ['receipt_no', 'date','donor_id','amount', 'mode_of_receipt','receipt_details','cause_name', 'remarks'];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function all_receipt()
|
function all_receipt()
|
||||||
{
|
{
|
||||||
|
|
||||||
$builder = $this->db->table('receipts');
|
$builder = $this->db->table('receipts');
|
||||||
$result = $builder->get();
|
$result = $builder->get();
|
||||||
$output = $result->getResultArray();
|
$output = $result->getResultArray();
|
||||||
@ -22,10 +20,8 @@ class Receipt_model extends Model
|
|||||||
|
|
||||||
function last_receipt()
|
function last_receipt()
|
||||||
{
|
{
|
||||||
|
|
||||||
$builder=$this->db->query("SELECT receipt_id,receipt_no,date,donor_id,amount,mode_of_receipt,receipt_details,cause_name,remarks FROM receipts where receipt_id =(select max(receipt_id) from receipts) ");
|
$builder=$this->db->query("SELECT receipt_id,receipt_no,date,donor_id,amount,mode_of_receipt,receipt_details,cause_name,remarks FROM receipts where receipt_id =(select max(receipt_id) from receipts) ");
|
||||||
$output = $builder->getResultArray();
|
$output = $builder->getResultArray();
|
||||||
|
|
||||||
return $output;
|
return $output;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -37,7 +37,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<table>
|
<table>
|
||||||
<a href="<?= base_url() ?>/Dashboard/last_receipt">Edit</a>
|
<a href="<?= base_url() ?>/Sendmail/Mail_to_donor">Edit</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -181,7 +181,7 @@ class CodeIgniter
|
|||||||
public function initialize()
|
public function initialize()
|
||||||
{
|
{
|
||||||
// Set default locale on the server
|
// Set default locale on the server
|
||||||
//locale_set_default($this->config->defaultLocale ?? 'en');
|
locale_set_default($this->config->defaultLocale ?? 'en');
|
||||||
|
|
||||||
// Set default timezone on the server
|
// Set default timezone on the server
|
||||||
date_default_timezone_set($this->config->appTimezone ?? 'UTC');
|
date_default_timezone_set($this->config->appTimezone ?? 'UTC');
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607063669.json
Normal file
1
writable/debugbar/debugbar_1607063669.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607063671.json
Normal file
1
writable/debugbar/debugbar_1607063671.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607063699.json
Normal file
1
writable/debugbar/debugbar_1607063699.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607063700.json
Normal file
1
writable/debugbar/debugbar_1607063700.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607063802.json
Normal file
1
writable/debugbar/debugbar_1607063802.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607063803.json
Normal file
1
writable/debugbar/debugbar_1607063803.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607063804.json
Normal file
1
writable/debugbar/debugbar_1607063804.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607063823.json
Normal file
1
writable/debugbar/debugbar_1607063823.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607063824.json
Normal file
1
writable/debugbar/debugbar_1607063824.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607068945.json
Normal file
1
writable/debugbar/debugbar_1607068945.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607068947.json
Normal file
1
writable/debugbar/debugbar_1607068947.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607068949.json
Normal file
1
writable/debugbar/debugbar_1607068949.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607068950.json
Normal file
1
writable/debugbar/debugbar_1607068950.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607068975.json
Normal file
1
writable/debugbar/debugbar_1607068975.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607069584.json
Normal file
1
writable/debugbar/debugbar_1607069584.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607069587.json
Normal file
1
writable/debugbar/debugbar_1607069587.json
Normal file
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607069592.json
Normal file
1
writable/debugbar/debugbar_1607069592.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607078742.json
Normal file
1
writable/debugbar/debugbar_1607078742.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607078743.json
Normal file
1
writable/debugbar/debugbar_1607078743.json
Normal file
File diff suppressed because one or more lines are too long
1
writable/debugbar/debugbar_1607078744.json
Normal file
1
writable/debugbar/debugbar_1607078744.json
Normal file
File diff suppressed because one or more lines are too long
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606895122;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606898799;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606906469;_ci_previous_url|s:50:"http://localhost/donation/dashboard/donation_cause";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607069584;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607058079;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606810299;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"1";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606893773;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606817052;_ci_previous_url|s:35:"http://localhost/donation/Dashboard";logged_user|s:1:"1";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606970732;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607060805;_ci_previous_url|s:50:"http://localhost/donation/Dashboard/donation_cause";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607062753;_ci_previous_url|s:50:"http://localhost/donation/Dashboard/donation_cause";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606898799;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607054968;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607000613;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606822243;_ci_previous_url|s:35:"http://localhost/donation/Dashboard";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607078742;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -1 +1 @@
|
|||||||
__ci_last_regenerate|i:1606803399;_ci_previous_url|s:35:"http://localhost/donation/dashboard";logged_user|s:1:"1";
|
__ci_last_regenerate|i:1606809552;_ci_previous_url|s:35:"http://localhost/donation/dashboard";logged_user|s:1:"1";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606896010;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606972995;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"1";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607000613;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606906469;_ci_previous_url|s:50:"http://localhost/donation/Dashboard/donation_cause";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606889436;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607054968;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607000060;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606894483;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606977257;_ci_previous_url|s:44:"http://localhost/donation/dashboard/receipts";logged_user|s:1:"1";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606977257;_ci_previous_url|s:47:"http://localhost/donation/Dashboard/all_receipt";logged_user|s:1:"1";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607063603;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607069584;_ci_previous_url|s:47:"http://localhost/donation/dashboard/all_receipt";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1606822243;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1607068945;_ci_previous_url|s:49:"http://localhost/donation/dashboard/donation_data";logged_user|s:1:"3";
|
||||||
Loading…
Reference in New Issue
Block a user