MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /var/www/html/pathumthani_eoffice/application/bin/auction_news/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/pathumthani_eoffice/application/bin/auction_news/blankpage.php
<?php //session_start();
//include("chk_permission.php"); 
include("../../config/config.inc.php");
include("libary/function.php"); 

$xsdate_place = swapdate($sdate_place);
$xedate_place = swapdate($edate_place);
$xexpire_day =  swapdate($expire_day);

//$temp_p1 = $stime_place1.$stime_place2;
//$temp_p2 = $etime_place1.$etime_place2;
//เวลาดูสถานที่
if($stime_place1 != "" and  $etime_place1 != ""){
	$xstime_place = add_zero($stime_place1).":".$stime_place2;
	$xetime_place = add_zero($etime_place1).":".$etime_place2;
}

// เวลาซื้อเอการ
//$temp_doc1 = $stime_doc1.$stime_doc2;
//$temp_doc2 = $etime_doc1.$etime_doc2;
if($stime_doc1 != "" and  $etime_doc1 != ""){
	$xstime_doc = add_zero($stime_doc1).":".$stime_doc2;
	$xetime_doc = add_zero($etime_doc1).":".$etime_doc2;
}

// เวลา ยื่นซอง
//$temp_offer1 = $stime_offer1.$stime_offer2;
//$temp_offer2 = $etime_offer1.$etime_offer2;
if($stime_offer1 != "" and  $etime_offer1 != ""){
	$xstime_offer = add_zero($stime_offer1).":".$stime_offer2;
	$xetime_offer = add_zero($etime_offer1).":".$etime_offer2;
}

if($stime_close1 != "" and $etime_close1 != ""){ 
$xstime_close = add_zero($stime_close1).":".$stime_close2;
$xetime_close = add_zero($etime_close1).":".$etime_close2;
}


$pur_doc_d1 = swapdate($pur_doc_d1);
$pur_doc_d2 = swapdate($pur_doc_d2);
$pur_offer_d1 = swapdate($pur_offer_d1);
$pur_offer_d2 = swapdate($pur_offer_d2);
$pur_close_d = swapdate($pur_close_d);
$stamp = date("Y-m-d H:i:s"); 
//$detail = CheckTag($message);
//$org=mysql_fetch_assoc(mysql_query("select type_name from  
 $xstaffid  = $_SESSION[session_staffid]  ;
 $arr_orgid =   $_SESSION[session_org] ; 
$now_orgid = $arr_orgid[$xstaffid] ; 
$rdep=mysql_fetch_assoc(mysql_query("select gid,groupname from org_staffgroup where gid='$now_orgid'"));

?>
<?php if($_POST[action]== "add"){
$sql = "insert into `auction` set  owner='$session_staffid', type = '$type', subject='$subject', depname = '$depname', gid='$gid',detail = '$detail',price='".str_replace(",","",$price)."'";
$query = mysql_query($sql)or die("Query line " . __LINE__ . " error<hr>".mysql_error());

		//$row=mysql_fetch_array(mysql_query("select *  from auction"));	
			//$query = mysql_query($sql)or die("Query line " . __LINE__ . " error<hr>".mysql_error());
			$aa= mysql_insert_id();
			echo "<meta http-equiv='refresh' content='1;url=blankpage.php?action=process_2&id=$aa'>" ;
			// $msg = "<b class='blue'>Please Wait</b><br>เข้าสู่ขั้นตอนที่ 2";include("msg_box.php");
			//exit;	*/
	}
	?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<LINK href="../../common/style.css" rel=StyleSheet type="text/css">
