%PDF-1.5 % ºaâÚÎΞ-ÌE1�ØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY
| Server IP : 122.155.177.87 / Your IP : 122.155.177.87 Web Server : Apache/2 System : Linux cat177-87.static.lnwhostname.com 3.10.0-1160.62.1.el7.x86_64 #1 SMP Tue Apr 5 16:57:59 UTC 2022 x86_64 User : phunphin ( 1164) PHP Version : 5.3.29 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname,putenv,eval MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/phunphin/domains/phunphin.go.th/public_html/poll/ |
Upload File : |
<?php
session_start();
if($_SESSION["user"]==""){
session_destroy();
$message = "¡ÃØ³Ò Login ¡è͹.";
$url = "../admin/index.php";
include("../admin/alert.php");
exit;
}
require_once('../admin/Connections/conndb.php');
mysql_select_db($database_conndb, $conndb);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><!-- InstanceBegin template="/Templates/template_a.dwt.php" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<script>
function confirmDelete(delUrl) {
if (confirm("Â×¹Âѹ¡ÒÃź¢éÍÁÙÅ")) {
document.location = delUrl;
}
}
function confirmSet(delUrl) {
if (confirm("Â×¹Âѹà»ÅÕè¹á»Å§Ê¶Ò¹Ð")) {
document.location = delUrl;
}
}
</script>
<!-- InstanceEndEditable -->
<?php
require_once('../admin/Connections/conndb.php');
mysql_select_db($database_conndb, $conndb);
?>
<title>ͧ¤ì¡ÒúÃÔËÒÃÊèǹµÓºÅ¾Ø¹¾Ô¹ µÓºÅ¾Ø¹¾Ô¹ ÍÓàÀ;ع¾Ô¹ ¨Ñ§ËÇÑ´ÊØÃÒÉ®Ãì¸Ò¹Õ : http://www.phunphin.go.th</title>
<meta http-equiv="Content-Type" content="text/html; charset=windows-874">
<link href="../styles.css" rel="stylesheet" type="text/css">
<!-- InstanceBeginEditable name="head" --><!-- InstanceEndEditable -->
<!-- You can use Open Graph tags to customize link previews.
Learn more: https://developers.facebook.com/docs/sharing/webmasters -->
<meta property="og:url" content="https://www.your-domain.com/your-page.html" />
<meta property="og:type" content="website" />
<meta property="og:title" content="Your Website Title" />
<meta property="og:description" content="Your description" />
<meta property="og:image" content="https://www.your-domain.com/path/image.jpg" />
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-color:#006cd8;
}
-->
</style>
<!--styles -->
<link href="../styles.css" rel="stylesheet" type="text/css" />
<!--styles -->
<style type="text/css">
<!--
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
.style1 {color: #000000}
-->
</style>
<!--font-->
<link href="https://fonts.googleapis.com/css?family=Chakra+Petch|Kanit|Pridi&display=swap" rel="stylesheet">
<!--font-->
<style type="text/css">
<!--
.style4 {font-family: 'Chakra Petch', sans-serif}
-->
</style>
</head>
<body background="../images/0bg1_edit01.png" style="background-repeat:no-repeat; background-position:top">
<!-- content -->
<div align="center">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="605" align="center" valign="top"> </td>
</tr>
<tr>
<td height="55" align="center" valign="top"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><a href="http://www.phunphin.go.th/index.php"><img src="../images/1menutop_01.png" alt=""/></a></td>
</tr>
</table></td>
</tr>
<tr>
<td align="center"> </td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top">
<table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><img src="../images/bg_con2_01.png" width="100"></td>
</tr>
<tr>
<td align="center" valign="top" background="../images/bg_con2_02.png" style="background-repeat:repeat; background-position:top"><table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="top"><!-- InstanceBeginEditable name="EditRegion3" -->
<table width="98%" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="21" class="under"><div align="center"><img src="../images/bnh19.png"></div></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td class="styles1"><div align="right">
<div align="right">
<div align="right"><a href="../admin/main.php" class="styles2">˹éÒ Admin </a> | <a href="admin.php">ẺÊͺ¶ÒÁ·Ñé§ËÁ´</a> | <a href="add_poll.php" class="styles2">à¾ÔèÁẺÊͺ¶ÒÁ </a>| <a href="../admin/signout.php" class="styles2">ÍÍ¡¨Ò¡Ãкº </a></div>
</div>
</div></td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
<tr>
<td align="center" valign="top">
<?php if($_GET[poll]==""){?>
<form method="POST" name="fnews" enctype="multipart/form-data" action="poll_save.php">
<table width="650" border="0" cellpadding="2" cellspacing="1" class="box-center">
<tr align="center">
<td height="22" colspan="2" background="../images/bg4.gif" class="styles"><span class="title2">à¾ÔèÁẺÊͺ¶ÒÁ</span></td>
</tr>
<tr>
<td width="150" align="right" class="styles1"><div align="right">¤Ó¶ÒÁ : </div></td>
<td width="500" align="left" class="red"><div align="left">
<input name="title" type="text" class="styles4" id="cat_name" size="70">
**</div></td>
</tr>
<tr>
<td height="25" colspan="2" ><div align="center">
<input name="okbutton" type="submit" class="btn" onMouseOver="check();" value="ºÑ¹·Ö¡" />
<input name="clear" type="reset" class="btn" id="reset" onClick="cc();" value="ÅéÒ§¢éͤÇÒÁ" />
</div></td>
</tr>
</table>
</form>
<?php
}
else{
$sql_data="select * from poll where id_poll=".$_GET[poll];
$resd=mysql_query($sql_data) or die(mysql_error());
$dat=mysql_fetch_array($resd);
?>
<form method="POST" name="fnews" enctype="multipart/form-data" action="pupdate.php">
<table width="650" border="0" cellpadding="2" cellspacing="1" class="box-center">
<tr align="center">
<td height="22" colspan="2" background="../images/bg4.gif" class="styles"><span class="title2">à¾ÔèÁẺÊͺ¶ÒÁ</span></td>
</tr>
<tr>
<td width="150" align="right" class="styles1"><div align="right">¤Ó¶ÒÁ : </div></td>
<td width="500" align="left" class="red"><div align="left">
<input name="title2" type="text" class="styles4" id="cat_name" size="70" value="<?php echo stripslashes($dat[p_title]);?>">
**</div></td>
</tr>
<tr>
<td height="25" colspan="2" ><div align="center">
<input name="okbutton" type="submit" class="btn" onMouseOver="check();" value="ºÑ¹·Ö¡" />
<input name="clear" type="reset" class="btn" id="reset" onClick="location.href='add_poll.php'" value="¡àÅÔ¡" />
<input type="hidden" name="ck" value="<?php echo $dat[id_poll];?>">
</div></td>
</tr>
</table>
</form>
<?php
}
?>
</td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><div align="center">
<table width="800" border="0" cellpadding="2" cellspacing="1" class="box-center">
<tr>
<td width="48" height="22" background="../images/bg4.gif" class="styles"><div align="center">ÅӴѺ</div></td>
<td width="456" height="22" background="../images/bg4.gif" class="styles"><div align="center">ẺÊͺ¶ÒÁ</div></td>
<td width="69" height="22" align="center" background="../images/bg4.gif" class="styles"><div align="center">µÑÇàÅ×Í¡</div></td>
<td width="48" align="center" background="../images/bg4.gif" class="styles">ʶҹÐ</td>
<td width="48" height="22" align="center" background="../images/bg4.gif" class="styles"><div align="center">á¡éä¢</div></td>
<td width="51" align="center" background="../images/bg4.gif" class="styles">ź</td>
</tr>
<?php
$sql="SELECT * FROM poll ORDER BY id_poll desc";
$res_page=mysql_query($sql);
$totalrecord = mysql_num_rows($res_page);
$pagesize =20;
$totalpage = (int) ($totalrecord / $pagesize);
if (($totalrecord % $pagesize) != 0) {
$totalpage += 1;
}
if (isset($_GET[pageid])) {
$pageid=$_GET[pageid];
$start = $pagesize * ($_GET[pageid] - 1);
}
else {
$pageid = 1;
$start = 0;
}
if($totalrecord!="0"){
if($pageid==1){
$jk=1;
}
else{
$a=$pageid * $pagesize;
$jk=$a-$pagesize;
}
$sql2=$sql." Limit $start ,$pagesize" ;
$res=mysql_query($sql2) or die(mysql_error());
while($c=mysql_fetch_object($res)){
?>
<tr>
<td width="48" valign="top" class="styles2"><div align="center"> <?
echo $jk;
?></div></td>
<td width="456" valign="top" class="styles1"><div align="left"><a href="admin.php?cat_id=<? echo "$c->cat_id";?>" class="styles2" ><?php echo $c->p_title; ?></a></div></td>
<td width="69" align="center" valign="top"><div align="center"><a href="add_choice.php?idp=<?php echo $c->id_poll ; ?>" class="styles1">à¾ÔèÁµÑÇàÅ×Í¡</a></div></td>
<td width="48" align="center" valign="top">
<?php
if($c->actived==1){
echo '<a href="javascript:confirmSet(\'set_status.php?del='.$c->id_poll.'\')" class="styles1">áÊ´§</a>';
}
else{
echo '<a href="javascript:confirmSet(\'set_status.php?id='.$c->id_poll.'\')" class="styles1">äÁèáÊ´§</a>';
}
?>
</td>
<td width="48" align="center" valign="top"><a href="add_poll.php?poll=<?php echo $c->id_poll ; ?>"><img src="../admin/images/edit.gif" alt="á¡éä¢" width="13" height="13" border="0"></a></td>
<td width="51" align="center" valign="top"><div align="center"><a href="javascript:confirmDelete('del_poll.php?idp=<?php echo $c->id_poll ; ?>')"><img src="../admin/images/delete.gif" alt="źËÑÇ¢éÍ" width="18" height="18" border="0"></a></div></td>
</tr>
<?php $jk++; }
}
else { // Show if recordset empty
?>
<tr>
<td height="100" colspan="6" class="title"><div align="center">äÁèÁÕ</div></td>
</tr>
<?php } // Show if recordset empty ?>
</table>
</div></td>
</tr>
<tr>
<td class="styles1"> </td>
</tr>
<tr>
<td class="styles1"><div align="left">¡ÓÅѧáÊ´§Ë¹éÒ :
<?
for($i=1;$i<=$totalpage;$i++){
if($i==$pageid){
echo $i." ";
}
else{
echo "|<a href='add_category.php?pageid=$i' class='styles2'>$i</a>| ";
}
}
?>
</div></td>
</tr>
<tr>
<td> </td>
</tr>
</table>
<!-- InstanceEndEditable --></td>
</tr>
<tr>
<td align="center" valign="top"> </td>
</tr>
</table></td>
</tr>
<tr>
<td align="center" valign="top"><img src="../images/bg_con2_04.png" width="1000"></td>
</tr>
</table> </td>
</tr>
</table> </td>
</tr>
</table>
</div>
<!-- end_content -->
<tr><td><a style="display:scroll;position:fixed;bottom:5px;right:5px;" class="backtotop" href="#top" rel="nofollow" title="Back to Top"><img src="../images/up.png" border="0" /></a></td>
</tr>
</body>
<!-- InstanceEnd --></html>
<?php
if($conndb)
{
mysql_close($conndb);
unset($conndb);
}
?>