fix
This commit is contained in:
@@ -84,12 +84,16 @@ img {height: auto;}
|
||||
<td class="bodycopy"><h2>{{today_pending_signup}}</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="left" style="width:250px">Active Jobs<h5>People that completed the sign-up</h5></td>
|
||||
<td class="bodycopy"><h1>{{today_signup}}</h1></td>
|
||||
<td class="left" style="width:250px">Public Active Jobs<h5>Jobs total shown to public now</h5></td>
|
||||
<td class="bodycopy"><h1>{{total_active_public_jobs}}</h1></td>
|
||||
</tr>
|
||||
<tr class="trColor">
|
||||
<td class="left" style="width:250px">Expired Jobs<h5>People still in the process not completed</h5></td>
|
||||
<td class="bodycopy"><h2>{{today_pending_signup}}</h2></td>
|
||||
<td class="left" style="width:250px">Interest Contats<h5>Total Show of interest today</h5></td>
|
||||
<td class="bodycopy"><h2>{{total_task_interest}}</h2></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td class="left" style="width:250px">Session<h5>Session total created today</h5></td>
|
||||
<td class="bodycopy"><h1>{{total_login}}</h1></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!--[if (gte mso 9)|(IE)]>
|
||||
|
||||
@@ -97,13 +97,14 @@ long sitecrons_calls(CVars in, CVars &out) {
|
||||
}
|
||||
|
||||
long CronTracker(CVars in, CVars &out){
|
||||
long ret = PHP_API_BAD_PARAM;
|
||||
long ret = 0;
|
||||
const PGresult *res;
|
||||
try {
|
||||
REQ_STRING(in, "job_type", 2, 149, "(.*)");
|
||||
REQ_STRING(in, "description", 2, 149, "(.*)");
|
||||
|
||||
if ( load_db_record(out, "SELECT id AS cron_id FROM cron_jobs WHERE job_type ='%s' ", in["job_type"].c_str())> 0){
|
||||
if ( load_db_record(out, "SELECT id AS cron_id,active FROM cron_jobs WHERE job_type ='%s' ", in["job_type"].c_str())> 0){
|
||||
ret = out["active"].Long();
|
||||
res = pgsql_query("UPDATE cron_jobs SET updated=now() WHERE id = %lu", out["cron_id"].Long());
|
||||
}
|
||||
else{
|
||||
@@ -224,8 +225,10 @@ long SignUpStats(CVars in, CVars &out) {
|
||||
|
||||
load_db_record(out, "SELECT count(id) AS today_signup FROM members WHERE added::date = now()::date");
|
||||
load_db_record(out, "SELECT count(id) AS today_pending_signup FROM members_pending WHERE added::date = now()::date");
|
||||
|
||||
load_db_record(out, "SELECT TO_CHAR(NOW() :: DATE, 'Day Mon dd, yyyy') AS report_date");
|
||||
load_db_record(out, "SELECT count(*) AS total_task_interest FROM members_offer_interest WHERE added::date = now()::date");
|
||||
load_db_record(out, "SELECT count(id) AS total_active_public_jobs FROM members_jobs_offer WHERE status=1 AND public_view= 1 AND expire> now()");
|
||||
load_db_record(out, "SELECT count(*) AS total_login FROM members_session WHERE created::date=now()::date");
|
||||
|
||||
in = out;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user