Esempio n. 1
0
 echo "{$strAllSiteContactsSupported}";
 echo "</td></tr>\n";
 echo "<tr><th>{$strProduct} <sup class='red'>*</sup></th><td>";
 if ($_SESSION['formdata']['add_contract']['product'] != '') {
     echo product_drop_down("product", $_SESSION['formdata']['add_contract']['product']) . "</td></tr>\n";
 } else {
     echo product_drop_down("product", 0) . "</td></tr>\n";
 }
 echo "<tr><th>{$strServiceLevel}</th><td>";
 if ($_SESSION['formdata']['add_contract']['servicelevelid'] != '') {
     $slid = $_SESSION['formdata']['add_contract']['servicelevelid'];
 } else {
     $slid = 0;
     // Default to first service level
 }
 echo servicelevel_drop_down('servicelevelid', $slid, TRUE, "onchange=\"addcontract_sltimed(\$F('servicelevelid'));\"") . "</td></tr>\n";
 // check the initially selected service level to decide whether to show the extra hiddentimed section
 $sltag = servicelevel_id2tag($slid);
 $timed = servicelevel_timed($sltag);
 echo "<tr><th colspan='2' style='text-align: left;'><br />{$strServicePeriod}</th></tr>\n";
 echo "<tr><th>{$strStartDate}</th>";
 echo "<td><input type='text' name='startdate' id='startdate' size='10' value='" . date('Y-m-d', $now) . "' /> ";
 echo date_picker('add_contract.startdate');
 echo "</td></tr>\n";
 echo "<tr><th>{$strExpiryDate}</th>";
 echo "<td><input class='required' name='expiry' size='10' ";
 if ($_SESSION['formdata']['add_contract']['expiry'] != '') {
     echo "value='{$_SESSION['formdata']['add_contract']['expiry']}'";
 }
 echo "/> " . date_picker('add_contract.expiry');
 echo "<input type='checkbox' name='noexpiry' ";
Esempio n. 2
0
 }
 echo "</td></tr>\n";
 echo "<tr><th>{$strExpiryDate}: <sup class='red'>*</sup></th>";
 echo "<td><input name='expirydate' size='10' value='";
 if ($maint['expirydate'] > 0) {
     echo ldate('Y-m-d', $maint['expirydate']);
 }
 echo "' /> " . date_picker('maintform.expirydate');
 if ($maint['expirydate'] == '-1') {
     echo "<input type='checkbox' checked='checked' name='noexpiry' /> {$strUnlimited}";
 } else {
     echo "<input type='checkbox' name='noexpiry' /> {$strUnlimited}";
 }
 echo "</td></tr>\n";
 echo "<tr><th>{$strServiceLevel}:</th><td>";
 echo servicelevel_drop_down('servicelevelid', $maint['servicelevelid'], TRUE);
 echo "</td></tr>\n";
 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'>";