Exemplo n.º 1
0
function showRecordRollback($record, $changes)
{
    print '<div class="record">';
    print '<div class="header">';
    print '<div class="detail-type">';
    print $record["rec_ID"] . ": " . $record["rec_Title"];
    print '</div>';
    print '<div class="current-val">Current values</div>';
    print '<div class="new-val">Will be changed to</div>';
    print '<div class="clearall"></div>';
    print '</div>';
    $reqs = getRectypeStructureFields($record["rec_RecTypeID"]);
    $detail_names = mysql__select_assoc("defDetailTypes", "dty_ID", "dty_Name", 1);
    foreach ($reqs as $dt => $req) {
        if (array_key_exists($dt, $record["details"])) {
            $values = $record["details"][$dt];
            showDetails($dt . ': ' . $req["rst_DisplayName"], $values, $changes);
        }
    }
    foreach ($record["details"] as $dt => $values) {
        if (!array_key_exists($dt, $reqs)) {
            showDetails($dt . ': ' . $detail_names[$dt], $values, $changes);
        }
    }
    foreach ($changes["inserts"] as $insert) {
        if (array_key_exists($insert["ard_DetailTypeID"], $reqs)) {
            $name = $reqs[$insert["ard_DetailTypeID"]]["rst_DisplayName"];
        } else {
            $name = $detail_names[$insert["ard_DetailTypeID"]];
        }
        showDetail($insert["ard_DetailTypeID"] . ': ' . $name, "&nbsp;", '<div class="insert">' . getDetailUpdateString($insert) . '</div>');
    }
    print '</div>';
}
Exemplo n.º 2
0
    </ul>

<?php 
loggedIn();
?>
    <!-- end .sidebar1 --></div>
  <div class="content">
    <h1>Ihr Profil</h1>
<?php 
require_once "mysql.inc.php";
if (isset($_SESSION["sessionLogin"])) {
    $sessionName = $_SESSION["sessionLogin"];
    echo "<p>Hallo {$sessionName}, dies ist dein Profil.<br><br></p>";
    echo "<form action='profil_admin.php' method='post'>\n\t\t\t<p><input type='submit' name='submitShowUser' value='Alle Benutzer anzeigen'><br></p>\n\t\t\t</form>";
    echo "<form action='profil_admin.php' method='post'>\n\t\t\t<p><input type='submit' name='submitShowDetails' value='Deine Daten anzeigen'><br></p>\n\t\t\t</form>";
} else {
    echo "<p>Sie sind nicht angemeldet.</p>";
}
if (isset($_POST["submitShowUser"])) {
    showUser();
}
if (isset($_POST["submitShowDetails"])) {
    showDetails($sessionName);
}
?>
  <!-- end .content --></div>
<?php 
include "includes/footer.php";
?>

