Esempio n. 1
0
?>
</td>
</tr>
<tr>
	<td class="form_field_header_cell">Task:</td>
	<td class="form_field_cell"><?php 
echo $task->name;
?>
</td>
</tr>
<tr>
	<td class="form_field_header_cell">Item Code:</td>
	<td class="form_field_cell">
		<select name="item_code_id" id="item_code_id" class="input_text" onchange="updatePaymentSchedule()">
			<?php 
echo SI_ItemCode::getSelectTags($ps->item_code_id);
?>
		</select>
	</td>
</tr>
<? if($_REQUEST['mode'] == 'add'){ ?>
<tr>
	<td class="form_field_header_cell">Recurrence:</td>
	<td class="form_field_cell">
		<input type="radio" name="recurrence" onClick="switchRecurrence(this.value)" value="Single" CHECKED>&nbsp;Single
		<input type="radio" name="recurrence" onClick="switchRecurrence(this.value)" value="Monthly">&nbsp;Monthly
	</td>
</tr>
<? } ?>
</table>
<div id="recurrence_settings" style="display: none">
Esempio n. 2
0
</table>
	</div>
</div>
<?}else{?>
<div class="tableContainer">
<a href="javascript:;" class="tCollapse" onclick="toggleGrid(this)"><img src="images/arrow_down.jpg" alt="Hide table" /><?php 
echo $title;
?>
</a><div>
<table border="0" cellspacing="0" cellpadding="0" class="form_table">
<tr>
	<td class="form_field_header_cell">Item Code:</td>
	<td class="form_field_cell">
		<select name="item_code_id" id="item_code_id" class="input_text" onchange="updateTaxRate()">
			<?php 
echo SI_ItemCode::getSelectTags($company_price->item_code_id);
?>
		</select>	
	</td>
</tr>
<tr>
	<td class="form_field_header_cell">Price:</td>
	<td class="form_field_cell"><input name="price" class="input_text" size="10" type="text" value="<?php 
echo $company_price->price;
?>
"></td>
</tr>
<tr id="tax_rate_row">
	<td class="form_field_header_cell">Tax Rate:</td>
	<td class="form_field_cell">
		<span id="tax_field" style="display: none;"><input name="tax_rate" id="tax_rate" class="input_text" size="10" type="text" value="<?php 
Esempio n. 3
0
<div id="SIAddTAPopup" style="visibility: hidden;">
<div class="box">
	<div class="boxTitle">
		<h3>Add Time</h3><span class="boxTitleRight">&nbsp;</span><span class="boxTitleCorner">&nbsp;</span>
	</div>
	<div class="boxContent">
		<form action="json.php/addTaskActivity" method="POST">
		<table border="0" cellspacing="10" cellpadding="0" class="form_table">
		<tr>
			<td>
				<input type="hidden" name="ta_popup_task_id"  id="ta_popup_task_id" value="">
				<input type="text" class="siACInput" name="ta_popup_task_name" id="ta_popup_task_name" SIZE="50"  value=""><br />
				<div id="ta_popup_ac_container" class="siACContainer"></div>
				<select name="ta_popup_item_code_id" id="ta_popup_item_code_id" CLASS="input_text">
					<?php 
echo SI_ItemCode::getSelectTags();
?>
				</select><br>
				<input type="text" class="input_text" name="ta_popup_start_ts[date]" id="ta_popup_start_ts_date" SIZE="10" autocomplete="off">&nbsp;
				<a href="javascript:;" onclick="Uversa.SureInvoice.Calendar.show('ta_popup_start_ts_date', 'SIAddTAPopup', 'ta_popup_end_ts_date')"><img width="16" height="16" border="0" src="images/dynCalendar.gif"/></a>&nbsp;
				<input type="text" class="input_text" name="ta_popup_start_ts[time]" id="ta_popup_start_ts_time" SIZE="7" autocomplete="off">&nbsp;
				<a href="javascript:;" onclick="Uversa.SureInvoice.Calendar.currentTime('ta_popup_start_ts_date', 'ta_popup_start_ts_time', 'ta_popup_end_ts_date', 'ta_popup_end_ts_time')"><img width="16" height="16" border="0" src="images/set_time.gif"/></a>&nbsp;<br/>
				<input type="text" class="input_text" name="ta_popup_end_ts[date]" id="ta_popup_end_ts_date" SIZE="10" autocomplete="off">&nbsp;
				<a href="javascript:;" onclick="Uversa.SureInvoice.Calendar.show('ta_popup_end_ts_date', 'SIAddTAPopup')"><img width="16" height="16" border="0" src="images/dynCalendar.gif"/></a>&nbsp;
				<input type="text" class="input_text" name="ta_popup_end_ts[time]" id="ta_popup_end_ts_time" SIZE="7" autocomplete="off">&nbsp;
				<a href="javascript:;" onclick="Uversa.SureInvoice.Calendar.currentTime('ta_popup_end_ts_date', 'ta_popup_end_ts_time')"><img width="16" height="16" border="0" src="images/set_time.gif"/></a>&nbsp;<br/>
			</td>
			<td valign="top" class="form_field_cell">
				<textarea name="ta_popup_text" id="ta_popup_text" CLASS="input_text" COLS="45" ROWS="5"></textarea>
			</td>
		</tr>
Esempio n. 4
0
    function importGetItemCodes()
    {
        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'];
        $item_codes = $importer->getItemCodes();
        $html = "";
        foreach ($item_codes 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_ItemCode::getSelectTags($data['param']);
            $html .= <<<EOF
<tr>
\t<td>{$data['name']}</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;
    }
Esempio n. 5
0
echo $_REQUEST['id'];
?>
&item_code_id=<?php 
echo $item_codes[$i]->id;
?>
"><img src="images/delete.gif" width="16" height="16" alt="Delete Item Code" title="Delete Item Code" border="0" /></a>
		</td>
	</tr>
<? }?>
</tbody>
	<tr>
		<td colspan="3" class="dg_data_cell_1">
			<select name="new_item_code_id">
				<option value="0">Select Item Code...</option>
				<?php 
echo SI_ItemCode::getSelectTags(NULL, $rate_structure->item_code_ids);
?>
			</select>
			<input type="submit" class="button" name="save" value="Add">
		</td>
	</tr>
</table>
	</div>
</div>
<div class="tableContainer">
<a href="javascript:;" class="tCollapse" onclick="toggleGrid(this)"><img src="images/arrow_down.jpg" alt="Hide table" />Structure Lines</a><div>
<table border="0" cellspacing="0" cellpadding="0" class="dg_table">
	<tr>
		<th class="dg_header_cell"><a class="link1" href="" onclick="return sortTable('bodyId', 0, 1, false)">Low</a></th>
		<th class="dg_header_cell"><a class="link1" href="" onclick="return sortTable('bodyId', 1, 0, false)">High</a></th>
		<th class="dg_header_cell"><a class="link1" href="" onclick="return sortTable('bodyId', 2, 0, false)">Discount/Hour</a></th>
Esempio n. 6
0
		<div id="task_ac_container_<?php 
echo $i;
?>
" class="siACContainer"></div>
		<select name="item_code_id[<?php 
echo $i;
?>
]" id="item_code_id_<?php 
echo $i;
?>
" CLASS="input_text" tabindex="<?php 
echo 2 + $i * 8;
?>
">
			<?php 
