Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
app-monitorul-oficial
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
romania-libera
app-monitorul-oficial
Commits
1726d487
Commit
1726d487
authored
Mar 10, 2019
by
Munteanu Petrisor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add register page
parent
1859d25e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
173 additions
and
0 deletions
+173
-0
routes.php
src/routes.php
+10
-0
inregistrare.phtml
templates/inregistrare.phtml
+163
-0
No files found.
src/routes.php
View file @
1726d487
...
...
@@ -186,6 +186,16 @@ $app->get('/autentificare', function ($request, $response, $args) {
})
->
setName
(
'autentificare'
);
$app
->
get
(
'/inregistrare'
,
function
(
$request
,
$response
,
$args
)
{
if
(
!
$this
->
session
->
exists
(
'user_id'
))
{
$args
[
"errors"
]
=
$this
->
flash
->
getMessages
();
return
$this
->
renderer
->
render
(
$response
,
'inregistrare.phtml'
,
$args
);
}
return
$response
->
withRedirect
(
$this
->
router
->
pathFor
(
'home'
),
303
);
})
->
setName
(
'inregistrare'
);
$app
->
post
(
'/autentificare'
,
function
(
$request
,
$response
,
$args
)
{
$api
=
new
API
(
$this
);
...
...
templates/inregistrare.phtml
0 → 100644
View file @
1726d487
<!DOCTYPE html>
<html
lang=
"ro-RO"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=UTF-8"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"
>
<title>
Anunturi mica publicitate - Anuțuri presa scrisă - Rofusion Advertising Srl
</title>
<link
href=
"css/materialize.css"
type=
"text/css"
rel=
"stylesheet"
>
<link
href=
"css/styleadd.css"
type=
"text/css"
rel=
"stylesheet"
>
<link
href=
"https://fonts.googleapis.com/icon?family=Material+Icons"
rel=
"stylesheet"
>
</head>
<body>
<div
class=
"navbar-fixed"
>
<nav
role=
"navigation"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"nav-wrapper"
>
<a
href=
"/"
class=
"brand-logo"
title=
"Anunturi mica publicitate"
><img
src=
"img/logo.svg"
alt=
"Anunturi mica publicitate"
></a>
</div>
</div>
</div>
</nav>
</div>
<div
class=
"section loginForm"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col s12"
>
<?php
if
(
!
empty
(
$errors
))
{
?>
<strong
class=
"error"
>
Date incorecte
</strong>
<?php
}
?>
<form
action=
"/inregistrare"
method=
"POST"
>
<div
class=
"col s6"
>
<div
class=
"card"
>
<div
class=
"card-content login-card-content"
>
<div
class=
"row"
>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Nume"
id=
"name"
name=
"name"
type=
"text"
/>
<label
for=
"name"
>
Nume
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Prenume"
id=
"surname"
name=
"surname"
type=
"text"
/>
<label
for=
"surname"
>
Prenume
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Adresa"
id=
"address"
name=
"address"
type=
"text"
/>
<label
for=
"address"
>
Adresa
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Telefon"
id=
"phone"
name=
"phone"
type=
"text"
/>
<label
for=
"phone"
>
Telefon
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"CNP"
id=
"cnp"
name=
"cnp"
type=
"text"
/>
<label
for=
"cnp"
>
CNP
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Email"
id=
"email"
name=
"email"
type=
"email"
/>
<label
for=
"email"
>
Email
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Parola"
name=
"password"
id=
"password"
type=
"password"
/>
<label
for=
"password"
>
Parola
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Parola"
name=
"confirm_password"
id=
"confirm_password"
type=
"password"
/>
<label
for=
"password"
>
Confirmare parola
</label>
</div>
</div>
</div>
</div>
</div>
<div
class=
"col s6"
>
<div
class=
"card"
>
<div
class=
"card-content login-card-content"
>
<div
class=
"row"
>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Denumire companie"
id=
"companyName"
name=
"companyName"
type=
"text"
/>
<label
for=
"companyName"
>
Denumire companie
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"C.U.I"
id=
"cui"
name=
"cui"
type=
"text"
/>
<label
for=
"cui"
>
C.U.I
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Nr.Reg.Com."
id=
"regCom"
name=
"regCom"
type=
"text"
/>
<label
for=
"regCom"
>
Nr.Reg.Com.
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Adresa companie"
id=
"comAddress"
name=
"comaddress"
type=
"text"
/>
<label
for=
"comAddress"
>
Adresa companie
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Cont bancar"
id=
"bankAccount"
name=
"bankAccount"
type=
"text"
/>
<label
for=
"bankAccount"
>
Cont bancar
</label>
</div>
<div
class=
"input-field col s12"
>
<input
placeholder=
"Banca"
id=
"bankName"
name=
"bankName"
type=
"text"
/>
<label
for=
"bankName"
>
Banca
</label>
</div>
</div>
</div>
</div>
</div>
<button
style=
"margin-top:20px;margin-left:10px"
class=
"btn waves-effect waves-light"
type=
"submit"
name=
"action"
>
Trimite
<i
class=
"material-icons right"
>
send
</i>
</button>
</form>
</div>
</div>
</div>
</div>
<footer
class=
"page-footer default_color scrollspy"
>
<div
class=
"container"
>
<div
class=
"row"
>
<div
class=
"col l6 s12"
>
<h5
class=
"white-text"
>
Rofusion Advertising Srl
</h5>
<p
class=
"white-text text-lighten-4"
>
Anunturi mica publicitate
<br>
Anuțuri presa scrisă
</p>
<ul>
<li><a
href=
"termeni-si-conditii-mica24.html"
class=
"white-text"
title=
"Termeni și Condiții"
>
Termeni
și Condiții
</a></li>
</ul>
</div>
<div
class=
"col l6 s12 right-align"
>
<h5
class=
"white-text"
id=
"contact"
>
Contact
</h5>
<ul
class=
"white-text"
>
<li>
Bd. Ion Mihalache nr. 140 S
<br>
Sector 1, București
</li>
<li>
Telefon
</li>
</ul>
</div>
</div>
</div>
<div
class=
"footer-copyright z-depth-1"
>
<div
class=
"container"
>
<b>
©
Rofusion Advertising Srl
</b>
<span
class=
"right"
>
dezvoltat de
<a
href=
"http://www.activemall.ro"
class=
"white-text"
target=
"_blank"
title=
"activemall.ro"
>
activemall.ro
</a></span>
</div>
</div>
</footer>
<script
src=
"https://code.jquery.com/jquery-2.1.1.min.js"
></script>
<script
src=
"js/materialize.js"
></script>
<script
src=
"js/modernizr.js"
></script>
</body>
</html>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment