<option value="06">Jun</option>
                                          <option value="07">Jul</option>
                                          <option value="08">Aug</option>
                                          <option value="09">Sept</option>
                                          <option value="10">Oct</option>
                                          <option value="11">Nov</option>
                                          <option value="12">Dec</option>
                                          </select></td>
                                        <td style="padding:0px 0px 0px 5px"><select name="suspectedTreatmentFailureLastVLDateYear" id="suspectedTreatmentFailureLastVLDateYear" class="search">
                                          		<?
												if($suspectedTreatmentFailureLastVLDate) {
													echo "<option value=\"".getFormattedDateYear($suspectedTreatmentFailureLastVLDate)."\" selected=\"selected\">".getFormattedDateYear($suspectedTreatmentFailureLastVLDate)."</option>";
												} else {
													echo "<option value=\"\" selected=\"selected\">Select Year</option>";
												}
												for($j=getFormattedDateYear(getDualInfoWithAlias("last_day(now())","lastmonth"));$j>=(getCurrentYear()-10);$j--) {
                                                    echo "<option value=\"$j\">$j</option>";
                                                }
                                                ?>
                                          </select></td>
                                        </tr>
                                    </table>
                              </td>
                              <td style="padding: 0px 0px 0px 10px" align="right">Value:</td>
                              <td style="padding:0px 0px 0px 5px"><input type="text" name="suspectedTreatmentFailureValue" id="suspectedTreatmentFailureValue" value="<?php 
echo $suspectedTreatmentFailureValue;
?>
" class="search_pre" size="7" maxlength="10" /></td>
                              <td align="right">Sample&nbsp;Type:</td>
                              <td style="padding:0px 0px 0px 5px">
								<select name="suspectedTreatmentFailureSampleTypeID" id="suspectedTreatmentFailureSampleTypeID" class="search">
Exemplo n.º 2
0
if($_SESSION["VLADMIN"]) {
	$serverAddress=0;
	$serverAddress=$_SESSION["VLADMIN"];
}

//who's the user?
$user=0;
$user=($_SESSION["VLADMIN"]?"admin: ".$_SESSION["VLADMIN"]:"visitor: $ipAddress $serverAddress");

$c=0;
$c=$default_country;

/**
* date/time defaults
* at 11:00hrs hostmonster mysql time == 20:00hrs Ug time
* 20:00hrs Ug time (+3 GMT) == 17:00hrs GMT
* hostmonster == -6 GMT
*/
$datetime=0;
$datetime=getDualInfoWithAlias("now()","datetime");
//$curDate=0;
//$curDate=gmdate("d-M-Y");
$icurDate=0;
$icurDate=getRawFormattedDateLessDay($datetime);
$curTime=0;
$curTime=getFormattedTime($datetime);

//free memory
clearstatcache();
?>
Exemplo n.º 3
0
/**
* function to get current second
*/
function getCurrentSecond() {
	global $c,$default_GMTtimezone;
	//return gmdate("s");
	return getFormattedSeconds(getDualInfoWithAlias("now()","datetime"));
}
                     for($j=getFormattedDateYear($datetime);$j>=(getCurrentYear()-10);$j--) {
                         echo "<option value=\"$j\">$j</option>";
                     }
                     ?>
             </select></td>
           </tr>
         </table></td>
       </tr>
       <tr>
         <td>To:</td>
         <td><table width="10%" border="0" cellspacing="0" cellpadding="0" class="nms">
           <tr>
             <td><select name="toDay" id="toDay" class="search">
               <?
                 for($j=1;$j<=31;$j++) {
                     echo "<option value=\"".($j<10?"0$j":$j)."\" ".($j==getFormattedDateDay(getDualInfoWithAlias("last_day(now())","lastmonth"))?"selected=\"selected\"":"").">$j</option>";
                 }
                 ?>
             </select></td>
 
             <td style="padding:0px 0px 0px 5px"><select name="toMonth" id="toMonth" class="search">
               <? echo "<option value=\"".getFormattedDateMonth($datetime)."\" selected=\"selected\">".getFormattedDateMonthname($datetime)."</option>"; ?>
               <option value="01">January</option>
               <option value="02">February</option>
               <option value="03">March</option>
               <option value="04">April</option>
               <option value="05">May</option>
               <option value="06">June</option>
               <option value="07">July</option>
               <option value="08">August</option>
               <option value="09">September</option>