order app help

This commit is contained in:
CHIEFSOFT\ameye
2024-02-03 08:43:10 -05:00
parent 4541d07768
commit ea9b7d017e
3 changed files with 19 additions and 1 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ wrenchboard=> SELECT * FROM help_items WHERE status=1 ORDER BY lorder ASC;
const PGresult *res;
res = pgsql_query("SELECT * FROM help_items WHERE status=1 ORDER BY lorder ASC");
res = pgsql_query("SELECT * FROM help_items WHERE status=1 ORDER BY id ASC");
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);
+12
View File
@@ -1797,6 +1797,18 @@ long WrenchJobsGroupList(CVars in, CVars &out) {
}
}
/*
wrenchboard=> SELECT group_id,count(id) FROM members_job_groupmember WHERE member_id = 1 GROUP BY group_id;
group_id | count
----------+-------
10 | 1
1 | 1
4 | 1
(3 rows)
wrenchboard=>
*/
ret = PHP_API_OK;
} catch (bad_parameter) {
@@ -88,7 +88,13 @@ long WrenchHomeBanners(CVars in, CVars &out) {
if( RecoReferAFreind( itm_count, in, out ) != PHP_API_BAD_PARAM ) { itm_count++; }
out["home_dash_type"]="DEFAULT_HOME_DASH";
/*
DEFAULT_HOME_DASH
FAMILY_PARENT_DASH
WORKER_HOME_DASH
JOBOWNER_HOME_DASH
*/
//
// snprintf(vname, sizeof (vname), "button_text_%05d", ic);
// out[vname] = "Continue";