예제 #1
0
function show_schedule($quickbar = "no", $BackupID = "")
{
    if ($BackupID == "") {
        $Minutes = "";
        $Hours = "";
        $Days = "";
        $Months = "";
        $WeekDays = "";
        $Method = "follow_schedule";
    } else {
        $backup_times = Get_Backup_Times($BackupID);
        foreach ($backup_times as $bk_times) {
            $Minutes = "{$bk_times['0']}";
        }
        $Hours = "{$bk_times['1']}";
        $Days = "{$bk_times['2']}";
        $Months = "{$bk_times['3']}";
        $Weekdays = "{$bk_times['4']}";
        $Method = "{$bk_times['5']}";
    }
    if ($quickbar == "yes") {
        show_quickbar($Method);
    } else {
        echo "<tr bgcolor=#7f7f7f>";
    }
    echo "<td><b>Minutes</b></td> <td><b>Hours</b></td> <td><b>Days</b></td> <td><b>Months</b></td><td><b>Weekdays</b></td> </tr> <tr bgcolor=#b7b7b7>";
    echo "<td valign=bottom>";
    Schedule_Show_Minutes($Minutes);
    echo "<td valign=bottom>";
    Schedule_Show_Hours($Hours);
    echo "<td valign=bottom>";
    Schedule_Show_Days($Days);
    echo "<td valign=bottom>";
    Schedule_Show_Months($Months);
    echo "<td valign=bottom>";
    Schedule_Show_Weekdays($Weekdays);
}
예제 #2
0
function show_schedule($quickbar = "no", $BackupID = "")
{
    if ($BackupID == "") {
        $Minutes = "";
        $Hours = "";
        $Days = "";
        $Months = "";
        $Weekdays = "";
        $Method = "follow_schedule";
    } else {
        $backup_times = Get_Backup_Times($BackupID);
        foreach ($backup_times as $bk_times) {
            $Minutes = $bk_times[0] ? "{$bk_times['0']}" : '';
        }
        $Hours = $bk_times[1] ? "{$bk_times['1']}" : '';
        $Days = $bk_times[2] ? "{$bk_times['2']}" : '';
        $Months = $bk_times[3] ? "{$bk_times['3']}" : '';
        $Weekdays = $bk_times[4] ? "{$bk_times['4']}" : '';
        $Method = $bk_times[5] ? "{$bk_times['5']}" : '';
    }
    if ($quickbar == "yes") {
        show_quickbar($Method);
    } else {
        echo "<tr bgcolor=#7f7f7f>";
    }
    echo "<td><b>" . _("Minutes") . "</b></td> <td><b>" . _("Hours") . "</b></td> <td><b>" . _("Days") . "</b></td> <td><b>" . _("Months") . "</b></td><td><b>" . _("Weekdays") . "</b></td> </tr> <tr bgcolor=#b7b7b7>";
    echo "<td valign=top>";
    Schedule_Show_Minutes($Minutes);
    echo "<td valign=top>";
    Schedule_Show_Hours($Hours);
    echo "<td valign=top>";
    Schedule_Show_Days($Days);
    echo "<td valign=top>";
    Schedule_Show_Months($Months);
    echo "<td valign=top>";
    Schedule_Show_Weekdays($Weekdays);
}