<?php
/**
 * Manager configuration file
 * Tells core/manager.php where to find things and how to display them
 *
 * @version $Id: manager.php,v 1.2 2003/06/27 17:07:42 gbrackett Exp $
 * @author  George Brackett <gbrackett@NOSPAM.luceatlux.com>
 *
 */
 
/* Translate column and action labels first */
$id = $_SESSION['translate']->it("ID");
$hidden = $_SESSION['translate']->it("Hidden");
$label = $_SESSION['translate']->it("Title");
$status = $_SESSION['translate']->it("Status");
$hours = $_SESSION['translate']->it("Hours");
$available = $_SESSION['translate']->it("Available");
$contact = $_SESSION['translate']->it("Contact");
$desc = $_SESSION['translate']->it("Description");
$qual = $_SESSION['translate']->it("Qualifications");
$edit = $_SESSION['translate']->it("Edit");
$delete = $_SESSION['translate']->it("Delete");
$hide = $_SESSION['translate']->it("Hide");
$show = $_SESSION['translate']->it("Show");
$view = $_SESSION['translate']->it("View");

/* define the lists manager will control and 
	the database constraint for identifying a list member */
$lists = array("admin"=>"approved='1'",						/* an admin and a user list */
				"user"=>"approved='1' AND hidden='0'");		/* user list omits hidden items */

/* For each list, indicate templates directory where the manager will find layout templates.
	Must have list.tpl and row.tpl for each list. */
$templates = array("admin"=>"listmanager",
					"user"=>"listmanager/user");

/*	for the admin list, identify the data fields to be displayed in each column and the text of 
	the heading for the column
*/ 
$adminColumns = array("label"=>$label,				/* use translated words in heading */
					"status"=>$status,
					"date_available"=>$available,
					"description"=>$desc,
					"hidden"=>$hidden,
					"id"=>$id);

/*	for the admin list, identify the actions that should be available,
	and the menu label to be specified for each.
*/
$adminActions = array("edit"=>$edit,				/* use translated words in menu */
					"view"=>$view,
					"delete"=>$delete,
					"hide"=>$hide,
					"show"=>$show);

/*	for the admin list, indicate what permissions are required for each action;
	at the moment, require no permissions
*/					
$adminPermissions = array("edit"=>NULL,				/* NULL gives everyone permission */
					"view"=>NULL,
					"delete"=>NULL,
					"hide"=>NULL,
					"show"=>NULL);
					
/*	for the admin list, provide parameters for paging the list */
$adminPaging = array("op"=>"JOB_MAN_op=list",
					"limit"=>10,					/* dunno what this is */
					"section"=>1,
					"limits"=>array(5,10,25,50),	/* options for items per page */
					 "back"=>"&#60;&#60;",			/* symbol for 'back' - << */
					 "forward"=>"&#62;&#62;");		/* symbol for 'forward' - >> */

/*	now do the same for the user display list */

$userColumns = array("label"=>$label,
					"status"=>$status,
					"date_available"=>$available,
					"description"=>$desc,
					"id"=>$id);

$userActions = array("view"=>$view);

$userPermissions = array("view"=>NULL);
					
$userPaging = array("op"=>"JOB_MAN_op=list",
					"limit"=>10,
					"section"=>1,
					"limits"=>array(5,10,25,50),
					"back"=>"&#60;&#60;",
					"forward"=>"&#62;&#62;");


?>
