<TR> <TD CLASS="form_field_header_cell">Status:</TD> <TD CLASS="form_field_cell"> <SELECT NAME="task_status_id" CLASS="input_text"> <?php echo SI_TaskStatus::getSelectTags($task->task_status_id); ?> </SELECT> </TD> </TR> <TR> <TD CLASS="form_field_header_cell">Priority:</TD> <TD CLASS="form_field_cell"> <SELECT NAME="task_priority_id" CLASS="input_text"> <?php echo SI_TaskPriority::getSelectTags($task->task_priority_id); ?> </SELECT> </TD> </TR> <TR> <TD CLASS="form_field_header_cell">Due:</TD> <TD CLASS="form_field_cell"> <input type="text" class="input_text" name="due_ts" id="due_ts" SIZE="10" value="<?php echo $task->due_ts > 0 ? date("n/j/Y", $task->due_ts) : ''; ?> "> <a href="javascript:;" onclick="Uversa.SureInvoice.Calendar.show('due_ts')"><img width="16" height="16" border="0" src="images/dynCalendar.gif"/></a> </TD> </TR> <TR>
"> <?php echo SI_TaskStatus::getSelectTags(); ?> </SELECT> </td> <td class="dg_data_cell_1"> <SELECT NAME="tasks[<?php echo $i; ?> ][priority]" CLASS="input_text" tabindex="<?php echo 11 + $i; ?> "> <?php echo SI_TaskPriority::getSelectTags(); ?> </SELECT> </td> </tr> <? }?> </tbody> </table> </div> </div> </td> </tr> <tr> <td colspan="2"><input type="submit" class="button" name="save" value="Add Project"></td> </tr>
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 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 Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * */ require_once('includes/common.php'); require_once('includes/SI_TaskPriority.php'); checkLogin("admin"); $task_priority = new SI_TaskPriority(); $task_prioirities = $task_priority->retrieveSet(); if($task_prioirities === FALSE){ $error_msg .= "Error getting list of task priorities!\n"; debug_message($task_priority->getLastError()); } $title = "Task Priority Administration"; require('header.php') ?> <div class="tableContainer"> <a href="javascript:;" class="tCollapse" onclick="toggleGrid(this)"><img src="images/arrow_down.jpg" alt="Hide table" />Task priorities</a><div> <div class="gridToolbar"> <a href="task_priority.php?mode=add" style="background-image:url(images/new_invoice.png);">New Task Priority</a> </div> <table border="0" cellspacing="0" cellpadding="0">
* but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 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 Street, Fifth Floor, Boston, MA 02110-1301, USA. * http://www.gnu.org/copyleft/gpl.html * */ require_once('includes/common.php'); checkLogin('admin'); require_once('includes/SI_TaskPriority.php'); $title = ''; $task_priority = new SI_TaskPriority(); if($_REQUEST['mode'] == 'add'){ $title = "Add Task Priority"; if($_POST['save']){ $task_priority->updateFromAssocArray($_POST); if($task_priority->add() !== false){ goBack(); }else{ $error_msg .= "Error adding Task Priority!\n"; } } }else if($_REQUEST['mode'] == 'edit'){ $title = "Edit Task Priority"; if(empty($_REQUEST['id'])){