Server IP : 103.53.40.154 / Your IP : 3.143.218.180 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_footer_color='$site_color_footer_color', site_color_footer_font_color='$site_color_footer_font_color', site_color_footer_font_hover_color='$site_color_footer_font_hover_color' where 1 and site_color_admin_id='1'"; db_query($sql); set_session_msg("Footer colors updated successfully !"); header("Location: manage_footer_color.php"); exit; } if (isset($_POST['ChangeDefault'])) { $sql = "update tbl_site_color set site_color_footer_color='', site_color_footer_font_color='', site_color_footer_font_hover_color='' where 1 and site_color_admin_id='1'"; db_query($sql); set_session_msg("Footer colors change to default successfully !"); header("Location: manage_footer_color.php"); exit; } $result = db_query("select site_color_footer_color,site_color_footer_font_color,site_color_footer_font_hover_color 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"> <script type="text/javascript" src="jscolor.js"></script> <?php include("top.inc.php");?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="pageHead"><div id="txtPageHead"> Add/Edit Footer Color</div></td> </tr> </table> <div><strong class="msg" style="margin-left:500px; margin-bottom:5px;"> <?=display_sess_msg()?> </strong></div> <table width="45%" 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-weight:bold;" align="right">Current Footer Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="text" class="color" style="border:none;width:260px; height:25px;" disabled="disabled" value="<?=$line_raw['site_color_footer_color']?>"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Footer Font Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="text" class="color" disabled="disabled" style="border:none;width:260px; height:25px;" value="<?=$line_raw['site_color_footer_font_color']?>"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Footer Font Hover Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="text" class="color" disabled="disabled" style="border:none;width:260px; height:25px;" value="<?=$line_raw['site_color_footer_font_hover_color']?>"></td> </tr> </table> <form enctype="multipart/form-data" action="" method="post"> <table width="45%" border="0" align="center" cellpadding="0" cellspacing="0" class="tableForm" style="border:1px outset #fff; margin-top:45px; padding-top:20px; padding-bottom:20px; margin-bottom:10px;"> <tr> <td class="tdLabel" style="padding:4px; font-weight:bold; color:#FF0000" align="center" colspan="2">» Click on textbox to open the color picker.</td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Footer Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_footer_color" style="width:260px; height:25px;"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Footer Font Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_footer_font_color" style="width:260px; height:25px;"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Footer Font Hover Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_footer_font_hover_color" style="width:260px; height:25px;"></td> </tr> <tr> <td class="tdLabel" colspan="2" style="padding:8px;"> <span style="margin-left:185px;"><input type="submit" name="Submit" style="width:100px; font-weight:bold; font-size:13px; height:29px;"></span> <span style="margin-left:10px;"><input type="submit" name="ChangeDefault" value="Set as default" style="width:145px; font-weight:bold; font-size:13px; height:29px;"></span> </td> </tr> </table> </form> <?php include("bottom.inc.php");?>