Commit Graph

41 Commits

Author SHA1 Message Date
Alexander Nicolaysen Sørnes
cd0542a893 Avoid stating 0 as the total page count 2007-07-29 03:51:15 +00:00
Alexander Nicolaysen Sørnes
c9d7873b29 Return users to the submit page after logging in. 2007-07-24 01:49:40 +00:00
Edwin Smulders
023ece493b Eliminate some php notices caused by use of uninitialized variables 2007-07-24 01:45:19 +00:00
Chris Morgan
fd448b96d7 Fix appData objectGetTableRow() to work with the new table classes 2007-07-23 20:30:57 +00:00
Chris Morgan
2652e68d01 Programmatic table support. Enhances several tables with highlightable and clickable rows and
cleans up the existing table row highlight and click code.
2007-07-23 19:56:43 +00:00
Chris Morgan
b0cecaf9d5 objectManager::display_table() should exit out only if the user isn't logged in AND the table
is a queue
2007-07-16 03:04:54 +00:00
Alexander Nicolaysen Sørnes
403e052a8c Display login link when processing queues. Display a login link when processing queues and the
user isn't logged in, rather than saying that there are no entries.
2007-07-02 01:07:09 +00:00
Alexander Nicolaysen Sørnes
e93f09b0ad Check for valid result resource before number of rows. objectGetEntries() may return FALSE if
the user does not have permission to view a queue, for instance.
2007-07-02 00:50:32 +00:00
Chris Morgan
62bfb16016 Make objectGetTableRow() return a TableRow class instance. Added accessors to set the
appropriate parameters in the TableRow class. Removed some unused parameters from the TableRow
class.
2007-07-02 00:35:17 +00:00
Alexander Nicolaysen Sørnes
52c0e75af9 Don't display editor for non-existent entries 2007-06-19 00:29:37 +00:00
Alexander Nicolaysen Sørnes
b9588ab76e Store iPage in handleMultiPageControls(). Fixes the case where an iPage would not be set for
page 1, causing iItemsPerPage value to be ignored when returning from data processing
2007-06-16 17:00:57 +00:00
Chris Morgan
80ca144225 Fix a typo in the common response text. 2007-06-16 16:58:54 +00:00
Alexander Nicolaysen Sørnes
5e7a75584a Remember multipage values when processing entries 2007-06-15 04:10:42 +00:00
Chris Morgan
4078ad879f Add some common responses to the entry processing page, selectable via radio buttons. This
should make admin responses more consistent and make it quicker and easier to process
submissions.
2007-06-14 01:27:59 +00:00
Alexander Nicolaysen Sørnes
cd198f44d7 Replace objectOutputTableRow() with objectGetTableRow(). Redesign the table output mechanism so
that we fetch a table row from a class instead of letting the class display it. Move adding of
edit/delete links from the classes to the objectManager. Fix a hole in the distribution class
where an uninitialized variable could have been used in the constructor.
2007-06-14 00:50:35 +00:00
Chris Morgan
945df6a78c Fix incorrect member variable, its $bIsQueue, not $bIsQueued. Fixes the number of items on a
multi-page queue
2007-06-12 01:28:59 +00:00
Chris Morgan
f6a4905d77 Pass a valid $iPageRange into display_page_range(), otherwise display_page_range() behaves
improperly
2007-06-12 00:36:29 +00:00
Alexander Nicolaysen Sørnes
ffd812b8a6 Add multi-page control to list of un-queued testData 2007-06-12 00:02:41 +00:00
Alexander Nicolaysen Sørnes
f7b24fab9a Object constructors shouldn't require an id if passed a $oRow object. Gets rid of
objectGetInstanceFromRow() since we can pass the row into the constructor instead.
2007-06-10 18:51:33 +00:00
Alexander Nicolaysen Sørnes
95fc2d366b Add multi-page support to objectManager, use it for the vendor class 2007-06-09 17:07:02 +00:00
Chris Morgan
25edd78c73 Layout improvements. Change default inner padding for html_frame_start() from 5 to 0, this
lets us eliminate the white spacing between frames and their contents. Add in a
div.default_container class that has a 5px padding to replace the now not present default
spacing.
2007-05-02 01:08:22 +00:00
Alexander Nicolaysen Sørnes
11ecfa230b Add allowAnonymousSubmissions(). objectManager checks the return value of this new function and
exists with an error during certain actions if the user is not logged in and the function returns
false
2007-04-29 23:00:01 +00:00
Alexander Nicolaysen Sørnes
eb49e9344d Add om method for displaying a move child objects page. A link to this page is displayed in
an entry's view page automatically if the class that entry has the required methods
objectMoveChildren and objectGetId
2007-04-27 23:43:43 +00:00
Alexander Nicolaysen Sørnes
ec8312233c Display add item help text after fetching input values. This allows the help text functions
to output help depending on the state of the edited object
2007-04-24 23:40:12 +00:00
Alexander Nicolaysen Sørnes
f688be7c4d Support silent input checking. checkOutputEditorInput() can now return TRUE instead of a
list of errors
2007-04-24 00:35:51 +00:00
Alexander Nicolaysen Sørnes
cf81d542ee Add a moveChildren method to the objectManager and implement objectMoveChildren for version
and version_queue. Use this to move versions.
2007-04-23 23:31:24 +00:00
Chris Morgan
00aacdeadd Fix some inconsistent braces and add a comment to the objectManager code 2007-04-22 15:52:06 +00:00
Alexander Nicolaysen Sørnes
8cf53f1679 Use mustBeQueued() to determine unqueueing in objectManager 2007-04-22 00:39:53 +00:00
Alexander Nicolaysen Sørnes
d5aabe4d17 More fixes and uses for objectManager's version/testData queues 2007-04-21 01:02:10 +00:00
Alexander Nicolaysen Sørnes
c43563eca6 Fix testData::create() permissions. Separate the cases where a user has edit rights from
when he has the right to unqueue items
2007-04-19 23:45:15 +00:00
Alexander Nicolaysen Sørnes
9a953f7ce8 Add return value to objectManager::displayErrors(). Return true if errors were found 2007-04-04 00:32:43 +00:00
Alexander Nicolaysen Sørnes
ac978bfad7 objectManager: check editor values 2007-03-25 18:52:19 +00:00
Alexander Nicolaysen Sørnes
37296b2242 Let objectManager handle rejected testData 2007-03-25 03:56:20 +00:00
Alexander Nicolaysen Sørnes
c545581571 objectManager, add rejection support. Add support in objectManager for handling rejected
data.
2007-03-24 18:30:16 +00:00
Alexander Nicolaysen Sørnes
fa7ddf3322 Use the full AppDB url in makeLink() 2007-03-18 00:47:14 +00:00
Alexander Nicolaysen Sørnes
ed7026be6e Let objectManager output table headers. A class returns an array of header cells and then
the objectManager adds an edit column if appropriate.
2007-03-17 21:04:43 +00:00
Alexander Nicolaysen Sørnes
9ef6268fa6 Let objectManager label the edit link in objectOutputTableRow() because the edit link text
depends on the queue state
2007-03-13 21:08:39 +00:00
Alexander Nicolaysen Sørnes
bf7daaa789 Let ObjectManager handle maintainer requests 2007-03-04 23:22:57 +00:00
Alexander Nicolaysen Sørnes
47a4d3cf84 Pass an object as the first argument to method_exists() 2007-02-03 19:55:15 +00:00
Alexander Nicolaysen Sørnes
21a18c5d09 Pass an object as the first argument to method_exists(), required by php4
----------------------------------------------------------------------
2007-02-03 19:33:20 +00:00
Alexander Nicolaysen Sørnes
0ad148f69f Add and use objectManager to display and edit vendors and distributions. Based on a patch by
Chris Morgan
2007-02-03 19:03:42 +00:00