ESH/software_update.php
2024-10-23 18:28:06 +05:30

63 lines
1.4 KiB
PHP

<?php
include('pop_up_top.php');
?>
<form action="#" method="POST" >
<table width="100%" cellspacing="15px">
<tr>
<td align="center" width="100%" style="color:#293D3D; font-size:16px;"><img src="images/softwareupdate.png" height='100' width='100'><br><b>TMS UPDATES</b></td>
</tr>
</table>
<?php
$sql_appTitle = "select software_update from app_title";
$res_appTitle = @mysqli_query($conn,$sql_appTitle);
$row_appTitle = @mysqli_fetch_array($res_appTitle);
?>
<table width="100%" align="center" >
<tr>
<td width='1%' rowspan='3' ></td>
<td width='98%' align="left" bgcolor="#eeeeee"><?php echo $row_appTitle['software_update']?></td>
<td width='1%' rowspan='3' ></td>
</tr>
</table>
<hr>
<?php
if($_SESSION['user_id']=='27')
{
?>
<table width="100%" align="center" >
<tr>
<td width='1%' rowspan='2' ></td>
<td width='98%' align="center"><textarea name="software_update" class="textbox1" style="width:100%;"><?php echo $row_appTitle['software_update']?></textarea></td>
<td width='1%' rowspan='2' ></td>
</tr>
<tr height="40px">
<td align="center"><input type="submit" name="frmacn" value="Update" class="submitbutton" style="background:#CCFF33; border-radius:10px; color:black; font-size:11px;width:85px; height:20px;"></td>
</tr>
<?php
if($frmacn=='Update')
{
$sql="update app_title set software_update = '".addslashes($software_update)."' where id='1'";
$res=@mysqli_query($conn,$sql) or die(@mysqli_error($conn$sql));
}
}
?>
</form>
</table>
<hr>