Server IP : 103.53.40.154 / Your IP : 18.116.85.108 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/ppcad7no/biocareaqua.org/admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php require_once("../includes/dbsmain.inc.php"); if (isset($_POST['Submit'])) { @extract($_POST); $sql = "update tbl_site_color set site_color_bg_image='$site_color_bg_image', site_color_bg_color='$site_color_bg_color' where 1 and site_color_admin_id='1'"; db_query($sql); set_session_msg("Background Image uploaded successfully !"); header("Location: manage_background_color.php"); exit; } if (isset($_POST['ChangeDefault'])) { $sql = "update tbl_site_color set site_color_bg_image='bg.gif', site_color_bg_color='$site_color_bg_color' where 1 and site_color_admin_id='1'"; db_query($sql); set_session_msg("Records change to default successfully !"); header("Location: manage_background_color.php"); exit; } $result = db_query("select site_color_bg_image from tbl_site_color where 1"); if ($line_raw = mysqli_fetch_array($result)) { @extract($line_raw); } ?> <link href="styles.css" rel="stylesheet" type="text/css"> <?php include("top.inc.php");?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="pageHead"><div id="txtPageHead"> Add/Edit Background Image</div></td> </tr> </table> <div><strong class="msg" style="margin-left:500px; margin-bottom:5px;"> <?=display_sess_msg()?> </strong></div> <table width="20%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableForm" style="border:1px outset #fff; margin-top:5px; margin-bottom:10px;"> <tr> <td class="tdLabel" style="padding:8px; padding-bottom:70px; font-size:12px; font-weight:bold;" valign="bottom" align="right">Current Background</td> <td class="tdLabel" style="padding:8px;"><?php if($line_raw['site_color_bg_image']!=''){ ?> <div style="width:50px; height:140px; margin-top:10px;border:1px outset #fff; float:left; margin-left:8px; background:url(images/<?=$line_raw['site_color_bg_image']?>) repeat-x;"> </div> <? }else{ ?> <div style="width:50px; height:140px; margin-top:10px;border:1px outset #fff; float:left; margin-left:8px; background:url(images/bg.gif) repeat-x;"> </div> <? } ?> </td> </tr> </table> <form enctype="multipart/form-data" action="" method="post"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableForm" style="border:1px outset #fff; margin-top:5px; margin-bottom:10px;"> <tr> <td class="tdLabel" style="padding:8px; font-size:12px; font-weight:bold;" valign="middle">Background Image</td> <td class="tdLabel" style="padding:8px;" valign="bottom"><input type="radio" name="site_color_bg_image" value="bg-pink.gif"> <div style="width:50px; height:140px; margin-top:10px;border:1px outset #fff; float:left; margin-left:8px; background:url(images/bg-pink.gif);"> </div></td> <td class="tdLabel" style="padding:8px;"><input type="radio" name="site_color_bg_image" value="bg-blue.gif"> <div style="width:50px; height:140px; margin-top:10px;border:1px outset #fff; float:left; margin-left:8px; background:url(images/bg-blue.gif) repeat-x;"> </div></td> <td class="tdLabel" style="padding:8px;"><input type="radio" name="site_color_bg_image" value="bg-green.gif"> <div style="width:50px; height:140px; margin-top:10px;border:1px outset #fff; float:left; margin-left:8px; background:url(images/bg-green.gif) repeat-x;"> </div></td> <td class="tdLabel" style="padding:8px;"><input type="radio" name="site_color_bg_image" value="bg-red.gif"> <div style="width:50px; height:140px; margin-top:10px;border:1px outset #fff; float:left; margin-left:8px; background:url(images/bg-red.gif) repeat-x;"> </div></td> <td class="tdLabel" style="padding:8px;"><input type="radio" name="site_color_bg_image" value="bg.gif"> <div style="width:50px; height:140px; margin-top:10px;border:1px outset #fff; float:left; margin-left:8px; background:url(images/bg.gif) repeat-x;"> </div></td> <td class="tdLabel" style="padding:8px; font-size:20px;"><b>OR</b></td> <td class="tdLabel" style="padding:8px; font-size:12px; font-weight:bold;">Background Color</td> <td class="tdLabel" style="padding:8px;"><input type="color" name="site_color_footer_font_hover_color" style="width:140px; height:25px;"></td> </tr> <tr> <td class="tdLabel" colspan="6" align="left" style="padding:8px;"><input type="submit" name="Submit" style="width:110px; font-weight:bold; font-size:14px; height:32px; margin-left:250px;"> <input type="submit" name="ChangeDefault" value="Set as default" style="width:145px; font-weight:bold; font-size:14px; height:32px; margin-left:10px;"> </td> </tr> </table> </form> <?php include("bottom.inc.php");?>