Пример #1
0
<?php

session_start();
if (!isset($_SESSION['bdmemp'])) {
    header('Location:index.php');
}
require_once "./includes/initialize.php";
$BM_Emp_id = $_SESSION['bdmemp'];
if (isset($_POST['submit'])) {
    $addLaunch = new Launch('BM_Launch');
    $field_array = array('BM_Emp_Id' => $BM_Emp_id, 'docname' => $_POST['docname'], 'act_detail' => $_POST['act_detail'], 'created' => date('Y-m-d H:i:s'));
    if ($addLaunch->create($field_array)) {
        echo '<script>alert("Data Added Successfully.");</script>';
        redirect_to('BM_Launch.php');
    }
}
require_once './header.php';
?>
<div class="col-lg-12">
    <a href="BM_Add.php" class="badge">GO Back</a>
</div>

<div class="col-lg-12">
    <h4>ADD BIP DIFFERENTIAL LAUNCH DETAIL</h4>
    <form action="#" method="post">
        <div class="form-group">
            <input type="text" class="form-control" name="docname" placeholder="Dr Name">
        </div>
        <div class="form-group">
            <textarea class="form-control" name="act_detail" placeholder="Launch Details"></textarea>
        </div>
Пример #2
0
<?php

session_start();
require_once "./includes/initialize.php";
if (isset($_SESSION['bdmemp'])) {
    $BM_Emp_id = $_SESSION['bdmemp'];
    $Activities = Launch::BMActivity($BM_Emp_id);
    $TMlist = man_power::TMDropdowm(array('WHERE BM_Emp_Id = ' . $BM_Emp_id));
    if (isset($_POST['tmreport'])) {
        $TM_Emp_id = $_POST['tmreport'];
        $TMlist = man_power::TMDropdowm(array('WHERE BM_Emp_Id = ' . $BM_Emp_id), $TM_Emp_id);
        $Activities = Launch::TMActivity($TM_Emp_id);
    }
} elseif (isset($_SESSION['tmemp'])) {
    $TM_Emp_id = $_SESSION['tmemp'];
    $Activities = Launch::TMActivity($TM_Emp_id);
}
require_once './header.php';
?>

<div class="col-xs-3">
    <a href = "View.php" class = "badge">GO Back</a>
</div>
<div class="col-xs-9">
    <?php 
if (!empty($TMlist) && isset($TMlist)) {
    echo '<form action="#" method="post"><select onchange="this.form.submit()"  name="tmreport">' . $TMlist . '</select></form>';
}
?>
</div><br/>
Пример #3
0
                            $count = 1;
                            if (!empty($view)) {
                                foreach ($view as $Activity) {
                                    echo '<tr>' . '<td>' . $count++ . '</td>' . '<td>' . $value2->Zone . '</td>' . '<td>' . $value2->Region . '</td>' . '<td>' . $value2->TM_Emp_Id . '</td>' . '<td>' . $value2->TM_Name . '</td>' . '<td>' . $Activity->docname . '</td>' . '<td><button type="button" class="btn btn-link btn-primary" data-container="body" data-toggle="popover" data-content="' . $Activity->act_detail . '">View</button></td>
                            </tr>';
                                }
                            }
                        }
                    }
                }
            } elseif (isset($_GET['bmreport'])) {
                $BMlist = man_power::BMList(array('WHERE SM_Emp_Id = ' . $value->SM_Emp_Id));
                if (!empty($BMlist)) {
                    foreach ($BMlist as $value2) {
                        if ($value2->BM_Emp_Id != '') {
                            $view = Launch::BMActivity($value2->BM_Emp_Id);
                            $count = 1;
                            if (!empty($view)) {
                                foreach ($view as $Activity) {
                                    echo '<tr>' . '<td>' . $count++ . '</td>' . '<td>' . $value2->Zone . '</td>' . '<td>' . $value2->Region . '</td>' . '<td>' . $value2->BM_Emp_Id . '</td>' . '<td>' . $value2->BM_Name . '</td>' . '<td>' . $Activity->docname . '</td>' . '<td><button type="button" class="btn btn-link btn-primary" data-container="body" data-toggle="popover" data-content="' . $Activity->act_detail . '">View</button></td>
                            </tr>';
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
?>
Пример #4
0
session_start();
require_once "./includes/initialize.php";
require_once './header.php';
if (isset($_SESSION['smemp'])) {
    $SM_Emp_id = $_SESSION['smemp'];
    $TMlist = man_power::TMDropdowm(array('WHERE SM_Emp_Id = ' . $SM_Emp_id));
    $BMlist = man_power::BMDropdowm(array('WHERE SM_Emp_Id = ' . $SM_Emp_id));
    if (isset($_POST['tmreport'])) {
        $TM_Emp_id = $_POST['tmreport'];
        $TMlist = man_power::TMDropdowm(array('WHERE SM_Emp_Id = ' . $SM_Emp_id), $TM_Emp_id);
        $Activities = Launch::TMActivity($TM_Emp_id);
    } elseif (isset($_POST['bmreport'])) {
        $BM_Emp_id = $_POST['bmreport'];
        $BMlist = man_power::BMDropdowm(array('WHERE SM_Emp_Id = ' . $SM_Emp_id), $BM_Emp_id);
        $Activities = Launch::BMActivity($BM_Emp_id);
    }
}
?>
<div class="col-xs-3">
    <a href = "View.php" class = "badge">GO Back</a>
</div>
<div class="col-xs-5">
    <?php 
if (!empty($TMlist) && isset($TMlist)) {
    echo '<form action="#" method="post"><select onchange="this.form.submit()"  name="tmreport">' . $TMlist . '</select></form>';
}
?>
</div><br/>
<div class="col-xs-offset-3 col-xs-5">
    <?php 
Пример #5
0
    F3::set('content', Template::serve('ui/select_template.html'));
    echo Template::serve('ui/template.html');
});
F3::route('GET /launch_params/@processId', function () {
    $processId = F3::get('PARAMS["processId"]');
    $process_data = Launch::params($processId);
    F3::set('processId', $processId);
    F3::set('processName', $process_data['processName']);
    F3::set('scripts', $process_data['scripts']);
    F3::set('has_scripts', !empty($process_data['scripts']));
    F3::set('content', Template::serve('ui/set_params.html'));
    echo Template::serve('ui/template.html');
});
F3::route('POST /launch_submit', function () {
    $post_data = $_POST;
    $launch_results = Launch::set_launch($post_data);
    if ($launch_results) {
        F3::set('launch_results', $launch_results);
        F3::set('content', Template::serve('ui/launch_results.html'));
    } else {
        F3::set('content', Template::serve('ui/launch_problem.html'));
    }
    echo Template::serve('ui/template.html');
});
F3::route('GET /problem', function () {
    F3::set('content', Template::serve('ui/launch_problem.html'));
    echo Template::serve('ui/template.html');
});
F3::route('GET /dashboard', function () {
    F3::set('fixkey', function ($str) {
        return str_replace('-dot-', '.', $str);