echo SI_ItemCode::getSelectTags($_REQUEST['item_code_id'][$i]);
?>
		</select><br>
		<input type="text" class="input_text" name="start_ts[<?php 
echo $i;
?>
][date]" id="start_ts_date_<?php 
echo $i;
?>
" SIZE="10" autocomplete="off" tabindex="<?php 
echo 3 + $i * 8;
?>
">&nbsp;
		<a href="javascript:;" onclick="Uversa.SureInvoice.Calendar.show('start_ts_date_<?php 
echo $i;
?>
Esempio n. 7
0
?>
</td>
</tr>
<tr>
	<td class="form_field_header_cell">Task:</td>
	<td class="form_field_cell"><?php 
echo $task->name;
?>
</td>
</tr>
<tr>
	<td class="form_field_header_cell">Item Code:</td>
	<td class="form_field_cell">
		<select name="item_code_id" id="item_code_id" class="input_text" onchange="updateExpense()">
			<?php 
echo SI_ItemCode::getSelectTags($expense->item_code_id);
?>
		</select>
	</td>
</tr>
<tr>
	<td class="form_field_header_cell">Description:</td>
	<td class="form_field_cell"><input name="description" id="description" class="input_text" size="35" type="text" value="<?php 
echo $expense->description;
?>
"></td>
</tr>
<tr>
	<td class="form_field_header_cell">Cost:</td>
	<td class="form_field_cell"><input name="cost" id="cost" class="input_text" size="10" type="text" value="<?php 
echo $expense->cost;
Esempio n. 8
0
	<td class="form_field_cell">
		<select name="company_id" class="input_text">
			<option value="0">None</option>
			<?php 
echo SI_Company::getSelectTags($project->company_id);
?>
		</select>
	</td>
</tr>
<tr>
	<td class="form_field_header_cell">Default Item Code:</td>
	<td class="form_field_cell">
		<select name="default_item_code_id" class="input_text">
			<option value="0">None</option>
			<?php 
echo SI_ItemCode::getSelectTags($project->default_item_code_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 $project->due_ts > 0 ? date("n/j/Y", $project->due_ts) : '';
?>
">&nbsp;
		<a href="javascript:;" onclick="Uversa.SureInvoice.Calendar.show('due_ts')"><img width="16" height="16" border="0" src="images/dynCalendar.gif"/></a>&nbsp;	
	</td>
</tr>
<tr>