Server IP : 103.53.40.154 / Your IP : 3.139.235.177 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_quick_enquiry_color='$site_color_quick_enquiry_color', site_color_quick_enquiry_border_color='$site_color_quick_enquiry_border_color', site_color_quick_enquiry_font_color='$site_color_quick_enquiry_font_color', site_color_quick_enquiry_button_color='$site_color_quick_enquiry_button_color', site_color_quick_enquiry_buttonhover_color='$site_color_quick_enquiry_buttonhover_color' where 1 and site_color_admin_id='1'"; db_query($sql); set_session_msg("Footer colors updated successfully !"); header("Location: manage_quick_enq_color.php"); exit; } if (isset($_POST['ChangeDefault'])) { $sql = "update tbl_site_color set site_color_quick_enquiry_color='', site_color_quick_enquiry_border_color='', site_color_quick_enquiry_font_color='', site_color_quick_enquiry_button_color='', site_color_quick_enquiry_buttonhover_color='' where 1 and site_color_admin_id='1'"; db_query($sql); set_session_msg("Footer colors change to default successfully !"); header("Location: manage_quick_enq_color.php"); exit; } $result = db_query("select site_color_quick_enquiry_color,site_color_quick_enquiry_border_color,site_color_quick_enquiry_font_color,site_color_quick_enquiry_button_color,site_color_quick_enquiry_buttonhover_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 Quick Enquiry Color</div></td> </tr> </table> <div><strong class="msg" style="margin-left:500px; margin-bottom:5px;"> <?=display_sess_msg()?> </strong></div> <table width="50%" 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 Quick Enquiry 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_quick_enquiry_color']?>"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Quick Enquiry Border 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_quick_enquiry_border_color']?>"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Quick Enquiry 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_quick_enquiry_font_color']?>"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Quick Enquiry Button 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_quick_enquiry_button_color']?>"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Quick Enquiry Button 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_quick_enquiry_buttonhover_color']?>"></td> </tr> </table> <form enctype="multipart/form-data" action="" method="post"> <table width="50%" 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 Quick Enquiry Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_quick_enquiry_color" style="width:260px; height:25px;"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Quick Enquiry Border Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_quick_enquiry_border_color" style="width:260px; height:25px;"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Quick Enquiry Font Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_quick_enquiry_font_color" style="width:260px; height:25px;"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Quick Enquiry Button Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_quick_enquiry_button_color" style="width:260px; height:25px;"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Quick Enquiry Button Hover Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_quick_enquiry_buttonhover_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");?>