echo checked($task->sales_com, "Y"); ?> onClick="disableCom(false)">Hourly <INPUT NAME="sales_com" TYPE="radio" VALUE="N" <?php echo checked($task->sales_com, "N"); ?> onClick="disableCom(true)">Non-Billable </TD> </TR> <TR> <TD CLASS="form_field_header_cell">Commission User:</TD> <TD CLASS="form_field_cell"> <SELECT NAME="sales_com_user_id" CLASS="input_text" DISABLED> <OPTION VALUE="0">None</OPTION> <?php echo SI_User::getSelectTags($task->sales_com_user_id); ?> </SELECT> </TD> </TR> <TR> <TD CLASS="form_field_header_cell">Commission Type:</TD> <TD CLASS="form_field_cell"> <SELECT NAME="sales_com_type_id" CLASS="input_text" DISABLED> <OPTION VALUE="0">None</OPTION> <?php echo SI_SalesCommissionType::getSelectTags($task->sales_com_type_id); ?> </SELECT> </TD> </TR>
<tr> <td class="form_field_header_cell">Commission Transaction ID:</td> <td class="form_field_cell"><?php echo $task_activity->com_trans_id; ?> </td> </tr> <tr> <td class="form_field_header_cell">Resource:</td> <td class="form_field_cell"> <select name="user_id" id="user_id" tabindex="5" class="input_text" onchange="updateHourlyCost()" <?php echo $task_activity->isPaid() ? 'DISABLED' : ''; ?> > <?php echo SI_User::getSelectTags($task_activity->user_id); ?> </select> </td> </tr> <? } //if accounting ?> <? if(!$task_activity->isPaid() && !$task_activity->isBilled()){ ?> <tr> <td class="form_field_header_cell">Start:</td> <td class="form_field_cell"> <input type="text" class="input_text" name="start_ts[date]" id="start_ts_date" SIZE="10" value="<?php echo $task_activity->start_ts > 0 ? date("n/j/Y", $task_activity->start_ts) : ''; ?> " tabindex="6"> <a href="javascript:;" onclick="Uversa.SureInvoice.Calendar.show('start_ts_date', undefined, 'end_ts_date')"><img width="16" height="16" border="0" src="images/dynCalendar.gif"/></a>
function importGetUsers() { global $loggedin_user; if (!isLoggedIn()) { $this->error = "User not logged in."; return false; } if (!isset($_SESSION['SureInvoice']['TimeImport'])) { $this->error = "No import is currently in progress!"; return false; } $importer = $_SESSION['SureInvoice']['TimeImport']; $users = $importer->getUsers(); $html = ""; foreach ($users as $normalized_name => $data) { $action_options = "\n\t<option value=" . SI_IMPORT_ACTION_SKIP . " " . selected(SI_IMPORT_ACTION_SKIP, intval($data['action'])) . ">Skip</option>\n\t<option value=" . SI_IMPORT_ACTION_MAP . " " . selected(SI_IMPORT_ACTION_MAP, intval($data['action'])) . ">Map</option>\n\t\t\t"; $map_options = "<option value='0'>Unknown</option>" . SI_User::getSelectTags($data['param']); $html .= <<<EOF <tr> \t<td>{$data['user']}</td> \t<td><select name="actions[{$normalized_name}]"> \t\t{$action_options} \t</select> \t</td> \t<td><select name="params[{$normalized_name}]"> \t\t{$map_options} \t\t</select> \t</td> </tr> EOF; } return $html; }
?> &m=<?php echo $_GET['m']; ?> &d=<?php echo $_GET['d']; ?> &user_id="+user_id; } </SCRIPT> <div class="tableContainer"> <a href="javascript:;" class="tCollapse" onclick="toggleGrid(this)"><img src="images/arrow_down.jpg" alt="Hide table" />Calendar</a><div> <B>Select User: </B> <SELECT NAME="user_id" onChange="javascript:reloadPage(this)" CLASS="input_text"> <?php echo SI_User::getSelectTags($user_id); ?> </SELECT> <? } //if admin ?> <table BORDER="0" CELLSPACING="0" CELLPADDING="0" class="dg_table"> <tr> <td colspan="7" class="form_header_cell"> <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0" WIDTH="100%"> <TR> <TD WIDTH="20%"> <a class="link1" href="<?php echo $_SERVER['PHP_SELF'] . "?y=" . date('Y', $last) . "&m=" . date('m', $last) . "&d=1"; ?> &user_id=<?php
"> <img src="images/delete_small.gif" border="0" width="13" height="13" align="middle"/></a> <br> <? } }else{?> <b>No CCs Setup</b> <? } ?> </td> </tr> <?if($_REQUEST['mode'] == 'edit' && $project->hasRights(PROJECT_RIGHT_EDIT)){?> <tr> <td class="form_field_header_cell">Add CC:</td> <td class="form_field_cell"> <select name="new_cc_id" class="input_text"> <option value="0">Select User...</option> <?php echo SI_User::getSelectTags($_POST['new_cc_id'], $cur_cc_ids, FALSE); ?> </select> <input type="submit" class="button" name="save" value="Add CC"> </td> </tr> <?}?> <tr> <td class="form_field_header_cell">Created On:</td> <td class="form_field_cell"><?php echo $project->created_ts ? date("D M jS, Y \\a\\t h:i:s A", $project->created_ts) : ""; ?> </td> </tr> <tr> <td class="form_field_header_cell">Last Updated:</td>
?> "> <?php echo $loggedin_user->company; ?> <? } ?> </td> </tr> <tr> <td class="form_field_header_cell">Resource:</td> <td class="form_field_cell"> <? if($loggedin_user->hasRight('admin') || !$loggedin_user->isDeveloper()){?> <select name="resource_id" class="input_text"> <option value="0">All</option> <?php echo SI_User::getSelectTags($_REQUEST['resource_id']); ?> </select> <? }else{ ?> <input name="resource_id" type="hidden" value="<?php echo $loggedin_user->id; ?> "> <?php echo $loggedin_user->first_name . ' ' . $loggedin_user->last_name; ?> <? } ?> </td> </tr> <tr> <td class="form_field_header_cell">Start:</td>