gwm
This commit is contained in:
parent
6e53f1fc79
commit
d0b8c7ed06
@ -76,7 +76,7 @@ class Donor_controller extends BaseController
|
|||||||
'password_confirm' =>'matches[password]',
|
'password_confirm' =>'matches[password]',
|
||||||
'userfile' => [
|
'userfile' => [
|
||||||
'uploaded[userfile]',
|
'uploaded[userfile]',
|
||||||
'mime_in[userfile,image/jpg,image/png]',
|
'mime_in[userfile,image/jpg,image/png,image/jpeg]',
|
||||||
'max_size[userfile,1000]',
|
'max_size[userfile,1000]',
|
||||||
],
|
],
|
||||||
|
|
||||||
@ -104,19 +104,19 @@ class Donor_controller extends BaseController
|
|||||||
foreach($city_name as $key){ $key['city_name']; }
|
foreach($city_name as $key){ $key['city_name']; }
|
||||||
$city=$key['city_name'];
|
$city=$key['city_name'];
|
||||||
|
|
||||||
//$path="public/assets/uploads";
|
$path="public/assets/uploads";
|
||||||
if($img = $this->request->getFile('userfile'))
|
if($img = $this->request->getFile('userfile'))
|
||||||
{
|
{
|
||||||
if ($img->isValid() && ! $img->hasMoved())
|
if ($img->isValid() && ! $img->hasMoved())
|
||||||
{
|
{
|
||||||
$path = $_FILES['image']['name'];
|
//$newName = $img->getRandomName();
|
||||||
$ext = pathinfo($path, PATHINFO_EXTENSION);
|
$f_type=date('Y-m-d').time().$_FILES['userfile']['name'];
|
||||||
|
$img->move($path, $f_type);
|
||||||
// $newName = $img->getRandomName();
|
$signature="public/assets/uploads/".$f_type;
|
||||||
// $img->move($path, $newName);
|
|
||||||
// $signature="public/assets/uploads/".$newName;
|
|
||||||
}
|
}
|
||||||
}print_r($ext);die();
|
}
|
||||||
|
|
||||||
|
|
||||||
//store the donor in database
|
//store the donor in database
|
||||||
$model = new Donor_model();
|
$model = new Donor_model();
|
||||||
$donorData=[
|
$donorData=[
|
||||||
@ -137,7 +137,7 @@ class Donor_controller extends BaseController
|
|||||||
'password' =>$this->request->getVar('password'),
|
'password' =>$this->request->getVar('password'),
|
||||||
'signature' =>$signature,
|
'signature' =>$signature,
|
||||||
];
|
];
|
||||||
print_r($donorData);die();
|
//print_r($donorData);die();
|
||||||
$model->save($donorData);
|
$model->save($donorData);
|
||||||
$session = session();
|
$session = session();
|
||||||
$session ->setFlashdata('success','Successful Registration');
|
$session ->setFlashdata('success','Successful Registration');
|
||||||
|
|||||||
@ -186,7 +186,7 @@ Discription of Donation :
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
Authorized Signature : <img src="<?=base_url()?>/<?=$admindata['signature']?>.png" width="170" height="36">
|
Authorized Signature : <img src="<?=base_url()?>/<?=$admindata['signature']?>" width="170" height="36">
|
||||||
</br></br>
|
</br></br>
|
||||||
<center class="mailfont">"Thank You For Your Donation"</center>
|
<center class="mailfont">"Thank You For Your Donation"</center>
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
@ -58,6 +58,7 @@
|
|||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
.invoice-box {
|
.invoice-box {
|
||||||
max-width: 800px;
|
max-width: 800px;
|
||||||
margin: auto;
|
margin: auto;
|
||||||
@ -69,7 +70,7 @@
|
|||||||
font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
|
font-family: 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif;
|
||||||
color: #555;
|
color: #555;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.donation {
|
.donation {
|
||||||
@ -362,7 +363,8 @@ $number = $receipt['amount'];
|
|||||||
|
|
||||||
Discription of Donation :
|
Discription of Donation :
|
||||||
<input type="text" class="cause" value="<?= $causedata['cause_name']; ?>" readonly></br></br></br>
|
<input type="text" class="cause" value="<?= $causedata['cause_name']; ?>" readonly></br></br></br>
|
||||||
Authorized Signature : <img src="<?=base_url()?>/<?=$admindata['signature']?>.png" alt="Girl in a jacket" width="200" height="40">
|
Authorized Signature : <img src="<?=base_url()?>/<?=$admindata['signature']?>" width="200" height="40">
|
||||||
|
|
||||||
</br></br>
|
</br></br>
|
||||||
<center class="mailfont">"Thank You For Your Donation"</center>
|
<center class="mailfont">"Thank You For Your Donation"</center>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -181,6 +181,7 @@ return false;
|
|||||||
<form class="login100-form validate-form" method="post" action="<?= base_url()."/signup"; ?>" enctype="multipart/form-data">
|
<form class="login100-form validate-form" method="post" action="<?= base_url()."/signup"; ?>" enctype="multipart/form-data">
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<label for="label-name" class="col-md-2 col-form-label" style="color: white;">Enter your name :</label>
|
<label for="label-name" class="col-md-2 col-form-label" style="color: white;">Enter your name :</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="wrap-input100 validate-input" data-validate = "User Name">
|
<div class="wrap-input100 validate-input" data-validate = "User Name">
|
||||||
@ -221,7 +222,7 @@ return false;
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<label for="label-panno" class="col-md-2 col-form-panno" style="color: white;">Pan Number :</label>
|
<label for="label-panno" class="col-md-2 col-form-panno" style="color: white;">PAN Number :</label>
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
<div class="wrap-input100 validate-input" data-validate="panno">
|
<div class="wrap-input100 validate-input" data-validate="panno">
|
||||||
<input class="input100" type="text" name="pan" id="pan" value="<?= set_value('pan') ?>" >
|
<input class="input100" type="text" name="pan" id="pan" value="<?= set_value('pan') ?>" >
|
||||||
@ -331,7 +332,7 @@ return false;
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="container-login100-form-btn">
|
<div class="container-login100-form-btn">
|
||||||
<button class="login100-form-btn">
|
<button type="submit" class="login100-form-btn">
|
||||||
Register
|
Register
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
__ci_last_regenerate|i:1609895816;_ci_previous_url|s:37:"http://localhost/donation/all_receipt";logged_user|s:1:"3";
|
__ci_last_regenerate|i:1609896273;_ci_previous_url|s:37:"http://localhost/donation/all_receipt";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1610081053;_ci_previous_url|s:32:"http://localhost/donation/signup";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1609896274;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1609937353;_ci_previous_url|s:32:"http://localhost/donation/signup";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1610022254;logged_user|s:1:"3";_ci_previous_url|s:37:"http://localhost/donation/all_receipt";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1610001100;_ci_previous_url|s:32:"http://localhost/donation/signup";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1610004241;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1610004241;_ci_previous_url|s:40:"http://localhost/donation/view_receipt/6";logged_user|s:1:"3";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1610081417;_ci_previous_url|s:32:"http://localhost/donation/signup";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1610003847;_ci_previous_url|s:32:"http://localhost/donation/signup";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1610022255;_ci_previous_url|s:26:"http://localhost/donation/";
|
||||||
@ -0,0 +1 @@
|
|||||||
|
__ci_last_regenerate|i:1610081417;_ci_previous_url|s:32:"http://localhost/donation/signup";
|
||||||
Loading…
Reference in New Issue
Block a user