Exemplo n.º 1
0
        if ($platformticks != "") {
            $platformticks = $platformticks . ", ";
        }
        $platformticks .= "'" . mapPlatform($row[0]) . "'";
        if ($platformvalues != "") {
            $platformvalues = $platformvalues . ", ";
        }
        $platformvalues .= $row[1];
    }
}
mysql_free_result($result);
echo '</table>';
$cols2 = '<colgroup><col width="950"/></colgroup>';
echo '<table>' . $cols2 . '<tr><th>Group Details</th></tr>';
echo '<tr><td>';
show_search("", -1, true, "");
echo '</tr></td></table>';
$cols = '<colgroup><col width="220"/><col width="80"/><col width="120"/><col width="80"/><col width="80"/><col width="80"/><col width="160"/></colgroup>';
echo '<table>' . $cols;
echo "<tr><th>Name</th><th>Version</th><th>Status</th><th>Notify</th><th>Groups</th><th>Total Crashes</th><th>Actions</th></tr>";
echo '</table>';
echo "<form name='add_version' action='app_versions.php' method='get'>";
if (!$acceptallapps) {
    echo "<input type='hidden' name='bundleidentifier' value='" . $bundleidentifier . "'/>";
}
echo '<table>' . $cols;
echo "<tr align='center'><td>";
if ($acceptallapps) {
    echo "<input type='text' name='bundleidentifier' size='25' maxlength='50'/>";
} else {
    echo $bundleidentifier;
Exemplo n.º 2
0
        if (show_small_title()) {
            ?>
                    <div class="sub-nav-subtext"><?php 
            echo get_the_title($post->post_parent);
            ?>
</div>
                  <?php 
        }
        ?>
                </div>
              </div>
        <?php 
    }
    ?>
        <?php 
    if (!show_search() && !show_small_title()) {
        ?>
              <div class="no-sub-nav"></div>
        <?php 
    }
    ?>
        <?php 
    if (show_header()) {
        ?>
            </nav>
        <?php 
    }
    ?>
      <?php 
    if (show_nav_container()) {
        ?>
Exemplo n.º 3
0
if ($groupid != "") {
    $query = "SELECT pattern FROM " . $dbgrouptable . " WHERE id = " . $groupid;
    $result = mysql_query($query) or die(end_with_result('Error in SQL ' . $query));
    $numrows = mysql_num_rows($result);
    if ($numrows == 1) {
        $row = mysql_fetch_row($result);
        echo create_link($row[0], 'crashes.php', false, $pagelink) . '</h2>';
    } else {
        echo create_link('Crashes', 'crashes.php', false, $pagelink) . '</h2>';
    }
    mysql_free_result($result);
} else {
    echo create_link('Crashes', 'crashes.php', false, $pagelink) . '</h2>';
}
if ($search != "" || $type != "") {
    show_search($search, $type);
}
if ($groupid != '') {
    $cols2 = '<colgroup><col width="280"/><col width="500"/><col width="190"/></colgroup>';
    $query = "SELECT fix, description FROM " . $dbgrouptable . " WHERE id = '" . $groupid . "'";
    $result = mysql_query($query) or die(end_with_result('Error in SQL ' . $query));
    $numrows = mysql_num_rows($result);
    if ($numrows > 0) {
        // get the status
        while ($row = mysql_fetch_row($result)) {
            $fix = $row[0];
            $description = $row[1];
            echo '<form name="search" action="crashes.php" method="get">';
            echo '<input type="hidden" name="bundleidentifier" value="' . $bundleidentifier . '"/>';
            echo '<input type="hidden" name="groupid" value="' . $groupid . '"/>';
            if ($search != "") {
Exemplo n.º 4
0
            ?>
">
                                <td width="46" align="center"><?php 
            echo $i + 1;
            ?>
</td>
                                <td width="120" align="center"><?php 
            echo $icdcode;
            ?>
</td>
                                <td width="309" align="left"> &nbsp;<?php 
            echo show_search($keyword, $icdname);
            ?>
</td>
                                <td width="265" align="left" ><?php 
            echo show_search($keyword, $icdtname);
            ?>
</td>
                              </tr>
                              <?php 
            $i++;
        }
        //while
        ?>
                            </table>
                            <!-- end table show data -->
                        </td>
                      </tr>
                      <tr>
                        <td align="right" valign="bottom" bgcolor="#3399CC"><div align="left"><img src="img_mian/c_l_left.gif" width="8" height="16"></div></td>
                        <td background="img_mian/bgcolor2.gif" bgcolor="#3399CC">&nbsp;</td>
Exemplo n.º 5
0
            $platformticks = $platformticks . ", ";
        }
        $platformticks .= "'" . $row[0] . "'";
        if ($platformvalues != "") {
            $platformvalues = $platformvalues . ", ";
        }
        $platformvalues .= $row[1];
    }
}
mysql_free_result($result);
echo '</table>';
// START Group Deta
$cols2 = '<colgroup><col width="780"/><col width="180"/></colgroup>';
echo '<table>' . $cols2 . '<tr><th>Group Details</th><th></th></tr>';
echo '<tr><td>';
show_search("", -1);
echo "</td><td><a href=\"javascript:deleteGroups('{$bundleidentifier}','{$version}')\" style=\"float: right;\" class=\"button redButton\" onclick=\"return confirm('Do you really want to delete all items?');\">Delete All</a></td>";
echo '</tr></table>';
// END Group Details
// START Group Listing
$cols = '<colgroup><col width="50"/><col width="640"/><col width="90"/><col width="180"/></colgroup>';
echo '<table>' . $cols;
echo "<tr><th>Count</th><th>Description</th><th>Last Crash</th><th>Actions</th></tr>";
echo '</table>';
echo '<div id="groups">';
// get all groups
$query = "SELECT id, amount, latesttimestamp, location, exception, reason, description FROM " . $dbgrouptable . " WHERE bundleidentifier = '" . $bundleidentifier . "' AND affected = '" . $version . "' ORDER BY amount desc, location asc";
$result = mysql_query($query) or die(end_with_result('Error in SQL ' . $query));
$numrows = mysql_num_rows($result);
if ($numrows > 0) {
    // get the status
Exemplo n.º 6
0
Arquivo: index.php Projeto: rturi/I244
 case 'login':
     show_login();
     break;
 case 'register':
     show_register();
     break;
 case 'logout':
     if (isset($_SESSION['username'])) {
         end_session();
     } else {
         show_main_page();
     }
     break;
 case 'search_task':
     if (isset($_SESSION['username'])) {
         show_search();
     } else {
         show_login();
     }
     break;
 case 'tasks':
     if (isset($_SESSION['username'])) {
         tasks();
     } else {
         show_main_page();
     }
     break;
 case 'add_task':
     if (isset($_SESSION['username'])) {
         add_task();
     } else {
Exemplo n.º 7
0
     }
     list_search();
     break;
 case 'show':
     //note 直接读取以前的搜索条件搜索
     if (!$GLOBALS['MooUid']) {
         header("Location:login.html");
         exit;
     }
     if (isset($_GET['oldSearchCondition']) && $_GET['oldSearchCondition']) {
         $scid = $_GET['oldSearchCondition'];
         if ($scid == 0) {
             MooMessage("对不起,请选择保存的搜索条件", "index.php?n=search");
             exit;
         }
         show_search($scid);
     } else {
         include MooTemplate('public/search_error', 'module');
         exit;
     }
     break;
 case 'del':
     //note 删除以前的搜索条件
     if (!$GLOBALS['MooUid']) {
         header("Location:login.html");
         exit;
     }
     if (isset($_GET['s']) && $_GET['s'] && is_numeric($_GET['s'])) {
         $s = $_GET['s'];
         del_search($s);
     } else {