Go to the source code of this file.
Functions | |
| ShowDossier ($p_type, $p_first=0, $p_max=10, $p_Num=0) | |
| DbConnect ($p_db=-1, $p_type='dossier') | |
| connect to the database | |
| ExecSql ($p_connection, $p_string) | |
| send a sql string to the database | |
| GetAllUser () | |
| Return all the users as an array. | |
| GetUid ($p_uid) | |
| Check if the User is valid and return an array with his property. | |
| GetPriv ($p_dossier, $p_login) | |
| Get the privilege of an user on a folder. | |
| ExisteJnt ($p_dossier, $p_user) | |
| Get the number of rows from table jnt_use_dos where $p_dossier = dos_id and use_id=$p_user. | |
| ExistePriv ($p_jntid) | |
| GetJnt ($p_dossier, $p_user) | |
| GetDbId ($p_name) | |
| CountSql ($p_conn, $p_sql) | |
| GetDossierName ($p_dossier) | |
| GetSequence ($p_cn, $p_seq) | |
| get the current sequence | |
| NextSequence ($p_cn, $p_seq) | |
| get the current sequence | |
| StartSql ($p_cn) | |
| EndSql ($p_cn) | |
| Commit ($p_cn) | |
| Rollback ($p_cn) | |
| AlterSequence ($p_cn, $p_name, $p_value) | |
| GetLogin ($p_uid) | |
| SyncRight ($p_dossier, $p_user) | |
| Synchronize les droits par défaut avec les journaux existants. | |
| GetUserProperty ($p_cn, $p_user) | |
| Get the properties of an user it means theme, profile, admin... | |
| GetModeleId ($p_cn, $p_modname) | |
| Give the mod_id from modeledef. | |
| GetArray ($p_cn, $p_sql) | |
| purpose return the result of a sql statment in a array | |
| save_upload_document ($cn, $seq) | |
| Save a "piece justificative". | |
Definition in file postgres.php.
|
||||||||||||||||
|
Definition at line 269 of file postgres.php. |
|
|
Definition at line 263 of file postgres.php. References $Res, and ExecSql(). Referenced by Centralise(), Document_modele::Delete(), Document::Generate(), Invoice::Get(), Document_modele::Get(), Document::Get(), ImportCSV(), fiche::insert(), RecordInvoice(), RecordSell(), Document_modele::Save(), Document::SaveGenerated(), TransferCSV(), and Document::Upload(). |
|
||||||||||||
|
Definition at line 222 of file postgres.php. References ExecSql(). Referenced by cl_user::AccessJrn(), AddFiche(), cl_user::Admin(), CheckDossier(), CheckIsAdmin(), CheckJrn(), DeleteRapt(), form_verify_input(), FormODS(), FormVenteView(), GetParent(), GetRappel(), fiche_def::HasAttribute(), fiche::insert(), InsertRapt(), ListJrn(), action::myList(), NextJrn(), Remove(), ShowDossier(), fiche::update(), UpdateFiche(), and ViewFiche(). |
|
||||||||||||
|
connect to the database
Definition at line 72 of file postgres.php. References $a, and echo_debug(). Referenced by cl_user::Admin(), cl_user::Check(), CheckAction(), CheckDossier(), CheckIsAdmin(), CheckJrn(), cl_user::cl_user(), ExisteJnt(), ExistePriv(), GetAllUser(), GetAvailableFolder(), GetDbId(), GetDossierName(), GetFirstJrnIdForJrnType(), GetJnt(), GetJrnProp(), GetLogin(), GetNumberLine(), GetPosteLibelle(), GetPriv(), GetUid(), html_page_start(), ListJrn(), MenuJrn(), RecordJrn(), ShowDossier(), ShowMenuComptaForm(), ShowMenuFiche(), ShowMenuJrnUser(), SyncRight(), and ViewJrn(). |
|
|
Definition at line 260 of file postgres.php. References $Res, and ExecSql(). Referenced by Centralise(). |
|
||||||||||||
|
||||||||||||
|
Get the number of rows from table jnt_use_dos where $p_dossier = dos_id and use_id=$p_user.
Definition at line 168 of file postgres.php. References $cn, $Res, DbConnect(), and ExecSql(). |
|
|
Definition at line 179 of file postgres.php. References $cn, $Res, DbConnect(), and ExecSql(). |
|
|
Return all the users as an array.
Definition at line 117 of file postgres.php. References $cn, $Num, $Res, $sql, $User, DbConnect(), echo_debug(), and ExecSql(). |
|
||||||||||||
|
purpose return the result of a sql statment in a array
Definition at line 353 of file postgres.php. References $array, $r, echo_debug(), and ExecSql(). Referenced by FormAchInput(), and FormVenInput(). |
|
|
Definition at line 201 of file postgres.php. References $cn, $num, DbConnect(), and ExecSql(). |
|
|
Definition at line 232 of file postgres.php. References $cn, $r, $Ret, DbConnect(), and ExecSql(). |
|
||||||||||||
|
Definition at line 190 of file postgres.php. References $cn, $Res, DbConnect(), and ExecSql(). |
|
|
Definition at line 273 of file postgres.php. References $cn, $Res, DbConnect(), and ExecSql(). |
|
||||||||||||
|
Give the mod_id from modeledef.
Definition at line 340 of file postgres.php. |
|
||||||||||||
|
Get the privilege of an user on a folder.
Definition at line 147 of file postgres.php. References $cn, $i, $Num, $Res, DbConnect(), echo_debug(), and ExecSql(). Referenced by SyncRight(). |
|
||||||||||||
|
get the current sequence
Definition at line 242 of file postgres.php. References $Res, $seq, and ExecSql(). Referenced by AddFiche(), AddForm(), AddModele(), InsertJrn(), InsertJrnx(), Document::SaveGenerated(), and action::SaveStage2(). |
|
|
Check if the User is valid and return an array with his property.
Definition at line 134 of file postgres.php. References $cn, $Num, $Res, DbConnect(), and ExecSql(). |
|
||||||||||||
|
Get the properties of an user it means theme, profile, admin...
Definition at line 315 of file postgres.php. |
|
||||||||||||
|
get the current sequence
Definition at line 251 of file postgres.php. References $Res, $seq, and ExecSql(). Referenced by Document::Generate(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Document_modele::Save(), SetInternalCode(), and TransferCSV(). |
|
|
Definition at line 266 of file postgres.php. References $Res, and ExecSql(). Referenced by ExecuteScript(), RecordFin(), RecordInvoice(), RecordSell(), Invoice::Save(), Document_modele::Save(), save_upload_document(), Document::SaveGenerated(), TransferCSV(), and Document::Upload(). |
|
||||||||||||
|
Save a "piece justificative". save_upload_document
Definition at line 368 of file postgres.php. References $old_oid, $r, $ret, echo_debug(), echo_error(), ExecSql(), exit, name, and Rollback(). Referenced by RecordInvoice(), and RecordSell(). |
|
||||||||||||||||||||
|
Definition at line 32 of file postgres.php. References $_SESSION, $cn, $Max, $row, CountSql(), DbConnect(), echo_debug(), and ExecSql(). |
|
|
Definition at line 257 of file postgres.php. References $Res, and ExecSql(). Referenced by Centralise(), Document_modele::Delete(), Document::Generate(), Invoice::Get(), Document_modele::Get(), Document::Get(), ImportCSV(), fiche::insert(), RecordFin(), RecordInvoice(), RecordODS(), RecordSell(), Invoice::Save(), Document_modele::Save(), Document::SaveGenerated(), TransferCSV(), and Document::Upload(). |
|
||||||||||||
|
Synchronize les droits par défaut avec les journaux existants. SyncRight
Definition at line 289 of file postgres.php. References $cn, $priv, $Res, $right, $sql, DbConnect(), ExecSql(), and GetPriv(). |
1.4.4