Exemple #1
0
            $sql = "INSERT INTO `picture`( `PICTURE_OWNER_ID`, `PICTURE_NAME`, `PICTURE_FROM_DATE`) VALUES ('{$id}','" . basename($_FILES["picture"]["name"]) . "','{$time}')";
            mysql_query($sql);
        } else {
            $sql = "UPDATE `picture` SET `PICTURE_THRU_DATE`='{$time}' WHERE `PICTURE_OWNER_ID`='{$id}' AND `PICTURE_THRU_DATE`=''";
            mysql_query($sql);
            $sql = "INSERT INTO `picture`( `PICTURE_OWNER_ID`, `PICTURE_NAME`, `PICTURE_FROM_DATE`) VALUES ('{$id}','" . basename($_FILES["picture"]["name"]) . "','{$time}')";
            mysql_query($sql);
        }
        set_updatetime($id);
        echo "The file " . basename($_FILES["picture"]["name"]) . " has been uploaded.";
    } else {
        echo "Sorry, there was an error uploading your file.";
    }
}
$follower = $_POST["follower"];
if (empty($_POST['runnum'])) {
    $runnum = create_run_number();
} else {
    $runnum = $_POST['runnum'];
}
$reg_year = $_POST['reg_year'];
register($id, $runnum, $follower, $reg_year);
if (isset($_POST['status'])) {
    edit_status($id, $_POST['status']);
}
if (isset($_POST['REMARK'])) {
    edit_remark($id, $_POST['REMARK']);
}
echo "<script type='text/javascript'>";
echo "window.close();";
echo "</script>";
            if ($func == 'update_projects') {
                update_projects($_POST['Sel']);
            }
            edit_projects();
            break;
        case 'priorities':
            if ($func == 'update_priorities') {
                update_priorities($_POST['Sel']);
            }
            edit_priorities();
            break;
        case 'status':
            if ($func == 'update_status') {
                update_status($_POST['Sel']);
            }
            edit_status();
            break;
        case 'edit_globals':
            if ($func == 'mod_globals') {
                mod_globals($_POST['mod_varname'], $_POST['mod_definition'], $_POST['mod_action']);
            }
            edit_globals();
            break;
    }
}
$tabtable->print_foot();
function edit_agents()
{
    global $admin_tabtable, $prefix, $hlpdsk_prefix, $name, $hlpdsk_theme, $nuke_user_id_fieldname, $nuke_username_fieldname, $action, $button_submit, $button_left, $button_right, $GO_THEME, $GO_LANGUAGE, $strUser, $strGroups;
    require $GO_LANGUAGE->get_language_file('opentts');
    $total_actions = 10;
Exemple #3
0
    $chinaname_pinyin = $_POST['chinaname_pinyin'];
    $chinaname_th = $_POST['chinaname_thai'];
    add_chinaname($id, $gen_id, $chinaname, $chinaname_pinyin, $chinaname_th);
}
if (isset($_POST["title"]) && !empty($_POST["title"])) {
    $title = $_POST["title"];
    edit_title($id, $title);
}
if (isset($_POST["gender"]) && !empty($_POST["gender"])) {
    $gender = $_POST["gender"];
    edit_gender($id, $gender);
}
if (isset($_POST["birthday"]) && !empty($_POST["birthday"])) {
    $birthday = $_POST["birthday"];
    edit_birthday($id, $birthday);
}
if (isset($_POST["maritalstatus"]) && !empty($_POST["maritalstatus"])) {
    $maritalstatus = $_POST["maritalstatus"];
    edit_maritalstatus($id, $maritalstatus);
}
if (isset($_POST["status"]) && !empty($_POST["status"])) {
    $status = $_POST["status"];
    edit_status($id, $status);
}
if (isset($_POST["personalID"]) && !empty($_POST["personalID"])) {
    $personalID = $_POST["personalID"];
    add_personalID($id, $personalID);
}
echo "<script type='text/javascript'>";
echo "window.close();";
echo "</script>";