goback(); $this->pageTitle = 'Triggers - '.$coin->symbol; $remote = new WalletRPC($coin); echo getAdminSideBarLinks().''; $info = $remote->getinfo(); if (!$info) { echo $remote->error; return; } echo getAdminWalletLinks($coin, $info, 'console').''; ////////////////////////////////////////////////////////////////////////////////////// echo << td.red { color: darkred; } table.dataGrid a.red { color: darkred; } .main-submit-button { cursor: pointer; } div.form { float: left; width: 450px; } div.help { float: left; color: #555; background-color: #ffffe0; padding: 6px; border: 1px solid #d0d0b0; margin-top: 32px; } .help ul { width: 10px; margin: 6px 4px; padding: 0; overflow:hidden; width:390px; -moz-column-count: 2; -webkit-column-count: 2; column-count: 2; } .help li { list-style-type: none; width: 140px; } .page .footer { width: auto; } end; showTableSorter('maintable', "{ tableClass: 'dataGrid', textExtraction: { 5: function(node, table, n) { return $(node).attr('data'); } }, widgets: ['zebra','Storage','saveSort'], widgetOptions: { saveSort: true } }"); echo << Type Condition Value Description Status Last check Operations end; $notifications = getdbolist('db_notifications', "idcoin={$coin->id}"); foreach($notifications as $rule) { if ($rule->enabled) $operations = 'disable'; else $operations = 'enable'; $operations .= ' delete'; if ($rule->lasttriggered && $rule->lasttriggered == $rule->lastchecked) { $status = 'Triggered'; $operations = 'reset'.' '.$operations; } else { $status = ''; } echo ''; echo ''.$rule->notifytype.''; echo ''.$rule->conditiontype.''; echo ''.$rule->conditionvalue.''; echo ''.$rule->description.''; echo ''.$status.''; echo ''.datetoa2($rule->lastchecked).''; echo ''.$operations.''; echo ""; } echo ''; echo << Type Email System command System command variables: \$X current value \$F condition db field \$T condition type \$V condition ref value \$SYM coin symbol \$S2 coin symbol2 \$N coin name end; ?>