echo "{$title}</h2>"; echo "<table summary='alphamenu' align='center'><tr><td align='center'>"; echo "<form action='{$_SERVER['PHP_SELF']}' method='get'>"; echo "{$strBrowseContractsBySite}:"; // <!--<input type="text" name="search_string" />--> echo "<input type='text' id='search_string' style='width: 300px;' name='search_string' />"; echo autocomplete('search_string', 'contract'); echo "<label><input type='checkbox' name='activeonly' value='yes' "; if ($activeonly == 'yes') { echo "checked='checked' "; } echo "/> {$strShowActiveOnly}</label>"; echo "<br />{$strByProduct}: "; echo product_drop_down('productid', $productid); echo "{$strByReseller}: "; echo reseller_drop_down('resellerid', $resellerid); echo "<input type='submit' value=\"{$strGo}\" />"; echo "</form>"; echo "</td>"; echo "</tr>"; echo "<tr>"; echo "<td valign='middle'>"; echo "<a href='contract_add.php'>{$strAddContract}</a> | "; echo alpha_index("{$_SERVER['PHP_SELF']}?search_string="); echo "<a href='{$_SERVER['PHP_SELF']}?search_string=*'>{$strAll}</a>"; echo "</td>"; echo "</tr>"; echo "</table>"; // check input /* if (empty($search_string) && empty($productid))
if ($_SESSION['formdata']['add_contract']['incidentrate'] != '') { echo "value='{$_SESSION['formdata']['add_contract']['incidentrate']}' "; } echo "/>"; echo " <span class='required'>{$strRequired}</span></td></tr>\n"; echo "<tr>"; echo "<th>{$strFreeOfCharge}</th>"; echo "<td><input type='checkbox' id='foc' name='foc' value='yes' "; if ($_SESSION['formdata']['add_contract']['foc'] == 'yes') { echo "checked='checked'' "; } echo "/> {$strAboveMustBeCompletedToAllowDeductions}</td></tr>\n"; echo "</tbody>\n"; echo "<tbody id='hidden' style='display:none'>"; echo "<tr><th>{$strReseller}</th><td>"; reseller_drop_down("reseller", 1); echo "</td></tr>\n"; echo "<tr><th>{$strLicenseQuantity}</th><td><input value='0' maxlength='7' name='licence_quantity' size='5' />"; echo " ({$str0MeansUnlimited})</td></tr>\n"; echo "<tr><th>{$strLicenseType}</th><td>"; licence_type_drop_down("licence_type", 0); echo "</td></tr>\n"; echo "<tr><th>{$strIncidentPool}</th>"; $incident_pools = explode(',', "{$strUnlimited},{$CONFIG['incident_pools']}"); echo "<td>" . array_drop_down($incident_pools, 'incident_poolid', $maint['incident_quantity']) . "</td></tr>\n"; echo "<tr><th>{$strProductOnly}</th><td><input name='productonly' type='checkbox' value='yes' /></td></tr></tbody>\n"; echo "</table>\n"; if ($timed) { $timed = 'yes'; } else { $timed = 'no';
echo "<tr><th>{$strAdminContact}: <sup class='red'>*</sup></th><td>"; echo contact_drop_down("admincontact", $maint["admincontact"], true); echo "</td></tr>\n"; echo "<tr><th>{$strNotes}:</th><td><textarea cols='40' name='notes' rows='5'>"; echo $maint["notes"]; echo "</textarea></td></tr>\n"; echo "<tr><th>{$strTerminated}:</th><td><input name='terminated' id='terminated' type='checkbox' value='yes'"; if ($maint["term"] == "yes") { echo " checked"; } echo " /></td></tr>\n"; echo "<tr><th></th><td><a href=\"javascript:void(0);\" onclick=\"\$('hidden').toggle();\">{$strAdvanced}</a></td></tr>"; echo "</thead>\n"; echo "<tbody id='hidden' style='display:none'>"; echo "<tr><th>{$strReseller}:</th><td>"; echo reseller_drop_down("reseller", $maint["reseller"]); echo "</td></tr>\n"; echo "<tr><th>{$strLicenseQuantity}:</th>"; echo "<td><input maxlength='7' name='licence_quantity' size='5' value='{$maint['licence_quantity']}' /></td></tr>\n"; echo "<tr><th>{$strLicenseType}:</th><td>"; echo licence_type_drop_down("licence_type", $maint["licence_type"]); echo "</td></tr>\n"; echo "<tr><th>{$strIncidentPool}:</th>"; $incident_pools = explode(',', "Unlimited,{$CONFIG['incident_pools']}"); echo "<td>" . array_drop_down($incident_pools, 'incident_poolid', $maint['incident_quantity'], '', TRUE, FALSE) . "</td></tr>"; echo "<tr><th>{$strProductOnly}:</th>"; echo "<td><input name='productonly' type='checkbox' value='yes' onclick='set_terminated();' "; if ($maint["productonly"] == "yes") { echo " checked"; } echo " /></td></tr>\n";