Beispiel #1
0
function deleteOne($obso)
{
	$fname=getFName();
	if (!deleteMessage($obso,$fname))
		return new LPC_HTML_error("Failed deleting message key ".htmlspecialchars($obso));
	return deleteConfirm($fname);
}
Beispiel #2
0
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
*/
// $Id: editUser.php,v 1.7 2006/01/29 08:15:18 atrommer Exp $
checkUser($_SESSION['USERTYPE'], 2);
//if (!$_REQUEST['u_id'] && !$_REQUEST['action']){
//	accessDenied("Please choose an employee first!");
//}
doHeader("Edit User");
// first we check if we're doing an update
// or a delete
if ($_REQUEST['action'] == 'del') {
    deleteConfirm();
} elseif ($_POST['confirmDelete']) {
    deleteUser($_POST['hdUserID']);
    print "User deactivated sucessfully!";
} else {
    editUserForm();
}
function deleteConfirm()
{
    $aUserVals = getUserVals($_REQUEST['u_id']);
    ?>
	<form id="frmDelete" name="frmDelete" method="post" action="<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
">
		<input type="hidden" name="hdUserID" value="<?php 
Beispiel #3
0
">
		<input type="hidden" name="confirmDelete" value="1">
		<input type="submit" name="delete" value="Click here to delete <?php 
    echo $aEventDetails->event_name;
    ?>
" >
	</form>
<?php 
}
// now that we're clean, get the schedule for the area
// pass it the selected date from the drop down
// method will default to current day forward if !postback
$oAreaSched = getAreaSched($_REQUEST['area'], $_REQUEST['filter']);
doHeader("Editing Schedule for " . $oAreaDetails[0]->area_name);
if ($_REQUEST['del']) {
    deleteConfirm($_REQUEST['area'], $_REQUEST['event']);
}
?>
<span class="contactInfo"><a href="printSched.php?area=<?php 
echo $_REQUEST['area'];
?>
" target="_blank">Printable Schedule</a> |
<?php 
if ($_REQUEST['filter'] != 1) {
    ?>
<a href="editSched.php?area=<?php 
    echo $_REQUEST['area'];
    ?>
&amp;filter=1">Filter for current month</a>
<?php 
} else {
Beispiel #4
0
		<input type="hidden" name="pos" value="<?php 
    echo $iPos;
    ?>
">
		<input type="hidden" name="confirmDelete" value="1">
		<input type="submit" name="delete" value="Click here to delete the <?php 
    echo $oPosDetails->pos_name;
    ?>
 position">
	</form>
<?php 
}
doHeader("Editing Positions for " . $oAreaDetails[0]->area_name);
// catch delete request and prompt
if ($_REQUEST['del']) {
    deleteConfirm($_REQUEST['area'], $_REQUEST['pos']);
}
?>
This page allows you to create, edit, and delete positions for the <b><?php 
echo $oAreaDetails[0]->area_name;
?>
</b> area.
<br>Simply make the changes and additions that you want and click <b>Update</b>.
<br>

<form name="frmPos" action="editPos.php" method="post">
	<input type="hidden" name="hdArea" value="<?php 
echo $_REQUEST['area'];
?>
">
	<input type="hidden" name="isPostback" value="1">
    $cur_imglib = $spaw_imglibs[0];
    $lib = $spaw_imglibs[0]['catID'];
}
$lib_options = liboptions($spaw_imglibs, '', $lib);
if (isset($_POST['imglist'])) {
    $img_params = explode(SPAW_VSEP, $_POST['imglist']);
    $img = basename($img_params[1]);
}
$preview = '';
$errors = array();
if (isset($_FILES['img_file']['size']) && $_FILES['img_file']['size'] > 0) {
    $img = uploadImg('img_file', $cur_imglib);
}
// delete confirm
if ($cur_imglib['delete_allowed'] && isset($_POST['lib_action']) && $_POST['lib_action'] == 'delete' && !empty($img)) {
    deleteConfirm($cur_imglib);
}
// delete
if ($cur_imglib['delete_allowed'] && isset($_POST['lib_action']) && $_POST['lib_action'] == 'dodelete' && !empty($img)) {
    deleteImg($cur_imglib, $img);
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <meta http-equiv="Pragma" content="no-cache">
  <meta http-equiv="Content-Type" content="text/html; charset=<?php 
echo $l->getCharset();
?>
">
  <title><?php