Update of /cvsroot/phpwebsite-comm/modules/jobman/class
In directory sc8-pr-cvs1:/tmp/cvs-serv27040/class
Modified Files:
JobManager.php
Log Message:
multiple modifications to version 1.3
Index: JobManager.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/jobman/class/JobManager.php,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** JobManager.php 1 Aug 2003 00:53:58 -0000 1.3
--- JobManager.php 24 Sep 2003 23:38:52 -0000 1.4
***************
*** 59,64 ****
$tags["CREATE_MENU_LINK_LABEL"] = $_SESSION["translate"]->it("Create Menu Link");
$tags["CREATE_MENU_LINK_HELP"] = $_SESSION["OBJ_help"]->show_link("jobman", "jmAddMenuLink");
/* and process the template templates/menu.tpl to produce the menu */
! $content = $GLOBALS["core"]->processTemplate($tags, "jobman", "menu.tpl");
/* add admin form of list */
$content .= $this->getList("admin", $_SESSION['translate']->it("Listing Positions"));
--- 59,66 ----
$tags["CREATE_MENU_LINK_LABEL"] = $_SESSION["translate"]->it("Create Menu Link");
$tags["CREATE_MENU_LINK_HELP"] = $_SESSION["OBJ_help"]->show_link("jobman", "jmAddMenuLink");
+ $tags["VIEW_ALL_LABEL"] = $_SESSION['translate']->it("View All");
+ $tags["VIEW_ALL_HELP"] = $_SESSION['OBJ_help']->show_link("jobman", "smViewAll");
/* and process the template templates/menu.tpl to produce the menu */
! $content = $GLOBALS["core"]->processTemplate($tags, "jobman", "amenu.tpl");
/* add admin form of list */
$content .= $this->getList("admin", $_SESSION['translate']->it("Listing Positions"));
***************
*** 66,69 ****
--- 68,74 ----
} else { /* otherwise, display user format list */
+ $tags["VIEW_ALL_LABEL"] = $_SESSION['translate']->it("View All");
+ $tags["VIEW_ALL_HELP"] = $_SESSION['OBJ_help']->show_link("jobman", "smViewAll");
+ $content = $GLOBALS["core"]->processTemplate($tags, "jobman", "umenu.tpl");
$content = $this->getList("user", $_SESSION['translate']->it("Listing Positions"));
}
***************
*** 168,171 ****
--- 173,183 ----
$GLOBALS["CNT_jobman"]["content"] = $content;
$GLOBALS["CNT_jobman"]["title"] = $_SESSION['translate']->it("Positions Available");
+ break;
+
+ case "aView": /* view all items in the list */
+ $this->listName = "user"; // use sort from current user list
+ $this->setOrder("label"); // order by job title
+ $_REQUEST["PHPWS_MAN_ITEMS"] = $this->_getIds(); //get array of all item ids
+ $this->_view(); // and display the corresponding items
break;
|