<title></title>
<style type="text/css">
<!--
.style1 {font-size: 10px}
-->
</style>
</head>
<script>
function currencyFormat(fld, milSep, decSep,e) {
  var sep = 0;
  var key = '';
  var i = j = 0;
  var len = len2 = 0;
  var strCheck = '0123456789';
  var aux = aux2 = '';
  var whichCode = (window.Event) ? e.which : e.keyCode;

 if (whichCode == 13) return true;  // Enter
  if (whichCode == 8) return true;  // Delete
 key = String.fromCharCode(whichCode);  // Get key value from key code
  if (strCheck.indexOf(key) == -1) return false;  // Not a valid key
  len = fld.value.length;
  for(i = 0; i < len; i++)
  if ((fld.value.charAt(i) != '0') && (fld.value.charAt(i) != decSep)) break;
  aux = '';
  for(; i < len; i++)
  if (strCheck.indexOf(fld.value.charAt(i))!=-1) aux += fld.value.charAt(i);
  aux += key;
  len = aux.length;
  if (len == 0) fld.value = '';
  if (len == 1) fld.value = '0'+ decSep + '0' + aux;
  if (len == 2) fld.value = '0'+ decSep + aux;
  if (len > 2) {
    aux2 = '';
    for (j = 0, i = len - 3; i >= 0; i--) {
      if (j == 3) {
        aux2 += milSep;
        j = 0;
      }
      aux2 += aux.charAt(i);
      j++;
    }
    fld.value = '';
    len2 = aux2.length;
    for (i = len2 - 1; i >= 0; i--)
    fld.value += aux2.charAt(i);
    fld.value += decSep + aux.substr(len - 2, len);
  }
  return false;
}
function show_table(id) { // ฟังก์ชั่นซ่อนแสดงตาราง
	if(id == "9999") { // ถ้าเลือก radio button 1 ให้โชว์ table 1 และ ซ่อน table 2
	// alert('มาละ'+id);
	document.getElementById("type").style.display = "";
	 document.getElementById("show").style.display="";
	}
else { // ถ้าเลือก radio button 2 ให้โชว์ table 2 และ ซ่อน table 1 
	document.getElementById("show").style.display = "none";
	//alert('ไม่มา'+id);
	}
	}
</script>
<body bgcolor="#FFFFFF">


