Jump to content

Field nou in backend la adaugarea unui user nou


Archon

Recommended Posts

Buna ziua. As dori sa imi zica cineva prin ce fisiere trebuie sa modific ca sa imi adaug un camp nou (in cazul meu CNP) in formularul din backend cand adaugi un user nou. Am facut sa imi adaug cnp din registration din front end cand se inregistreaza orice user, imi apare in spate in lista aia mare cu toti useri (apare cnp-ul) dar nu reusesc sa adaug si la formularul din backend cand adaugi user din spate.

 

Stie cineva unde trebuie sa modific?

Link to comment
Share on other sites

in classes/employess.php

la declaratii pune si

public $cnp;

la functia getfields adauga si

$fields['cnp'] = pSQL($this->cnp);

 

in admin/tabs/AdminEmployees.php

la functia displayform pune si

<label>'.$this->l('CNP:').' </label>
<div class="margin-form">
 <input type="text" size="33" name="cnp" value="'.htmlentities($this->getFieldValue($obj, 'cnp'), ENT_COMPAT, 'UTF-8').'" /> <sup>*</sup>
</div>

 

si la final adauga campul CNP in baza de date

Edited by valentin.g (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...