mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-06-05 22:09:38 +02:00
Formattazione del codice
This commit is contained in:
@@ -91,7 +91,7 @@ switch (filter('op')) {
|
||||
} elseif ($password != $password_rep) {
|
||||
flash()->error(tr('Le password non coincidono'));
|
||||
} else {
|
||||
if ($dbo->query("INSERT INTO zz_users(idgruppo, username, password, idanagrafica, enabled, email) VALUES(".prepare($id_record).", ".prepare($username).", ".prepare(Auth::hashPassword($password)).", ".prepare($idanagrafica).", 1, ".prepare($email).")")) {
|
||||
if ($dbo->query('INSERT INTO zz_users(idgruppo, username, password, idanagrafica, enabled, email) VALUES('.prepare($id_record).', '.prepare($username).', '.prepare(Auth::hashPassword($password)).', '.prepare($idanagrafica).', 1, '.prepare($email).')')) {
|
||||
$dbo->query('INSERT INTO `zz_tokens` (`id_utente`, `token`) VALUES ('.prepare($dbo->lastInsertedID()).', '.prepare(secure_random_string()).')');
|
||||
|
||||
flash()->info(tr('Utente aggiunto!'));
|
||||
|
||||
@@ -7,11 +7,11 @@ switch ($resource) {
|
||||
$query = 'SELECT `an_anagrafiche`.`idanagrafica` AS id, `an_anagrafiche`.`ragione_sociale` AS "descrizione", `an_tipianagrafiche`.`descrizione` AS optgroup FROM `an_tipianagrafiche` INNER JOIN `an_tipianagrafiche_anagrafiche` ON `an_tipianagrafiche`.`idtipoanagrafica`=`an_tipianagrafiche_anagrafiche`.`idtipoanagrafica` INNER JOIN `an_anagrafiche` ON `an_anagrafiche`.`idanagrafica`=`an_tipianagrafiche_anagrafiche`.`idanagrafica` |where| ORDER BY `optgroup` ASC';
|
||||
|
||||
$where[] = 'an_anagrafiche.deleted_at IS NULL';
|
||||
|
||||
foreach ($elements as $element) {
|
||||
$filter[] = 'an_anagrafiche.idanagrafica='.prepare($element);
|
||||
}
|
||||
|
||||
|
||||
foreach ($elements as $element) {
|
||||
$filter[] = 'an_anagrafiche.idanagrafica='.prepare($element);
|
||||
}
|
||||
|
||||
if (!empty($search)) {
|
||||
$search_fields[] = 'an_anagrafiche.ragione_sociale LIKE '.prepare('%'.$search.'%');
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ if (!empty($anagrafica)) {
|
||||
|
||||
echo '
|
||||
|
||||
<a class="btn btn-info col-md-4 tip '.((!empty(Modules::get('Utenti e permessi'))) ? '' : 'disabled' ).'" data-href="'.$rootdir.'/modules/'.Modules::get('Utenti e permessi')['directory'].'/user.php" data-toggle="modal" data-title="Cambia password">
|
||||
<a class="btn btn-info col-md-4 tip '.((!empty(Modules::get('Utenti e permessi'))) ? '' : 'disabled').'" data-href="'.$rootdir.'/modules/'.Modules::get('Utenti e permessi')['directory'].'/user.php" data-toggle="modal" data-title="Cambia password">
|
||||
<i class="fa fa-unlock-alt"></i> '.tr('Cambia password').'
|
||||
</a>
|
||||
</div>';
|
||||
|
||||
@@ -71,7 +71,6 @@ if (!$self_edit) {
|
||||
{[ "type": "text", "label": "'.tr('Email').'", "name": "email", "required": 0, "value": "'.$email.'" ]}
|
||||
</div>
|
||||
</div>';
|
||||
|
||||
} else {
|
||||
echo '
|
||||
<input type="hidden" id="username" name="username" value="'.$username.'">
|
||||
|
||||
Reference in New Issue
Block a user