<input name="action" type="hidden" value="">
<p>
  <? if($action==""){
?>
</p>
<table width="600" height="207" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999">
  <tr>
    <td width="468" bgcolor="#FFFFFF"><span class="normal_blue"><strong>บันทึกข้อมูลข่าวการจัดซื้อจัดจ้าง</strong></span></td>
    <td width="7%" align="center" bgcolor="#C1E2F8"><strong>1</strong></td>
    <td width="7%" align="center" bgcolor="#FFFFFF" <? if($action=="process_2"){echo "bgcolor=\"#0099CC\"";}?>><strong>2</strong></td>
    <td width="7%" align="center" bgcolor="#FFFFFF" <? if($action=="process_3"){echo "bgcolor=\"#0099CC\"";}?>><strong>3</strong></td>
    <td width="7%" align="center" bgcolor="#FFFFFF" <? if($action=="process_4"){echo "bgcolor=\"#0099CC\"";}?>><strong>4</strong></td>
    <td width="7%" align="center" bgcolor="#FFFFFF" <? if($action=="process_5"){echo "bgcolor=\"#0099CC\"";}?>><strong>5</strong></td>
  </tr>
  <tr>
    <td colspan="6" align="center" bgcolor="#FFFFFF"><form id="form1" name="form1" method="post" action="">
    <table width="99%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC" class="normal_black">
              <tr bgcolor="#f8f8f8">
                <td height="20" colspan="2" bgcolor="#C1E2F8" class="normal_blue">&nbsp;<img src="../../images/page.gif" width="18" height="18" border="0" align="absmiddle" />ข้อมูลพื้นฐาน</td>
              </tr>
              <tr valign="top">
                <td width="112" height="20" align="right" bgcolor="#F8F8F8">เรื่อง&nbsp;<b>:</b>&nbsp;</td>
                <td bgcolor="#F8F8F8"><input name="subject" type="text" id="subject" size="45" />
                    <span class="redlink">*</span></td>
              </tr>
              <tr valign="top">
                <td width="112" height="9" align="right" bgcolor="#F8F8F8">หน่วยงาน&nbsp;<b>:</b>&nbsp;</td>
                <td bgcolor="#F8F8F8"><? if($session_apppermit[4][10]){echo "<input name=\"depname\" type=\"text\" id=\"depname\" size=\"45\"value=\"$rdep[groupname]\" />
                <span class=\"redlink\">
                <input type=\"button\" name=\"button\" value=\"...\" onclick=\"MM_openBrWindow('org_select.php?type=organize','','location=yes,status=yes,scrollbars=yes,width=600,height=400')\">
                *</span>";}else{echo "<input name=\"depname\" type=\"text\" id=\"depname\" size=\"45\" value=\"$rdep[groupname]\" readonly=\"readonly\"/>
                <span class=\"redlink\">
                 *</span>";}?>
                    <input name="gid" type="hidden" id="gid" value="<?=$now_orgid?>" />                </td>
              </tr>
              <?php /*?> <? if($_SESSION['session_office']>800) { ?>
            <tr valign="top">
              <td height="20" align="right">แสดงไว้หน้าแรก&nbsp;<b>:</b>&nbsp;</td>
              <td width="592" height="20"><input name="auction_order" type="checkbox" id="auction_order" value="1" <? if($ers[auction_order]=="1") { echo "checked=\"checked\""; } ?> onclick="javascript:chkTop();" />
                แสดงไว้หน้าแรก&nbsp; [
                <? $sql = mysql_query("select count(*) AS curr_auction_order from `auction` where auction_order=1 ") or die("Query line " . __LINE__ . " Error<hr>".mysql_error()); $rsx = mysql_fetch_assoc($sql); echo($rsx[curr_auction_order]); ?>
                /
                <? $sql = mysql_query("select max_clip from `optional`") or die("Query line " . __LINE__ . " Error<hr>".mysql_error()); $rsx = mysql_fetch_assoc($sql); echo($rsx[max_clip]); ?>
                ]</td>
            </tr>
            <? } ?>
            <tr valign="top" id="auction_order_expire" <? if($ers[auction_order]!="1") { echo "style=\"display:none;\""; } ?>>
              <td height="20" align="right">วันหมดอายุ&nbsp;<b>:</b>&nbsp;</td>
              <td width="592" height="20"><input type="text" name="expire_day" id="expire_day" class="input" maxlength="10" style="width:200px;" value="<? if($ers[expire_day] != "0000-00-00"){ echo $eexpire_day;}?>" readonly="readonly" />
                      <script language='JavaScript' type="text/javascript"> if (!document.layers) {	document.write("<input type=button onclick='popUpCalendar(this, post.expire_day, \"dd/mm/yyyy\")' value=' เลือกวัน ' class='input'>")	} </script>              </td>
            </tr><?php */?>
              <?php /*?><tr valign="top">
              <td height="20" align="right">สถานะผู้ประกวดราคา&nbsp;<b>:</b>&nbsp;</td>
              <td height="20"><input name="auction_status" type="checkbox" id="auction_status" value="1" <? if($ers[auction_status]=="1") { echo "checked=\"checked\""; } ?> onclick="javascript:chkTop2();" />
                ได้ผู้ประกวดราคาแล้ว</td>
            </tr>
            <tr id="auction_status_expire" <? if($ers[auction_status]!="1") { echo "style=\"display:none;\""; } ?>>
              <td height="20" align="right" valign="top">หมายเหตุ&nbsp;<b>:</b>&nbsp;</td>
              <td height="20"><textarea name="auction_note" rows="4" class="input" id="auction_note" style="width:450px;"></textarea></td>
            </tr><?php */?>
              <tr>
                <td height="20" colspan="2" align="left" bgcolor="#C1E2F8">&nbsp;&nbsp;<img src="../../images/page.gif" align="absmiddle" />รายละเอียดของข่าวการจัดซื้อจัดจ้าง<span class="redlink">*</span></td>
              </tr>
              <tr bgcolor="#f8f8f8">
                <td width="112"><!-- --------------------------------------------------------------BB Code -->
                    <!-- ---------------------------------------------------------End BB Code -->                </td>
                <td align="left" valign="top"><textarea name="detail" cols="70" rows="5" class="input" style="width:450px;"></textarea>
                    <span class="redlink">*</span></td>
              </tr>
              <tr>
                <td  width="112" height="20" align="right" bgcolor="#F8F8F8">ราคากลาง&nbsp;<b>:</b>&nbsp;</td>
                <td bgcolor="#F8F8F8"><input name="price" type="text" id="price"   onkeypress="return(currencyFormat(this,',','.',event))" value="0" size="25" />
                    <span class="redlink">*</span>บาท</td>
              </tr>
              <!--<tr>
                                <td width="180" height="20" align="right"><img src="../../images/attach.gif" align="absmiddle">&nbsp;ไฟล์แนบ&nbsp;<b>:</b>&nbsp;</td>
                                <td width="592"><input name="file" type="file" class="input" style="width:200px;"></td>
                              </tr>-->
              <tr>
                <td width="112" height="20" align="right" bgcolor="#F8F8F8" >ประเภทการจัดซื้อ&nbsp;<b>:</b>&nbsp;</td>
                <?php  //$ers=mysql_fetch_assoc(mysql_query("select * from auction_type")); if($ers[id]=="2"){echo "2";}else{echo $ers[id];}?>
                <td align="left" bgcolor="#F8F8F8"><select name="type"  id="type" class="input" style="width:200px;"  onchange="show_table(this.value);">
                    <option value="" selected="selected" >- - กรุณาเลือก - -</option>
                    <?  
					$list = mysql_query("select * from `auction_type` ")or die("Query line " . __LINE__ . " Error<hr>".mysql_error()); 
			//listbox("auction_type","");
			 					/*					 	while( $rs_list = mysql_fetch_assoc($list)){
																if($ers[type] == $rs_list[id]){ $selected = "selected";
																echo "<input name=\"type_id\" type=\"text\" id=\"type_id\" value=\"<?=$rs_list[id];?>\" />";
																 }else{ $selected = ""; }
								echo "<option value=\"$rs_list[id]\" class=\"normal_blue\" $selected>$rs_list[detail]</option>";
									}*/
														//$sql_listbox="select  *  from  $table ";
//$query_listbox=mysql_query($sql_listbox);
while($row_listbox=mysql_fetch_row($list)){
echo "<option value='$row_listbox[0]' ";
if($row_listbox[0]==$value ){echo "selected";}
echo ">";
echo $row_listbox[1];
echo "</option>";
}
?>
                  </select>
                  <span class="redlink">*</span> <div id="show"  style="display:none" class="normal_blue" align="left"\>
                    <input name="type1" type="text" size="25" />
                  <span class="redlink">*<span class="style1">โปรดระบุข่าวของท่าน</span></span></div></td>
              </tr>
           
        </table>
<input name="submit" type="submit" class="input" style="width:100;" value="ขั้นตอนที่ 2" />
&nbsp;
<input name="button" type="button" class="input" style="width:100;" onClick="<? $app_id=4; if($session_apppermit[$app_id][10]){echo "location='auction_index.php'" ;}else {echo "location='display.php'";}?>" value="กลับหน้าหลัก" />
<input name="action" type="hidden" id="action" value="add" />
<input name="id" type="hidden" id="id" value="<?=$id;?>" />
    </form></td>
  </tr>
</table>
<br>
<? }
 if($action=="process_2"){ ?>
<table width="600" height="207" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999">
  <tr>
    <td width="467" bgcolor="#FFFFFF"><span class="normal_black"><strong>ซื้อเอกสารสอบราคา / ซื้อเอกสารการประมูล ฯ</strong></span></td>
    <td width="7%" align="center"  bgcolor="#C1E2F8"><strong>1</strong></td>
    <td width="7%" align="center" bgcolor="#C1E2F8" ><strong>2</strong></td>
    <td width="7%" align="center" bgcolor="#FFFFFF" ><strong>3</strong></td>
    <td width="7%" align="center" bgcolor="#FFFFFF" ><strong>4</strong></td>
    <td width="7%" align="center" bgcolor="#FFFFFF" ><strong>5</strong></td>
  </tr>
  <tr>
    <td colspan="6" align="center" bgcolor="#FCFCFC"><form id="form1" name="form1" method="post" action="">
        <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="#eeeeee" bgcolor="#CCCCCC">
        <tr bgcolor="#f8f8f8">
          <td height="20" colspan="2" align="left" bgcolor="#C1E2F8" class="blue">&nbsp;<img src="../../images/email_open.gif" width="15" height="12" align="absmiddle" />&nbsp;</td>
        </tr>
        <tr>
          <td width="180" height="20" align="right" bgcolor="#FCFCFC">ตั้งแต่วันที่&nbsp;<b>:</b>&nbsp;</td>
          <td width="592" bgcolor="#FCFCFC"><input type="text" name="pur_doc_d1" id="Txt-Field" class="input" maxlength="10" style="width:200px;" readonly="readonly" />
              <script language='JavaScript' type="text/javascript">
	if (!document.layers) {	document.write("<input type=button  name=st_doc onclick='popUpCalendar(this, post.pur_doc_d1, \"dd/mm/yyyy\")' value=' เลือกวัน ' class='input'>")	}
	          </script>
              <span class="redlink">*</span></td>
        </tr>
        <tr>
          <td width="180" height="20" align="right" bgcolor="#FCFCFC">ถึงวันที่&nbsp;<b>:</b>&nbsp;</td>
          <td width="592" bgcolor="#FCFCFC"><input type="text" name="pur_doc_d2" id="Txt-Field" class="input" maxlength="10" style="width:200px;" readonly="readonly" />
              <script language='JavaScript' type="text/javascript">
	if (!document.layers) {	document.write("<input type=button  name=ex_doc onclick='popUpCalendar(this, post.pur_doc_d2, \"dd/mm/yyyy\")' value=' เลือกวัน ' class='input'>")	}
	          </script></td>
        </tr>
        <tr valign="top">
          <td height="20" align="right" bgcolor="#FCFCFC">เวลาเริ่มต้น&nbsp;<b>:&nbsp;</b></td>
          <td bgcolor="#FCFCFC"><select name="stime_doc1" class="input" style="width:50px;">
              <? 
for($n=8;$n<=23;$n++){
	if($stime_doc_arr[0] == $n){ $selected = "selected"; }else{ $selected = ""; }
	echo "<option value=\"$n\" class=\"normal\" $selected>".add_zero($n)."</option>";
}
$selected = "";
?>
            </select>
            &nbsp;นาฬิกา&nbsp;
            <select name="stime_doc2" class="input" style="width:50px;">
              <?
for($o=0;$o<60;$o++){
	if(($o % 5) == 0){ 
		if($action == "edit"){if($stime_doc_arr[1] == $o){ $selected = "selected"; }else{ $selected = ""; }}
		echo "<option value=\"".add_zero($o)."\" class=\"normal\" $selected>".add_zero($o)."</option>" ;
	}
}
$selected = "";
?>
            </select>
            &nbsp;นาที <span class="redlink">*</span></td>
        </tr>
        <tr valign="top">
          <td height="20" align="right" bgcolor="#FCFCFC">เวลาสิ้นสุด&nbsp;<b>:&nbsp;</b></td>
          <td bgcolor="#FCFCFC"><select name="etime_doc1" class="input" style="width:50px;">
              <? 
for($n1=6;$n1<=23;$n1++){
	if($etime_doc_arr[0] == $n1){ $selected = "selected"; }else{ $selected = ""; }
	echo "<option value=\"$n1\" class=\"normal\" $selected>".add_zero($n1)."</option>";
}
$selected = "";
?>
            </select>
            &nbsp;นาฬิกา&nbsp;
            <select name="etime_doc2" class="input" style="width:50px;">
              <?
for($o1=0;$o1<60;$o1++){
	if(($o1 % 5) == 0){ 
		if($action == "edit"){if($etime_doc_arr[1] == $o1){ $selected = "selected"; }else{ $selected = ""; }}
		echo "<option value=\"".add_zero($o1)."\" class=\"normal\" $selected>".add_zero($o1)."</option>" ;
	}
}
$selected = "";
?>
            </select>
            &nbsp;นาที <span class="redlink">*</span></td>
        </tr>
        <tr valign="top">
          <td width="180" height="20" align="right" bgcolor="#FCFCFC">รายละเอียด&nbsp;<b>:</b>&nbsp;</td>
          <td width="592" bgcolor="#FCFCFC"><textarea name="pur_doc_detail" rows="4" class="input" style="width:450px;"></textarea></td>
        </tr>
      </table>
      <input name="submit2" type="submit" class="input" style="width:100;" value="ขั้นตอนที่ 3" />
      &nbsp;
      <input name="button2" type="button" class="input" style="width:100;" onClick="<? $app_id=4; if($session_apppermit[$app_id][10]){echo "location='auction_index.php'" ;}else {echo "location='display.php'";}?>" value="กลับหน้าหลัก" />
      <input name="action2" type="hidden" id="action2" value="add" />
      <input name="id2" type="hidden" id="id2" value="<?=$id;?>" />
      </form></td>
  </tr>
</table>
<p>
  <? } else if($action=="process_3"){?>
</p>
<table width="600" height="207" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#999999">
  <tr>
    <td width="467" bgcolor="#FFFFFF"><strong>ดูสถานที่ </strong></td>
    <td width="7%" align="center"  bgcolor="#C1E2F8"><strong>1</strong></td>
    <td width="7%" align="center" bgcolor="#C1E2F8" ><strong>2</strong></td>
    <td width="7%" align="center" bgcolor="#C1E2F8" ><strong>3</strong></td>
    <td width="7%" align="center" bgcolor="#FFFFFF" ><strong>4</strong></td>
    <td width="7%" align="center" bgcolor="#FFFFFF" ><strong>5</strong></td>
  </tr>
  <tr>
    <td colspan="6" align="center" bgcolor="#FCFCFC"><form id="form1" name="form1" method="post" action="">
      <table width="98%" border="0" align="center" cellpadding="2" cellspacing="1" bordercolor="#eeeeee" bgcolor="#999999">
        <tr>
          <td height="20" colspan="2" align="left" bgcolor="#C1E2F8">&nbsp;<img src="../../images/box_view.png" width="15" height="15" /></td>
        </tr>
        <tr>
          <td width="180" height="20" align="right" bgcolor="#FFFFFF">ตั้งแต่วันที่&nbsp;<b>:&nbsp;</b></td>
          <td bgcolor="#FFFFFF"><input type="text" name="sdate_place" id="sdate_place" class="input" maxlength="10" style="width:200px;" readonly="readonly" />
              <script language='JavaScript' type="text/javascript">
	if (!document.layers) {	document.write("<input type=button name=st_place onclick='popUpCalendar(this, post.sdate_place, \"dd/mm/yyyy\")' value=' เลือกวัน ' class='input'>")	}
	          </script></td>
        </tr>
        <tr>
          <td width="180" height="20" align="right" bgcolor="#FFFFFF">ถึงวันที่&nbsp;<b>:</b>&nbsp;</td>
          <td bgcolor="#FFFFFF"><input type="text" name="edate_place" id="edate_place" class="input" maxlength="10" style="width:200px;" readonly="readonly" />
              <script language='JavaScript' type="text/javascript">
	if (!document.layers) {	document.write("<input type=button onclick='popUpCalendar(this, post.edate_place, \"dd/mm/yyyy\")' value=' เลือกวัน ' class='input'>")	}
	          </script></td>
        </tr>
        <tr>
          <td width="180" height="20" align="right" bgcolor="#FFFFFF">เวลาเริ่มต้น&nbsp;<b>:&nbsp;</b></td>
          <td bgcolor="#FFFFFF"><select name="stime_place1" class="input" style="width:50px;">
              <? 
for($t=6;$t<=23;$t++){
	if($stime_place_arr[0] == $t){ $selected = "selected"; }else{ $selected = ""; }
	echo "<option value=\"$t\" class=\"normal\" $selected>".add_zero($t)."</option>";
}
$selected = "";
?>
            </select>
            &nbsp;นาฬิกา&nbsp;
            <select name="stime_place2" class="input" style="width:50px;">
              <?
for($m=0;$m<60;$m++){
	if(($m % 5) == 0){ 
		if($action == "edit"){if($stime_place_arr[1] == $m){ $selected = "selected"; }else{ $selected = ""; }}
		echo "<option value=\"".add_zero($m)."\" class=\"normal\" $selected>".add_zero($m)."</option>" ;
	}
}
$selected = "";
?>
            </select>
            &nbsp;นาที</td>
        </tr>
        <tr>
          <td width="180" height="20" align="right" bgcolor="#FFFFFF">เวลาสิ้นสุด&nbsp;<b>:&nbsp;</b></td>
          <td bgcolor="#FFFFFF"><select name="etime_place1" class="input" style="width:50px;">
              <? 
for($t=6;$t<=23;$t++){
	if($etime_place_arr[0] == $t){ $selected = "selected"; }else{ $selected = ""; }
	echo "<option value=\"$t\" class=\"normal\" $selected>".add_zero($t)."</option>";
}
$selected = "";
?>
            </select>
            &nbsp;นาฬิกา&nbsp;
            <select name="etime_place2" class="input" style="width:50px;">
              <?
for($m=0;$m<60;$m++){
	if(($m % 5) == 0){ 
		if($action == "edit"){if($etime_place_arr[1] == $m){ $selected = "selected"; }else{ $selected = ""; }}
		echo "<option value=\"".add_zero($m)."\" class=\"normal\" $selected>".add_zero($m)."</option>" ;
	}
}
$selected = "";
?>
            </select>
            &nbsp;นาที</td>
        </tr>
        <tr valign="top">
          <td width="180" height="20" align="right" bgcolor="#FFFFFF">รายละเอียด&nbsp;<b>:</b>&nbsp;</td>
          <td width="592" bgcolor="#FFFFFF"><textarea name="place_detail" rows="4" class="input" id="place_detail" style="width:450px;"></textarea></td>
        </tr>
      </table>
      <input name="submit22" type="submit" class="input" style="width:100;" value="ขั้นตอนที่ 3" />
      &nbsp;
      <input name="button22" type="button" class="input" style="width:100;" onClick="<? $app_id=4; if($session_apppermit[$app_id][10]){echo "location='auction_index.php'" ;}else {echo "location='display.php'";}?>" value="กลับหน้าหลัก" />
      <input name="action22" type="hidden" id="action22" value="add" />
      <input name="id22" type="hidden" id="id22" value="<?=$id;?>" />
    </form></td>
  </tr>
</table>
<? } ?>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

Anon7 - 2021