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/eoffice/application/document/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/html/eoffice/application/document/docreg_search.php
<?
// print_r($_SESSION);
$_SESSION[session_type]=$_GET[type];
if(!$type){$type=$_SESSION[session_type];}
if(!$type){$type="all";}
?>
<script language="JavaScript" type="text/javascript">
function showEle(divname){
if(document.getElementById(divname).style.display == 'none'){
document.getElementById(divname).style.display = 'block';
} else {  
document.getElementById(divname).style.display = 'none';
}
}
</script>









<form action="docreg.php?type=all" method="post" enctype="multipart/form-data" name="post" id="post">
<div id="div_search_all" style="display:block;">
	<table width="96%" border="0" align="center" cellpadding="1" cellspacing="0" bgcolor="#E6E6E6" class="login_fill3" style="border:1px solid #5595CC;">
		<tr>
			<td align="left"><img src="../../images/ico_srch.gif" width="16" height="16" /> ÃкؤӤé¹ËÒ
				<input type="text" name="keyword" class="input" style="width:200px; height:20px; background-color:#ffffff;" />
				&nbsp;	&nbsp;
					<select name="topic" class="input" style="width:150px; height:20px;">
						<option value="">- àÅ×Í¡»ÃÐàÀ·¤é¹ËÒ -</option>
						<option value="title">àÃ×èͧ</option>
						<option value="docid">àŢ˹ѧÊ×Í </option>
						<option value="refid">àÍ¡ÊÒÃàÅ¢·Õè </option>
						<option value="sending">¨Ò¡</option>
						<option value="getting">¶Ö§</option>
					</select>&nbsp;&nbsp;
					<select name="type_doc" class="input" style="width:150px; height:20px;">
					<option value=""> - àÅ×Í¡»ÃÐàÀ·àÍ¡ÊÒà - </option>
					<option value="get">˹ѧÊ×ÍÃѺ</option>
					<option value="sent">˹ѧÊ×ÍÊè§</option>
					<option value="circular">˹ѧÊ×ÍàÇÕ¹</option>
					</select>
					<input type="hidden" name="page2" value="1" />
					<input name="search" type="hidden" id="search" value="now" />
					<input type="hidden" name="type" value="get" />
					<input type="submit" name="submit" value="Go" style="width:50;" class="input" />
					<br />
					<? if ($session_permit[200]) {?>
					<table width="98%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td colspan="4"><hr /></td>
						</tr>
						<tr>
							<td colspan="4"><strong>ÃкØÇѹ·Õè</strong></td>
						</tr>
						<tr>
							<td width="99" align="right">ŧÇѹ·Õè  :</td>
							<td width="200"><input name="pdate_a" type="text" id="pdate_a" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly="readonly" />
									<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.pdate_a, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" /> </td>
							<td width="50">¶Ö§</td>
							<td width="567"><input name="pdate_b" type="text" id="pdate_b" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly="readonly"/>
									<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.pdate_b, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" /> </td>
						</tr>
						<!--			<tr>
				<td align="right">ÃкØÇѹºÑ¹·Ö¡ : </td>
				<td>
				
<input name="rdate_a" type="text" id="rdate_a" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly/>
<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.rdate_a, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" />				</td>
				<td>¶Ö§</td>
				<td>
				
				<input name="rdate_b" type="text" id="rdate_b" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly/>
					<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.rdate_b, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" />			</tr>
			<tr>-->
						<tr>
							<td colspan="4" align="left"><strong>ÃкءÒäé¹ËÒã¹¡ÅØèÁ¨´ËÁÒÂÊè§µèÍ
									<input name="receive_search" type="hidden" id="receive_search" value="on" />
							</strong></td>
						</tr>
						<tr>
							<td align="right">ÇѹÊè§µèÍàÍ¡ÊÒà : </td>
							<td><input name="sdate_a" type="text" id="sdate_a" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly="readonly"/>
									<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.sdate_a, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" /> </td>
							<td>¶Ö§</td>
							<td><input name="sdate_b" type="text" id="sdate_b" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly="readonly"/>
									<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.sdate_b, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" /> </td>
						</tr>
						<tr>
							<td align="right">ÇѹÃѺ·ÃÒº : </td>
							<td><input name="kdate_a" type="text" id="kdate_a" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly="readonly"/>
									<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.kdate_a, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" /> </td>
							<td>¶Ö§</td>
							<td><input name="kdate_b" type="text" id="kdate_b" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly="readonly"/>
									<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.kdate_b, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" /> </td>
						</tr>
						<tr>
							<td align="right">ÇѹÃѺµé¹©ºÑº : </td>
							<td><input name="tdate_a" type="text" id="tdate_a" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly="readonly"/>
									<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.tdate_a, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" /> </td>
							<td>¶Ö§</td>
							<td><input name="tdate_b" type="text" id="tdate_b" onkeypress="chk_key_in(this.value, this.id);" size="20" maxlength="10" readonly="readonly"/>
									<img src="../..//images/calendar.png" alt="Çѹ/à´×͹/»Õ" width="24" height="24" border="0" align="absmiddle"  onclick="popUpCalendar(this, post.tdate_b, 'dd/mm/yyyy')" onmouseover="this.style.cursor='hand'"value="Çѹ à´×͹ »Õ" /> </td>
						</tr>
						<tr>
							<td align="right">¼ÙéÃѺ : </td>
							<td><input type="text" name="staff_search" /></td>
							<td><!--˹èǧҹ--></td>
							<td><!--<input name="group_search" type="text" id="group_search" />--></td>
						</tr>
						<tr>
							<td width="99">&nbsp;</td>
							<td width="200">&nbsp;</td>
							<td>&nbsp;</td>
							<td>&nbsp;</td>
						</tr>
					</table>
				<?}?>
			</td>
		</tr>
	</table>
