Beispiel #1
0
<?php

//cid.php v5.0.0
setlocale(LC_ALL, 'ru_RU');
require_once 'config.php';
require_once OLIB_PATH . '/class.ad.php';
require_once OLIB_PATH . '/class.session.php';
require_once 'lib5.php';
$tpl =& initFastTemplate();
$tpl->define(array('pc_table' => 'body.pc.table_head.tpl'));
$ses = new Session(TRUE);
$tpl->assign('MESSAGE', $ses->msg());
if (isset($_GET['sort'])) {
    $sort = $_GET['sort'];
} else {
    $sort = 'cn';
}
$tpl->parse('TABLE_TEXT', 'pc_table');
$users = new Request5();
$users->findBy();
$users->findBy('cid <> 0 and rid<=109975 and rid>=109514');
$users->_execute();
$users->tplTableInner('TABLE_TEXT', array('rid', 'cid', 'curator'), array(false, false, false), array(false, false, false));
$tpl->parse('BODY', 'table');
$tpl->parse('PAGE', 'page');
$tpl->FastPrint();
Beispiel #2
0
<?php

//cid.php v5.0.0
setlocale(LC_ALL, 'ru_RU');
require_once 'config.php';
require_once OLIB_PATH . '/class.ad.php';
require_once OLIB_PATH . '/class.session.php';
require_once 'lib5.php';
$tpl =& initFastTemplate();
$tpl->define(array('pc_table' => 'body.pc.table_head.tpl'));
$ses = new Session(TRUE);
$tpl->assign('MESSAGE', $ses->msg());
if (isset($_GET['sort'])) {
    $sort = $_GET['sort'];
} else {
    $sort = 'cn';
}
$tpl->parse('TABLE_TEXT', 'pc_table');
$users = new Request5();
$users->findBy();
$users->findBy('pid = 0');
$users->range(mktime(0, 0, 0, 2, 1, 2014), 86400 * 31);
//$users->findBy('saprname="Korzhov_OV"');
$users->_execute();
echo $users->count;
$tpl->parse('BODY', 'table');
$tpl->parse('PAGE', 'page');
$tpl->FastPrint();
Beispiel #3
0
                    if (!$groupWebAdmin->isMember($ses->login())) {
                        $active->where('saprname=\'' . $ses->login() . '\'');
                    }
                    $active->retriveActiveTasks();
                    $active->tplTableInner('TASKS_LIST', array('rid', 'time', 'username', 'time2', 'saprname', 'done', 'username2', 'result'), array(false, 'pid', 'username', false, 'saprname', false, 'username2', false), array(false, '?pid=', 'person.php?tab=', false, 'person.php?tab=', false, 'person.php?tab=', false));
                    $tpl->parse('BODY', 'detales');
                } else {
                    $tpl->parse('TABLE_HEADER', 'header1');
                    $reqActions->tplTableInner('CALLS_LIST', array('rid', 'time', 'username', 'time2', 'saprname', 'done', 'username2', 'result', 'ORIG_TEXT'), array(false, false, 'username', false, 'saprname', false, 'username2', false, false), array(false, false, 'person.php?tab=', false, 'person.php?tab=', false, 'person.php?tab=', false, false));
                    $tpl->assign(array('RID' => $rid, 'URL' => '?action=save', 'TARGET' => person($reqRoot->targetname[0]), 'TARGETNAME' => $reqRoot->targetname[0], 'PC' => $reqRoot->pcname[0], 'CURATOR' => person($reqRoot->curator[0]), 'SAPRNAME' => person($reqRoot->saprname[0]), 'TEXT' => nl2br(htmlspecialchars($reqRoot->text[0])), 'TIME' => $reqRoot->_timeToString($reqRoot->time[0]), 'ACTION' => $reqRoot->_actionToString($reqRoot->action[0]), 'CREATOR' => person($reqRoot->username[0]), 'DONE' => $reqRoot->_timeToString($reqRoot->done[0]), 'USERNAME2' => person($reqRoot->username2[0]), 'TIME2' => $reqRoot->_timeToString($reqRoot->time2[0]), 'RESULT' => $reqRoot->_actionToString($reqRoot->result[0]), 'COMMENT' => nl2br(htmlspecialchars($reqRoot->comment[0]))));
                    if (strlen($reqRoot->file[0])) {
                        $reqActions->tplLink('FILE', $reqRoot->file[0], '/files/' . $reqRoot->file[0]);
                    }
                    if ($groupWebAdmin->isMember($ses->login()) || $reqRoot->curator[0] == $ses->login()) {
                        $tpl->parse('REQ_BUTTONS', 'closed_undo');
                        $active = new Request5();
                        $active->orderBy('saprname');
                        if (!$groupWebAdmin->isMember($ses->login())) {
                            $active->where('saprname=\'' . $ses->login() . '\'');
                        }
                        $active->retriveActiveTasks();
                        $active->tplTableInner('TASKS_LIST', array('rid', 'time', 'username', 'time2', 'saprname', 'done', 'username2', 'result'), array(false, 'pid', 'username', false, 'saprname', false, 'username2', false), array(false, '?pid=', 'person.php?tab=', false, 'person.php?tab=', false, 'person.php?tab=', false));
                    } else {
                        $tpl->parse('REQ_BUTTONS', 'closed_comm');
                    }
                    $tpl->parse('BODY', 'forusers');
                }
            }
    }
}
$tpl->parse('PAGE', "page");