예제 #1
0
                    <li><a href="<?php 
        echo Tzn::concatUrl($pLink, 'show=next');
        ?>
"><?php 
        echo $arrLanguageMenu['next_queues'];
        ?>
</a></li>
                    <li><a href="<?php 
        echo Tzn::concatUrl($pLink, 'show=future');
        ?>
"><?php 
        echo $arrLanguageMenu['future_queues'];
        ?>
</a></li>
                    <li><a href="<?php 
        echo Tzn::concatUrl($pLink, 'show=past');
        ?>
"><?php 
        echo $arrLanguageMenu['past_queues'];
        ?>
</a></li>
                  </ul>
                </li>

        <?php 
    }
    ?>
    <?php 
}
?>
</li>
예제 #2
0
<?php

define('PRJ_DTE_NOW', strtotime(gmdate('Y-m-d', time() + Tzn::_getUserTZ())));
class lockElegibleTb extends TznDb
{
    function lockElegibleTb()
    {
        parent::TznDb('queue');
        $this->addProperties(array('status' => 'STR', 'testbed' => 'STR'));
    }
    function getElegibleTbList($tbName, $limit = NULL)
    {
        $sql = "SELECT " . " testbed, " . " status " . "FROM " . $this->gTable();
        return parent::loadList($sql, $limit);
    }
}
class TestbedLocked extends TznDb
{
    function TestbedLocked()
    {
        parent::TznDb('testbeds');
        $this->addProperties(array('testbedID' => 'UID', 'testbed' => 'STR', 'testbedFile' => 'STR', 'testbedFull' => 'STR', 'testbedType' => 'STR', 'lockStatus' => 'STR', 'timeLocked' => 'DTM', 'lockInitiatorID' => 'STR', 'username' => 'STR'));
    }
    function loadList($limit = NULL)
    {
        $sql = 'SELECT ' . 'testbedID,' . 'concat(testbed," (",testbedType,")") as testbedFull,' . 'testbed,' . 'concat(first, " ", last, "  (",  NTID, ")") as username,' . 'testbedType,' . 'lockStatus,' . 'timeLocked,' . 'lockInitiatorID,' . 'testbedFile FROM ' . $this->gTable() . ', users';
        return parent::loadList($sql, $limit);
    }
    function updateMulti($tbList, $initiatorID, $lockStatus)
    {
        if ($tbList != "") {
예제 #3
0
 function pSort($link, $param, $field, $style = '', $imgAsc = TZN_DB_ASC_OFF, $imgAscActive = TZN_DB_ASC_ON, $imgDesc = TZN_DB_DESC_OFF, $imgDescActive = TZN_DB_DESC_ON)
 {
     $begin = '<a href="' . $link;
     if (ereg('\\?', $link)) {
         $begin .= '&';
     } else {
         $begin .= '?';
     }
     $begin .= $param . '=';
     $end = '"';
     $end .= Tzn::_style($style);
     $end .= '>';
     if (ereg('^' . $field . ' ASC', $this->_sqlOrder)) {
         print '<img src="' . $imgAscActive . '">';
     } else {
         print $begin . $field . '+ASC' . $end . '<img src="' . $imgAsc . '" border="0"></a>';
     }
     if (ereg('^' . $field . ' DESC', $this->_sqlOrder)) {
         print '<img src="' . $imgDescActive . '">';
     } else {
         print $begin . $field . '+DESC' . $end . '<img src="' . $imgDesc . '" border="0"></a>';
     }
 }
예제 #4
0
                </li>
              <?php 
}
if (@constant('AAT_CONTEXT_ENABLE')) {
    $pLink = 'index.php?sType=' . urlencode($pType) . '&show=' . $pShow;
    ?>
				<li><a href="?"><?php 
    echo $arrLanguageMenu['all_contexts'];
    ?>
</a>
				  <ul>
				    <?php 
    foreach ($_GLOBALS['arrContexts'] as $key => $value) {
        ?>
					<li><a href="<?php 
        echo Tzn::concatUrl($pLink, 'sContext=' . $key);
        ?>
"><?php 
        echo $value;
        ?>
</a></li>
					<?php 
    }
    ?>
				  </ul>
				</li>
				<?php 
}
?>
                <li><a href="javascript:aat_rld()" accesskey="r"><?php 
echo $arrLanguageMenu['reload'];
예제 #5
0
 function redirect($url, $message = '')
 {
     if (@constant('TZN_TRANS_ID')) {
         if (!ereg(session_id(), $url)) {
             $url = Tzn::concatUrl($url, session_name() . '=' . session_id());
         }
     }
     if ($message) {
         $url = Tzn::concatUrl($url, 'tznMessage=' . urlencode($message));
     }
     header("Location: " . $url);
     exit;
 }