</div>
<?
if (($_SERVER[REQUEST_METHOD] == "POST")){ 

// print_r($_SESSION);

	$page="1";
	$_SESSION[session_keyword]=$keyword;
	$_SESSION[session_topic]=$topic;
	$_SESSION[session_type_doc]=$type_doc;

	if((!$pdate_a)&&($pdate_b)){$pdate_a=$pdate_b;}
	if((!$pdate_b)&&($pdate_a)){$pdate_b=$pdate_a;}
	$_SESSION[session_pdate_a]=$pdate_a;
	$_SESSION[session_pdate_b]=$pdate_b;

	if((!$rdate_a)&&($rdate_b)){$rdate_a=$rdate_b;}
	if((!$rdate_b)&&($rdate_a)){$rdate_b=$rdate_a;}
	$_SESSION[session_rdate_a]=$rdate_a;
	$_SESSION[session_rdate_b]=$rdate_b;

	if((!$sdate_a)&&($sdate_b)){$sdate_a=$sdate_b;}
	if((!$sdate_b)&&($sdate_a)){$sdate_b=$sdate_a;}
	$_SESSION[session_sdate_a]=$sdate_a;
	$_SESSION[session_sdate_b]=$sdate_b;

	if((!$kdate_a)&&($kdate_b)){$kdate_a=$kdate_b;}
	if((!$kdate_b)&&($kdate_a)){$kdate_b=$kdate_a;}
	$_SESSION[session_kdate_a]=$kdate_a;
	$_SESSION[session_kdate_b]=$kdate_b;

	if((!$tdate_a)&&($tdate_b)){$tdate_a=$tdate_b;}
	if((!$tdate_b)&&($tdate_a)){$tdate_b=$tdate_a;}
	$_SESSION[session_tdate_a]=$tdate_a;
	$_SESSION[session_tdate_b]=$tdate_b;


	$_SESSION[session_staff_search]=$staff_search;
	$_SESSION[session_group_search]=$group_search;
}else{

//	$page="1";
	$keyword=$_SESSION[session_keyword];
	$topic=$_SESSION[session_topic];
	$type_doc = $_SESSION[session_type_doc];

	$pdate_a=$_SESSION[session_pdate_a];
	$pdate_b=$_SESSION[session_pdate_b];
	if((!$pdate_a)&&($pdate_b)){$pdate_b=$session_pdate_a;}
	if((!$pdate_b)&&($pdate_a)){$pdate_a=$session_pdate_b;}

	$rdate_a=$_SESSION[session_rdate_a];
	$rdate_a=$_SESSION[session_rdate_b];
	if(!$rdate_a){$rdate_b=$session_rdate_a;}
	if(!$rdate_b){$rdate_a=$session_rdate_b;}

	$sdate_a=$_SESSION[session_sdate_a];
	$sdate_b=$_SESSION[session_sdate_b];
	if(!$sdate_a){$sdate_b=$session_sdate_a;}
	if(!$sdate_b){$sdate_a=$session_sdate_b;}

	$kdate_a=$_SESSION[session_kdate_a];
	$kdate_b=$_SESSION[session_kdate_b];
	if(!$kdate_a){$kdate_b=$session_kdate_a;}
	if(!$kdate_b){$kdate_a=$session_kdate_b;}

	$tdate_a=$_SESSION[session_tdate_a];
	$tdate_b=$_SESSION[session_tdate_b];
	if(!$tdate_a){$tdate_b=$session_tdate_a;}
	if(!$tdate_b){$tdate_a=$session_tdate_b;}

	$staff_search=$_SESSION[session_staff_search];
	$group_search=$_SESSION[session_group_search];
}

?>

</form>

Anon7 - 2021