Archon Posted August 10, 2012 Share Posted August 10, 2012 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 More sharing options...
valentin.g Posted August 17, 2012 Share Posted August 17, 2012 (edited) 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 August 17, 2012 by valentin.g (see edit history) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now