Ejemplo n.º 1
0
echo $lang['requests_postedBy'];
?>
</th>
    <th>
      <?php 
$userInst = new user($requestInst->posterId);
echo $userInst->name;
?>
    </th>
  </tr><tr>
    <td class="list"><?php 
echo $lang['common_priority'];
?>
</td>
    <td class="<?php 
echo $requestInst->getPriorityStyle();
?>
"><?php 
echo $requestInst->getPriorityName();
?>
</td>
  </tr><tr>
    <td class="list"><?php 
echo $lang['common_type'];
?>
</td>
    <td class="<?php 
echo $requestInst->getTypeStyle();
?>
"><?php 
echo $requestInst->getTypeName();
Ejemplo n.º 2
0
    $projectInst = new project($requestInst->projectId);
    echo "<td>" . $projectInst->name . "</td>\n";
    echo "<td><a href=\"javascript:openwindow('" . $toolInst->encodeUrl("index.php?content=requestdetails.php&view=details&requestid=" . $element) . "',width='500',height='500')\" title=\"" . $lang['common_showDetailsForThisRequest'] . "\">" . $requestInst->subject . "</a></td>\n";
    echo "<td>";
    if ($requestInst->body) {
        echo substr($requestInst->body, 0, 100);
    }
    echo "&nbsp;</td>\n";
    echo "<td>\n";
    while ($r = current($requestInst->attachments)) {
        $attachment = new attachment($r);
        echo "<a href=\"" . tool::encodeUrl("fileget.php?created=" . $attachment->created . "&filename=" . $attachment->name) . "\" title=\"" . $lang['common_open'] . " " . $attachment->name . " " . $lang['common_inANewWindow'] . "\">" . $attachment->name . "</a><br>\n";
        next($requestInst->attachments);
    }
    echo "</td>\n";
    echo "<td><nobr class=" . $requestInst->getPriorityStyle() . ">" . $requestInst->getPriorityName() . "</td>\n";
    echo "<td><nobr class=" . $requestInst->getTypeStyle() . ">" . $requestInst->getTypeName() . "</td>\n";
    echo "<td align=center><input type=submit value=" . $lang['common_delete'] . " onclick=\"document.form1.id.value='" . $element . "';document.form1.action.value='delete';return Check()\"></td>\n";
    echo "<td align=center><input type=submit value=" . $lang['common_edit'] . " onclick=\"document.form1.id.value='" . $element . "';document.form1.action.value='edit'\"></td>\n";
    echo "</tr>\n";
    next($list);
    if ($style == "light") {
        $style = "dark";
    } else {
        $style = "light";
    }
}
?>

</table>
</form>
Ejemplo n.º 3
0
if ($loginInst->hasAccess("request")) {
    $requestInst = new request();
    $list = $requestInst->getList("priority", "DESC");
    if ($requestInst->matches > 0) {
        $count = 0;
        $boxInst = new box();
        $boxInst->setTitle($lang['home_unassignedRequests']);
        $boxInst->setWidth("300");
        $boxInst->setBgColor("#f8f8f8");
        $boxInst->addContent("<table border=0 cellpadding=2 cellspacing=0 width=100%>");
        $boxInst->addContent("<tr><th>" . $lang['common_priority'] . "</th><th>" . $lang['common_type'] . "</th><th>" . $lang['common_subject'] . "</th></tr>");
        while ($element = current($list)) {
            $requestInst->activate($element);
            $projectInst = new project($requestInst->projectId);
            if ($loginInst->id == $projectInst->managerId) {
                $boxInst->addContent("<tr><td valign=top class=" . $requestInst->getPriorityStyle() . ">" . $requestInst->getPriorityName() . "</td>");
                $boxInst->addContent("<td valign=top class=" . $requestInst->getTypeStyle() . ">" . $requestInst->getTypeName() . "</td>");
                $boxInst->addContent("<td class=list><a href=\"javascript:openwindow('" . $toolInst->encodeUrl("index.php?content=requestdetails.php&view=details&requestid=" . $element) . "',width='500',height='500')\" title=\"" . $lang['common_showDetailsForThisRequest'] . "\">");
                $boxInst->addContent(substr($projectInst->name . ": " . $requestInst->subject, 0, 50));
                $boxInst->addContent("...</a></td></tr>");
                $count++;
            }
            next($list);
        }
        $boxInst->addContent("</table>");
        if ($count == 0) {
            $boxInst->clearContent();
            $boxInst->addContent($lang['home_unassignedRequestsNoMatches']);
        }
        $boxInst->get();
    }