Exemplo n.º 3
0
        }
        $total_data = $type == 'Quota' ? '<b>' . $total_data . '</b>' : $total_data;
        $rate_95th = $type == 'CDR' ? '<b>' . $rate_95th . '</b>' : $rate_95th;
        $url = generate_url($vars, array('detail' => $history['bill_hist_id']));
        echo '
            <tr>
                <td></td>
                <td><span style="font-weight: bold;" class="interface">' . strftime('%Y-%m-%d', strtotime($datefrom)) . ' to ' . strftime('%Y-%m-%d', strtotime($dateto)) . "</span></td>\n                <td>{$type}</td>\n                <td>{$allowed}</td>\n                <td>{$in}</td>\n                <td>{$out}</td>\n                <td>{$total_data}</td>\n                <td>{$rate_95th}</td>\n                <td style=\"text-align: center;\">{$overuse}</td>\n                <td width=\"250\">" . print_percentage_bar(250, 20, $percent, null, 'ffffff', $background['left'], $percent . '%', 'ffffff', $background['right']) . '</td>
                <td>
                    <a href="' . $url . '"><img src="images/16/chart_curve.png" border="0" align="absmiddle" alt="Show details" title="Show details"/></a>
                </td>
            </tr>';
        if ($vars['detail'] == $history['bill_hist_id'] || $vars['detail'] == 'all') {
            $img['bitrate'] = showDetails($bill_id, 'bitrate', $history['bill_hist_id'], $type);
            $img['bw_day'] = showDetails($bill_id, 'day', $history['bill_hist_id']);
            $img['bw_hour'] = showDetails($bill_id, 'hour', $history['bill_hist_id']);
            echo '
                <tr style="background: #fff; border-top: 1px solid ' . $row_colour . '; border-bottom: 1px solid #ccc;">
                    <td colspan="11">
                    <!-- <b>Accuate Graph</b><br /> //-->
                    ' . $img['bitrate'] . '<br />
                    <!-- <b>Bandwidth Graph per day</b><br /> //-->
                    ' . $img['bw_day'] . '<br />
                    <!-- <b>Bandwidth Graph per hour</b><br /> //-->
                    ' . $img['bw_hour'] . '
                    </td>
                </tr>';
        }
    }
    //end if
}
Exemplo n.º 4
0
                break;
            case $percent >= 75:
                $perc['BG'] = "warning";
                break;
            case $percent >= 50:
                $perc['BG'] = "success";
                break;
            default:
                $perc['BG'] = "info";
        }
        $perc['width'] = $percent <= "100" ? $percent : "100";
        $url = generate_url($vars, array('detail' => $history['bill_hist_id']));
        $background = get_percentage_colours($percent);
        echo "\n                <tr>\n                  <td><i class=\"icon-calendar\"></i> <strong>" . strftime("%F", strtotime($datefrom)) . " to " . strftime("%F", strtotime($dateto)) . "</strong></td>\n                  <td><span class=\"label label-" . $label . "\">{$type}</span></td>\n                  <td><span class=\"badge badge-success\">{$allowed}</span></td>\n                  <td><span class=\"badge\">{$in}</span></td>\n                  <td><span class=\"badge\">{$out}</span></td>\n                  <td>{$total_data}</td>\n                  <td>{$rate_95th}</td>\n                  <td style=\"text-align: center;\">{$overuse}</td>\n                  <td width=\"225\">\n                    " . print_percentage_bar(400, 20, $percent, $percent . '%', "ffffff", $background['left'], 100 - $percent . "%", "ffffff", $background['right']) . "\n                  </td>\n                  <td>\n                    <div class=\"btn-toolbar\" style=\"margin: 0px auto 0px auto;\">\n                      <div class=\"btn-group\">\n                        <a class=\"btn btn-mini\" href=\"" . $url . "\"><img src=\"images/16/chart_curve.png\" alt=\"Show details\" title=\"Show details\" rel=\"tooltip\"/></a>";
        // Don't show things people can't use!
        //<a class=\"btn btn-mini\" disabled=\"disabled\" href=\"javascript:;\"><img src=\"images/16/page_white_acrobat.png\" alt=\"PDF Report\" title=\"PDF Report\" rel=\"tooltip\"/></a>
        //<a href=\"pdf.php?type=billing&report=history&bill_id=".$bill_id."&history_id=".$history['bill_hist_id']."\"><img src=\"images/16/page_white_acrobat.png\" border=\"0\" align=\"absmiddle\" alt=\"PDF Report\" title=\"PDF Report\"/></a>
        echo "\n                      </div>\n                    </div>\n                  </td>\n                </tr>";
        if ($vars['detail'] == $history['bill_hist_id'] || $vars['detail'] == "all") {
            $img['bitrate'] = showDetails($bill_id, "bitrate", strtotime($datefrom), strtotime($dateto), $type);
            $img['bw_day'] = showDetails($bill_id, "day", strtotime($datefrom), strtotime($dateto));
            $img['bw_hour'] = showDetails($bill_id, "hour", strtotime($datefrom), strtotime($dateto));
            echo "\n                <tr>\n                  <td colspan=\"10\" style=\"text-align: center; background-color: #ffffff;\">\n                    <!-- <b>Accuate Graph</b><br /> //-->\n                    " . $img['bitrate'] . "<br />\n                    <!-- <b>Bandwidth Graph per day</b><br /> //-->\n                    " . $img['bw_day'] . "<br />\n                    <!-- <b>Bandwidth Graph per hour</b><br /> //-->\n                    " . $img['bw_hour'] . "\n                  </td>\n                </tr>";
        }
    }
    // PERMITTED
}
echo "      </tobdy>";
echo "    </table>";
echo "  </div>";
echo "</div>";
Exemplo n.º 5
0
function showPic()
{
    global $db, $prefix, $iConfig, $moduleName, $user;
    $picturesPath = $iConfig['pictures_path'];
    $popCount = intval($iConfig['pop_count']);
    //$inlineJS = '';
    AddJSToHead('includes/jquery/jquery.js', 'file');
    AddJSToHead('modules/' . $moduleName . '/includes/jquery/jquery.MetaData.js', 'file');
    AddJSToHead('modules/' . $moduleName . '/includes/jquery/jquery.rating.js', 'file');
    AddCSSToHead('modules/' . $moduleName . '/includes/jquery/jquery.rating.css', 'file');
    //AddJSToHead( $inlineJS,'inline' );
    galleryHeader();
    echo '<div id="show-picture-wrapper">' . PHP_EOL;
    $pictureId = $_GET['pictureid'];
    $picture = $db->sql_fetchrow($db->sql_query('SELECT * FROM ' . $prefix . '_igallery_pictures WHERE picture_id=' . $pictureId . ' LIMIT 0,1'));
    $filename = $picture['picture_file'];
    $albumId = $picture['album_id'];
    $pictureTitle = $picture['picture_title'];
    $pictureType = $picture['picture_type'];
    $description = $picture['picture_desc'];
    $counter = $picture['picture_counter'];
    $dateAdded = $picture['picture_date'];
    $userId = $picture['picture_userid'];
    $album = $db->sql_fetchrow($db->sql_query('SELECT album_title, album_folder FROM ' . $prefix . '_igallery_albums WHERE album_id=\'' . $albumId . '\' LIMIT 0,1'));
    $albumTitle = $album['album_title'];
    $folderName = $album['album_folder'];
    showTopLinks($albumId, $pictureId);
    echo '<br /><br />' . PHP_EOL;
    picTopMenu($pictureId, $albumId);
    echo '<div id="show-pic">' . PHP_EOL;
    echo '	' . showNewEmblem($dateAdded) . showPopEmblem($counter, $popCount) . '<br />' . PHP_EOL;
    echo '	<img class="show-pic" src="modules.php?name=' . $moduleName . '&amp;op=getImg&amp;pictureid=' . $pictureId . '" alt="' . $filename . '" title="' . $pictureTitle . '" />' . PHP_EOL;
    echo '</div>' . PHP_EOL;
    echo '<div class="content-box"><b>' . $pictureTitle . '</b>: ' . $description . '</div>' . PHP_EOL;
    showDetails($pictureId);
    echo '<br />' . PHP_EOL;
    echo '<div id="comment-button"><button>' . _IG_POSTCOMMENT . '</button></div>' . PHP_EOL;
    commentForm($pictureId);
    echo '<script type="text/javascript">//<![CDATA[' . PHP_EOL;
    echo '	$("button").click(function () {' . PHP_EOL;
    echo '		$("#post-comment").show("slow");' . PHP_EOL;
    echo '	});' . PHP_EOL;
    echo '//]]></script>' . PHP_EOL;
    displayComments($pictureId);
    echo '</div>' . PHP_EOL;
    galleryFooter();
}