merge to local
This commit is contained in:
Hesabix 2023-11-07 08:16:53 -05:00
commit 571d7bb7bf
4 changed files with 32 additions and 7 deletions

View file

@ -83,6 +83,8 @@ class PersonsController extends AbstractController
$person->setNikename($params['nikename']); $person->setNikename($params['nikename']);
if(array_key_exists('name',$params)) if(array_key_exists('name',$params))
$person->setName($params['name']); $person->setName($params['name']);
if(array_key_exists('birthday',$params))
$person->setBirthday($params['birthday']);
if(array_key_exists('tel',$params)) if(array_key_exists('tel',$params))
$person->setTel($params['tel']); $person->setTel($params['tel']);
if(array_key_exists('address',$params)) if(array_key_exists('address',$params))

View file

@ -107,6 +107,9 @@ class Person
#[ORM\OneToMany(mappedBy: 'Person', targetEntity: StoreroomTicket::class)] #[ORM\OneToMany(mappedBy: 'Person', targetEntity: StoreroomTicket::class)]
private Collection $storeroomTickets; private Collection $storeroomTickets;
#[ORM\Column(length: 255, nullable: true)]
private ?string $birthday = null;
public function __construct() public function __construct()
{ {
$this->hesabdariRows = new ArrayCollection(); $this->hesabdariRows = new ArrayCollection();
@ -527,4 +530,16 @@ class Person
return $this; return $this;
} }
public function getBirthday(): ?string
{
return $this->birthday;
}
public function setBirthday(?string $birthday): static
{
$this->birthday = $birthday;
return $this;
}
} }

View file

@ -27,6 +27,8 @@
<!-- END Stylesheets --> <!-- END Stylesheets -->
<!--===== Custom Font css =====--> <!--===== Custom Font css =====-->
<link href="{{ asset('/assets/css/custom-fonts.css') }}" rel="stylesheet"/> <link href="{{ asset('/assets/css/custom-fonts.css') }}" rel="stylesheet"/>
<!-- Place this tag in your head or just before your close body tag. -->
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head> </head>
<body> <body>
<div id="page-container"> <div id="page-container">
@ -244,8 +246,8 @@
<script src="https://www.zarinpal.com/webservice/TrustCode" type="text/javascript"></script> <script src="https://www.zarinpal.com/webservice/TrustCode" type="text/javascript"></script>
</div> </div>
<div class="col"> <div class="col">
<img alt="نماد اعتماد الکترونیکی" src="/img/enamad-logo.png" class="img-thumbnail" style="max-height: 120px;"> <!-- Place this tag where you want the button to render. -->
</div> <a class="github-button" href="https://github.com/morrning/hesabixUi" data-size="large" aria-label="Star morrning/hesabixUi on GitHub">مخزن کد‌های حسابیکس</a> </div>
</div> </div>
</div> </div>
</div> </div>

View file

@ -1,10 +1,16 @@
<?php <?php
$http_origin = $_SERVER['HTTP_ORIGIN']; $http_origin = false;
if(isset($_SERVER['HTTP_ORIGIN']))
if ($http_origin == "https://app.hesabix.ir" || $http_origin == "http://insider.hesabix.ir") $http_origin = $_SERVER['HTTP_ORIGIN'];
{ elseif(isset($_SERVER['HTTP_ORIGIN']))
header("Access-Control-Allow-Origin: $http_origin"); $http_origin = $_SERVER['HTTP_REFERER'];
if($http_origin){
if ($http_origin == "https://app.hesabix.ir" || $http_origin == "http://insider.hesabix.ir" || $http_origin == "http://localhost")
{
header("Access-Control-Allow-Origin: $http_origin");
}
} }
header("Access-Control-Allow-Headers: *"); header("Access-Control-Allow-Headers: *");
header("Access-Control-Allow-Methods: *"); header("Access-Control-Allow-Methods: *");
header("Allow: GET, POST, OPTIONS, PUT, DELETE"); header("Allow: GET, POST, OPTIONS, PUT, DELETE");