new
This commit is contained in:
parent
0920e3aa9b
commit
564771da7a
@ -1,6 +1,5 @@
|
||||
<?php
|
||||
namespace Config;
|
||||
|
||||
use CodeIgniter\Config\BaseConfig;
|
||||
|
||||
class Email extends BaseConfig
|
||||
@ -47,21 +46,24 @@ class Email extends BaseConfig
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $SMTPHost='smtp.googlemail.com';
|
||||
public $SMTPHost = 'smtp.googlemail.com';
|
||||
|
||||
/**
|
||||
* SMTP Username
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $SMTPUser='celine.forworkinphp96@gmail.com';
|
||||
// Enter your email id from where you send email
|
||||
public $SMTPUser = 'celine.forworkinphp96@gmail.com';
|
||||
|
||||
|
||||
/**
|
||||
* SMTP Password
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $SMTPPass='phpmailer96';
|
||||
// Enter your email's password
|
||||
public $SMTPPass = 'phpmailer96';
|
||||
|
||||
/**
|
||||
* SMTP Port
|
||||
@ -167,5 +169,4 @@ class Email extends BaseConfig
|
||||
* @var boolean
|
||||
*/
|
||||
public $DSN = false;
|
||||
|
||||
}
|
||||
}
|
||||
@ -41,6 +41,16 @@ class Dashboard extends BaseController
|
||||
session()->destroy();
|
||||
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()
|
||||
{
|
||||
$data = [];
|
||||
@ -56,18 +66,7 @@ class Dashboard extends BaseController
|
||||
echo view('receipts');
|
||||
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()
|
||||
{
|
||||
@ -85,13 +84,11 @@ class Dashboard extends BaseController
|
||||
'receipt_details' =>$this->request->getVar('receipt_details'),
|
||||
'cause_name' =>$this->request->getVar('cause_name'),
|
||||
'remarks' =>$this->request->getVar('remarks'),
|
||||
|
||||
|
||||
];
|
||||
$model->save($receiptData);
|
||||
|
||||
];
|
||||
$model->save($receiptData);
|
||||
return redirect()->to(base_url().'/Dashboard/last_receipt/');
|
||||
}
|
||||
|
||||
public function all_receipt()
|
||||
{
|
||||
$data = [];
|
||||
@ -99,8 +96,6 @@ class Dashboard extends BaseController
|
||||
{
|
||||
return redirect()->to(base_url());
|
||||
}
|
||||
|
||||
|
||||
$data['receiptdata']=$this->rModel->all_receipt();
|
||||
echo view('templates/header',$data);
|
||||
echo view('receipts_table');
|
||||
@ -258,9 +253,6 @@ class Dashboard extends BaseController
|
||||
{
|
||||
return redirect()->to(base_url());
|
||||
}
|
||||
|
||||
$name= session()->get('logged_user');
|
||||
//$data['userdata']=$this->dModel->getLoggedInUserData($name);
|
||||
echo view('templates/header');
|
||||
echo view('donation_data');
|
||||
echo view('templates/footer');
|
||||
@ -279,10 +271,9 @@ class Dashboard extends BaseController
|
||||
'mode_of_payment' =>$this->request->getVar('mode_of_payment'),
|
||||
'ref_1' =>$this->request->getVar('ref_1'),
|
||||
'donation_ref' =>$this->request->getVar('donation_ref'),
|
||||
|
||||
];
|
||||
$model->save($donationData);
|
||||
return redirect()->to(base_url().'/Dashboard');
|
||||
return redirect()->to(base_url().'/Dashboard');
|
||||
}
|
||||
public function all_donation_data()
|
||||
{
|
||||
@ -342,11 +333,10 @@ class Dashboard extends BaseController
|
||||
}
|
||||
$model = new Donation_cause();
|
||||
$donationCause=[
|
||||
|
||||
'cause_name' =>$this->request->getVar('cause_name'),
|
||||
'from_date' =>$this->request->getVar('from_date'),
|
||||
'to_date' =>$this->request->getVar('to_date'),
|
||||
|
||||
'status' =>1,
|
||||
];
|
||||
$model->save($donationCause);
|
||||
return redirect()->to(base_url()."/Dashboard/donation_cause");
|
||||
|
||||
@ -17,9 +17,9 @@ class Sendmail extends Controller
|
||||
|
||||
$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->setMessage($message);
|
||||
|
||||
|
||||
@ -5,33 +5,31 @@ use CodeIgniter\Model;
|
||||
class Donation_cause extends Model
|
||||
{
|
||||
protected $table = 'donation_cause';
|
||||
protected $primaryKey = 'id';
|
||||
|
||||
protected $allowedFields = ['cause_name', 'from_date','to_date'];
|
||||
protected $primaryKey = 'id';
|
||||
protected $allowedFields = ['cause_name', 'from_date','to_date','status'];
|
||||
|
||||
|
||||
|
||||
function all_donation_cause()
|
||||
function all_donation_cause()
|
||||
{
|
||||
|
||||
$builder = $this->db->table('donation_cause');
|
||||
$builder->where('status',1);
|
||||
$result = $builder->get();
|
||||
$output = $result->getResultArray();
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
function fetch_cause_name()
|
||||
{
|
||||
|
||||
$builder = $this->db->table('donation_cause');
|
||||
$builder->where('status',1);
|
||||
$query = $builder->get();
|
||||
//print_r($query);die();
|
||||
$output = '<option value="">Select Cause Name</option>';
|
||||
foreach($query->getResult() as $row)
|
||||
{
|
||||
$output .= '<option value="'.$row->id.'">'.$row->cause_name.'</option>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
$output = '<option value="">Select Cause Name</option>';
|
||||
foreach($query->getResult() as $row)
|
||||
{
|
||||
$output .= '<option value="'.$row->id.'">'.$row->cause_name.'</option>';
|
||||
}
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
// protected $returnType = 'array';
|
||||
|
||||
@ -6,27 +6,23 @@ class Receipt_model extends Model
|
||||
{
|
||||
protected $table = 'receipts';
|
||||
protected $primaryKey = 'receipt_id';
|
||||
|
||||
protected $allowedFields = ['receipt_no', 'date','donor_id','amount', 'mode_of_receipt','receipt_details','cause_name', 'remarks'];
|
||||
|
||||
|
||||
|
||||
function all_receipt()
|
||||
{
|
||||
|
||||
$builder = $this->db->table('receipts');
|
||||
$result = $builder->get();
|
||||
$output = $result->getResultArray();
|
||||
return $output;
|
||||
}
|
||||
}
|
||||
|
||||
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) ");
|
||||
$output = $builder->getResultArray();
|
||||
|
||||
return $output;
|
||||
$output = $builder->getResultArray();
|
||||
return $output;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -37,7 +37,7 @@
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<table>
|
||||
<a href="<?= base_url() ?>/Dashboard/last_receipt">Edit</a>
|
||||
<a href="<?= base_url() ?>/Sendmail/Mail_to_donor">Edit</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -181,7 +181,7 @@ class CodeIgniter
|
||||
public function initialize()
|
||||
{
|
||||
// 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
|
||||
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