Skip to content
Permalink
Browse files

Update search.inc.php

  • Loading branch information...
directman66 committed Mar 11, 2019
1 parent b57c9f8 commit 5ca47481e1a58789cc7d49b08b01da72ecf3a5da
Showing with 38 additions and 0 deletions.
  1. +38 −0 modules/camshoter/search.inc.php
@@ -46,12 +46,50 @@
if ($res[0]['ID']) {
colorizeArray($res);
$total=count($res);
debmes('total:'.$total, 'camshoter');
for($i=0;$i<$total;$i++) {
// some action for every record if required
}
$out['RESULT']=$res;
//debmes($res, 'camshoter');
/*
//$res2 = SQLSelect("select ID,NAME,ADMIN, (SELECT count(*) FROM tlg_user_cmd where CMD_ID='$id' and tlg_user_cmd.USER_ID=tlg_user.ID) as ACCESS_USER from tlg_user");
$sql="select ID,NAME,ADMIN ,(SELECT count(*) FROM camshoter_devices where ID='".$res[0]['ID']."' and TELEGRAMUSERS=tlg_user.ID ) as ACCESS_USER from tlg_user ";
debmes($sql, 'camshoter');
$res2 = SQLSelect($sql);
debmes($res2, 'camshoter');
if ($res[0]) {
$out['LIST_ACCESS'] = $res2;
}
$res = SQLSelect("SELECT * from camshoter_devices where ID='$id'");
if ($res[0]) {
$qs = array();
foreach ($res as $row) {
$qs[] = $row['TELEGRAMUSERS'];
}
$out['USER_ID'] = implode(',', $qs);
debmes(implode(',', $qs), 'camshoter');
}
*/
//////////////////////////
//////////////////////////

0 comments on commit 5ca4748

Please sign in to comment.
You can’t perform that action at this time.