Exemplo n.º 1
0
function Main($gel, $pmbid)
{
    $ButuhGanti = GetaField('pmb', 'PMBID', $pmbid, 'PasswordBaru');
    if ($ButuhGanti == 'Y') {
        CekGantiPassword($gel, $pmbid);
    } else {
        Edit(0, $gel, $pmbid);
    }
}
Exemplo n.º 2
0
}
if ($_POST["location"] == "") {
    $location = $_GET["location"];
} else {
    $location = $_POST["location"];
}
/* check the action */
if ($action == "addform") {
    AddForm("", $name, $description, $location);
}
if ($action == "add") {
    Add($name, $description, $location);
} elseif ($action == "editform") {
    EditForm("", $id);
} elseif ($action == "edit") {
    Edit($id, $name, $description, $location);
} elseif ($action == "delete") {
    Delete($id);
} elseif ($action == "" || $action == "list") {
    DisplayList();
}
/* ----------------------------------------------- */
/* --------- DisplayList ------------------------- */
/* ----------------------------------------------- */
function DisplayList()
{
    ?>
		<style>
			.header { font-weight: bold; color: darkblue; border-top: 2px solid gray; border-bottom: 1px solid gray;}
		</style>
		<table><tr><td><img src="images/back16.png"></td><td><a href="index.php" class="link">Back</a> to Calendar</td></tr></table><br>
Exemplo n.º 3
0
function Main($gel, $aplikanid)
{
    $ButuhGanti = GetaField('aplikan', 'AplikanID', $aplikanid, 'PasswordBaru');
    //if($ButuhGanti == 'Y') CekGantiPassword($gel, $aplikanid);
    Edit(0, $gel, $aplikanid);
}
Exemplo n.º 4
0
}
if ($_POST["project_id"] == "") {
    $project_id = $_GET["project_id"];
} else {
    $project_id = $_POST["project_id"];
}
/* check the action */
if ($action == "addform") {
    AddForm("", $amount, $timeperiod, $calendar_id, $project_id);
}
if ($action == "add") {
    Add($amount, $timeperiod, $calendar_id, $project_id);
} elseif ($action == "editform") {
    EditForm("", $id);
} elseif ($action == "edit") {
    Edit($id, $amount, $timeperiod, $calendar_id, $project_id);
} elseif ($action == "delete") {
    Delete($id);
} elseif ($action == "" || $action == "list") {
    DisplayList();
}
/* ----------------------------------------------- */
/* --------- DisplayList ------------------------- */
/* ----------------------------------------------- */
function DisplayList()
{
    ?>
		<style>
			.header { font-weight: bold; color: darkblue; border-top: 2px solid gray; border-bottom: 1px solid gray;}
		</style>
		<table><tr><td><img src="images/back16.png"></td><td><a href="index.php" class="link">Back</a> to Calendar</td></tr></table><br>
Exemplo n.º 5
0
}
if ($_POST["description"] == "") {
    $description = $_GET["description"];
} else {
    $description = $_POST["description"];
}
/* check the action */
if ($action == "addform") {
    AddForm("", $name, $description, $admin);
}
if ($action == "add") {
    Add($name, $description, $admin);
} elseif ($action == "editform") {
    EditForm("", $id);
} elseif ($action == "edit") {
    Edit($id, $name, $description, $admin);
} elseif ($action == "delete") {
    Delete($id);
} elseif ($action == "" || $action == "list") {
    DisplayList();
}
/* ----------------------------------------------- */
/* --------- DisplayList ------------------------- */
/* ----------------------------------------------- */
function DisplayList()
{
    ?>
		<style>
			.header { font-weight: bold; color: darkblue; border-top: 2px solid gray; border-bottom: 1px solid gray;}
		</style>
		<table><tr><td><img src="images/back16.png"></td><td><a href="index.php" class="link">Back</a> to Calendar</td></tr></table><br>
Exemplo n.º 6
0
     PrintArbo();
     break;
 case "delcat":
     DelCat($catid, $go);
     break;
 case "editcat":
     Edit("Cat", $catid);
     break;
 case "delsscat":
     DelSsCat($sscatid, $go);
     break;
 case "delgal":
     DelGal($galid, $go);
     break;
 case "editgal":
     Edit("Gal", $galid);
     break;
 case "editimg":
     EditImg($imgid);
     break;
 case "doeditimg":
     DoEditImg($imgid, $imggal, $newdesc);
     break;
 case "delimg":
     DelImg($imgid, $go);
     break;
 case "validimg":
     DoValidImg($imgid);
     break;
 case "delcomimg":
     DelComImg($id, $picid);