|
9 | 9 | <h3><?php echo erTranslationClassLhTranslation::getInstance()->getTranslation('lhcphpresquetheme/admin','Statistic')?></h3> |
10 | 10 | <ul> |
11 | 11 | <li><a href="<?=erLhcoreClassDesign::baseurl('lhcphpresque/options')?>">Options</a></li> |
| 12 | + |
| 13 | + <?php |
| 14 | + try { |
| 15 | + $db = ezcDbInstance::get(); |
| 16 | + $stmt = $db->prepare('SELECT count(`chat_id`) FROM lhc_lheschat_index WHERE status = 0'); |
| 17 | + $stmt->execute(); |
| 18 | + $records = $stmt->fetchColumn(); |
| 19 | + echo "<li>Chats pending to index - " . $records . "</li>"; |
| 20 | + } catch (Exception $e) { |
| 21 | + |
| 22 | + } |
| 23 | + ?> |
| 24 | + |
| 25 | + <?php |
| 26 | + try { |
| 27 | + $db = ezcDbInstance::get(); |
| 28 | + $stmt = $db->prepare('SELECT count(`chat_id`) FROM lhc_lheschat_index WHERE status = 1'); |
| 29 | + $stmt->execute(); |
| 30 | + $records = $stmt->fetchColumn(); |
| 31 | + echo "<li>Chats index in progress - " . $records . "</li>"; |
| 32 | + } catch (Exception $e) { |
| 33 | + |
| 34 | + } |
| 35 | + ?> |
| 36 | + |
| 37 | + <?php |
| 38 | + try { |
| 39 | + $db = ezcDbInstance::get(); |
| 40 | + $stmt = $db->prepare('SELECT count(`mail_id`) FROM lhc_lhesmail_index WHERE status = 0 AND op = 1'); |
| 41 | + $stmt->execute(); |
| 42 | + $records = $stmt->fetchColumn(); |
| 43 | + echo "<li>Conversations to index - " . $records . "</li>"; |
| 44 | + } catch (Exception $e) { |
| 45 | + |
| 46 | + } |
| 47 | + ?> |
| 48 | + |
| 49 | + |
| 50 | + <?php |
| 51 | + try { |
| 52 | + $db = ezcDbInstance::get(); |
| 53 | + $stmt = $db->prepare('SELECT count(`mail_id`) FROM lhc_lhesmail_index WHERE status = 1 AND op = 1'); |
| 54 | + $stmt->execute(); |
| 55 | + $records = $stmt->fetchColumn(); |
| 56 | + echo "<li>Conversations index in progress - " . $records . "</li>"; |
| 57 | + } catch (Exception $e) { |
| 58 | + |
| 59 | + } |
| 60 | + ?> |
| 61 | + |
| 62 | + |
| 63 | + <?php |
| 64 | + try { |
| 65 | + $db = ezcDbInstance::get(); |
| 66 | + $stmt = $db->prepare('SELECT count(`mail_id`) FROM lhc_lhesmail_index WHERE status = 0 AND op = 0'); |
| 67 | + $stmt->execute(); |
| 68 | + $records = $stmt->fetchColumn(); |
| 69 | + echo "<li>Mails to index - " . $records . "</li>"; |
| 70 | + } catch (Exception $e) { |
| 71 | + |
| 72 | + } |
| 73 | + ?> |
| 74 | + |
| 75 | + <?php |
| 76 | + try { |
| 77 | + $db = ezcDbInstance::get(); |
| 78 | + $stmt = $db->prepare('SELECT count(`mail_id`) FROM lhc_lhesmail_index WHERE status = 1 AND op = 0'); |
| 79 | + $stmt->execute(); |
| 80 | + $records = $stmt->fetchColumn(); |
| 81 | + echo "<li>Mails index progress - " . $records . "</li>"; |
| 82 | + } catch (Exception $e) { |
| 83 | + |
| 84 | + } |
| 85 | + ?> |
| 86 | + |
12 | 87 | </ul> |
13 | 88 | <div class="row"> |
14 | 89 | <div class="col-sm-4"> |
|
0 commit comments