示例#1
0
 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 "<input type='hidden' id='timed' name='timed' value='{$timed}' />";
 echo "<p align='center'><input name='submit' type='submit' value=\"{$strAddContract}\" /></p>";
 echo "</form>";
 include APPLICATION_INCPATH . 'htmlfooter.inc.php';
示例#2
0
 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";
 echo "</tbody>";
 echo "</table>\n";
 echo "<input name='maintid' type='hidden' value='{$maintid}' />";
 echo "<p align='center'><input name='submit' type='submit' value='{$strSave}' /></p>";
 echo "</form>\n";