|
From: <gbr...@us...> - 2003-07-31 00:45:49
|
Update of /cvsroot/phpwebsite-comm/modules/staffman/class
In directory sc8-pr-cvs1:/tmp/cvs-serv6795/class
Modified Files:
staffmanager.php
Log Message:
updated README, improved multiple item handling
Index: staffmanager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/staffman/class/staffmanager.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** staffmanager.php 30 Jul 2003 22:44:50 -0000 1.2
--- staffmanager.php 31 Jul 2003 00:45:45 -0000 1.3
***************
*** 83,89 ****
*/
function _edit() {
$this->staffmember = new staffmember($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the staffmemberid */
! $content = $this->staffmember->edit();
/* set display variables */
--- 83,95 ----
*/
function _edit() {
+ // warn only one edit at a time
+ if (sizeof($_REQUEST["PHPWS_MAN_ITEMS"]) > 1) {
+ $content = "<span class=\"errortext\">" . $_SESSION['translate']->it("You may only edit one staffmember listing at a time.") . "</span><br />";
+ } else {
+ $content = "";
+ }
$this->staffmember = new staffmember($_REQUEST["PHPWS_MAN_ITEMS"][0]); /* PHPWS_MAN_ITEMS[0] contains the staffmemberid */
! $content .= $this->staffmember->edit();
/* set display variables */
***************
*** 103,107 ****
// warn only one deletion at a time
if (sizeof($_REQUEST["PHPWS_MAN_ITEMS"]) > 1) {
! $content = "<span class=\"errortext\">" . $_SESSION['translate']->it("You may only delete one staffmenber at a time.") . "</span><br />";
} else {
$content = "";
--- 109,113 ----
// warn only one deletion at a time
if (sizeof($_REQUEST["PHPWS_MAN_ITEMS"]) > 1) {
! $content = "<span class=\"errortext\">" . $_SESSION['translate']->it("You may only delete one staffmember listing at a time.") . "</span><br />";
} else {
$content = "";
|